/contree:setup-test-feedbackfrom contree
Configures test feedback loop for coding agents by setting up normal, journey, and impacted-test commands with project save hooks. Merges existing test configuration without overwriting.
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.
Build the project's test feedback loop with the operator. Configure tests; do not invent behaviours, test trees, or test files.
Coding agents receive fast normal-test feedback after each file edit, while the operator retains a separate production-like journey command. Existing project choices survive unless the operator agrees to change them.
Inspect the existing project before changing files:
Read the latest official framework documentation through Context7 before configuring an API or plugin.
Present the detected framework, evidence, tree-output quality, exact normal and journey mapping, changed-test mechanism, and any Docker lifecycle to the operator. Agree the framework choice and command mapping with the operator before changing files. If choosing or replacing the main application framework would be necessary, resolve that consequential decision separately.
Merge existing test configuration. Never replace a project-owned configuration file or discard its reporters, coverage, CI, timeouts, setup files, or plugins.
Configure tree-shaped output for both normal and journey commands where the ecosystem supports it. When the ecosystem only produces flat output, configure its strongest native grouping and tell the operator the exact limitation.
Map the fixed Contree strategy:
*.domain.test.**.use-case.test.**.adapter.test.**.port-contract.test.*test/component/ as *.component.test.*test/system/ as *.system.test.*test/journey/ as *.journey.test.*Use native project commands such as package scripts, Make targets, task aliases, build-tool tasks, or ecosystem equivalents. Do not create separate commands for every test kind.
Create a native test-changed command using the framework's maintained related-test or dependency-selection capability. It must identify project files changed since the last completed normal test run and run only impacted normal tests. A changed test file impacts itself; changed source files impact their dependent normal tests; shared test configuration and dependency changes impact every normal test.
Keep machine-local baseline state out of version control. If no completed normal run exists, run the normal command and record the project-file state only after it completes successfully. After a successful impacted run, record the new state. Do not substitute watch mode, last-failed selection, mutation selection, or an unconditional full suite for impact analysis.
Create an executable project wrapper under .contree/hooks/ that:
test-changed command2 when impacted tests failMerge synchronous PostToolUse hooks into both .claude/settings.json and .codex/hooks.json without replacing existing settings or hooks:
{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.contree/hooks/test-changed.sh\"",
"statusMessage": "Running impacted tests"
}
]
}
]
}
}
The project save hooks give coding agents the impacted normal-test result after each file edit and before they continue.
Require each coding harness to load and trust its project hook. A hook present on disk but not exercised by its harness is not verified.
When tests need external services, make the relevant test command own a self-contained Docker lifecycle. It starts the services, waits for readiness, runs its tests, and uses an exit trap to always tear test artefacts down. Never depend on services already running. Pass secrets and external connection details through environment variables; do not use environment variables as test/runtime behaviour switches.
Adapter, Component, and System tests remain in the normal command even when that command must own Docker. Journey infrastructure remains owned by the journey command.
Run both test commands and preserve their tree-shaped output. Then verify the changed-test feedback path:
test-changed and prove the related normal test runs while an unrelated normal test does not.Fix failed test commands and hooks, then rerun the complete verification until the feedback path works. Fail visibly with the complete native output if an external dependency, unavailable tool, or consequential operator decision prevents repair. Do not report completion until the normal command, journey command, baseline, impact selection, and both project hooks work.
Report the agreed framework, normal command, journey command, changed-test command, installed save hooks, Docker-owned commands, and verification results to the operator.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
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./diff-for-humansGenerate a single image that explains the current change to a human, using OpenAI's gpt-image-2 model — foregrounding the technical substance the change touches (contracts, databases, behaviour, test trees). TRIGGER when: the user runs /diff-for-humans, or asks to see, picture, illustrate, or visualise the current change or diff./fix-architectureRepair every reported architecture violation with partitioned subagent work and rerun boundary feedback until green. TRIGGER when: architecture lint reports violations or an operator asks to fix dependency direction, purity, composition-root, or cycle problems./second-opinionGet an independent review of completed work from OpenAI's gpt-5.6-sol with high reasoning effort — sends the work and test-tree contract through the Responses API with OPENAI_API_KEY and surfaces its critique. TRIGGER when: sync has just finished, the user asks for a second opinion, an independent review, or a sanity check on completed work before a PR or release.