agentleFS
jeremymcsjeremymcs/skills/from-issue/SKILL.md

from-issue

Skill8 starsChanged 6 months agoMITView on GitHub

Research and implement a code change from an existing issue, ticket, or issue-like artifact. Use when the user says "$from-issue", asks Codex to work from a GitHub issue, local markdown issue, tracker ticket, bug report, feature issue, or AFK implementation ticket, and expects codebase research, linked PR verification, blast-radius analysis, targeted questions, a patch, verification, branch push, and pull request creation.

1 other project uses 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

45 rules. About 0 are common, 41 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈41

    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:

    Use this skill to take one existing issue from "needs implementation" to a verified pull request.

    line 8
  2. Distinctive:

    Default to action. Ask questions only after reading the issue and exploring the codebase, and only when the answer cannot be responsibly …

    line 10
  3. Very specific:

    If the issue tracker is unknown, inspect repo docs such as AGENTS.md, CONTRIBUTING, .github, docs/agents, and local issue folders before …

    line 17
  4. Distinctive:

    Do not close, edit, relabel, or reassign the issue unless the user explicitly asks.

    line 18
  5. Distinctive:

    Check git status -sb before editing.

    line 21
  6. Very specific:

    Create or switch to a focused branch when implementation will proceed.

    line 22
  7. Distinctive:

    Prefer concrete evidence over assumptions: file paths, existing tests, runtime behavior, logs, failing commands, or issue comments.

    line 25
  8. Distinctive:

    Treat issue text as a hypothesis.

    line 26
  9. Distinctive:

    If the issue is too large, identify the smallest tracer-bullet slice that satisfies the acceptance criteria and say what is deliberately …

    line 27
  10. Distinctive:

    Verify any existing pull request.

    line 28
  11. Distinctive:

    If the issue has linked, closing, or referenced PRs, inspect them before creating a competing patch.

    line 29
  12. Distinctive:

    Read the PR description, diff, review comments, check results, and linked commits.

    line 30
  13. Distinctive:

    If the PR is the correct fix, verify it with the relevant checks and report that result instead of duplicating the work.

    line 33
  14. Distinctive:

    If the PR is incomplete or wrong, either review/comment with concrete evidence when asked, or create a separate fix only after explaining …

    line 34
  15. Very specific:

    After issue/PR/codebase research, pause before editing when any trigger in the Implementation Gate section applies.

    line 36
  16. Distinctive:

    If no trigger applies, post a brief checkpoint and continue without waiting.

    line 37
  17. Distinctive:

    If a trigger applies, ask one focused question unless the conservative implementation is clearly implied by the issue and code evidence.

    line 38
  18. Distinctive:

    Ask one question at a time.

    line 40
  19. Distinctive:

    Do not ask questions that codebase exploration can answer.

    line 42
  20. Distinctive:

    If the user is unavailable and the uncertainty is low-risk, choose the conservative path and document the assumption.

    line 43
  21. Distinctive:

    Follow existing local patterns, naming, abstractions, formatting, and test style.

    line 46
  22. Distinctive:

    Add or update tests proportional to risk and blast radius.

    line 47
  23. Distinctive:

    Avoid opportunistic refactors, dependency churn, unrelated formatting, or broad rewrites.

    line 48
  24. Distinctive:

    Search for all callers, imports, route usages, feature flags, schema references, command invocations, and UI entry points touched by the …

    line 51
  25. Distinctive:

    Run checks that cover the actual blast radius, not just the files edited.

    line 56
  26. Distinctive:

    If a check cannot run, capture the blocker and any partial evidence.

    line 60
  27. Distinctive:

    Commit with a focused message if the user asked for commit/PR or if pushing a PR is part of the request.

    line 63
  28. Distinctive:

    Default to a draft PR when meaningful uncertainty remains, checks are blocked, or the user did not specify ready-for-review.

    line 66
  29. Distinctive:

    Call out assumptions, blocked checks, and any follow-up work that is real rather than speculative.

    line 69
  30. Distinctive:

    Use this gate to keep autonomy for small fixes while avoiding surprise PRs for larger or riskier work.

    line 73
  31. Distinctive:

    After reading the issue, checking linked PRs, and tracing the code path, pause and report a short implementation checkpoint before editing …

    line 75
  32. Distinctive:

    Use this checklist while exploring, but do not dump it into the final answer unless useful:

    line 98
  33. Distinctive:

    When a human decision is required, ask:

    line 113
  34. Distinctive:

    Ask only one question, then wait.

    line 123
  35. Distinctive:

    Use the repository's PR template when present.

    line 127
  36. Very specific:

    Use Refs #ISSUE_NUMBER instead of Closes when the PR does not fully satisfy the issue.

    line 153
  37. Distinctive:

    Do not implement before reading the issue and researching the relevant code.

    line 157
  38. Distinctive:

    Do not skip the Implementation Gate when its triggers apply.

    line 158
  39. Distinctive:

    Do not ask broad planning questions before doing codebase research.

    line 159
  40. Distinctive:

    Do not exceed the issue's scope without explicit approval.

    line 160
  41. Distinctive:

    Do not include unrelated user changes in commits or PRs.

    line 161
  42. Distinctive:

    Do not open a PR from a branch that includes unrelated commits against the target base.

    line 162
  43. Distinctive:

    Do not push directly to the default branch unless explicitly requested.

    line 163
  44. Distinctive:

    Do not mark a PR ready when verification is missing or materially blocked.

    line 164
  45. Distinctive:

    Do not invent issue labels, milestones, owners, product requirements, or external commitments.

    line 165

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

From Issue

Use this skill to take one existing issue from "needs implementation" to a verified pull request.

Default to action. Ask questions only after reading the issue and exploring the codebase, and only when the answer cannot be responsibly inferred from code, docs, tests, ADRs, or issue comments.

Workflow

  1. Resolve the issue source.
    • Accept issue numbers, URLs, branch names, tracker IDs, local markdown files, pasted issue bodies, or conversation context.
    • Fetch the full issue body, labels, linked issues, linked pull requests, comments, acceptance criteria, screenshots, and current status when the tracker is available.
    • If the issue tracker is unknown, inspect repo docs such as AGENTS.md, CONTRIBUTING, .github, docs/agents, and local issue folders before asking.
    • Do not close, edit, relabel, or reassign the issue unless the user explicitly asks.
  2. Establish working context.
    • Inspect repo instructions, package manifests, test scripts, recent commits, relevant ADRs, and domain docs.
    • Check git status -sb before editing. Preserve unrelated user changes.
    • Create or switch to a focused branch when implementation will proceed. Use the repository's branch conventions when documented; otherwise use a short fix/issue-<id>-<slug> branch.
  3. Research the implementation path.
    • Trace the relevant workflow through source, tests, API boundaries, data model, UI, and configuration.
    • Prefer concrete evidence over assumptions: file paths, existing tests, runtime behavior, logs, failing commands, or issue comments.
    • Treat issue text as a hypothesis. Verify that the codebase still matches it.
    • If the issue is too large, identify the smallest tracer-bullet slice that satisfies the acceptance criteria and say what is deliberately out of scope.
  4. Verify any existing pull request.
    • If the issue has linked, closing, or referenced PRs, inspect them before creating a competing patch.
    • Read the PR description, diff, review comments, check results, and linked commits.
    • Compare the PR against the issue's acceptance criteria, current codebase behavior, and expected blast radius.
    • Decide whether the PR is the correct fix, a partial fix, stale, broken, or unrelated.
    • If the PR is the correct fix, verify it with the relevant checks and report that result instead of duplicating the work.
    • If the PR is incomplete or wrong, either review/comment with concrete evidence when asked, or create a separate fix only after explaining why the existing PR does not satisfy the issue.
  5. Pass the implementation gate when the change is not obviously small.
    • After issue/PR/codebase research, pause before editing when any trigger in the Implementation Gate section applies.
    • If no trigger applies, post a brief checkpoint and continue without waiting.
    • If a trigger applies, ask one focused question unless the conservative implementation is clearly implied by the issue and code evidence.
  6. Interrogate uncertainty.
    • Ask one question at a time.
    • For each question, include the recommended answer and the evidence that led to it.
    • Do not ask questions that codebase exploration can answer.
    • If the user is unavailable and the uncertainty is low-risk, choose the conservative path and document the assumption.
  7. Create the patch.
    • Implement the appropriately scoped change that satisfies the issue. Do not force a surgical fix when the correct solution needs a broader coordinated change.
    • Follow existing local patterns, naming, abstractions, formatting, and test style.
    • Add or update tests proportional to risk and blast radius.
    • Avoid opportunistic refactors, dependency churn, unrelated formatting, or broad rewrites.
  8. Analyze blast radius.
    • Review every changed file and identify the runtime paths, API contracts, data flows, configuration, migrations, generated assets, user workflows, tests, and downstream integrations that could be affected.
    • Search for all callers, imports, route usages, feature flags, schema references, command invocations, and UI entry points touched by the change.
    • Classify the impact as narrow, moderate, or broad, and state why.
    • Expand the patch or tests when impact analysis shows that a local fix leaves adjacent behavior inconsistent.
    • Record any areas that could not be verified and why.
  9. Verify.
    • Run checks that cover the actual blast radius, not just the files edited.
    • Include a regression test for bugs whenever practical.
    • For contract, schema, or shared-module changes, verify representative consumers and backwards compatibility.
    • For UI changes, run the app when feasible and verify the changed workflow in a browser.
    • If a check cannot run, capture the blocker and any partial evidence.
  10. Prepare the pull request.
  • Review the diff and ensure only intended files changed.
  • Commit with a focused message if the user asked for commit/PR or if pushing a PR is part of the request.
  • Push the branch and open a PR against the appropriate base branch.
  • Link the source issue using the tracker's closing syntax only when the PR fully resolves it; otherwise use a non-closing reference.
  • Default to a draft PR when meaningful uncertainty remains, checks are blocked, or the user did not specify ready-for-review.
  1. Report the result.
  • Provide the issue reference, branch, PR URL, summary of changes, blast-radius assessment, and verification commands.
  • Call out assumptions, blocked checks, and any follow-up work that is real rather than speculative.

Implementation Gate

Use this gate to keep autonomy for small fixes while avoiding surprise PRs for larger or riskier work.

After reading the issue, checking linked PRs, and tracing the code path, pause and report a short implementation checkpoint before editing when any of these are true:

  • The expected fix touches more than 2 files.
  • The fix crosses process, package, API, persistence, auth, provider, workflow, or release boundaries.
  • The issue has safety, security, data-loss, maintainer-review, privileged-area, or similar high-risk labels/comments.
  • There is an existing linked, closing, or referenced PR, even if it looks incomplete.
  • The expected fix is not a small localized bug fix.
  • The current branch is not based on the target PR base branch.

The checkpoint should include:

  • Issue summary.
  • Linked PR status: none, correct, partial, stale, broken, or unrelated.
  • Suspected root cause.
  • Proposed implementation slice.
  • Blast radius estimate.
  • Verification plan.
  • Explicit assumption if proceeding without a question.

For a small local fix, post the checkpoint and continue. For a moderate or broad change, ask one focused question unless code and issue evidence make the conservative path clear.

Issue Research Checklist

Use this checklist while exploring, but do not dump it into the final answer unless useful:

  • What user-visible behavior does the issue require?
  • What acceptance criteria or comments constrain the solution?
  • Does the issue already have a linked PR, and does that PR actually satisfy the acceptance criteria?
  • What existing code owns the workflow?
  • What tests currently cover it?
  • What domain language does the project use for this concept?
  • What hidden coupling or migration risk exists?
  • What is the blast radius of the proposed or existing PR changes?
  • What is the right-sized demoable fix?
  • Does the Implementation Gate require a pause, and if so what is the one decision needed?

Question Format

When a human decision is required, ask:

Question:

Recommended answer:

Why I think so:

Ask only one question, then wait. If implementation can proceed safely without waiting, state the assumption and continue.

PR Body

Use the repository's PR template when present. Otherwise use:

## Summary

- Change 1
- Change 2

Closes #ISSUE_NUMBER

## Verification

- [ ] Command or manual check
- [ ] Command or manual check

## Impact analysis

- Blast radius:
- Affected workflows:
- Risks or compatibility notes:

## Notes

- Assumption, blocked check, or follow-up if needed

Use Refs #ISSUE_NUMBER instead of Closes when the PR does not fully satisfy the issue.

Guardrails

  • Do not implement before reading the issue and researching the relevant code.
  • Do not skip the Implementation Gate when its triggers apply.
  • Do not ask broad planning questions before doing codebase research.
  • Do not exceed the issue's scope without explicit approval.
  • Do not include unrelated user changes in commits or PRs.
  • Do not open a PR from a branch that includes unrelated commits against the target base.
  • Do not push directly to the default branch unless explicitly requested.
  • Do not mark a PR ready when verification is missing or materially blocked.
  • Do not invent issue labels, milestones, owners, product requirements, or external commitments.

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.