insideout-ai/make-it-work/define-test-strategy

Claude Code and agent skill by insideout-ai/make-it-work

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Onboards or refreshes a repo's test-strategy skill and shared test map: discovers tests across repos without modifying source/tests, discusses layers and adoption, records commands and prerequisites, maintains evidence-backed UC/domain relationships, and reports coverage.

Install

npx vskill@latest install insideout-ai/make-it-work/define-test-strategy

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as insideout-ai/make-it-work/define-test-strategy.

Define the Test Strategy

For generated files under make-it-work/, follow the artifact naming, Git protection, usage and timing contract. Use helper-returned paths; new runs use miw- filenames and existing runs retain their saved convention.

Usage

/make-it-work:define-test-strategy [repo] [--autopilot]

Strip --autopilot from the arguments wherever it appears; whatever remains is [repo].

  • `[repo]` — optional. The repo to onboard: a directory under the current directory or under the workspace root. When omitted, the target is the git toplevel of the current directory. One run onboards one repo; repeat the run in each repo.
  • No `--autopilot` — interactive. Every AskUserQuestion and checkpoint below pauses for a human, exactly as documented.
  • `--autopilot` — unattended. At every interactive point below, apply the Autopilot Mode policy instead of pausing. Exception: the hard-stop site named in Autopilot Mode is never auto-resolved.

Reuse explicit answers already supplied in the invocation or conversation instead of re-asking a resolved question. In particular, an explicit coverage-report-only request selects that Phase 1 path when the generated strategy exists.

The outputs are the target repo's .claude/skills/test-strategy/SKILL.md and shared .claude/testing/test-map.json. Build the skill from <base>/references/test-strategy-template.md (<base> is the Base directory for this skill: path printed when this skill loaded). Read the template before Phase 5 and reproduce its structure exactly. Read <base>/../../docs/test-map-contract.md before mapping. Never edit, move, rename or remove source/test files for discovery or mapping. Older tag-based setups must be regenerated from current code, tests and documentation; do not import tag relationships, convert old rules or clean up old metadata. Explain that any obsolete rules/pointers require manual cleanup.

Autopilot Mode

When invoked with --autopilot, still construct every question/options payload exactly as the interactive path below would — the exact option labels, multiSelect settings, and list-vs-picker thresholds all still apply and get exercised on every run — just don't call AskUserQuestion or wait at a checkpoint. Auto-resolve per the table below instead.

Hard stop: the only site autopilot never resolves is Phase 0's "target repo not identifiable" — which repo to onboard is never inferred. Autopilot also never commits or deletes source/test files.

Decision log: write make-it-work/define-test-strategy-autopilot-log.jsonl under the current directory at invocation — the invocation root recorded in Phase 0, never the target repo — overwritten fresh at the start of each autopilot run (it describes that run only). Field shape follows the shared schema in docs/autopilot-log-schema.md — this skill uses the askUserQuestion and checkpoint kind values, multiSelect is a genuine boolean (Phase 2's location confirmation is a real multiSelect: true site), so chosen can be a string, an array of strings, or null. Every line also still includes rationale (one sentence), per the shared schema's core fields. phase examples: "Phase 0", "Phase 4". site examples: "go-deep-offer", "location-confirm", "map-confirm".

When Bash is permitted, use the shared writer in docs/autopilot-log-schema.md for this log, invoking each writer command in its own Bash tool call; preserve this skill's timing and never use it to bypass a denied log write.

If writing this log file is denied by the current environment (e.g. a sandboxed run with no permission to write the log), note that fact plainly in the end-of-run summary below and continue the rest of the run regardless — never relocate the log to a path elsewhere, and never let a denied log write abort or stall the phases that follow.

Pass --root "<invocation root>" to every writer command, even after Phase 0 has changed into the target repo.

Resolution table (one row per interactive site, in the order they appear):

PhaseSitekindAutopilot resolution
Phase 0Target repo not identifiablecheckpointHard stop. Stop and require a human; no resolution to log.
Phase 0go-deep offeraskUserQuestion"Continue without it" — a partial run. Autopilot never runs go-deep inline.
Phase 1Prior-output menuaskUserQuestion"Refresh (Recommended)" — refresh current artifacts, or regenerate an older strategy from current evidence.
Phase 2Location confirmation (askUserQuestion with multiSelect: true for 1-4 candidates; plain-text checkpoint for more than 4)askUserQuestion / checkpointAuto-confirm the detected list, selecting every candidate.
Phase 3aExisting-suite strategy review (strategy-review)askUserQuestion"Review strategy (Recommended)" when concrete gaps or changed constraints justify a review; preserve established tools and explicit choices.
Phase 3aStrategy question (strategy-question-<n>)askUserQuestionChoose the repo-specific recommended option within known constraints. Record unverified environment or team assumptions in the rationale and deliverable; never infer access or user agreement.
Phase 3aStrategy confirmation (strategy-confirm)checkpointConfirm the resulting recommendation, retaining explicit user/project decisions and labeling defaults and assumptions. This approves documentation only.
Phase 4Map confirmationcheckpointAuto-confirm evidence-backed map updates, retaining user decisions and unresolved relationships. Source/tests remain untouched.
Phase 5Refresh conflictcheckpointKeep the user's content and log the conflict.
Phase 6CLAUDE.md has no ## Skills ReferencecheckpointSkip the row and report it in the summary.

The Phase 0 go-deep offer, Phase 1 prior-output menu, and Phase 3a strategy questions carry a (Recommended) label. Phase 3a uses repo-specific option labels except for its fixed review menu. At the go-deep offer, autopilot deliberately takes the non-recommended "Continue without it", since running go-deep unattended is out of scope. Do not add a (Recommended) label to other sites.

At the end of an autopilot run, print a short human-readable summary of every auto-resolved decision — including any site that stopped rather than resolving, and whether the decision log itself was written successfully — and the log file's path, so someone can audit the run afterward.

How to write files: in every phase, create and change files only with the Write and Edit tools, never with shell redirection, heredocs, tee, cp or mv. The decision-log writer in docs/autopilot-log-schema.md is the one exception.

Phase 0 — Target Repo and Prerequisite

Resolve the target repo

Run pwd and record it as the invocation root before changing directory. Then resolve the one repo this run onboards:

  1. `[repo]` given → the named directory under the invocation root, or under the detected workspace root (a directory holding a workspace-root orientation file such as a top-level CLAUDE.md or service map). It must contain .git; if it doesn't exist or isn't a repo, stop and name the path.
  2. No argument, inside a repo → the git toplevel of the invocation root (git rev-parse --show-toplevel).
  3. No argument, at a root with no `.git` whose subdirectories have one → list those repos and ask the user which one to onboard. (autopilot: hard stop)
  4. None of these resolves → stop and tell the user: "Could not identify the project root. Please launch from the repo root, a service subdirectory, or the workspace root." Do not proceed. (autopilot: hard stop)

Resolve the Repo ID with node "<base>/../../scripts/repo-identity.mjs" identity --root "<target repo>". Use its repoId for the strategy and every UC/domain token, and its root for source/test operations. It preserves an existing strategy/map ID; on a fresh linked worktree it uses the main working tree's name, not the temporary checkout folder. Report returned warnings. Conflicting recorded IDs require explicit resolution, never a silent token migration. A malformed map can still use a valid recorded strategy ID through the normal refresh/discovery path. Bare-owned worktrees without a recorded ID need an explicit token-safe identity rather than a guessed temporary name. The helper is read-only.

go-deep prerequisite

Check whether go-deep has already run in the target repo. Any one of these signals is enough:

  • .claude/skills/ contains a uc-* or domain-* directory
  • CLAUDE.md contains go-deep markers (Skill Loading Gate, Skills Reference, or After Any Feature Change sections)
  • .claude/rules/architecture.md or .claude/rules/product.md exists

When run by `implement`: if none is found, warn that the use-case and domain inventory for <Repo ID> is missing, set the partial flag and continue without the offer below in every autonomy mode. Never invoke or follow go-deep inline. Return the repo and missing inventory to the caller for Context discoveries and a separate-run recommendation at completion. This overrides the standalone offer, including Guided and Autonomous runs.

Standalone runs: if none is found, warn the user that the use-case and domain inventory for <Repo ID> is missing, then ask with one AskUserQuestion call (multiSelect: false) (autopilot: see Autopilot Mode):

  • { label: "Run go-deep now (Recommended)", description: "Run go-deep for this repo first, then continue with its use cases and domains." }
  • { label: "Continue without it", description: "Write locations, layers, commands and prerequisites now; UC/domain mapping stays pending go-deep." }

Per the answer:

  • Run go-deep now → read <base>/../go-deep/SKILL.md with the Read tool — never start it through the Skill tool — change into the target repo root, and follow it inline there. If the file is missing, stop and name the exact path. When it finishes, re-check the signals above; if they are still missing, set the partial flag. Then continue.
  • Continue without it → set the partial flag and continue.

A partial run still writes the skill's locations, layers, commands and run prerequisites, plus a test inventory with UC/domain mapping pending go-deep (Phases 4-5).

Phase 1 — Prior-Output Detection

Check whether .claude/skills/test-strategy/SKILL.md or .claude/testing/test-map.json already exists. Report the paths found and inspect map validity/freshness without overwriting it. A strategy without ## Test Map uses the older contract: regenerate its generated sections from current evidence, preserving explicit user strategy choices and unrelated content under Phase 5's conflict rule. Do not scan for legacy migration artifacts.

  • Nothing found → fresh mode. Proceed to Phase 2 with no menu.
  • Anything found → ask before writing anything, with one AskUserQuestion call (multiSelect: false) (autopilot: see Autopilot Mode):
  • { label: "Refresh (Recommended)", description: "Refresh strategy facts and evidence-backed mappings, preserving user decisions without modifying source/tests." }
  • If the new skill exists: { label: "Coverage report only", description: "Write nothing; reuse current mappings, refresh stale portions in memory and report unresolved relationships and coverage gaps." }
  • Otherwise: { label: "Stop — change nothing", description: "End the run without writing anything." }

Per the answer:

  • Refresh → proceed to Phase 2 in refresh mode when the strategy exists, otherwise fresh mode.
  • Coverage report only → skip to Phase 7. Write nothing.
  • Stop — change nothing → end the run. Write nothing.

Phase 2 — Test Locations

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/insideout-ai/make-it-work/define-test-strategy/badge)](https://verified-skill.com/skills/insideout-ai/make-it-work/define-test-strategy)

Something wrong with this skill or its page? Tell us.