Invoke when user asks to do something with Cypilot, or wants to analyze/validate artifacts, or create/generate/implement anything using Cypilot workflows, or plan phased execution. Core capabilities: workflow routing (plan/analyze/generate/auto-config); deterministic validation (structure, cross-refs, traceability, TOC); code↔artifact traceability with @cpt-* markers; spec coverage measurement; ID search/navigation; init/bootstrap; adapter + registry discovery; auto-configuration of brownfield projects (scan conventions, generate rules); kit management (install/update with file-level diff); TOC generation; agent integrations (Windsurf, Cursor, Claude, Copilot, OpenAI).
Cypilot provides artifact validation, cross-reference validation, code traceability, spec coverage measurement, ID search/navigation, kit management, TOC generation/validation, multi-agent integration, and design-to-code implementation with @cpt-* markers.
cpt available (preferred) or python3 as fallbackMUST and ALWAYS are mandatory. Skipping any MUST instruction invalidates execution, the output must be discarded, and the workflow fails.
By proceeding with Cypilot work, I acknowledge and accept these requirements.
ALWAYS SET {cypilot_mode} = on FIRST when loading this skill
ALWAYS provide execution visibility:
- [ ] checklist task.- [CONTEXT]: MESSAGE; set context to the file/section and message to the action + why.Example:
- [execution-protocol]: Entering "Load Rules" — target is CODE, loading codebase/rules.md
- [DESIGN rules]: Completing "Validate structure" — all required sections present
- [workflows/generate.md]: Entering "Determine Target" — user requested code implementation| Variable | Value | Use |
|---|---|---|
{cypilot_path} | Directory path resolved from root AGENTS.md | Base path for all Cypilot-relative references |
{cypilot_mode} | on or off | Current Cypilot mode state |
{cpt_cmd} | cpt or python3 {cypilot_path}/.core/skills/cypilot/scripts/cypilot.py | Resolved CLI entrypoint |
{cpt_installed} | true or false | Whether the cpt CLI is available |
Setting {cypilot_mode}: explicit cypilot on/off or a prompt that activates/deactivates Cypilot workflows.
{cpt_cmd} --json info first; parse the returned variables dict.{cpt_cmd} --json resolve-vars only when a fresh or filtered map is needed.cypilot_path, project_root) + installed kit resources.{variable} references to absolute paths before using kit markdown files.Run before Protocol Guard when {cypilot_mode} is on:
command -v cpt → {cpt_cmd} = cpt, {cpt_installed} = true{cpt_cmd} = python3 {cypilot_path}/.core/skills/cypilot/scripts/cypilot.py, {cpt_installed} = falsecpt is missing and ~/.cypilot/cache/cpt-prompt-dismissed does not exist, offer pipx install git+https://github.com/cyberfabric/cyber-pilot.git; on dismiss create the marker fileALWAYS use {cpt_cmd} for all later CLI invocations.
{cypilot_path}/.gen/AGENTS.md{cypilot_path}/config/AGENTS.md when it exists{cypilot_path}/.gen/SKILL.md when it exists{cypilot_path}/config/SKILL.md when it exists{cpt_cmd} --json info before any Cypilot workflow actionvariables dict from info output and use it to resolve {variable} references in AGENTS/SKILL/rules/workflowsCypilot Context:
- Cypilot: {path}
- Target: {artifact|codebase}
- Specs loaded: {list paths or "none required"}{cypilot_mode} = on first when user invokes cypilot {prompt}info when enabling Cypilot modeCypilot Mode Enabled
Cypilot: {FOUND at path | NOT_FOUND}{cpt_cmd} --json <subcommand> [options]--json as the first argument for agent-driven CLI calls= form for pattern args starting with - (example: --pattern=-req-)| User invocation | Direct action |
|---|---|
cypilot init | Run {cpt_cmd} --json init --yes |
cypilot agents <name> | Run {cpt_cmd} --json agents --agent <name> |
cypilot generate-agents <name> | Run {cpt_cmd} --json generate-agents --agent <name> |
cypilot auto-config / cypilot configure | Open and follow {cypilot_path}/.core/workflows/generate.md |
cypilot workspace init | Run {cpt_cmd} --json workspace-init [--root <dir>] [--output <path>] [--inline] [--force] [--max-depth <N>] [--dry-run] |
cypilot workspace add | Run {cpt_cmd} --json workspace-add --name <name> (--path <path> | --url <url>) [--branch <branch>] [--role <role>] [--adapter <path>] [--inline] [--force] |
cypilot workspace info | Run {cpt_cmd} --json workspace-info |
cypilot workspace sync | Run {cpt_cmd} --json workspace-sync [--source <name>] [--dry-run] [--force]; --force is destructive |
Cypilot has exactly three core workflows plus specialized sub-workflows. Routing priority is plan > generate/analyze.
| Intent | Match | Action |
|---|---|---|
| Plan | plan, create a plan, execution plan, break down, decompose, or plan to ... | Open and follow {cypilot_path}/.core/workflows/plan.md first |
| Generate | create, edit, fix, update, implement, refactor, delete, add, setup, configure, build, code and user did not say plan | Open and follow {cypilot_path}/.core/workflows/generate.md |
| Analyze | analyze, validate, review, check, inspect, audit, compare, list, show, find and user did not say plan | Open and follow {cypilot_path}/.core/workflows/analyze.md |
| Workspace | workspace, multi-repo, add source, add repo, cross-reference, cross-repo | Open and follow {cypilot_path}/.core/workflows/workspace.md |
| Unclear | help, look at, work with, handle | Ask plan (phased execution) / generate (modify) / analyze (read-only)? and stop if the user cancels |
configure routes through generate.md; that workflow may auto-trigger requirements/auto-config.md for brownfield projects with no project-specific rules.
Entrypoint: {cpt_cmd} <command> [options]
Machine output: add --json as the first argument. Exit codes: 0 = PASS, 1 = filesystem/config error, 2 = FAIL.
Legacy aliases: validate-code = validate; validate-rules = validate-kits.
| Category | Commands |
|---|---|
| Validation | validate (artifacts + code), validate-kits (kit config), validate-toc (TOC integrity), self-check (template/example sync), spec-coverage (marker coverage) |
| Search | list-ids (enumerate IDs), list-id-kinds (kind counts), get-content (fetch by ID), where-defined (definition), where-used (references) |
| Kit management | kit install (install kit), kit update (file-level kit update) |
| Utilities | toc (generate TOC), info (discover config), resolve-vars (expand template vars), init (bootstrap project), update (refresh adapter), agents (show generated integrations), generate-agents (generate/update integrations) |
| Migration | migrate (v2→v3 project), migrate-config (JSON→TOML config) |
| Workspace | workspace-init (create workspace), workspace-add (add source), workspace-info (status), workspace-sync (update Git sources) |
See skills/cypilot/cypilot.clispec for full syntax, arguments, options, exit semantics, and examples.
Use auto-config after cypilot init on a brownfield project, when project conventions are unknown, or after major structural changes. It scans structure/conventions, generates {cypilot_path}/config/rules/{slug}.md, adds WHEN rules to {cypilot_path}/config/AGENTS.md, and registers systems in {cypilot_path}/config/artifacts.toml. Invoke via cypilot auto-config, cypilot configure, or the automatic offer inside generate.md.
Project configuration lives in {cypilot_path}/config/core.toml (systems, kits, ignore lists). Artifact registry lives in {cypilot_path}/config/artifacts.toml (artifact paths, kinds, system mappings, codebase paths, autodetect rules). All commands output JSON when invoked with --json. Exit codes: 0=PASS, 1=filesystem error, 2=FAIL.
53696ab
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.