🚦
AutomationJavaScript

CP Gate

by devcodex-labs

CP Gate is an Automation skill for Claude Code, published by devcodex-labs in devcodex.

202 stars26 forkson devcodex-labs/devcodexAdded 2026/09/05+16% in starsRepository updated 2026/08/31
ai-codingclaude-codecodexcoding-agentcursordeveloper-toolsgemini-cligithub-copilotgroklocal-firstworkflow-runtime
Install in seconds
Install CP Gate
Copy CP Gate into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/devcodex-labs/devcodex/tree/main/content/skills/cp-gate ~/.claude/skills/cp-gate

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/devcodex-labs/devcodex.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
content/skills/cp-gate/SKILL.md in devcodex-labs/devcodex
Installs to
~/.claude/skills/cp-gate
Collection
One of 25 skills cataloged from this repository
Category
Automation1956 skills

What CP Gate does

CP Gate enforces CP1 requirement confirmation, CP2 solution confirmation, and conditional CP3 implementation-plan confirmation. It is used to control workflow approval order before an agent starts work.

CP Gate is cataloged under Automation on DirSkills. CP Gate comes from a repository tagged ai-coding, claude-code, codex, coding-agent and cursor.

Documentation

README

模式判断

CP 门控不受 ENV_MODE 影响。dev/prod 均强制保持 CP1→CP2 顺序;CP3 是否 required 由工作流/子类型/风险决定:

ENV_MODE CP 行为
prod(默认) CP1→CP2 强制按序;命中 CP3 条件时再确认实施计划
dev 同 prod;额外执行完整规范与方案验证,不扩大 CP3 触发面

⛔ CP 是用户交互机制(确认需求/方案/计划),与规范验证无关。CP1/CP2 必须确认;CP3 未触发时必须记录 N/A + subtype/risk evidence,不得伪装成已确认。 CP 跳过路径:显式 @devcodex-auto、全局默认 @rocky、Profile config.jsonextensions.devcodex.autoAliases 替换别名或明确自然语言 auto 授权(如“进入 auto 模式执行”);这是 Agent 级行为,与 ENV_MODE 无关。

工作流能力的唯一结构化事实源为 ../routing/workflow-capabilities.json;本文件只拥有确认交互和 CP3 细化条件。

WorkflowPlanDecisionV1(流程、方案与验证独立决策)

CP1 前后必须使用 workflow-plan-decision.v1.schema.jsonhooks/_runtime/workflow-plan-decision-v1.cjs 形成唯一决策对象:

This is the opening of the README. Read the full README on GitHub.

Commands CP Gate provides

Slash commands named in this skill’s SKILL.md, listed in the order they first appear.

  • /auto

Frequently asked about CP Gate

  • What else does devcodex-labs publish alongside CP Gate?

    CP Gate is one of 25 skills that DirSkills catalogs from devcodex-labs/devcodex, the repository it ships in. Its siblings there include AI Agent System Architecture, AI Evaluation Engineering and API Contract Architecture. Each one is a separate skill with its own page in this directory, installs the same way CP Gate does, and is maintained by devcodex-labs in that same repository. The rest of the collection is listed on the devcodex-labs/devcodex page.

  • How does CP Gate compare to other Automation skills?

    CP Gate ranks #1762 by stars among the 1956 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of CP Gate against them. Open each page to compare what they document and how they install.

More from devcodex-labs/devcodex

CP Gate is one of 25 skills cataloged on DirSkills from devcodex-labs/devcodex.

See all 25 skills
🤖
47m ago

AI Agent System Architecture

AI Agent System Architecture covers agent routing, tool permissions, context, memory, state, and observability for tasks that need explainable and auditable agent behavior. Use it when designing agent workflows, recovery, handoff, or model-assisted governance.
AI Engineering
20226
🧪
47m ago

AI Evaluation Engineering

AI Evaluation Engineering designs evidence for model and prompt quality using golden sets, rubrics, judge calibration, repeat sampling, variance reporting, and regression decisions. Use it when comparing models, prompts, or upgrades and you need reproducible results with contamination checks.
AI Engineering
20226
🧩
47m ago

API Contract Architecture

API Contract Architecture defines and freezes public API contracts before implementation. Use it for HTTP, SDK, CLI, schema, error, pagination, idempotency, and compatibility changes that affect consumers.
AI Engineering
20226
🌐
47m ago

Accessibility I18n

Accessibility I18n handles accessibility and localization review for user-facing UI, CLI output, and docs. Use it when tasks involve keyboard flow, focus, screen readers, ARIA, RTL, translations, locale formats, or multilingual content.
Frontend
20226
🔍
47m ago

Analyze Default

Analyze Default defines a read-only workflow for multi-round code analysis, evidence gathering, and convergence checks. Use it when you need a factual conclusion, root-cause assessment, or review of whether something is correct without changing files.
Quality
20226
🔬
47m ago

Analyze Research

Analyze Research handles technical selection, feasibility checks, dependency comparisons, and root-cause investigation in a read-only workflow. Use it when you need evidence-based recommendations without changing source files.
AI Engineering
20226