一键导入
api-change
API change detection rules, critical file paths that trigger @api-guardian, consumer impact analysis requirements, and breaking change protocols
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
API change detection rules, critical file paths that trigger @api-guardian, consumer impact analysis requirements, and breaking change protocols
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Ultracode / Max-Parallel mode — dynamic workflows fan work out across tens–hundreds of adversarially-verified parallel subagents for large, decomposable jobs (codebase-wide audits, big migrations, cross-checked research). Opt-in; higher token spend.
Smart Routing — the DEFAULT CC_GodMode routing policy. Risk-based, minimal-agent paths that preserve required safety gates for the changed scope.
Release sprint workflow: version-at-release via tooling, CHANGELOG [Unreleased] flow, release invariant checks, tags, GitHub Releases, RCs. Authoritative law: docs/orchestrator/VERSIONING.md
Plan-first orchestration (ADR-004): comprehensive PLAN.md, sprint files with write-scope ownership, preflight checks, serialized integration, and the release sprint. Use for any non-trivial or multi-part request BEFORE dispatching agents.
Expanded department-based orchestration for large cross-domain CC_GodMode work. Freezes ownership, handoffs, and write scopes before implementation.
Bootstrap repo-local governance before CC_GodMode workflows run in an empty, newly initialized, or undocumented workspace. Use proactively when a project has no CLAUDE.md, no README, or no clear structure yet.
| name | api-change |
| description | API change detection rules, critical file paths that trigger @api-guardian, consumer impact analysis requirements, and breaking change protocols |
Changes to ANY of these paths require @api-guardian:
src/api/**
backend/routes/**
shared/types/**
**/interfaces/**
*.d.ts
openapi.yaml
schema.graphql
swagger.json
**/dto/**
**/contracts/**
The check-api-impact.js hook runs on every Write|Edit operation and:
When called, @api-guardian MUST:
Analyze the change type:
Identify all consumers:
Assess impact:
Produce report:
If a change is classified as BREAKING:
| Change Type | Consumer Impact | Action Required |
|---|---|---|
| New field added | None | Proceed |
| Optional → Required | HIGH | Update all consumers |
| Type changed | HIGH | Migration needed |
| Field removed | CRITICAL | Major version bump |
| Endpoint removed | CRITICAL | Deprecation period first |
| New endpoint | None | Document in API docs |
@architect (API design)
↓
@api-guardian (THIS — impact analysis) ← MANDATORY
↓
@builder (implementation + consumer updates)
@api-guardian sits between @architect and @builder to catch breaking changes BEFORE implementation begins.