focused-fix
暂无简介
- License 许可
- MIT
- 所属仓库
- agisota/old-one
- 最近更新
- 2026-07-04
- Stars
- ★ 3
- Forks
- 1
03 SKILL.md 正文
/focused-fix
Systematically repair an entire feature or module using the 5-phase protocol. Target: $ARGUMENTS (a feature path or module name).
If $ARGUMENTS is empty, ask the user which feature/module to fix.
Protocol — Execute ALL 5 Phases IN ORDER
Phase 1: SCOPE — Map the Feature Boundary
- Identify the primary folder/files for the target feature
- Read EVERY file in that folder — understand its purpose
- Create a feature manifest:
FEATURE SCOPE:
Primary path: <path>
Entry points: [files imported by other parts of the app]
Internal files: [files only used within this feature]
Total files: N
Phase 2: TRACE — Map All Dependencies
INBOUND (what this feature imports):
- For every import statement, trace to source, verify it exists and is exported
- Check env vars, config files, DB models, API endpoints, third-party packages
OUTBOUND (what imports this feature):
- Search entire codebase for imports from this feature
- Verify consumers use correct API/interface
Output a dependency map with inbound, outbound, env vars, and config files.
Phase 3: DIAGNOSE — Find Every Issue
Run ALL diagnostic checks:
- Code: imports resolve, no circular deps, types consistent, error handling, TODO/FIXME
- Runtime: env vars set, migrations current, API shapes correct
- Tests: run ALL related tests, record failures, check coverage
- Logs: check git log for recent changes, search error logs
- Config: validate config files, check dev/prod mismatches
For each issue found:
- Confirm root cause with evidence before adding to fix list
- Assign risk: HIGH (public API, auth, >3 callers) / MED (internal with tests) / LOW (leaf module)
Output a diagnosis report with issues grouped by severity.
Phase 4: FIX — Repair Systematically
Fix in this EXACT order:
- Dependencies — broken imports, missing packages
- Types — type mismatches at boundaries
- Logic — business logic bugs
- Tests — fix or create tests for each fix
- Integration — verify end-to-end with consumers
Rules:
- Fix ONE issue at a time, run related test after each
- If a fix breaks something else → go back to DIAGNOSE
- Fix HIGH before MED before LOW
- 3-Strike Rule: If 3+ fixes create NEW issues, STOP. Tell the user the architecture may need rethinking, not patching.
Phase 5: VERIFY — Confirm Everything Works
- Run ALL tests in the feature folder
- Run ALL tests in files that import from this feature
- Run full test suite if available
- Summarize all changes made
Output a completion report with files changed, fixes applied, test results, and consumers verified.
Iron Law
NO FIXES WITHOUT COMPLETING SCOPE → TRACE → DIAGNOSE FIRST
If you haven't finished Phase 3, you cannot propose fixes.
Related Skills
engineering/focused-fix— Full SKILL.md with detailed checklists, output templates, and anti-patternssuperpowers:systematic-debugging— For individual complex bugs found during Phase 3
04 同仓库更多 Skills
zoom-out
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
zeroize-audit
Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C/C++/Rust code handling secrets, keys, passwords, or other sensitive data.
yeet
Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).
yara-rule-authoring
Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.
x-twitter-growth
X/Twitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X/Twitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.
x-api
X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.