Skip to content
Back to skills

X Overhaul

ASecurity

Run the documentation-reconcile, review, fix, and commit pipeline over one scope under a single ledger. Use only when the user explicitly invokes $x-overhaul; empty scope selects the latest commit and all selects the whole repository.

  • 70 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
devopsgogitdocumentation

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-overhaul --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of X Overhaul?

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

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

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-overhaul
description: Run the documentation-reconcile, review, fix, and commit pipeline over one scope under a single ledger. Use only when the user explicitly invokes $x-overhaul; empty scope selects the latest commit and all selects the whole repository.
---

# Scoped overhaul

Before preflight, read `.agents/skill-rules/common.md` and then
`.agents/skill-rules/x-overhaul.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.

One invocation: reconcile documentation → review the scope → fix confirmed
defects → validate → atomic local commits → the repository's owed version step.
Use one baseline and ledger throughout. For the documentation, review, repair
and commit phases, read the corresponding repository rules in
`.agents/skill-rules/` (`x-tidy-docs.md`, `x-review.md`, `x-fix.md` and
`x-commit.md`) if present. Apply their phase-specific checks under the
overhaul scope. The overhaul rules govern finalization and release once.

Local commits only. Creating a branch, pushing, opening a PR, publishing,
deploying, amending, or rewriting history requires the user's explicit request.

Registry path: `docs/audit.md` unless the project instructions name another.
When the repository defines no registry, keep findings in the report and do
not create one; registry-based steps below then apply to the report only.

## Input

At most one scope token, using the same table as `$x-review` (`N`, `<rev>`,
`<a>..<b>`, `staged`, `worktree`, `all`). Empty → the latest commit; only
`all` selects the whole repository. Reject multiple scopes, unknown
options, and unresolvable revisions; never guess.

`staged` and `worktree` select changes the user intends this invocation to
commit: freeze their paths and hunks before edits, and keep unstaged work
baseline for `staged`. For a diff scope, fix only still-present defects rooted
in that diff; callers and tests are evidence, not license for unrelated work.

## Phase 0 — Preflight and ledger

Record `git status --short --branch`, branch, starting `HEAD`, and the staged,
unstaged, and untracked baseline. Freeze the scope, the owned paths, and the
in-scope `Open` entries. Start one ledger covering scope, units, findings,
validation, versions, and tags; keep it outside the worktree when the run may
outlast one context window. Stop on an in-progress merge, rebase, or
cherry-pick, or on a detached `HEAD` the user did not choose.

## Phase 1 — Reconcile documentation

Apply `$x-tidy-docs` rules to the frozen scope first: for `all`, every tracked
guide, example, and skill metadata; for a diff, the documentation the diff
affects. Queue repairs in the ledger — they are fixed in Phase 3.

## Phase 2 — Review

Map in-scope files to subsystems, contracts, callers, and tests. For `all`,
keep a tracked-file coverage ledger with explicit gaps. Read full
implementations; refute each candidate against guards, caller obligations, and
existing tests; merge same-root findings; assess severity and compatibility.
Reconcile in the ledger, not on disk: queue still-present in-scope `Open`
entries, mark entries disproven or already fixed as pruned with evidence, and
never clear the registry to empty the list.

## Phase 3 — Fix and commit

Work the queue sequentially on one tree; only investigation and validation may
run in parallel. Order: (A) owned `staged`/`worktree` units, (B) confirmed
findings and in-scope `Open` entries CRITICAL → LOW, (C) registry-only
dispositions.

Validate each unit according to what changed. For a behavior fix, reproduce
the defect, repair its cause and run the focused regression. Include its tests,
documentation and any matching registry disposition with the fix. For a
documentation or registry-only unit, verify its claims, links, metadata or
disposition against the source. For an already-correct selected unit, run
the applicable checks. Check error
chains, cleanup, concurrency and global state, feature gates, and public or
persisted compatibility. Never commit a known-defective unit; a break the user
has not accepted leaves the unit uncommitted and `Open`. A blocked item never
stops independent items; sibling callers of a fixed operation are swept in the
same root-cause unit.

## Phase 4 — Final gate and release

Re-review `starting_HEAD..HEAD` for cross-commit interactions and missed
callers. Run the repository's formatting, lint, build, and test gates once on
the stable code state; `all` runs the full gate even when no fix was needed.
Reuse checks that already passed on identical state. Then complete the owed
version step exactly as the repository's policy requires — once, and only when
the gate passed and no in-scope `Open` entry or coverage gap remains. Never
make an empty commit. If blocked, keep the validated commits and report the
owed version step for the next run.

## Report

Scope and starting `HEAD`, coverage and gaps, commit hashes and subjects in
order, findings fixed / pruned / won't fix / still open with blockers, decisions
needed, validation run and isolation, compatibility impact, version outcome,
and the baseline left untouched.

Files in this skill

  • SKILL.md5.3 KB
  • agents/openai.yaml281 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.