ワンクリックで
source-command-setup-setupcontextdevkit
One-shot intelligent onboarding — inspects the project and self-configures ContextDevKit to it.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
One-shot intelligent onboarding — inspects the project and self-configures ContextDevKit to it.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Domain Engineering diagnostic — shows what the classifier decides for an objective (CMIS/DAS/profile/skills/mode). Observation-only; never mutates or blocks.
Business-driven methodology entry point — classify (intake), create/advance an Operation or Business work context, and drive the intake → operation → nested-workflow flow. Host-neutral; dry-run by default.
Workflow Navigator — shows the current phase, deliverables, and next commands for an ADR-0057 workflow. Read-only; never mutates state.
Start a focused session on one objective — locks scope, blocks opportunistic refactors.
Deterministic QA gate (ADR-0055) — run the project suite; green + complete acceptance criteria ⇒ qa-approve testing cards into conclusion; red ⇒ report (and qa-reject only attributable failures).
L6 — autonomous feature pipeline. Drives the full squad: design → implement → review → test → log. Checkpoints can be manual or automatic.
| name | source-command-setup-setupcontextdevkit |
| description | One-shot intelligent onboarding — inspects the project and self-configures ContextDevKit to it. |
Use this skill when the user asks to run the migrated source command setupcontextdevkit.
You are running the self-configuring onboarding. Goal: make this project's ContextDevKit setup at least as rich as a hand-tuned one — adapted to THIS project's stack, structure, and domain. Be thorough, infer aggressively, ask only the few questions that genuinely need a human, and never break the project. Confirm before any command that installs packages or changes the environment.
Work through these phases in order. Use task plan/checklist to track them.
node contextkit/tools/scripts/detect-stack.mjs and parse the JSON report
(languages, package manager, frameworks, monorepo, source dirs, suggested
ledger + highRiskPaths, README summary, greenfield flag).README*, the existing AGENTS.md, and skim the top-level structure to
understand what the project is and its domain language./new-adr.Ask the user (batch into one short round, offer inferred defaults):
$ARGUMENTS if provided; else recommend based on
the report — L2 for most, L1 for greenfield, L4/L5 if the codebase is large or
has clear high-risk areas).node contextkit/tools/scripts/autonomy.mjs <N> — never preselect 4.node contextkit/tools/scripts/setup-complete.mjs --detect
Then review contextkit/config.json and refine ledger.important /
l5.highRiskPaths by hand if the heuristics missed something.node contextkit/tools/scripts/context-level.mjs <N>
(this rewires .claude/settings.json and installs git hooks at L≥3).Edit AGENTS.md (or merge CLAUDE.contextdevkit.md if the installer left one):
Curated-stack rules. When the detect report contains any @tanstack/*
framework, inherit the conventions block from
contextkit/workflows/playbooks/tanstack.md (the "Core conventions" section)
into the project's AGENTS.md under "Stack" or "Immutable rules". Cite the
playbook + ADR-0017. Do not copy the opt-in starter — /setupcontextdevkit
detects and writes rules; the starter is /aidevtool-from0-only.
Run node contextkit/tools/scripts/claude-md.mjs find --host codex. For a multi-app/monorepo
project, ensure each app/module has its own AGENTS.md (backend, frontend,
each package/service): claude-md.mjs scaffold --host codex, then fill each with real
local rules (role, local stack, local conventions, boundaries) via /claude-md.
Single-package project → the root AGENTS.md is enough; skip.
contextkit/memory/GLOSSARY.md.contextkit/memory/business-rules/ (copy _TEMPLATE.md) — e.g. pricing, eligibility,
scheduling, gamification. One cohesive rule per file..codex/agents/): devteam, qa-team,
compliance-team (LGPD), design-team (UI/UX), plus starter product/ops
agents. Review contextkit/squads/README.md. Enable the squads relevant to this
project (e.g. compliance-team if it handles Brazilian residents' personal data;
design-team if it has a UI) and grow the devteam with domain agents via
/squad (e.g. frontend, backend, db) from _TEMPLATE.md.Run node contextkit/tools/scripts/roadmap.mjs find --json:
contextkit/memory/roadmap.md via /roadmap from-existing./roadmap from-existing. A project without a roadmap is flying blind —
create it now (with the user), even a small first version.package.json exists but dependencies aren't installed, offer to run the
detected package manager's install (pnpm install / npm install / …)./context-config validation,
offer to add zod as a dev dependency (optional — the kit runs without it).Run node contextkit/tools/scripts/git.mjs status and act on the result:
isRepo: false → offer git init.remoteUrl present → already connected; confirm it's the right one, move on.remoteUrl: null → ask: "No remote — do you already have a repo
(GitHub/GitLab/other) to connect, or should we create one?" Then run
/git setup-remote (B1 connect existing / B2 create new, private by default).
Confirm before any push/repo-creation (outward-facing).contextkit/memory/decisions/0001-<stack-slug>.md (use /new-adr style)
capturing the chosen stack + immutable rules as the baseline decision.node contextkit/tools/scripts/project-map.mjs
Then read contextkit/memory/project-map/00-index.md and give the user a
3–5 line summary: how many modules, the frontend/backend split, the stack,
and anything surprising. (setup-complete.mjs --detect already runs this
automatically — verify manifest.json was written; if absent, run it now.)/log-session to register this onboarding session.setup-complete.mjs call already flipped config.setup.completed = true,
so the first-run trigger will no longer fire. Confirm it is true.Summarize to the user: detected stack, level set, config tuned (counts of important/high-risk paths), AGENTS.md sections filled, agents created, deps installed, ADR + session logged. End with the natural next step.
If anything is ambiguous, prefer asking one crisp question over guessing wrong. The point of this command is that the user goes from "kit installed" to "kit fully fitted to my project" in a single pass.