/contree:syncfrom contree
Identifies and resolves drift between TEST_TREES.md, tests, implementation, and mental model. Runs the full test suite, delegates leaf review to subagents, and reconciles gaps or stale expectations.
Ships in contree. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
TEST_TREES.md expresses what the operator expects from the software. It is the coding agent's contract with the operator. Operator intention is the guiding principle.
Read TEST_TREES.md, MENTAL_MODEL.md, tests, production code, and test commands. If TEST_TREES.md does not exist or contains no trees, stop and suggest running setup first. Run the full suite before reviewing; every failure is drift.
Requirements use these exact EARS forms:
then <ubiquitous outcome>
while <precondition>
then <outcome>
when <trigger>
then <outcome>
where <optional feature>
then <outcome>
if <unwanted condition>
then <recovery outcome>
Causal behaviour nests beneath the outcome that makes it possible. Review each then, and, and but assertion as a leaf.
Partition complete, non-overlapping work across subagents. Reconcile their evidence yourself.
Delegate every leaf across the subagents.
Every tree leaf
src, domain, use-case, adapter, component, system, and journey path against the filesystem. Every none is a gap to close immediately.All production code
TEST_TREES.md does not express.Every mental-model heading
At Domain, Use-case, and Port public seams, every observable branch has a matching EARS path and every path has matching behaviour. Internal control flow is not itself a requirement. Evaluate YAGNI separately when the reverse code review finds behaviour without a consumer.
Higher-layer coverage does not replace native coverage of a substantive unit revealed by TDD. Retain higher-layer coverage and test the behaviour at every applicable layer where its seam can observe it. Do not invent inner units or layers before TDD reveals them.
Resolve every finding now using the rules, mental model, trees, tests, code evidence, and your own judgment.
change when legitimate operator-expected behaviour is absent from the contract or a tree fails to express established operator intention.tdd for missing or failing tests, missing implementation, missing native coverage, and implementation that fails the intention expressed by a leaf and test.Escalate only a consequential, genuinely under-determined choice that the rules, mental model, trees, tests, code, and operator intention cannot settle.
Run every affected test and the full suite. Sync is complete only when:
none remainsOnce the project is in sync, suggest second-opinion for an independent review.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub elimydlarz/claude-code-plugins --plugin contree15 skills in this plugin
/bootstrap-test-treesCompose mental-model and test-tree setup, then implement every existing-project tree through a second subagent wave. TRIGGER when: the operator asks to bootstrap, backfill, discover, or implement a project's existing behaviour as test trees and tests./changeSet expected behaviour by writing or modifying test trees before code changes. TRIGGER when: the user describes a feature, capability, behaviour change, removal, or modification they want — even loosely (e.g. 'I want X', 'let's add Y', 'can we make it do Z', 'change how X works', 'remove this behaviour')./change-without-meRun the complete Contree arc from idea to independently reviewed working software without routine operator phase transitions: change sets the contract, sync audits it, tdd closes every gap, mutation and completion sync prove the result, and second-opinion findings are repaired before completion. TRIGGER when: the user wants the full workflow, asks to take an idea through implementation, asks to make the project complete, or wants change/sync/tdd handled end to end.Other plugins' skills for the same job