# explain

Adopt this skill: https://proskills.md/skills/other/aantoniadis-skills-skills-explain

Page: https://proskills.md/skills/other/aantoniadis-skills-skills-explain
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/explain/SKILL.md
size: 13139
sha: e0fa9cb82fe6c4cc7b47cb081eec1f64c0e68c56
upstream: https://github.com/aantoniadis/skills/blob/3896725d6d073702606bf3412352a13806008950/skills/explain/SKILL.md

```text
---
name: explain
description: Explains how existing code behaves for one question or feature, tracing a concrete flow to pinned source lines, with a reusable note or HTML page when selected. Use when the user asks how something works, wants a flow traced, needs onboarding to an area of a codebase, or wants to understand code before changing it. Not for deciding what to change (plan-change) or finding defects in a diff (find-bugs).
argument-hint: "<what you need to understand, and the change you have in mind if any>"
---

For helper loading, follow [package references](../REFERENCES.md). Write in
the shared [technical English](../TECHNICAL-ENGLISH.md), with every claim
bounded by its [evidence](../EVIDENCE.md).

# Explain

Build a mental model grounded in inspected code: the reader can follow a concrete flow, predict a relevant alternative, and find the code supporting that prediction. A possible future change focuses the investigation; planning starts when the user requests it. Follow the workflow below.

## Orient before tracing

Establish the learning questions, scope, reader's familiarity, and one concrete scenario from context. For registration before considering 2FA, useful questions include when an account exists, when a session authenticates it, and what each state permits. Find code facts yourself.

Hold the kickoff round from [asking](../ASKING.md) first, with the questions
the request leaves open: the reader's familiarity; the deliverable, a chat
answer (recommend it for a narrow question), a note, or a note with HTML
(recommend HTML for broad onboarding or relationships that benefit from
visual layout); and the scope
boundary, with a proposed starting point. Apply a choice the request states
without asking. A helper run, where another workflow owns the report, holds
no round and reuses the caller's choices.

Start with the central answer and decisive source references. Include a
small mapped diagram when it helps and the inspected lines support it. Surface
tool limitations when they affect the answer. The first delivery states the
applied choices in its `Kickoff:` line.

Resolve the repository root and revision from the source directory being inspected, which may differ from the workspace. Reuse existing notes and conversation findings, checking their revision, relevant local changes, configuration, and dependency assumptions against that source. Reopen affected claims while retaining supported findings; a new revision alone does not invalidate the whole note. Reused experiments keep their original run revision and conditions.

Before tracing, use [CODE-TOOLS.md](../CODE-TOOLS.md) to select useful capabilities and reuse local preparation. Surface a setup gap when it affects the answer; use its recovery guidance when a tool cannot run.

Start tracing once the learning questions and starting scenario are concrete enough to investigate.

## Trace, explain, and challenge

Repeat this loop as the explanation develops. Share supported partial answers during the investigation.

Trace the main flow and cite the lines you read. Use an [investigator](../INVESTIGATE.md) when a separate trace or probe would help answer a learning question. Follow [native delegation](../WORKERS.md), supplying the source conditions, settled scope, and question. Integrate findings into one walkthrough: show where one question's outcome decides another's. Keep conflicting evidence and unresolved gaps visible.

1. **Trace a concrete flow.** Follow an actor, request, or record through its producers and consumers, starting at the entry point that begins it (a request, a command, an event). Keep the frames a reader needs for orientation. Connect domain concepts to symbols, state transitions, ownership, lifetime, and observable effects. Separate phases hidden behind one feature name. Follow relevant asynchronous boundaries and alternate entry points far enough to explain who relies on the state and what they do next; causal relevance sets the boundary.
2. **Explain the connection.** Answer a learning question, then justify it with the walkthrough. Where a branch or transformation decides the outcome, show a short actual source excerpt with its input, resulting state, and consequence for the next consumer, as a fence whose info string carries the pinned link; the [page workflow](../HTML-PAGES.md) renders such a fence as a code card. Use a diagram when it makes the relationships easier to follow: a sequence for interactions, a flowchart for branching, a state diagram for lifecycle transitions, or a schema for stored data. A short call tree, pseudocode, or prose may suffice. A component tree or a file tree is a plain text block whose nodes map to sources as [evidence](../EVIDENCE.md) says. For a visual recap of the finished explanation, hand off to `humanlayer:show-me` as [package references](../REFERENCES.md) say; the explanation and its page stay with this skill. Map every diagram's nodes and edges to sources as [evidence](../EVIDENCE.md) says. Explain unfamiliar terms where they matter; label pseudocode and omissions. A list of symbols alone does not explain the behavior.
3. **Challenge a consequential assumption.** When a contrast could change the answer, vary one condition: repetition, interruption, or another supported path. State the prediction and why, then inspect the decisive code. Explain what supports or corrects the model. If uncertainty remains, run the smallest useful existing test, isolated reproduction, or throwaway model within existing authorization. Ask at a checkpoint only when a material cost, side effect, or scope choice is not covered by that authorization. State the question and predicted observable result first, and stop when it is answered. Tests are optional; model results do not establish integration behavior.
4. **Choose the next branch.** Ask about depth or a relevant alternative when the answer would change the investigation. Ask a focused follow-up only when it would reveal a learning gap or select useful depth. Connect it to what was just explained and reuse settled context. If the reader is confused, change the example, representation, or depth. Continue directly when the next step is evident.

## Bound each claim to its evidence

Every claim carries its pinned line, observation, quote, or label as [evidence](../EVIDENCE.md) says. State the conditions under which an answer holds and expose discrepancies between intent and implementation. Failed or unavailable probes leave named gaps.

A negative or universal claim follows the evidence rule for its controlling invariant and inspected paths: a check in one registration endpoint cannot establish that unverified users never authenticate through another route. Narrow the factual claim to the inspected boundary and name the gap; expand investigation only where the learning question requires it.

A pinned line is a commit-pinned repository URL, or the relative path with a `#L` anchor for a local snapshot, naming the file, symbol, and inspected lines. Cite the version actually inspected. A commit URL supports the committed bytes; recording "HEAD plus local changes" does not make that URL support a changed excerpt. For a retained explanation of uncommitted or non-Git code, [capture the inspected files](../EVIDENCE.md#capture-a-local-snapshot) beside the note and link them relative to it, such as `sources/<capture>/src/handler.py#L17`. Keep prior captures when refreshing affected findings. For a narrow chat answer, identify the local file and current source conditions; retain a snapshot if the answer needs reuse.

## Maintain the explanation

For a reusable explanation or requested artifact, keep one scope-specific `understanding.md` at the investigation location: the directory that `python3 <package>/skills/investigation_dir.py <topic> <project>` creates and prints. A narrow chat answer can stand on its own evidence. For a new note, fill [understanding-template.md](references/understanding-template.md), adapting its sections to the learning questions and removing unused prompts. Before delivering, run `python3 <package>/skills/render_page.py <note.md> --check --sync-labels --markdown-only` for text, and without `--markdown-only` for HTML; it checks the note and writes the label key when the note uses status tables or diagrams. Organize it around the current learning questions. Update affected sections as the conversation develops, preserving still-valid findings outside the follow-up's scope. Put useful investigation chronology, review resolutions, and presentation history in an existing log or nearby `review.md`.

Include what the reader needs to reuse the explanation:

- Learning questions, explored boundary, and any future change mentioned as context.
- Answers and a concrete walkthrough linking concepts, state, ownership, dependencies, and effects to decisive source references.
- Relevant alternatives, their predictions, and supporting or correcting evidence.
- Inspected revision, local modifications, configuration/dependency assumptions, and experiment provenance, rerun commands, results, and limits.
- Unknowns and intent/behavior discrepancies, tool limitations, and worthwhile setup recommendations. Keep possible changes as questions or hypotheses separate from today's behavior.

When HTML was chosen, produce a self-contained `understanding.html` beside the note: read and apply the [shared page workflow](../HTML-PAGES.md) and [reading-page guidance](references/reading-page.md), choosing the composition for the learning questions. The Markdown is the source of findings for both the page and the planning handoff. Keep material findings and qualifications in text, including alternatives exposed by interactions. Keep questions in the conversation; the page has no agent connection unless the environment provides one.

When independent review is requested or consequential onboarding warrants its cost, read [reader-check.md](references/reader-check.md). This optional reader check tests whether the second reader can predict a scoped alternative before consulting source; it adds to the source check of [evidence](../EVIDENCE.md), which can be done by the author or a second reader.

## Finish or return findings

Before delivering, check that:

- Each learning question has an evidence-backed answer, or is explicitly unresolved with the blocking gap and next useful check. For multiple questions, compare the Questions answered rows with the user's questions; for one, check the opening. Label partial understanding accordingly.
- The explanation connects the concrete flow, relevant alternatives, and decisive code; a reader can trace why the predicted outcome follows.
- The note and any companion presented in this delivery agree on findings, evidence status, and limitations. A deferred HTML update is recorded explicitly.
- For reference documentation of a module's contract, rather than an answer to one question, an engineer new to the code could write functionally equivalent code from the note alone, without guessing defaults, error handling, side effects, or output shapes. The note covers external contracts, behavior rules, side effects, configuration, limits, and errors, and leaves out private helpers and syntax.
- Every claim carries its evidence, every diagram element is mapped, the answers have been compared with their sources, and material edits retain their evidence limits.

State the central answer and link any delivered artifacts. Offer follow-up questions when they identify useful next work, with how each could be settled. Use as many as help, including none when the question is settled. A follow-up reuses supported findings and traces only the new question, with native delegation when useful.

When another workflow asked for this trace and owns the report, return the scoped answer and evidence for integration, or update only its designated section when asked. Reuse its question, pinned source conditions, and deliverable instead of starting another note.

When an alternative suggests a defect, describe its trigger, consequence, and evidence status. Draft an issue when requested or useful within the caller's scope, retaining the sequence and source trail. Follow [publication guidance](../ASKING.md): use existing authorization for that destination and content, or show the draft and ask when it is missing. A question about code does not authorize feature implementation or publication.

If this exploration fills a gap in a plan, return the scoped findings and flag evidence that challenges an agreement for the planning workflow to resolve. Reuse the plan's context rather than restarting its interview. When a possible change was mentioned, offer the planning handoff if it would help. When the user chooses it, give them the command that starts [plan-change](../plan-change/SKILL.md) with the note, for example `/aantoniadis-skills:plan-change Plan <change>. Reuse the note at <note path>.` (`$` instead of `/` in Codex), or the start of their chosen workflow. Keep the inspected conditions in the note so the planning run can recheck only what changed.
```

## File: skills/explain/references/reader-check.md
size: 1077
sha: 232ce2b1e1e626ee45bebf1bd3287f7732d40946
upstream: https://github.com/aantoniadis/skills/blob/3896725d6d073702606bf3412352a13806008950/skills/explain/references/reader-check.md

```text
# Second-reader check

Read when independent review is requested or consequential onboarding warrants a bounded second reading.

Dispatch the [second reader](../../FRESH-REVIEW.md) in reader-check mode, using [native delegation](../../WORKERS.md), supplying the learning question, the delivered note and any page, and access to the referenced revision and evidence; leave out author hints and expected findings. The domain question: can the reader predict a relevant alternative within scope and identify the code supporting it? Reuse an independent review of the same material when it already answers this need. Merely repeating the walkthrough does not answer it.

Correct supported material findings in the note and companion, and recheck the affected scenario. Record the review's scope, findings, resolutions, and unverified limits in the existing review record or a nearby `review.md`. A source-only check is not a runtime test. Without independent context, label an author self-check accurately and continue with the normal completion criteria; this review is optional.
```

## File: skills/explain/references/reading-page.md
size: 5386
sha: 49ab7c7e5bc64812c25ed33698b62183d4d3099b
upstream: https://github.com/aantoniadis/skills/blob/3896725d6d073702606bf3412352a13806008950/skills/explain/references/reading-page.md

```text
# Reading pages for code understanding

Read this when creating or updating an HTML companion. Use the [shared page workflow](../../HTML-PAGES.md) to fill the Markdown and render it through the shared HTML template. Choose the sections that answer the learning questions; custom interactions follow that workflow's exception. Preserve useful anchors as the explanation grows.

## Reading order

- **Overview:** answer the learning questions in domain terms, state the scope, and expose qualifications that change the answer. Show a compact inspected revision with the full snapshot available in a disclosure; link the Markdown note.
- **Feature map:** choose a sequence diagram for interactions, a state diagram for lifecycle transitions, or a data-flow diagram for producers and consumers. Follow relationships relevant to the question. Distinguish required dependencies from the order of one scenario.
- **Walkthrough:** follow one concrete actor or record through meaningful steps. Connect the concept, responsible code, state before and after, and consequence for the next participant. Introduce unfamiliar terminology where it first matters.
- **Contrast:** compare a relevant alternative with the walkthrough. Explain which condition changes, what the model predicts, and what the evidence establishes.
- **Evidence and unknowns:** keep evidence status and consequential uncertainty beside their claims. Use disclosures for detailed sources, rerun commands, and supporting qualifications; a collapsed section must not conceal a limitation that changes the visible answer.

This is a reading progression, not a requirement to fill every section. Another agent should be able to recover the same findings and qualifications from the Markdown without parsing HTML or operating controls.

The [understanding template](understanding-template.md) gives the answer a visible
opening panel and separates scope from the next reading links. Keep a walkthrough
open; a leading blockquote collapses the rest of its section, so reserve that
convention for supporting traces. Use named steps with Trigger, State before,
Action, and State after when they help the reader follow the flow. The Alternatives
table becomes named Condition/Outcome comparisons, with consequence and evidence
below. Keep those column names when using this component; use ordinary prose for
a simpler contrast. Important unknowns stay beside the answer and in the visible
limits section; only supporting detail belongs in Evidence and record.

For multiple learning questions, use Questions answered with one row per question:
Answered means the scoped answer is supported, Partial retains an explicit gap,
and Unresolved has no established answer. Link each row to the relevant walkthrough
or gap; Partial and Unresolved name the next useful check. For one question, keep
this information in the opening. The checker validates recorded rows; compare them
with the user's questions to catch omissions.

When values clarify the flow, carry one request or record through the steps and
label invented values as illustrative. When source supports a useful correction,
place the likely misconception, actual behavior, and controlling condition beside
the step. Choose a diagram when relationships remain hard to follow in text;
keep its complete source map and evidence limits when one is used.

## Visual hierarchy

Reuse shared typography, spacing, and useful components. Choose their arrangement from the learning questions. Keep a concise answer and its consequential qualifications visible above each source trace. Detailed references follow the main reading path. Put presentation history in the review record.

For each diagram:

- Its content follows [EVIDENCE.md](../../EVIDENCE.md). Give it a descriptive title, a short takeaway, and a visible evidence label (observed, source, or proposed).
- Keep a compact legend visible when readers need it. Place the source map, further reading instructions, and source links in a labeled disclosure, grouping those jobs separately.
- Label important branches, state changes, and arrow meanings. Explain combined participants and whether spacing conveys order or measured time.
- Use text and symbols alongside color. Supply an accessible text description and a narrow layout with readable labels; use a dedicated arrangement when shrinking the desktop diagram loses meaning.

## Code, interactions, and checks

Show a short actual source excerpt when its condition or transformation explains the behavior, as a code-card fence in the Markdown with an introduction of what the reader should notice. The renderer owns escaping, highlighting, and the code peek. Clearly label pseudocode and omissions.

An interaction identifies what it does: display recorded evidence, illustrate a model, or run an actual experiment. A scenario selector displaying recorded outcomes must not imply that it executes the repository's code. Preserve a useful static default and a textual account of the material alternatives.

Follow the [shared page workflow](../../HTML-PAGES.md) for mechanical checks and the meaning review: read the affected overview, diagrams, code, and expanded sources in the page source, including the no-JavaScript path, and fix issues that obscure the explanation. If a selected tool cannot run, follow [CODE-TOOLS.md](../../CODE-TOOLS.md) before choosing a fallback.
```

## File: skills/explain/references/understanding-template.md
size: 2161
sha: 59c6eaa2ca659b49c6f0fb3db498c871ad3f13b4
upstream: https://github.com/aantoniadis/skills/blob/3896725d6d073702606bf3412352a13806008950/skills/explain/references/understanding-template.md

```text
---
kind: understanding-note
---
# {{title}}

**Answer:** {{central_answer_conditions_and_material_limits}}

**Scope:** {{learning_questions_and_boundary}}. **Inspected source:** {{commit_or_saved_local_snapshot_identity_and_configuration}}.

**Read next:** {{links_to_the_walkthrough_and_the_most_useful_contrast}}

## Questions answered

{{for_multiple_learning_questions_keep_one_row_per_question_else_answer_it_in_the_opening}}

| Question | Status | Answer and evidence | Follow-up |
| --- | --- | --- | --- |
| {{learning_question}} | {{Answered_Partial_or_Unresolved}} | {{concise_supported_answer_or_explicit_gap_with_walkthrough_link}} | {{next_check_for_partial_or_unresolved_else_none_with_reason}} |

## Mental model

{{small_set_of_actors_states_and_relationships_with_evidence}}

{{when_a_diagram_helps_include_takeaway_evidence_label_and_source_map_per_EVIDENCE.md}}

## Walkthrough

{{when_concrete_values_help_follow_one_labeled_request_or_record_through_the_steps_distinguishing_observed_values_from_illustrative_ones}}

### {{meaningful_step_name}}

**Trigger:** {{concrete_actor_input_and_condition}}.

**State before:** {{relevant_state_with_evidence}}.

**Action:** {{responsible_code_and_transformation_with_evidence}}.

**State after:** {{changed_state_and_next_participant_with_evidence}}.

{{short_decisive_excerpt_with_pinned_source_when_it_explains_the_step}}

{{when_a_supported_contrast_corrects_a_likely_misreading_explain_the_expectation_actual_behavior_conditions_and_evidence_beside_this_step}}

{{repeat_steps_as_needed_without_repeating_the_diagram}}

## Alternatives

| Scenario | Condition | Outcome | Why it matters | Evidence |
| --- | --- | --- | --- | --- |
| {{named_alternative}} | {{condition_that_changes}} | {{observed_or_predicted_outcome}} | {{consequence_for_the_reader_or_next_participant}} | {{pinned_source_or_observation_and_its_limits}} |

## Limits and next questions

{{consequential_unknowns_boundaries_and_the_next_check_that_would_settle_them}}

## Evidence and record

{{sources_probe_commands_recorded_results_and_provenance}}

## Status and label key

{{generated_by_render_page_with_sync_labels}}
```

## File: README.md
upstream: https://github.com/aantoniadis/skills/blob/3896725d6d073702606bf3412352a13806008950/README.md

````text
# skills

Skills for coding agents, shipped as the **`aantoniadis-skills`** plugin for
Claude Code, Codex, and OpenCode. Ten skills cover the work around a change:
set a project up for evidence, understand the code, plan the behavior, fix a
reported bug, find the defects, review the PR, check delivered work
against its requirements, keep a change from eroding the design, untangle code
that has degraded, and name the next step. Matt Pocock's and HumanLayer's originals, installed
separately, carry a plan through spec, tickets, implementation, and the PR.

```bash
claude plugin marketplace add aantoniadis/skills && claude plugin install aantoniadis-skills@aantoniadis
```

Invoke a skill as `/aantoniadis-skills:<name>` in Claude Code,
`$aantoniadis-skills:<name>` in Codex, and through the `/skills` menu or
`opencode run --command <name>` in OpenCode. Hosts also pick the skills up
through their normal model-driven selection.

## Install

```bash
# Claude Code
claude plugin marketplace add aantoniadis/skills
claude plugin install aantoniadis-skills@aantoniadis

# Codex
codex plugin marketplace add aantoniadis/skills
codex plugin add aantoniadis-skills@aantoniadis
```

The skills run Python 3 scripts. The page checker and renderer need two
packages; HTML pages with diagrams also use Node.js
([renderer options](skills/RENDERER.md)). `setup-tools` installs the packages
into a private environment that the checker finds on its own; to do it
yourself:

```bash
v="${XDG_STATE_HOME:-$HOME/.local/state}/aantoniadis-skills/venv"; python3 -m venv "$v" && "$v/bin/python3" -m pip install -q markdown-it-py beautifulsoup4
```

OpenCode loads the plugin from `opencode.json`, from Git or from a checkout:

```json
{ "plugin": ["@aantoniadis/skills@git+https://github.com/aantoniadis/skills.git"] }
```

```json
{ "plugin": ["/path/to/skills/opencode/skills.js"] }
```

Start a new session after an install or update.

**Updates.** Every merge to the default branch is a release. Codex reinstalls
the plugin when it starts on new commits. Claude Code updates by hand, or on
its own once auto-update is on for the `aantoniadis` marketplace under
`/plugin`:

```bash
claude plugin marketplace update aantoniadis && claude plugin update aantoniadis-skills@aantoniadis
```

OpenCode caches a Git-installed plugin; delete
`~/.cache/opencode/packages/@aantoniadis` to fetch the current version. A
checkout updates with `git pull`. For development, `claude --plugin-dir <checkout>`
runs the checkout directly.

### Original skills

Our skills work with seven originals: Matt Pocock's `grilling`, `to-spec`,
`to-tickets`, `implement`, and `implement-spec`, and HumanLayer's `show-me`
and `visual-pr`.
Install them once per machine, one route per host:

```bash
# Matt Pocock's skills: Claude Code
claude plugin install mattpocock-skills@claude-plugins-official
# Matt Pocock's skills: Codex
codex plugin marketplace add mattpocock/skills
codex plugin add mattpocock-skills@mattpocock
# Matt Pocock's skills: OpenCode and other hosts (-a <agent> selects the host)
npx skills@latest add mattpocock/skills -g   # later: npx skills@latest update
# HumanLayer's skills: every host
npx skills@latest add humanlayer/skills --skill show-me --skill visual-pr -g
```

`setup-tools` records where each copy is. Our skills name them
`mattpocock:implement` or `humanlayer:visual-pr`
([skills/REFERENCES.md](skills/REFERENCES.md)) and respect each author's
choice of who runs it: `plan-change` invokes `grilling` through the host; the
other six are user-invoked, so our skills finish their own deliverable and
hand you the command, such as `/mattpocock-skills:to-spec` in Claude Code or
`/to-spec` after an `npx skills` install. Each original then runs its own
workflow, unchanged.

## The skills

| Skill | Use it when | You get | How it works |
| --- | --- | --- | --- |
| [`setup-tools`](skills/setup-tools/SKILL.md) | Reusable preparation or repair would help the intended work | Useful tools checked, with a local untracked record when there is preparation to retain | [docs/setup-tools.md](docs/setup-tools.md) |
| [`explain`](skills/explain/SKILL.md) | You need to know how a flow works before touching it | A source-cited answer, with a reusable note or HTML page when selected | [docs/explain.md](docs/explain.md) |
| [`plan-change`](skills/plan-change/SKILL.md) | A ticket is vague and the change has consequences beyond its own function | A plan with named decisions, preserved behavior, evidence, and acceptance scenarios | [docs/plan-change.md](docs/plan-change.md) |
| [`find-bugs`](skills/find-bugs/SKILL.md) | You want the defects in a change before it merges, or before you review it | Ranked defects with evidence, material questions, and review limits | [docs/find-bugs.md](docs/find-bugs.md) |
| [`fix-bug`](skills/fix-bug/SKILL.md) | A test fails, an issue reports wrong behavior, or production shows a symptom | A demonstrated cause, a fix with a regression test that went red then green, and a diagnosis page a reviewer can verify | [docs/fix-bug.md](docs/fix-bug.md) |
| [`pr-review-guide`](skills/pr-review-guide/SKILL.md) | You have to review a PR you did not write | A guide to a pinned snapshot: what the change means, where to look, what to skim, what to ask the author | [docs/pr-review-guide.md](docs/pr-review-guide.md) |
| [`whats-next`](skills/whats-next/SKILL.md) | You are not sure which skill to run next, or whether to start a new session | The next step, its command for your host, and the session to run it in, from the checkout and the notes already written | [docs/whats-next.md](docs/whats-next.md) |
| [`check-acceptance`](skills/check-acceptance/SKILL.md) | You need to know whether a set of issues, an epic, tickets, or a spec is delivered | Per-requirement status at a pinned revision with evidence, delivered behavior nobody asked for, and a search for bugs when selected | [docs/check-acceptance.md](docs/check-acceptance.md) |
| [`fit-change`](skills/fit-change/SKILL.md) | A feature or bug fix is about to be written in existing code, or a finished change needs a structure review | Before: which module owns each rule the change touches, what to reuse, whether to reshape first, and whether a corner case is worth its complexity, as choices for you. After: rules added in a second place, misplaced decisions, unclear names, hard-to-follow functions, and guards, fallbacks, or wrappers nobody asked for | [docs/fit-change.md](docs/fit-change.md) |
| [`untangle`](skills/untangle/SKILL.md) | Existing code has become hard to follow or change, or you no longer trust that you know how a component is built | A rework map: what the component does as a spec its tests verify, how the code carries each behavior, the problems that make it hard to change ranked by cost with possible bugs last, a code sketch of each fix, a scorecard of design principles today against proposed, and a rework you choose, down to the modules to rename, remove, merge, or split | [docs/untangle.md](docs/untangle.md) |

The skills start from context and settled choices, and ask only about open
preferences or consequential decisions. Every claim sits next to its evidence:
a pinned line, an executed check, a quote, or a label such as inferred or not
inspected. `setup-tools` keeps what it learns in a
[local record](skills/TOOL-SETUP.md) outside the repository.

With the originals: `plan-change` hands agreed decisions to Matt's `to-spec`
and `to-tickets`, Matt's `implement` builds an unblocked ticket and
`implement-spec` lands a whole ticketed spec on one integration branch,
`fix-bug` takes a reported symptom to a fixed, recorded cause, `find-bugs` runs before
HumanLayer's `visual-pr` opens the PR, `pr-review-guide` serves the PR's
human reviewer, and `check-acceptance` checks the built result against the
requirements across a set of issues. `fit-change` places a change before
`implement` writes it and checks its structure afterwards. `untangle` maps a
component that has degra
````
