agentleFS
encoreshaoencoreshao/encore-skills/skills/analyze-issue/SKILL.md

analyze-issue

Skill2 starsChanged 16 days agoMITView on GitHub

Read a GitLab issue, identify the root cause (not just symptoms), surface real risks, and produce an implementation approach before writing any code

4 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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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:

    Run this before writing a single line of code.

    line 14
  2. Distinctive:

    Don't just read the description — interrogate it:

    line 36
  3. Distinctive:

    If the issue describes a symptom but not a cause, flag it before proceeding.

    line 41
  4. Distinctive:

    Check the actual codebase — don't guess:

    line 53

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

Analyze Issue

Run this before writing a single line of code. The goal is to understand the real problem, not just execute the ticket literally.

Input

  • Issue number (#42) with project alias or path, GitLab URL, or paste the issue text
# Preferred — supports multiple GitLab servers, merges into the local cache
GITLAB="$HOME/.claude/skills/gitlab-config/scripts/gitlab_api.py"
python $GITLAB sync-issue <project> <number>
# e.g. python $GITLAB sync-issue webapp 42
# e.g. python $GITLAB --instance=personal sync-issue blog 7

# Fallback with glab (single instance)
glab issue view <number>

See gitlab-config skill for first-time setup and the local-memory cache it maintains — a prior analysis you saved with annotate-issue is worth checking before you redo the work.

Steps

1. Understand the actual problem

Don't just read the description — interrogate it:

  • What is the root cause? (not just the symptom reported)
  • Is the issue asking for the right solution, or just the first solution someone thought of?
  • What would a user notice if this were fixed? How would they know?

If the issue describes a symptom but not a cause, flag it before proceeding.

2. Extract real requirements

List the explicit requirements AND the implicit ones. Implicit requirements matter:

  • What existing behavior must NOT break?
  • What are the performance expectations?
  • What are the security boundaries?
  • Does this touch any API contract, schema, or shared interface?

3. Identify genuine risks

Check the actual codebase — don't guess:

grep -r "relevant_keyword" --include="*.rb" .
  • What code does this touch, and what else depends on that code?
  • Are there race conditions, caching issues, or N+1 risks?
  • Does changing this break any existing tests or contracts?

4. Surface blockers

List questions that must be answered before coding. Don't start if these are open:

  • Missing requirements
  • Ambiguous acceptance criteria
  • Unknown dependencies or owners

5. Propose the simplest approach

What is the smallest, most targeted change that fixes the root cause?

  • 2–3 sentences on approach
  • Files likely affected (verify in the codebase, don't guess)
  • Complexity: small / medium / large — and why

6. Output

## Analysis: #<number> — <title>

### Root cause
<What is actually causing the problem — not just the symptom>

### Requirements
- [ ] Explicit: ...
- [ ] Implicit: ...

### Risks
- <Risk> → <Mitigation>

### Blockers (must resolve before coding)
- [ ] ...

### Approach
<2–3 sentences — simplest solution that addresses root cause>

### Files likely affected
- `path/to/file` — why

### Ready to code? Yes / No

Save it so re-analysis doesn't start from scratch next time:

CACHE="$HOME/.claude/skills/gitlab-config/scripts/gitlab_cache.py"
python $CACHE annotate-issue <instance> <project_id> <number> analysis "<root cause + approach, 2-3 sentences>"

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.