agentleFS
agodianelagodianel/esp32-claude-workbench/.claude/skills/pr_prepare/SKILL.md

pr_prepare

Skill79 starsChanged 8 months agoMITView on GitHub

Prepare a pull request with structured description, test evidence, risk assessment, and review checklist.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After completing implementation and testing.

    line 12
  2. Distinctive:

    Before submitting code for review.

    line 13
  3. Distinctive:

    When updating a mission to "complete" status.

    line 14
  4. Distinctive:

    Document all test results:

    line 28
  5. Distinctive:

    Test commands run and their output.

    line 29
  6. Distinctive:

    Test plan with detailed cases.

    line 95
  7. Distinctive:

    Keep the PR focused: If scope grew beyond the contract, split into multiple PRs.

    line 112

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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 Prepare

Generate a complete, reviewable pull request with all required evidence and documentation.

When to Use

  • After completing implementation and testing.
  • Before submitting code for review.
  • When updating a mission to "complete" status.

Steps

1. Collect Implementation Artifacts

Gather from the mission file and implementation contract:

  • Change summary and motivation.
  • List of affected files.
  • Non-goals (what was intentionally excluded).
  • Risk assessment from the contract.

2. Compile Test Evidence

Document all test results:

  • Test commands run and their output.
  • Pass/fail counts.
  • Coverage report (if available).
  • Any skipped tests with reason (e.g., requires hardware).
  • Serial log excerpts for target tests.

3. Generate PR Description

## Summary

[One-paragraph description of the change and why it was needed]

## Changes

### Files Modified
| File | Change Type | Description |
|------|------------|-------------|
| `path/to/file` | Modified | [Brief description] |

### Architecture Impact
- [How this affects the overall system]
- [New dependencies introduced]

## Testing

### Tests Run

[paste test command and output]


### Test Summary
- ✅ [N] passed
- ❌ [N] failed
- ⏭️ [N] skipped (hardware-required)

### Coverage
- [X]% statement coverage on changed files

## Risk Assessment

| Risk | Level | Mitigation |
|------|-------|-----------|
| [Risk description] | LOW/MED/HIGH | [How it's handled] |

## Rollback Plan

[Steps to safely revert this change if needed]

## Checklist

- [ ] Implementation contract reviewed and accepted
- [ ] All acceptance criteria met
- [ ] Tests added for new functionality
- [ ] No regressions in existing tests
- [ ] Pin audit passed (if GPIO changes)
- [ ] Architecture review passed (if structural changes)
- [ ] Documentation updated
- [ ] Mission file updated with completion status

4. Link to Mission File

Reference the mission file in the PR so reviewers can see the full context:

  • Original mission with goals and constraints.
  • Implementation contract with scope and risks.
  • Test plan with detailed cases.

5. Review Readiness Check

Before submitting, verify:

  • All CI checks would pass.
  • No uncommitted changes.
  • Commit messages are descriptive.
  • PR description is complete.
  • No debugging code left in.
  • No TODO or FIXME without issue references.

Rules

  1. Never submit a PR without test evidence. Even if tests are manual, document the results.
  2. Include risk assessment. Reviewers need to know what could go wrong.
  3. Link to the mission. Provide full traceability.
  4. Keep the PR focused. If scope grew beyond the contract, split into multiple PRs.

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.