agentleFS
justincordovajustincordova/agents/skills/analyze-issue/SKILL.md

analyze-issue

Skill1 starsChanged 4 months agoMITView on GitHub

Use when the user mentions analyzing a GitHub issue, fixing an issue, or references an issue number. Fetches issue details, analyzes requirements, and creates an implementation specification.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 9

    Distinctive

    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:

    If no repo specified, detect from current git remote

    line 25
  2. Distinctive:

    If issue not found, ask user to clarify

    line 27
  3. Distinctive:

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

    line 31
  4. Distinctive:

    Check for linked PRs, related issues, or cross-references

    line 33
  5. Distinctive:

    Look at the codebase for affected files (search for relevant terms)

    line 34
  6. Very specific:

    Write a structured spec to docs/issues/<number>-<slug>.md:

    line 47
  7. Distinctive:

    Ask user what's next:

    line 74
  8. Distinctive:

    Always fetch the full issue including comments — context is in the discussion

    line 81
  9. Very specific:

    Write specs to docs/issues/ — keep them discoverable

    line 83
  10. Distinctive:

    Check the codebase before proposing an approach — avoid assumptions

    line 84
  11. Distinctive:

    Ask before implementing — the spec is a checkpoint, not a starting gun

    line 85

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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

Analyze Issue

Overview

Fetch a GitHub issue, understand its full context, and produce a structured implementation specification ready for planning.

Announce at start: "Using analyze-issue skill to break down this issue."

When This Skill Activates

  • User says "analyze issue" or "look at issue" or "fix issue #N"
  • User references a GitHub issue number
  • User says something like "check the issue" or "what's issue 42 about"

The Process

Step 1: Fetch Issue

  1. Extract issue number and repo from user input
  2. If no repo specified, detect from current git remote
  3. Run gh issue view <number> --repo <owner/repo> --json title,body,labels,assignees,milestone,comments
  4. If issue not found, ask user to clarify

Step 2: Understand Context

  1. Read the issue title, body, labels, and all comments
  2. Identify: what's broken / what's requested / what's the expected behavior
  3. Check for linked PRs, related issues, or cross-references
  4. Look at the codebase for affected files (search for relevant terms)

Step 3: Analyze Requirements

Break the issue down into:

  • Problem: What's wrong or missing (in your own words)
  • Scope: Which files/modules/areas are affected
  • Constraints: Any requirements from labels, comments, or project conventions
  • Edge cases: What could go wrong or be overlooked
  • Dependencies: Does this depend on other work?

Step 4: Produce Implementation Spec

Write a structured spec to docs/issues/<number>-<slug>.md:

# Issue #<number>: <title>

## Problem
<1-3 sentences>

## Requirements
- <numbered list of what must be true when done>

## Affected Areas
- `<file_or_module>` — <what needs to change>

## Implementation Approach
<2-5 sentences describing the approach>

## Edge Cases
- <what to watch out for>

## Acceptance Criteria
- [ ] <testable outcome>
- [ ] <testable outcome>

Step 5: Transition

Ask user what's next:

  1. Write a plan (writing-plans skill) — create step-by-step implementation instructions
  2. Start building — for straightforward issues
  3. Discuss — if something is unclear or needs design decisions

Key Principles

  • Always fetch the full issue including comments — context is in the discussion
  • Detect repo from git remote when possible — don't make user type it
  • Write specs to docs/issues/ — keep them discoverable
  • Check the codebase before proposing an approach — avoid assumptions
  • Ask before implementing — the spec is a checkpoint, not a starting gun

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.