agentleFS
strikersamstrikersam/autonomous-ai-agency/.agents/skills/ticket-to-pr/SKILL.md

ticket-to-pr

Skill9 starsChanged 3 months agoMITView on GitHub

If acceptance criteria are not explicit, derive them from the description and list them out for confirmation. Focus particularly on: - Files most likely affected by this change - Existing tests for related functionality - Any TODO comments or known issues in relevant areas Use test-first-executor skill for complex features.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 11 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the issue title, body, labels, and comments.

    line 15
  2. Distinctive:

    If acceptance criteria are not explicit, derive them from the description and list them out for confirmation.

    line 22
  3. Very specific:

    Run the context-prime skill to ensure full codebase understanding before writing code.

    line 25
  4. Distinctive:

    Before writing code, produce a plan:

    line 33
  5. Distinctive:

    Write the test first (failing)

    line 53
  6. Distinctive:

    Write the minimal implementation to pass it

    line 54
  7. Very specific:

    Use test-first-executor skill for complex features.

    line 58
  8. Very specific:

    Use the smart-commit skill to create a well-structured commit:

    line 70
  9. Distinctive:

    Follow conventional commits format

    line 72
  10. Distinctive:

    Before pushing, review your own diff:

    line 76
  11. Distinctive:

    Never skip the planning step — rushing leads to wrong implementations

    line 102
  12. Distinctive:

    Never mark acceptance criteria as met without a test proving it

    line 103
  13. Distinctive:

    If the issue is ambiguous, make explicit assumptions and document them

    line 104
  14. Distinctive:

    If the issue reveals a deeper problem, note it but stay focused on the ticket scope

    line 105
  15. Very specific:

    Use scope-guard skill to avoid over-implementing

    line 106

≈ “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

Skill: ticket-to-pr

Purpose

Transform a GitHub issue (ticket) into a complete, merged pull request. End-to-end automation from reading the issue to pushing working, tested code.

Trigger

Use when:

  • Given an issue number or URL to implement
  • Told "implement issue #N"
  • A GitHub issue is linked in the task

Process

Step 1: Parse the Issue

Read the issue title, body, labels, and comments. Extract:

  • What: The feature/fix being requested
  • Why: The motivation or user need
  • Acceptance Criteria: Explicit or implied success conditions
  • Constraints: Any technical requirements or limitations mentioned
  • Context: Related issues, PRs, or discussions referenced

If acceptance criteria are not explicit, derive them from the description and list them out for confirmation.

Step 2: Context Prime

Run the context-prime skill to ensure full codebase understanding before writing code.

Focus particularly on:

  • Files most likely affected by this change
  • Existing tests for related functionality
  • Any TODO comments or known issues in relevant areas

Step 3: Plan the Implementation

Before writing code, produce a plan:

## Implementation Plan for #[N]: [title]

### Files to Create
- path/to/new_file.py — [purpose]

### Files to Modify  
- path/to/existing.py — [what changes and why]

### Tests to Add
- tests/test_feature.py — [what scenarios to cover]

### Acceptance Criteria Checklist
- [ ] [criterion 1]
- [ ] [criterion 2]

Step 4: Test-First Implementation

For each acceptance criterion:

  1. Write the test first (failing)
  2. Write the minimal implementation to pass it
  3. Refactor if needed
  4. Confirm test passes

Use test-first-executor skill for complex features.

Step 5: Run Full Validation

# All of these must pass:
- Unit tests
- Integration tests (if applicable)
- Lint/type checks (use auto-fix skill first)
- Any CI checks that can be run locally

Step 6: Commit with Smart-Commit

Use the smart-commit skill to create a well-structured commit:

  • Reference the issue number in commit message
  • Follow conventional commits format
  • Include Closes #N in commit body

Step 7: Self-Review

Before pushing, review your own diff:

  • Does it actually solve what the issue asked for?
  • Are there any obvious bugs or edge cases missed?
  • Is the code consistent with project conventions?
  • Are the tests meaningful (not just passing, but actually validating behavior)?

Step 8: Push and Summarize

Push the branch and output a PR description:

## PR: [title]

Closes #[N]

### What Changed
[brief description]

### How to Test
[step-by-step testing instructions]

### Checklist
- [x] Tests added/updated
- [x] Lint passes
- [x] Acceptance criteria met

Rules

  • Never skip the planning step — rushing leads to wrong implementations
  • Never mark acceptance criteria as met without a test proving it
  • If the issue is ambiguous, make explicit assumptions and document them
  • If the issue reveals a deeper problem, note it but stay focused on the ticket scope
  • Use scope-guard skill to avoid over-implementing

Integration with Other Skills

  • → context-prime: always run first
  • → test-first-executor: for the implementation loop
  • → auto-fix: before final commit
  • → smart-commit: for the commit message
  • → scope-guard: to stay focused

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.