api
API lifecycle management. Version, deprecate, audit contracts, enforce backward compatibility. Four modes: --version, --deprecate, --contract, --audit.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
API lifecycle management. Version, deprecate, audit contracts, enforce backward compatibility. Four modes: --version, --deprecate, --contract, --audit.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Standalone adversarial analysis module. Generates the strongest honest case against an artifact or decision. Invokable directly by any caller — not only Reviewer. Challenger mode controls whether challenge is open (no spec) or spec-bound (against a declared spec artifact). Do NOT invoke to issue a verdict or score — that is Grader's job. Do NOT invoke when the goal is to produce or implement a fix — that is Executor's job.
Root cause investigation using structured analysis methods. 5-whys, fishbone, fault-tree. Knowledge-graph-leveraged when Nexus is available. On-demand.
Gateway routing engine. Reads the active platform package and capability gateways to determine which modules are relevant to the current wave. Assembles multi-module context using Economy placement rules. Produces delta proposals (ADDITIVE/COSMETIC → Specify --patch, BREAKING → Executor halt). Writes only to product space — never touches .wabblespec/ (I11).
Finalizes a completed execution by aggregating all receipts into one delivery receipt, bumping the version, and appending a changelog entry. A task is not done until Archive runs.
Writes experimental implementation of a module change from an approved Blueprint. For AUGMENT type: completes a modified copy of the existing module. For NEW type: completes Factory stubs. All output goes to .wabblespec/state/experiments/augments/. Never touches production module space.
Full lifecycle meta-orchestrator. Exclusively owns .wabblespec/meta.md. Scale-adaptive autonomy (L0–L4) from Decompose complexity score. Manages phase transitions, triggers Dream post-wave, schedules Evolution. Activates for multi-stage runs or /autopilot command.
| name | api |
| description | API lifecycle management. Version, deprecate, audit contracts, enforce backward compatibility. Four modes: --version, --deprecate, --contract, --audit. |
APIs have callers. Callers have expectations. You manage the contract between them across its full lifecycle: versioning new releases, marking deprecations, auditing contracts for drift, and enforcing backward compatibility rules.
Manages API lifecycle across four modes. Writes contract artifacts. Enforces compatibility rules. Writes api receipt.
--version | --deprecate | --contract | --auditDeclare new API version. Apply versioning scheme per rules/versioning-policy.md. Write new contract entry. Identify breaking changes between previous and new version. Record breaking_changes count.
Versioning schemes: semver (v1.2.3), date-based (2026-05-23), header-based (Accept: application/vnd.api+json;version=2).
Mark endpoint, field, or behavior as DEPRECATED. Required fields: deprecated_in, sunset_date, replacement (or no-replacement if retiring). Write deprecation notice to contract. Record in deprecations_added.
Sunset date must be at least 6 months from deprecation. Shorter sunset requires explicit user justification.
Write or update the formal API contract document. Contract must include: endpoint paths, request/response schemas, authentication method, error responses, versioning header, rate limits if applicable. Write to .wabblespec/api/contract-<timestamp>.json.
Compare implementation to declared contract. Check: all declared endpoints exist, request/response shapes match, deprecated items still present if sunset date not reached, no undeclared endpoints exposed. Flag drift as violations.
| Situation | Reference |
|---|---|
| Api receipt write | engine/shared/references/script-delegation-contract.md → receipt-writer.py --type generic for the base, then --extra-json for the module-specific fields defined in schemas/api-receipt.schema.json |
api-receipt.json (.wabblespec/state/receipts/api-receipt-<timestamp>.json):
{
"mode": "version | deprecate | contract | audit",
"api_version": "string",
"versioning_scheme": "semver | date-based | header-based",
"breaking_changes": "integer",
"deprecations_added": "integer",
"deprecations_sunset": "integer",
"backward_compatible": "boolean",
"contract_path": ".wabblespec/api/contract-<timestamp>.json"
}