跳到正文
cccskills
免费在 GitHub 公开

cc-iterative

Run the advanced iterative workflow — Wayfinding AST discovery, Relentless Grilling, contract and spec design, TDD, council review, and docs.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md5.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

iterative

Invoke as $cc-iterative. The user request follows the skill mention.

Advanced Iterative Workflow

Iterative request: $ARGUMENTS


Step 0 — CCEP Bootstrap

Command: iterative (fixed for this workflow — do not infer from user text)

  1. Run: npx cc-codeconductor ccep profile iterative --output json to get the phases and their roles.
  2. For each delegated phase, run: npx cc-codeconductor ccep compile --command iterative --phase <phase-id> "$ARGUMENTS" --view prompt --output json
  3. After planner/intake JSON is available, run: npx cc-codeconductor ccep evaluate --command iterative --input <planner.json> --output json. If stop is true, show questions or risks and wait for human input.
  4. Pass each subagent only the compiled prompt for its phase — never forward raw $ARGUMENTS to planners. Canonical delivery order is test-before-implement whenever both phases apply.

Step 0b — OpenSpec quality gates

If openspec status reports an active change folder:

  1. Run: npx cc-codeconductor openspec validate --output json
  2. Run: npx cc-codeconductor openspec analyze --output json
  3. If analyze stop is true or any finding is CRITICAL, stop. Do not delegate to implementer.
  4. Next command spelling on this runner: $cc-iterative

Run the CLI as npx cc-codeconductor <same argv>.


Step 1 — Wayfinding (repo-explorer)

If graphify-out/graph.json exists, run graphify query "$ARGUMENTS" (and graphify path / graphify explain when two modules or one concept need a scoped subgraph). Then adopt the repo-explorer role as defined in AGENTS.md with that graph output.

repo-explorer maps directory trees, conventions, god nodes, and affected modules. Do not write code in this step. Write a short phase handoff (scope, files, open questions) before the next phase — do not chain agents on unspoken context.


Step 2 — Relentless Grilling & Task Card (task-coach)

Adopt the task-coach role as defined in AGENTS.md.

Produce a complete Task Card. The Task Card is ready when it contains: title, type, risk classification, scope, context, acceptance criteria, and constraints, and every assumption behind it has survived one grilling question (Grilling protocol).

If any field is missing or ambiguous, ask one clarifying question at a time and wait for the answer. Do not proceed with an incomplete Task Card.

STOP here. Unresolved grilling questions or missing fields populate questionsForUser in the CCEP-1 planner-output; the ConfirmationGate (ccep evaluate) reads that field and halts the workflow until a human answers. Show the completed Task Card and wait for that confirmation before continuing.


Step 3 — Contract & Technical Plan (contract-builder & architect)

Adopt the contract-builder role as defined in AGENTS.md, then the architect role as defined in AGENTS.md.

  1. Define API contracts, JSON Schemas, or TypeScript interfaces.
  2. Formulate the Technical Plan (chosen approach, affected files, trade-offs).
  3. Apply YAGNI, Simplicity First, and Stdlib-First.

STOP here. Show the Technical Plan and wait for explicit human approval. Do not proceed to tests until the plan is approved.


Step 4 — Test coverage (Tester role)

Adopt the tester role as defined in AGENTS.md.

  1. Write or extend failing tests for the new behavior before implementation (RED).
  2. Ensure all acceptance criteria from the Task Card have at least one test.
  3. Produce a Test Report: test files added or modified, cases covered.

Step 5 — Implementation (Implementer role)

Adopt the implementer role as defined in AGENTS.md.

Use the approved Technical Plan, contracts, and the failing tests. Implementer creates a Git Worktree before touching any file; all edits happen inside it.

  1. Read the Technical Plan before touching any file.
  2. Apply the minimal diff — only what the plan specifies.
  3. Run the project test suite and make the previously written failing tests pass.
  4. If tests fail, run up to 3 repair cycles (implementer → tester).
  5. Produce an Implementation Summary: what changed, which files, how to verify locally.

Step 6 — Multi-Perspective Council Review

Invoke the council skill on the generated diff (council-review phase).

The council evaluates Architecture, Security, Product, Delivery, DataOps, and Devil. security-reviewer may set securityVeto: true; that REJECTED verdict overrides majority consensus.

If ANY agent votes CRITICAL:

  • The Review Report status is BLOCKED.
  • Return to Step 5 with the feedback.

If APPROVED (no CRITICAL findings), continue.


Step 7 — Documentation (Docs role)

Adopt the docs role as defined in AGENTS.md when a public API, public module, or user-visible behavior changed.

Update: README (if applicable), OpenAPI spec (if applicable), CHANGELOG (always when implementation changed), ADR (if an architectural decision was made).

If graphify-out/ is in use, run graphify update . (AST-only).


Completion

The iterative workflow is complete only when: all tests pass, the council approves the spec and the diff, no CRITICAL findings remain, and documentation and the knowledge graph reflect the implemented behavior.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when adding monitoring, metrics, logging, or tracing to Spring AI or LLM integration code. Covers token tracking, latency measurement, cost estimation, and prompt/response logging. Use when user mentions AI monitoring, token costs, or LLM observability.

中文简介正在准备中。当前显示原文说明。

lgzarturo/springboot-course32026年10月17日 更新

android

免费

Provides expert knowledge for building modern native Android apps using Kotlin, Jetpack Compose, Material Design 3, MVI architecture, Hilt dependency injection, and Media3/ExoPlayer.

中文简介正在准备中。当前显示原文说明。

lgzarturo/springboot-course32026年10月17日 更新

Design, implement, review, and audit Android Jetpack Compose UI/UX for phone interfaces. Use when a request concerns concrete Compose layout, components, interaction, accessibility, or visual behavior. Do not activate for framework or dependency presence alone; non-UI Android work is excluded.

中文简介正在准备中。当前显示原文说明。

lgzarturo/springboot-course32026年10月17日 更新

Provides expert knowledge for designing, implementing, and managing REST API versioning strategies with deprecation workflows.

中文简介正在准备中。当前显示原文说明。

lgzarturo/springboot-course32026年10月17日 更新

astro

免费

Provides expert knowledge for building Astro 5+ sites with Islands Architecture, Content Collections, TypeScript, and performance-first rendering strategies.

中文简介正在准备中。当前显示原文说明。

lgzarturo/springboot-course32026年10月17日 更新

Audits token storage mechanisms to prevent XSS-based JWT theft.

中文简介正在准备中。当前显示原文说明。

lgzarturo/springboot-course32026年10月17日 更新

查看 lgzarturo 的全部技能

报告此技能的问题