agentleFS
alvaroofernaandezalvaroofernaandez/dotfiles/skills/issue-creation-pro/SKILL.md

issue-creation-pro

Skill5 starsChanged 2 days agoMITView on GitHub

Creates extraordinary quality GitHub issues with rich Mermaid diagrams, contextual labels, emojis, deep technical analysis, and comprehensive documentation. Trigger: When user asks to create an issue, report a bug, file a feature request, or open a ticket.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 9 are distinctive, and 3 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.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every diagram MUST use custom theming via %%{init}%% for visual richness:

    line 67
  2. Distinctive:

    Use DIFFERENT color palettes for each diagram — never repeat the same theme:

    line 80
  3. Distinctive:

    Always style subgraphs with fill colors, borders, and stroke width:

    line 93
  4. Distinctive:

    Check engram memory for repo URLs

    line 300
  5. Distinctive:

    Check git remote if in a related project

    line 301
  6. Very specific:

    Check GitHub org repos: gh repo list ORG --limit 20

    line 302
  7. Distinctive:

    ASK the user if truly unknown

    line 303
  8. Distinctive:

    ALWAYS use HEREDOC for the body to preserve Mermaid formatting:

    line 315
  9. Distinctive:

    Before submitting any issue, verify:

    line 339
  10. Very specific:

    Every issue MUST end with a collapsible <details> block containing:

    line 371
  11. Distinctive:

    No rompas comportamiento existente — ejecuta los tests al final.

    line 423
  12. Distinctive:

    No hagas git commit — solo implementa y reporta qué cambiaste.

    line 424

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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: issue-creation-pro

When to Use

Activate this skill whenever the user mentions:

  • Creating an issue / opening a ticket / reporting a bug / requesting a feature
  • Filing an issue on any GitHub repository
  • Any variation of "haz una issue", "abre un ticket", "reporta esto"

Philosophy: Issues Are Documentation

An issue is NOT a todo item. It's a living technical document that:

  • Tells the FULL story to someone who has zero context
  • Explains WHY this matters, not just WHAT is broken
  • Provides a clear mental model via diagrams
  • Gives actionable next steps for debugging/implementation

Non-Negotiable Rules

  1. ALWAYS search for duplicates first — gh issue list --repo OWNER/REPO --state all --search "keywords"
  2. ALWAYS include labels with proper colors (ensure they exist with --force)
  3. ALWAYS include emojis in section headers and throughout the body
  4. ALWAYS include multiple Mermaid diagrams — minimum 3, aim for 5+
  5. ALWAYS use colorful, themed Mermaid configs with %%{init}%% blocks
  6. ALWAYS explain the WHY — not just what's broken, but why it matters and what impact it has
  7. ALWAYS include a severity/priority assessment at the end
  8. ALWAYS write the issue body via HEREDOC to preserve formatting
  9. NEVER create a bare/minimal issue — every issue should be a comprehensive technical document
  10. NEVER guess root cause without evidence — present hypotheses, not conclusions

Mermaid Diagram Requirements

Every issue MUST include diagrams from these categories:

TypeWhen to UseMermaid Type
Flow AnalysisAlways for bugssequenceDiagram or flowchart
State MachineWhen states/transitions involvedstateDiagram-v2
Root Cause TreeAlways for bugsflowchart TB with subgraphs
TimelineWhen timing mattersgantt
Data FlowWhen data transformation involvedflowchart LR with subgraphs
Decision TreeFor debugging guidanceflowchart TD
ArchitectureFor feature requestsflowchart or C4Context
Component InteractionFor integration issuessequenceDiagram

Mermaid Styling Rules

Every diagram MUST use custom theming via %%{init}%% for visual richness:

%%{init: {'theme': 'base', 'themeVariables': {
  'primaryColor': '#COLOR',
  'primaryTextColor': '#COLOR',
  'primaryBorderColor': '#COLOR',
  'lineColor': '#COLOR',
  'secondaryColor': '#COLOR',
  'tertiaryColor': '#COLOR'
}}}%%

Use DIFFERENT color palettes for each diagram — never repeat the same theme:

Palette NamePrimarySecondaryLineUse For
Ocean#0ea5e9#f43f5e#a855f7Data flow, architecture
Sunset#f59e0b#8b5cf6#ec4899Root cause analysis
Forest#10b981#3b82f6#f97316Happy path flows
Royal#7c3aed#06b6d4#f59e0bDecision trees
Indigo#6366f1#14b8a6#f43f5eTimelines, sequences
Cherry#e11d48#8b5cf6#22c55eError flows, alerts

Subgraph Styling

Always style subgraphs with fill colors, borders, and stroke width:

style SUBGRAPH_NAME fill:#color,stroke:#color,stroke-width:2px

Diagram Size

Diagrams should be LARGE and detailed — include:

  • Descriptive node labels with line breaks (<br/>)
  • Emoji in node labels where appropriate
  • Notes and annotations
  • Color-coded paths (happy path vs error path)

Issue Structure

Bug Reports

## 🚨 Descripción

[2-3 sentences explaining what's happening and why it's wrong]

---

## 🔁 Reproducción

1. Step by step
2. With exact commands/actions
3. Including environment details

---

## 📦 Evidencia

[Response payloads, logs, error messages — in code blocks]

---

## 🔍 Análisis de campos / datos

[Table comparing actual vs expected values — highlight anomalies]

| Campo | Valor Actual | Valor Esperado | ⚠️ Problema |
|-------|-------------|----------------|-------------|

---

## 🗺️ Flujo esperado vs flujo real

[sequenceDiagram showing BOTH happy path and actual bug path in the same diagram]

---

## 📊 State Machine / Estados

[stateDiagram-v2 showing state transitions with the bug highlighted]

---

## 🧠 Hipótesis de causa raíz

[flowchart TB with subgraphs — one per hypothesis, each with reasoning chain]

---

## ⏱️ Timeline

[gantt chart showing timing of events if relevant]

---

## 🔄 Flujo de datos

[flowchart LR showing data transformations with subgraphs per layer]

---

## 🧭 Árbol de decisión para debugging

[flowchart TD with decision nodes and fix recommendations]

---

## 📋 Contexto

[Table with all relevant metadata — IDs, environment, versions, timestamps]

---

## 🎯 Dato clave

[One paragraph highlighting THE most important observation — the smoking gun]

---

## 🔴 Severidad

**[Alta/Media/Baja]** — [Why this severity, what's the business impact]

Feature Requests

## 💡 Descripción

[What feature is needed and WHY it matters]

---

## 🎯 Problema que resuelve

[The pain point — with concrete examples]

---

## 🏗️ Propuesta de implementación

[High-level approach with architecture diagrams]

---

## 🗺️ Flujo de usuario propuesto

[sequenceDiagram showing the user interaction flow]

---

## 📊 Modelo de datos

[Entity relationship or data flow diagram]

---

## 🔄 Integración con sistema existente

[flowchart showing how this fits into the current architecture]

---

## ✅ Criterios de aceptación

- [ ] Criterion 1
- [ ] Criterion 2

---

## 🧭 Alternativas consideradas

[Table with alternatives, pros, cons]

---

## 🔴 Prioridad

**[Alta/Media/Baja]** — [Why this priority]

Label Policy

Always ensure labels exist before assigning:

gh label create "LABEL" --repo "OWNER/REPO" --color "COLOR" --description "DESC" --force

Label Matrix

ContextLabelColorEmoji
Bugbugd73a4a🐛
Securitysecurityb60205🔒
Enhancementenhancementa2eeef✨
Featurefeature1d76db🚀
Backendbackend0e8a16⚙️
Frontendfrontend5319e7🖥️
Performanceperformancefbca04⚡
DevExdeveloper-experiencec2e0c6🛠️
Priority Highpriority:highb60205🔴
Priority Mediumpriority:mediumfbca04🟡
Priority Lowpriority:low0e8a16🟢
Needs Reviewstatus:needs-reviewededed👀
Documentationdocumentation0075ca📚
Infrastructureinfrastructured4c5f9🏗️

Minimum labels per issue type:

  • Bug: bug + domain (backend/frontend) + priority
  • Feature: feature + domain + priority
  • Enhancement: enhancement + domain

Complete Workflow

1. Search duplicates

gh issue list --repo "OWNER/REPO" --state all --search "keyword1 keyword2"

2. Determine repo

  • Check engram memory for repo URLs
  • Check git remote if in a related project
  • Check GitHub org repos: gh repo list ORG --limit 20
  • ASK the user if truly unknown

3. Ensure labels exist

gh label create "bug" --repo "OWNER/REPO" --color "d73a4a" --description "Something isn't working" --force
gh label create "backend" --repo "OWNER/REPO" --color "0e8a16" --description "Server/API scope" --force
gh label create "priority:high" --repo "OWNER/REPO" --color "b60205" --description "Urgent" --force

4. Create the issue

ALWAYS use HEREDOC for the body to preserve Mermaid formatting:

gh issue create --repo "OWNER/REPO" \
  --title "fix(scope): descriptive title" \
  --label "bug" \
  --label "backend" \
  --label "priority:high" \
  --body "$(cat <<'ISSUE_EOF'
[FULL ISSUE BODY HERE]
ISSUE_EOF
)"

5. Verify

gh issue view <number> --repo "OWNER/REPO" --json title,labels,url

Quality Checklist

Before submitting any issue, verify:

  • Title uses conventional format: fix(scope): / feat(scope): / chore(scope):
  • At least 3 Mermaid diagrams with different color themes
  • All diagrams use %%{init}%% custom theming
  • Tables with field analysis (actual vs expected)
  • Emojis in all section headers
  • Labels created with correct colors
  • Severity/priority assessment with business impact reasoning
  • "Dato clave" section highlighting the smoking gun
  • No root cause claimed without evidence — only hypotheses
  • Issue is self-contained — reader needs ZERO prior context

Anti-Patterns

  • ❌ Bare issues with just a title and one sentence
  • ❌ Mermaid diagrams without custom theming (default gray is unacceptable)
  • ❌ All diagrams using the same color palette
  • ❌ Missing labels or labels without proper colors
  • ❌ Stating root cause as fact without evidence
  • ❌ Missing severity assessment
  • ❌ No diagrams at all
  • ❌ Using --body inline for complex issues (use HEREDOC)
  • ❌ Forgetting to search for duplicates first
  • ❌ Skipping the Agent Instructions section at the end

Agent Instructions Section (MANDATORY — always append at the end)

Every issue MUST end with a collapsible <details> block containing:

  1. A machine-readable acceptance-criteria seed extracted from the issue
  2. A ready-to-run prompt for Claude Code / OpenCode to implement it directly

Template to append (adapt content to the actual issue)

---

<details>
<summary>🤖 Agent Instructions — Claude Code / OpenCode</summary>

## 📋 Acceptance Criteria Seed

> Pre-extracted acceptance criteria from this issue.

### Acceptance Criteria

| ID | Criterio | Verificable con |
|----|----------|-----------------|
| AC-1 | [Extraído del comportamiento esperado #1] | [Test / inspección visual / curl] |
| AC-2 | [Extraído del comportamiento esperado #2] | [Test / inspección visual / curl] |
| AC-N | [...] | [...] |

### Escenarios de regresión

- El comportamiento actual que ya funciona MUST NOT break: [listar]
- Tests existentes que deben seguir en verde: [listar archivos si se conocen]

### Scope

**IN**: [qué entra exactamente en este issue]
**OUT**: [qué NO entra — refactors, otros módulos, mejoras futuras]

---

## 🧠 Prompt para implementación directa

Usa este prompt como punto de partida:

```
Implementa el fix del issue #<N>: <título del issue>

Contexto clave:
- Archivos afectados: [lista de archivos con rutas]
- Root cause: [causa raíz identificada en el issue]
- Fix propuesto: [descripción del fix]

Reglas obligatorias:
1. Lee cada archivo COMPLETO antes de editar.
2. Sigue los patrones existentes del proyecto.
3. Añade o actualiza tests para el path afectado.
4. No rompas comportamiento existente — ejecuta los tests al final.
5. No hagas git commit — solo implementa y reporta qué cambiaste.
```

---

## 🔗 Referencias útiles

- Issue: `gh issue view <N> --repo OWNER/REPO`
- Pre-PR gate: `tools/pre_pr_runtime_gate.sh`

</details>

Rules for filling the template

  1. AC table: extract one row per acceptance criterion from «Comportamiento esperado» or «Criterios de aceptación». Make each AC independently verifiable.
  2. Regresiones: list the existing behaviour that must NOT break — pull from «Comportamiento actual» (the parts that work) and known related tests.
  3. Scope IN/OUT: derive directly from the issue's explicit fix proposal. If the issue says "only change X", OUT must say "no refactor of Y".
  4. Direct implementation prompt: summarise root cause + fix in 2-3 lines. Pull from «💡 Fix propuesto» and «🎯 Dato clave» sections.
  5. **Never invent file paths or root causes — use only what the issue body already states.
  6. The <details> block must be collapsed by default — it's for agents, not humans skimming the issue.

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.