foundation: Skill for Cursor

.cursor/skills/fix-feature-bug/SKILL.md

fix-feature-bug is a skill for Cursor from markmhendrickson/foundation. It costs 17 tokens per session (750 once invoked), scanned A, a copy of fix-feature-bug, MIT.

A structured workflow for fixing a bug in a feature or software module. It uses the project's configuration and documentation to classify the problem, make the appropriate correction, and add regression tests.

In plain words
What is it for?
Use it when a feature is broken or produces an error. It helps locate the relevant module, apply the project's correction rules, and test that the bug does not return.
Why use it?
It gives bug fixes a repeatable process and helps distinguish a code mistake from an incorrect specification or other project-level cause.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is markmhendrickson/foundation's own configuration. It tells Cursor how to work on foundation itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything foundation configures →

Reuse

Borrowing it

Nothing to install: this file belongs to markmhendrickson/foundation. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/markmhendrickson/foundation/main/.cursor/skills/fix-feature-bug/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/markmhendrickson/foundation

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix-feature-bug

README.md
[![agentmods](https://agentmods.dev/badge/skills/markmhendrickson/foundation/fix-feature-bug/github.svg)](https://agentmods.dev/skills/markmhendrickson/foundation/fix-feature-bug)
Your own site
<a href="https://agentmods.dev/skills/markmhendrickson/foundation/fix-feature-bug"><img src="https://agentmods.dev/badge/skills/markmhendrickson/foundation/fix-feature-bug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fix-feature-bug

Your own site · 80×15
<a href="https://agentmods.dev/skills/markmhendrickson/foundation/fix-feature-bug"><img src="https://agentmods.dev/badge/skills/markmhendrickson/foundation/fix-feature-bug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 750 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.00750
Opus 5.5 $0.00007 $0.00300
Sonnet 5.5 $0.00003 $0.00150
Haiku 4.5 $0.00002 $0.00075

Measured 1mo ago against content hash 76aea90259f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fix-feature-bug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

92% identical to fix-feature-bug — 9 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursor/skills/fix-feature-bug/SKILL.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 .cursor/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

Read the full file on GitHub · 101 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 101 lines · 17 tokens per session scan A 76aea90259f6

Subscribe to this mod's changes

fix-feature-bug is a skill published in the GitHub repository markmhendrickson/foundation (2 stars, last pushed 2mo ago), licensed MIT. It adds 17 tokens to every session and 750 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to fix-feature-bug, differing in 9 lines, and is treated as a copy.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

deck-retro

Run a fully local agent-deck retrospective over the user's own transcripts, Recall index and logs. Use when a user wants to find recurring failures or take their own finding from investigation through synthetic reproduction, a user-filed issue, a test-first fix and contributor PR handoff. Also use for weekly usage…

asheshgoplani/agent-deck · 86 tokens

cwv-optimizer

Diagnose and fix Core Web Vitals issues on AEM Edge Delivery Services pages. Goes deeper than generic CWV advice by understanding EDS-specific performance patterns including the 100KB LCP budget, E-L-D loading phases, block rendering behavior, and third-party script impact. Produces specific fixes for LCP, CLS, and…

adobe/skills · 112 tokens

incident-response-incident-response

Coordinate production incident triage, mitigation, investigation, recovery, and follow-up. Use when responding to outages or other incidents that require structured operational coordination.

rmyndharis/antigravity-skills · 36 tokens