agentleFS
markmhendricksonmarkmhendrickson/neotoma/.claude/skills/fix-feature-bug/SKILL.md

fix-feature-bug

Skill38 starsChanged 2 months agoMITView on GitHub

Fix Feature Bug

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    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. Very specific:

    Read foundation-config.yaml for bug fix settings

    line 33
  2. Distinctive:

    Check if error classification is configured

    line 34
  3. Distinctive:

    Use configured error classification system

    line 46
  4. Distinctive:

    If Class 2 (Spec bug): Update spec/manifest first, then align code/tests

    line 51
  5. Distinctive:

    If Class 3 (Architectural bug): Update subsystem/architecture docs first, then rebuild

    line 52
  6. Distinctive:

    Run configured test commands

    line 58
  7. Distinctive:

    Verify fix doesn't break existing functionality

    line 59
  8. Very specific:

    If development.bug_fix.error_classification.enabled: true in foundation-config:

    line 69
  9. Distinctive:

    Action: Update spec/manifest first, then align code/tests

    line 74
  10. Distinctive:

    Action: Update architecture docs first, then rebuild

    line 76

≈ “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
<!-- Source: foundation/.cursor/skills/fix-feature-bug/SKILL.md -->

name: fix-feature-bug description: Fix bugs using structured workflow with error classification and regression tests. triggers:

  • bug
  • error
  • fix
  • broken
  • not working
  • failing
  • fix-feature-bug
  • /fix-feature-bug

Fix Feature Bug

Fix a bug in a feature or module.

Configuration is read from foundation-config.yaml.

This workflow can also be triggered automatically via .claude/rules/bug_fix_detection.md (or foundation/agent_instructions/cursor_rules/bug_fix_detection.md) when you mention bug/error-related patterns in natural language (e.g., "bug", "error", "fix", "broken"). Both paths execute the same workflow.

Workflow

  1. Load configuration:
    • Read foundation-config.yaml for bug fix settings
    • Check if error classification is configured
    • Determine feature/module directory structure
  2. Identify feature/module from error, path, or context.
  3. Load relevant documents:
    • Repository navigation guide (if configured)
    • Feature/module spec and manifest (if available)
    • Error classification documentation (if configured)
    • Relevant subsystem/module documentation (if configured)
  4. Classify bug (if error classification configured):
    • Use configured error classification system
    • Determine correction approach based on class
  5. Apply correction rules:
    • If Class 1 (Implementation bug): Patch code only
    • If Class 2 (Spec bug): Update spec/manifest first, then align code/tests
    • If Class 3 (Architectural bug): Update subsystem/architecture docs first, then rebuild
    • If no classification: Fix bug and update relevant documentation
  6. Always add a regression test.
  7. Run tests:
    • Run configured test commands
    • Verify fix doesn't break existing functionality
  8. Output:
    • Error class (if classification configured)
    • Reason for classification
    • Corrected files
    • Tests added/updated

Error Classification (Configurable)

If development.bug_fix.error_classification.enabled: true in foundation-config:

  • Class 1: Implementation bug - spec is correct, code doesn't match spec
    • Action: Patch code only
  • Class 2: Spec bug - spec is incomplete or wrong, code matches spec but spec is wrong
    • Action: Update spec/manifest first, then align code/tests
  • Class 3: Architectural bug - subsystem/architecture docs are wrong or incomplete
    • Action: Update architecture docs first, then rebuild

Configuration

Bug fix workflow uses settings from foundation-config.yaml:

development:
  bug_fix:
    enabled: true
    error_classification:
      enabled: false  # Enable if you have error classification system
      classes:
        - name: "Class 1"
          description: "Implementation bug"
          correction: "Patch code only"
        - name: "Class 2"
          description: "Spec bug"
          correction: "Update spec first, then code"
        - name: "Class 3"
          description: "Architectural bug"
          correction: "Update architecture docs first"
    require_regression_test: true
    test_commands:  # Optional, repo-specific test commands
      - "npm test"
      - "npm run test:integration"

Inputs

  • feature_id or module_name (optional): The feature/module identifier to fix

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.