4.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.
Skill Snapshot
| 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. OpenClaw Skills integration. |
| owner | joshp123 |
| repository | joshp123/pr-commit-workflow |
| language | Markdown |
| license | MIT |
| topics | |
| security | L1 |
| install | openclaw add @joshp123/pr-commit-workflow |
| last updated | Feb 7, 2026 |
Maintainer

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.mdordocs/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
/tmpfor PR body drafts andgh pr edit --body-filefor 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.mdverbatim. - Use
scripts/build_pr_body.shto 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.
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:
- Prompt you for intent — your own words explaining WHY this change exists
- Build the PR body using the template in
references/pr-human-template.md - Collect environment metadata using
scripts/build_pr_body.sh - 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 outputhomeManagerModules)
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-8601 | Prompt |
|---|---|
| 2026-01-10T20:05:12Z | i 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:59Z | can you draft a skill that helps us do this commit and PR workflow? |
| 2026-01-10T20:46:07Z | needs to indicate HUMAN WRITTEN intent. this absolutely MUST NOT be generated by the model EVER!!!!! |
| 2026-01-10T20:50:06Z | ok. use the skill and make a PR to my ai stack repo with this |
Files
SKILL.md— skill entry pointreferences/workflow-commit.md— commit workflow stepsreferences/workflow-pr.md— PR workflow stepsreferences/pr-human-template.md— the PR templatereferences/commit-format.md— commit message formatscripts/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.
