Skip to content
Back to skills

X Fix

ASecurity

Resolve selected review findings or open audit entries, one root cause per validated local commit. Use only when the user explicitly invokes $x-fix.

  • 70 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 3, 2026
devopsgitapidocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add TTstack/TTstack --skill x-fix --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of X Fix?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for X Fix
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ttstack-x-fix/badge)](https://www.skillsdirectory.com/skills/ttstack-x-fix)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: x-fix
description: Resolve selected review findings or open audit entries, one root cause per validated local commit. Use only when the user explicitly invokes $x-fix.
---

# Repair selected findings

Before preflight, read `.agents/skill-rules/common.md` and then
`.agents/skill-rules/x-fix.md` from the Git root if present.
Use the skill-specific rules for repository details such as checks or release
criteria. Apply them within the selected scope and the user's authorization.
Continue with the available rules when either file is absent.

Resolve all paths from the Git top level; Markdown links are relative to this
file. Read the invocation arguments from the user prompt.

Recheck each selected finding, repair its root cause and commit the validated fix
locally. Follow the repository's policy for any required version update or local tag.

Registry path: `docs/audit.md` unless the project instructions name another.

## Input

With an explicit review finding, use the report as input and match any existing
registry entry. Otherwise select the open audit entries, optionally narrowed
by finding ID or path. An absent registry leaves explicitly supplied findings
actionable. Reject unknown options and preserve the selected scope.

## Preflight

Run `git status --short --branch` and record the staged, unstaged, and
untracked baseline plus the starting `HEAD`. Freeze each unit's paths before
editing and preserve unrelated changes. Follow any existing registry rules.
With an empty selection, finish any version step owed under repository policy.

## Protocol

1. **Triage.** Work entries in severity order. For each: read the current
   implementation, its callers, tests, and the applicable contracts; reproduce
   the defect from current code; dedupe entries that share a root cause;
   remove entries the current code disproves or already fixed, stating the
   evidence.
2. **Verify the trigger.** For a behavior fix, run a focused regression against
   the unfixed code first. For a documentation finding, check the claim, link
   or example against its source. If a race or crash window cannot be reproduced
   deterministically, say "traced, not reproduced" in the commit message
   instead of claiming a reproduction.
3. **Fix the root cause.** Keep the fix minimal. Check error chains, cleanup
   paths, feature gates, and compatibility (public API, persisted or wire
   format). Never silently accept a breaking change: leave the entry `Open`
   and report it for the user's decision.
4. **One finding → one commit.** The unit is the code fix, its regression
   test, the affected documentation, and the disposition of any matching registry entry.
   Verify the repair with the focused regression and applicable checks before
   staging the exact paths, inspecting the staged diff, and committing. Registry-only
   dispositions (Won't Fix, pruning) form a separate documentation commit when
   no code change accompanies them.
5. **Dispositions.** `Won't Fix` requires a confirmed real defect plus a
   concrete reason the safe fix is disproportionate; missing evidence, failed
   validation, or ownership overlap is a blocker that leaves the entry `Open`,
   not a disposition. Continue with independent safe units.
6. **Self-review.** Re-review `starting_HEAD..HEAD` and the uncommitted
   in-scope paths with the same evidence standard. A newly confirmed defect
   enters this loop when in scope. Track outstanding findings in the existing
   registry or, if none exists, in the report.
7. **Final gate.** Run the repository checks for the affected surface once
   on the final state, then complete the owed version or release
   step exactly as the repository's policy requires. Reuse checks that already
   passed on identical state. If a gate is blocked, keep the validated commits
   and report the remaining work and any owed version step.

## Report

Dispositions, fixes, disproven entries removed, `Won't Fix` justifications,
validation run, compatibility impact, commit hashes and subjects, version
outcome, and the baseline left untouched.

Files in this skill

  • SKILL.md4 KB
  • agents/openai.yaml265 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.