skills$openclaw/pr-commit-workflow
joshp1234.8k

by joshp123

pr-commit-workflow – OpenClaw Skill

pr-commit-workflow is an OpenClaw Skills integration for writing workflows. This skill should be used when creating commits or pull requests, enforcing a human-written PR structure, intent capture, and evidence in agentic workflows.

4.8k stars2.4k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026writing

Skill Snapshot

namepr-commit-workflow
descriptionThis skill should be used when creating commits or pull requests, enforcing a human-written PR structure, intent capture, and evidence in agentic workflows. OpenClaw Skills integration.
ownerjoshp123
repositoryjoshp123/pr-commit-workflow
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @joshp123/pr-commit-workflow
last updatedFeb 7, 2026

Maintainer

joshp123

joshp123

Maintains pr-commit-workflow in the OpenClaw Skills directory.

View GitHub profile
File Explorer
10 files
.
references
commit-format.md
837 B
pr-human-template.md
581 B
workflow-commit.md
855 B
workflow-pr.md
2.3 KB
scripts
build_pr_body.sh
1.2 KB
_meta.json
292 B
README.md
3.5 KB
SKILL.md
1.6 KB
SKILL.md

name: pr-commit-workflow description: This skill should be used when creating commits or pull requests, enforcing a human-written PR structure, intent capture, and evidence in agentic workflows.

PR + Commit Workflow

Overview

Enforce a high-signal commit workflow and a human-written PR format. Keep global process rules as source of truth and make PRs reviewable by humans and agents.

Workflow Decision Tree

  • If the task is about commits only, follow references/workflow-commit.md.
  • If the task involves PR creation or PR updates, follow references/workflow-pr.md.

Global Rules

  • If the repo has AGENTS.md or docs/agents/PROCESS.md, read it for repo-specific rules.
  • Require user-supplied, human-written intent for every PR. Never generate or paraphrase this text.
  • Use /tmp for PR body drafts and gh pr edit --body-file for updates.

Commit Workflow (entry point)

  • Execute the steps in references/workflow-commit.md.
  • Use the message format in references/commit-format.md.

PR Workflow (entry point)

  • Execute the steps in references/workflow-pr.md.
  • Use the template in references/pr-human-template.md verbatim.
  • Use scripts/build_pr_body.sh to gather environment metadata if available.

Resources

  • references/workflow-commit.md: commit checklist and evidence expectations.
  • references/workflow-pr.md: PR creation/update flow, comment checks, and evidence rules.
  • references/pr-human-template.md: human-written PR structure (must be used as-is).
  • references/commit-format.md: commit message format and examples.
  • scripts/build_pr_body.sh: environment metadata collector for PR prompt history section.
README.md

pr-workflow-skill

A skill for high-signal PR and commit workflows in agentic AI coding. Works with your coding agent of choice.

What it does

  • Enforces human-written intent at the top of every PR (never AI-generated)
  • Captures full prompt history with timestamps for auditability
  • Records environment metadata (harness, model, thinking level, terminal, system)
  • Guides surgical commits (one logical change per commit, no bulk adds)
  • Defaults PRs to draft until tests + review pass

Installation

Give this to your coding agent:

Install the PR workflow skill from https://github.com/joshp123/pr-workflow-skill — clone it to wherever I keep skills, and wire it up so it activates when I create commits or PRs.

Usage

The skill activates when creating commits or PRs. It will:

  1. Prompt you for intent — your own words explaining WHY this change exists
  2. Build the PR body using the template in references/pr-human-template.md
  3. Collect environment metadata using scripts/build_pr_body.sh
  4. Include full prompt history in table format

Example PR


Human written summary:

The intent of this change is, as written by a human:

I want to make a global skill to encode my PR workflow. the skill should help me (a lazy idiot) make good PRs using my coding agents, explaining what i've done, so that maintainers get high quality contributiions, without noise, espeically including rpompt histories.

The rest of this PR was written by gpt-5.2-codex-high, running in the codex harness. Full environment + prompt history appear at the end.

Changes

  • New skill: skills/pr-commit-workflow/ — global PR/commit workflow with hard human-intent gate and explicit prompt-history requirements
  • Human-written PR template: verbatim intent at top (blockquote), model attribution, full prompt history at bottom
  • Reviewer-prompting + default-draft policy: PRs stay draft until tests + review pass
  • Environment metadata collector script: detects harness/model/thinking/terminal/system programmatically
  • Surgical commit guidance: one logical change per commit, no bulk git add

Tests

  • nix flake check — ok (warnings: uncommitted tree, unknown flake output homeManagerModules)

Risks

  • Low; docs/skill only
  • Template may feel heavy for tiny changes (follow-up: add lightweight variant)

Follow-ups

  • Lightweight template variant for trivial PRs
  • Reviewer handles/team mapping for automation

Prompt History

Environment

Harness: codex Model: gpt-5.2-codex Thinking level: high Terminal: iTerm.app 3.6.6 System: macOS 26.1

Prompts

(truncated for this example — real PRs include full verbatim prompts)

ISO-8601Prompt
2026-01-10T20:05:12Zi need you to use cass/cm and search for all instructions related to creating PRs in the last 2 months or so...
2026-01-10T20:34:59Zcan you draft a skill that helps us do this commit and PR workflow?
2026-01-10T20:46:07Zneeds to indicate HUMAN WRITTEN intent. this absolutely MUST NOT be generated by the model EVER!!!!!
2026-01-10T20:50:06Zok. use the skill and make a PR to my ai stack repo with this

Files

  • SKILL.md — skill entry point
  • references/workflow-commit.md — commit workflow steps
  • references/workflow-pr.md — PR workflow steps
  • references/pr-human-template.md — the PR template
  • references/commit-format.md — commit message format
  • scripts/build_pr_body.sh — environment metadata collector

License

AGPL-3.0

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install pr-commit-workflow?

Run openclaw add @joshp123/pr-commit-workflow in your terminal. This installs pr-commit-workflow into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/joshp123/pr-commit-workflow. Review commits and README documentation before installing.