agentleFS
BradymckBradymck/claude-code-harness/skills/pr/SKILL.md

pr

Skill2 starsChanged 6 months agoMITView on GitHub

Create a pull request with full git hygiene. Use after completing any code change. Enforces: correct git identity, builds pass, all files staged, feature branch, PR created via gh. Triggers on: /pr, create PR, open PR, push and PR, ship this.

  • Commits and pushes

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Must match the identity you intend to commit as.

    line 20
  2. Very specific:

    Run the project's build command (check package.json scripts, Makefile, or CI config):

    line 34
  3. Distinctive:

    Never use git add -A or git add .

    line 45
  4. Very specific:

    Never commit directly to main.

    line 52
  5. Very specific:

    Follow conventional commits.

    line 58
  6. Very specific:

    Verify the remote is the correct account (gh repo view to confirm).

    line 64
  7. Distinctive:

    NEVER merge or deploy without user approval

    line 86
  8. Very specific:

    NEVER use --force push to main

    line 87
  9. Distinctive:

    NEVER skip the build check — a broken build is worse than no PR

    line 88
  10. Very specific:

    If pre-commit hook fails, fix the issue and create a NEW commit (never --amend)

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

PR Workflow

Enforce complete git hygiene before opening any PR. Never skip a step.


Steps (execute in order, stop and fix before continuing)

1. Verify git identity

git config user.name
git config user.email

Must match the identity you intend to commit as. If wrong:

git config user.name "<your-github-username>"
git config user.email "<your-email>"

2. Check what's changed

git status
git diff --stat

List every modified file. Do NOT skip unstaged files.

3. Run the build

Run the project's build command (check package.json scripts, Makefile, or CI config):

  • Node projects: npm run build (or the project's equivalent)
  • Python: python3 -m py_compile <entrypoint> or the project's test/lint command
  • TypeScript: npx tsc --noEmit at minimum

Fix any errors before continuing. Do not open a PR with a broken build.

4. Stage ALL changed files

git add <every modified file by name>

Never use git add -A or git add . (risk of committing secrets or binaries). Double-check with git status — nothing should show as unstaged.

5. Create a feature branch if not already on one

git checkout -b <descriptive-branch-name>

Never commit directly to main. Branch names: feat/, fix/, chore/.

6. Commit

git commit -m "<type>(<scope>): <description>"

Follow conventional commits. No --no-verify.

7. Push

git push -u origin <branch>

Verify the remote is the correct account (gh repo view to confirm).

8. Create PR

gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
- <bullet points of what changed>

## Test plan
- <what to verify>

🤖 Generated with Claude Code
EOF
)"

9. Return the PR URL

Share the PR link with the user so they can review before merging.


Rules

  • NEVER merge or deploy without user approval
  • NEVER use --force push to main
  • NEVER skip the build check — a broken build is worse than no PR
  • If pre-commit hook fails, fix the issue and create a NEW commit (never --amend)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.