mik2win/foureyes/prepare

Claude Code and agent skill by mik2win/foureyes

Trust tier 2
  • community
LLM review pending
Source check pending

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

Pre-implementation analysis — strategic brainstorm, impact mapping, SOLID extension checks, DRY reuse discovery, complexity tiering, and (for complex work) decomposition into an atomic, parallel-safe backlog. TRIGGER when the user wants pre-implementation analysis/decomposition before coding ("prepare", "analyze before building", "think through this", "decompose this task", "plan the work"). DO NOT TRIGGER when: the user already has a clear plan and just wants to build it → use /implement; the…

Install

npx vskill@latest install mik2win/foureyes/prepare

SKILL.md

The same SKILL.md was published earlier as mik2win/foureyes/prepare.

Pre-Implementation Analysis: $ARGUMENTS

Analyze BEFORE implementing. Do NOT write production code — only analyze, plan, and (on confirmation) save decomposed plans. Previous step: /analyst (clarify requirements). Next step: /implement (one invocation per subtask file).

Input is one card / one coherent change — check the tier before Phase 0. A whole-surface audit or a program that plausibly yields 20+ cards ("review every screen", "audit this whole area") is tier 1, and this skill is tier 2: run `/prompt-master`'s program pass first (breadth sweep → 00-report.md + evidence/ + cards/NN-<slug>.md + RUN-ORDER.md, stopping before any implementation), then come back here one card at a time. Decomposing a surface directly into waves skips the discovery that decides which cards are worth cutting at all.

Risky work → suggest plan mode. For a change the user flags as risky (production data,
irreversible migrations, wide blast radius), recommend running the /implement session
under Claude Code's built-in plan mode (plan approval before any edit) — it is the
harness-level twin of this skill's plan-first pipeline: the kit plans the work, plan mode
gates the execution. /rewind checkpoints add per-edit undo on top.

Deliver, don't halt — ask only when the choice is material (governing rule)

This skill's job is to hand back the finished analysis + plan. An undertold detail must never end the run at "tell me (a)/(b)/(c)". Sort every unknown into one of two buckets:

  • Material / irreversible / direction choice — adopting a framework or major dependency,

a one-way data migration, changing architectural style, anything expensive to undo (core.md → Decisions). → confirm via AskUserQuestion, one at a time, each with your recommended answer, before finalizing. (Unchanged.)

  • Undertold but cheap-reversible — a threshold value, a default mode, a reject-vs-reprice

behavior that can hide behind a flag, a config default. → do NOT halt. Adopt a sensible reversible default, name it explicitly as your assumption with its cost-of-undo, produce the full artifact anyway, and surface the alternative after the deliverable: "I assumed X (reversible via `<flag>`; default `0.0` = off); say so if you want Y."

The clarifying question rides alongside the delivered plan, never instead of it. If a default lets you finish, finish — then offer the choice. Halting a whole analysis on a question a default could unblock is the failure mode this rule exists to kill.

Raw idea, not a spec, is valid input. If $ARGUMENTS is a plain text idea (not an /analyst spec or spec file), don't demand a spec — crystallize a 3–5 line working spec inline (goal, scope, known parameters + their reversible defaults) and proceed through the phases on it. Ask at most the 1–2 genuinely material questions; default the rest and deliver.


Phase 0 — Load Profile (MANDATORY FIRST)

Tooling preflight — one call, before step 1. Some tools this skill relies on are deferred by the harness: the session lists them by name only and loads their schemas on demand, so calling one before it is fetched fails. Listing a tool in allowed-tools does not un-defer it. Issue a single ToolSearch up front covering the whole run — select:WebFetch,WebSearch,SendMessage (Phase 1's external-service docs check, continuing a design-panel agent in 2.5) — instead of one round-trip per discovery. A name already loaded costs nothing to include; a schema discovered missing mid-run costs a turn.

  1. Read .claude/PROJECT.md. It is the single source of project facts:

Commands (lint/test/typecheck/run), Architecture (layers/modules, boundaries, backlog/plans location), Integrations (external services), Conventions.

  1. Read applicable .claude/rules/* — select rules whose paths/scope match the files

this change will touch. These define the project's invariants and patterns.

  1. If CONTEXT.md exists, read it — name modules, entities, and the plan in the project's

ubiquitous language, and respect any ADRs in docs/adr/ touching the area.

  1. If `PROJECT.md` is missing or still a TEMPLATE (placeholder markers, unfilled

sections) → fall back to the root CLAUDE.md (always in context) when it carries the commands/architecture/integrations above — proceed on it, noting you're running without a kit profile. Only if neither has those facts, STOP and tell the user to run /bootstrap first.

  1. If `$ARGUMENTS` is an `/analyst` spec, check its stage gate on entry

(rules/_generic/planning-artifacts.md → Stage gates): ACs falsifiable with concrete examples, unhappy paths per US, assumptions/open questions listed. A failing spec goes back to /analyst with the missing items named — don't silently compensate by inventing the missing requirements here.

All commands, paths, layer names, and external services below come from PROJECT.md and installed rules — never hardcode them.


Phase 0.5 — Evidence to Gather (read the code BEFORE brainstorming)

Do not brainstorm blind. Gather evidence FIRST, as a checklist of stack-neutral commands (runner/paths come from PROJECT.md, never hardcoded) — Phases 2–2.5 must rest on what the code actually is, not on assumptions:

  • [ ] Read the adjacent files you expect to touch (from PROJECT.md → Architecture and

CONTEXT.md) + their doc comments — understand the shape before proposing changes.

  • [ ] git log --oneline -15 -- <each file likely to change> — why it looks this way; prior

attempts. Use git blame / git log -p on the specific lines when history matters.

  • [ ] Grep the codebase for the feature's key nouns/verbs — is there an existing impl to reuse

or extend? (feeds Phase 5.2 DRY.)

  • [ ] Check the backlog / plans location (PROJECT.md → Plans / backlog) for a prior or

in-flight plan on this topic — don't re-decompose something already planned or shipped.

  • [ ] Note the applicable .claude/rules/* for the paths you'll touch (feeds Phase 5.3).

No planned edit to unread code (hard rule). Every file the plan will modify must have had its relevant region Read in this session before the step is written, and every signature/type/route/config key a step builds against is quoted verbatim in the plan next to the step (so /implement codes against the real shape, not the plan's guess). "We'll check the details during implementation" is banned — it is the exact sentence that becomes a mid-build surprise, an improvised architecture decision, and a changed plan. When the file list is too large to read whole, read the regions the steps touch and say which regions were read; delegate wide reconnaissance to an Explore-type agent and spot-check its load-bearing citations (delegation.md).


Phase 1 — External-Service Check

If the feature touches any external service listed in PROJECT.md → Integrations:

  1. WebFetch the official API docs for that service (URL from the Integrations entry or

the matching rule). WebSearch if the doc URL is unknown.

  1. Record exact endpoints, request/response fields, auth model, error codes, rate limits.
  2. Note breaking changes vs. the current integration; fold API complexity into the estimate.

Skip entirely if no listed integration is involved.


Phase 2 — Strategic Analysis (Brainstorm)

Think the idea through before touching code. Challenge assumptions, explore alternatives.

QuestionAnswer
What problem does this solve (concrete pain/gap)?
Who benefits (user / operator / developer / system)?
Expected impact — quantify if possible?
Simpler 80/20 approach or existing solution?
Minimal viable version — smallest useful slice?
Trade-offs given up (simplicity vs. flexibility, speed vs. correctness)?
Risks, unknowns, assumptions to validate?
In scope · out of context (another part owns it) · in context but out of scope (ours, deferred)?
Definition of done + acceptance criteria?
Future implications — enables what, locks out what?
Horizon — throwaway probe / internal tool / living surface, and the next two plausible features? (operator-confirmed, from the spec or one question — core.md)

The two out-buckets differ. Out of context leaves an integration edge the steps must call and Phase 4 must map; in context, out of scope stays in the vocabulary. The filter runs both ways — it also names a core concept nobody has.

If an answer is unknown AND materially blocks the analysis (a choice expensive to undo), ask via AskUserQuestion. Otherwise adopt a named reversible default and continue — see Deliver, don't halt above. Never stall the whole brainstorm on a question a default could unblock.


Phase 2.5 — Design Alternatives & Assumptions to Confirm

2.5.1 Design alternatives (2–3 viable approaches + trade-off table)

Do not commit to one path implicitly. Generate 2–3 genuinely different viable approaches — extend-in-place · new-abstraction · buy/reuse-existing · delegate to a layer you already run · cordon off — comparable in kind and at one level of granularity, then score them (a "buy" approach that needs an external library/service chosen routes through /select-tech — its verdict and adapter seam come back as plan steps) — a lightweight, single-agent adaptation of the multi-approach pattern. A "new-abstraction" approach must justify itself as a deeper module (small interface, more behaviour hidden) — invoke /codebase-design for that lens, not just "more files".

New seam → design first. If the change introduces a new module / seam / abstraction, run /codebase-design before committing to the decomposition, per the Artifact-Continuity Contract (rules/_generic/planning-artifacts.md) — a new abstraction is justified as a deeper module, not accepted as more files. Whether that seam is due yet, and along which axis, is skills/codebase-design/WHEN-TO-CUT.md; when the alternatives differ in shape (function or class, a subtype, a pattern), SHAPE.md beside it.

Row A is the least-machinery option — extend what exists, a config change, the framework default, or do not build it. A row above A is earned by naming the point at which A fails: the input, load, or requirement it cannot carry ("it won't scale" is not that point). A minimal recommendation ships labelled: its failure point and the number at which it stops being enough.

Complex reads climb one step at a time, each with its price named: the repository you have → a query through the mapper → hand-written SQL on the read path (legitimate; the mapper is justified per path, not per project) → a denormalised table → a store fed by events.

The two rungs that get skipped. Delegate to a layer you already run — a proxy, gateway or broker that can log, throttle, retry or route for you, often by configuration and no code; when it does not fit, write the line saying why. Cordon off — when the plan must touch code too tangled to clean now, draw the boundary where coupling is weakest, force everything crossing it through one named interface, and record where the pile now lives. A "rewrite it first" row is legitimate after a post-mortem of what the old code does well and two cheaper options priced.

Size the problem before you name a component. Write the arithmetic first — rows · bytes · peak requests/s · the working set that must stay hot — and name the fattest real row. Settle the shape of the stored data and its access patterns before the module layout. The estimate has veto power: if it all fits one server, drop the cache and leave the number.

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

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

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

Source

Popularity

7-day trend score
0

Not refreshed yet.

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/mik2win/foureyes/prepare/badge)](https://verified-skill.com/skills/mik2win/foureyes/prepare)

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