Fix reporter

From majesticlabs-dev/majestic-marketplace · View interactive version

Fix reporter is an AI agent skill from the GitHub repository majesticlabs-dev/majestic-marketplace. Capture solved problems as categorized documentation with YAML frontmatter for fast lookup

How to use this skill

Skill file

fix-reporter Skill

Purpose: Document solved problems to build searchable institutional knowledge.

Organization: Single-file per problem in .agents/lessons/[category]/[filename].md with YAML frontmatter. Files with workflow_phase fields are discoverable by lessons-discoverer agent.

7-Step Capture Process

Step 1: Detect Confirmation

Auto-invoke triggers:

Manual: /report-fix command

Document when:

Skip for: Simple typos, obvious syntax errors, trivial fixes

Step 2: Gather Context

Extract from conversation:

| Field | Source |

|-------|--------|

| Module name | Which project module had the problem |

| Symptom | Observable error/behavior (exact messages) |

| Investigation attempts | What didn't work and why |

| Root cause | Technical explanation |

| Solution | Code/config changes that fixed it |

| Prevention | How to avoid in future |

If critical context missing: Ask user and WAIT before Step 3.

Step 3: Check Existing Docs

# Search for similar issues
grep -r "exact error phrase" .agents/lessons/
ls .agents/lessons/[category]/

If similar found: Present options:

  1. Create new doc with cross-reference (recommended)
  2. Update existing doc (only if same root cause)
  3. Other

If not found: Proceed to Step 4.

Step 4: Generate Filename

Format: [sanitized-symptom]-[module]-[YYYYMMDD].md

Rules:

Examples:

Step 5: Validate YAML Schema

Validate against schema.yaml and references/yaml-schema.md.

Required fields:

BLOCK if validation fails - show errors, request corrections.

Step 6: Create Documentation

CATEGORY="[mapped from problem_type]"
mkdir -p .agents/lessons/${CATEGORY}

Populate assets/resolution-template.md with:

Optional discovery fields: Add workflow_phase, tech_stack, lesson_type, impact, keywords if lesson should auto-surface.

Step 7: Cross-Reference

If similar issues from Step 3:

If 3+ similar issues exist:

If severity=critical + non-obvious solution:

Output

After capture, invoke fix-decision-router skill with:

doc_path: .agents/lessons/[category]/[filename].md
category: [problem_type category]

Category Mapping

| problem_type | Directory |

|--------------|-----------|

| build_error | build-errors/ |

| test_failure | test-failures/ |

| runtime_error | runtime-errors/ |

| performance_issue | performance-issues/ |

| database_issue | database-issues/ |

| security_issue | security-issues/ |

| ui_bug | ui-bugs/ |

| integration_issue | integration-issues/ |

| logic_error | logic-errors/ |

| developer_experience | developer-experience/ |

| workflow_issue | workflow-issues/ |

| best_practice | best-practices/ |

| documentation_gap | documentation-gaps/ |

Success Criteria

Error Handling

| Error | Action |

|-------|--------|

| Missing context | Ask user, WAIT |

| YAML validation fail | Show errors, BLOCK until valid |

| Similar issue ambiguity | Present options, let user choose |

Quality Guidelines

Include:

Avoid:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.