CtrlK
BlogDocsLog inGet started
Tessl Logo

cypilot

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).

SKILL.md
Quality
Evals
Security

Cypilot Unified Tool

Goal

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.

Preconditions

  • cpt available (preferred) or python3 as fallback
  • Target paths exist and are readable

⚠️ MUST Instruction Semantics ⚠️

MUST and ALWAYS are mandatory. Skipping any MUST instruction invalidates execution, the output must be discarded, and the workflow fails.

Agent Acknowledgment

  • MUST/ALWAYS are mandatory; skipping any MUST invalidates execution.
  • I will read all required files before proceeding.
  • I will follow workflows step-by-step without shortcuts.
  • I will not create files without user confirmation in operation workflows.
  • I will list Cypilot files read, why, and the triggering instruction before any approval prompt.

By proceeding with Cypilot work, I acknowledge and accept these requirements.

ALWAYS SET {cypilot_mode} = on FIRST when loading this skill

Execution Logging

ALWAYS provide execution visibility:

  • Notify the user when entering any H2 section of a Cypilot prompt.
  • Notify the user when completing any - [ ] checklist task.
  • Use - [CONTEXT]: MESSAGE; set context to the file/section and message to the action + why.
  • Logging must help the user understand loaded prompts, routing decisions, debugging state, and workflow progress.

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

Variables

VariableValueUse
{cypilot_path}Directory path resolved from root AGENTS.mdBase path for all Cypilot-relative references
{cypilot_mode}on or offCurrent Cypilot mode state
{cpt_cmd}cpt or python3 {cypilot_path}/.core/skills/cypilot/scripts/cypilot.pyResolved CLI entrypoint
{cpt_installed}true or falseWhether the cpt CLI is available

Setting {cypilot_mode}: explicit cypilot on/off or a prompt that activates/deactivates Cypilot workflows.

Template Variable Resolution

  • Resolve variables from {cpt_cmd} --json info first; parse the returned variables dict.
  • Use {cpt_cmd} --json resolve-vars only when a fresh or filtered map is needed.
  • Variable sources: system (cypilot_path, project_root) + installed kit resources.
  • ALWAYS resolve {variable} references to absolute paths before using kit markdown files.

CLI Resolution

Run before Protocol Guard when {cypilot_mode} is on:

  1. command -v cpt{cpt_cmd} = cpt, {cpt_installed} = true
  2. Otherwise {cpt_cmd} = python3 {cypilot_path}/.core/skills/cypilot/scripts/cypilot.py, {cpt_installed} = false
  3. If cpt 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 file
  4. Re-offer installation if the user later asks about the long invocation path

ALWAYS use {cpt_cmd} for all later CLI invocations.

Protocol Guard

  • ALWAYS FIRST open and remember {cypilot_path}/.gen/AGENTS.md
  • ALWAYS open and follow {cypilot_path}/config/AGENTS.md when it exists
  • ALWAYS open and follow {cypilot_path}/.gen/SKILL.md when it exists
  • ALWAYS open and follow {cypilot_path}/config/SKILL.md when it exists
  • ALWAYS FIRST run {cpt_cmd} --json info before any Cypilot workflow action
  • ALWAYS store the variables dict from info output and use it to resolve {variable} references in AGENTS/SKILL/rules/workflows
  • ALWAYS FIRST parse and load all matched WHEN-clause specs before proceeding
  • ALWAYS include this block when editing code:
Cypilot Context:
- Cypilot: {path}
- Target: {artifact|codebase}
- Specs loaded: {list paths or "none required"}
  • ALWAYS stop and re-run Protocol Guard when required specs should have been loaded but were not

Cypilot Mode

  • ALWAYS set {cypilot_mode} = on first when user invokes cypilot {prompt}
  • ALWAYS run info when enabling Cypilot mode
  • ALWAYS show:
Cypilot Mode Enabled
Cypilot: {FOUND at path | NOT_FOUND}

Agent-Safe Invocation

  • ALWAYS use {cpt_cmd} --json <subcommand> [options]
  • ALWAYS pass --json as the first argument for agent-driven CLI calls
  • ALWAYS use = form for pattern args starting with - (example: --pattern=-req-)

Quick Commands (No Protocol)

User invocationDirect action
cypilot initRun {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 configureOpen and follow {cypilot_path}/.core/workflows/generate.md
cypilot workspace initRun {cpt_cmd} --json workspace-init [--root <dir>] [--output <path>] [--inline] [--force] [--max-depth <N>] [--dry-run]
cypilot workspace addRun {cpt_cmd} --json workspace-add --name <name> (--path <path> | --url <url>) [--branch <branch>] [--role <role>] [--adapter <path>] [--inline] [--force]
cypilot workspace infoRun {cpt_cmd} --json workspace-info
cypilot workspace syncRun {cpt_cmd} --json workspace-sync [--source <name>] [--dry-run] [--force]; --force is destructive

Workflow Routing

Cypilot has exactly three core workflows plus specialized sub-workflows. Routing priority is plan > generate/analyze.

IntentMatchAction
Planplan, create a plan, execution plan, break down, decompose, or plan to ...Open and follow {cypilot_path}/.core/workflows/plan.md first
Generatecreate, edit, fix, update, implement, refactor, delete, add, setup, configure, build, code and user did not say planOpen and follow {cypilot_path}/.core/workflows/generate.md
Analyzeanalyze, validate, review, check, inspect, audit, compare, list, show, find and user did not say planOpen and follow {cypilot_path}/.core/workflows/analyze.md
Workspaceworkspace, multi-repo, add source, add repo, cross-reference, cross-repoOpen and follow {cypilot_path}/.core/workflows/workspace.md
Unclearhelp, look at, work with, handleAsk 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.

Command Reference

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.

CategoryCommands
Validationvalidate (artifacts + code), validate-kits (kit config), validate-toc (TOC integrity), self-check (template/example sync), spec-coverage (marker coverage)
Searchlist-ids (enumerate IDs), list-id-kinds (kind counts), get-content (fetch by ID), where-defined (definition), where-used (references)
Kit managementkit install (install kit), kit update (file-level kit update)
Utilitiestoc (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)
Migrationmigrate (v2→v3 project), migrate-config (JSON→TOML config)
Workspaceworkspace-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.

Auto-Configuration

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

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.

Repository
constructorfabric/gears-frontx
Last updated
First committed

Is this your skill?

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.