agentleFS
89jobrien89jobrien/godmode/skills/pr-author/SKILL.md

godmode:pr-author

Skill1 starsChanged 56 days agoMITView on GitHub

Compose PR descriptions from branch diffs, task context, and commit history. Produces structured descriptions ready for `gh pr create`. Uses conventional commit style and links godmode tasks.

  • Commits and pushes

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write structured PR descriptions directly from branch diffs and task context.

    line 13
  2. Distinctive:

    After completing a feature or fix on a branch

    line 17
  3. Distinctive:

    When you need a consistent PR structure with summary, changes, test plan, and linked issues

    line 19
  4. Distinctive:

    Always include at least one testing bullet point.

    line 71
  5. Very specific:

    If the branch addresses GitHub issues or godmode tasks:

    line 75
  6. Very specific:

    Search for linked issue numbers in commit bodies via --format=%B

    line 97
  7. Distinctive:

    After the user approves the draft, the agent executes:

    line 101
  8. Distinctive:

    All titles follow conventional-commit format (required for changelog integration)

    line 114
  9. Distinctive:

    All changes are grouped by crate for readability

    line 116
  10. Distinctive:

    All PRs include a test plan

    line 117
  11. Distinctive:

    All linked issues are verified by reading git log or task YAML

    line 118

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

Write structured PR descriptions directly from branch diffs and task context.

When to Use

  • After completing a feature or fix on a branch
  • Before running gh pr create
  • When you need a consistent PR structure with summary, changes, test plan, and linked issues

PR Structure

Title

Format: <type>(<scope>): <description>

  • Type: feat, fix, refactor, test, docs, chore
  • Scope (optional): crate or component name
  • Description: concise one-liner, under 70 characters total
  • No period at the end

Examples:

  • feat(godmode-core): add task dependency validation
  • fix: correct task status persistence on reload
  • refactor: simplify session trait bounds

Summary

2-3 sentences describing what changed and why. Lead with the user-facing impact or the problem solved:

  • "Adds support for..."
  • "Fixes incorrect behavior..."
  • "Refactors... to improve..."

Changes

Grouped by crate, with bullet points per area:

### Crate: godmode-core
- model: add `depends_on` field to Task struct
- graph: implement dependency resolution in `runnable()`
- session: track blocked task metadata

### Crate: godmode-cli
- cli: add `--depends-on` flag to `task add`

Test Plan

Describe what was tested:

  • "All existing tests continue to pass"
  • "Ran taskit test run"
  • "Added new tests in tests/unit/ for dependency resolution"
  • "Verified behavior with manual test: <steps>"

Always include at least one testing bullet point.

Linked Issues

If the branch addresses GitHub issues or godmode tasks:

Closes #42 (fix: task list not updating on status change)
Relates to #38 (design: task dependency syntax)
Completes godmode tasks: t1, t3, t5

Include the issue title or task description if helpful.

Task Graph Integration

The PR author reads .ctx/godmode/tasks.yaml to identify which tasks are marked done on this branch. These are listed in the "Linked Issues" section as task IDs from the graph (e.g., t1, t3).

Commit History

The PR author reads git log main..HEAD --oneline to:

  1. Count commits by conventional-commit type
  2. Identify scopes (crate names) from commit messages
  3. Search for linked issue numbers in commit bodies via --format=%B

gh pr create Integration

After the user approves the draft, the agent executes:

gh pr create --title "<title>" --body "<body>"

The title and body are shown in the draft step, so the user can verify before creation.

The agent never creates a PR without explicit user approval of the draft.

Conventions

  • All titles follow conventional-commit format (required for changelog integration)
  • All changes are grouped by crate for readability
  • All PRs include a test plan
  • All linked issues are verified by reading git log or task YAML

See also

  • gm-code-review-agent — run a code review BEFORE running this agent
  • gm-changelog-agent — generates changelog from commit history
  • GitHub CLI: gh pr create --help

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.