跳到正文
cccskills
免费在 GitHub 公开

charted-loop

Runs Charted Coding iterations in a loop — route via charted-continue, batch red or green work for an entire test file, commit, then repeat until the PR is complete. Infers design doc and PR number when omitted. Use when the user invokes charted loop, wants batch TDD for a PR test file, or asks to continue charted work with commits.

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

查看安装方法

包含的文件(1)

  • SKILL.md3.9 KB

SKILL.md(原文)

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

Context

  • designDocPath: $ARGUMENTS[0] (optional)
  • prNumber: $ARGUMENTS[1] (optional)

Goal

Run Charted Coding iterations until the PR is complete: route via charted-continue, batch work for the current test file, commit, then immediately start the next iteration — without waiting for the user to invoke /charted-loop again.

Steps

1. Route via charted-continue

Read and follow the charted-continue skill with ${designDocPath} and ${prNumber} when provided — but do not invoke charted-red or charted-green yet.

Omit missing arguments; charted-continue resolves ${designDocPath} and ${prNumber} in its step 0.

Use the resolved values from charted-continue for the rest of this skill.

Stop early if charted-continue reports the PR is complete.

Record the route:

charted-continue routeAction in step 2
charted-scaffoldScaffold batch
charted-redRed batch
charted-greenGreen batch

Also record testFilePath from charted-continue step 4 when routing to red or green.

2. Batch work

Scaffold batch

Read and follow the charted-scaffold skill with ${designDocPath} and ${prNumber}.

Red batch

Read and follow the charted-red skill with ${designDocPath} and ${testFilePath}, but apply it to all unimplemented todos in ${testFilePath} in one pass — not just the next one.

Green batch

Read and follow the charted-green skill with ${designDocPath} and ${testFilePath}, but activate and green all implemented tests in ${testFilePath} in one pass — not one at a time.

3. Commit

Commit only when there are changes. Read the commit skill for scope rules.

Use these Charted loop prefixes (they override the default commit-skill emojis for this workflow):

ChangeCommit prefix
Design doc progress onlydocs({scope}): 📝 ...
Scaffold (WIP files/stubs)refactor({scope}): 🏗️ ...
Red (test bodies written, still it.todo)test({scope}): 🛑 ...
Green (implementation to pass tests, no new wired behavior)refactor({scope}): ✅ ...
Green (new wired behavior — e.g. wiring, exports, feature flags on)feat({scope}): ✨ ...

When a green batch touches both production code and the design doc, create two commits in this order:

  1. Production/test changes — refactor or feat as above
  2. Design doc checkbox updates — docs({scope}): 📝 ...

When unsure whether green work is refactor or feat, use refactor unless the change is live, user-visible behavior.

Commit workflow

  1. Run git status, git diff, and git log -1 --oneline in parallel.
  2. Stage only files for this iteration.
  3. Commit with a HEREDOC message.
  4. Run git status to confirm a clean commit.

Do not push unless the user asks.

4. Loop

After step 3 finishes (commit succeeded, or there were no changes to commit), go back to step 1 with the same resolved ${designDocPath} and ${prNumber}.

Keep looping until step 1 reports the PR is complete. Do not tell the user to run /charted-loop again — that is this skill's job.

When the PR is complete, report a short summary of iterations run and commits made.

Rules

  • One route per iteration — never scaffold, red, and green in the same iteration.
  • Do not skip ahead to a later test file while an earlier pending test in the PR order is unfinished.
  • Do not stop after a single iteration while the PR still has pending work.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

Continues Charted Coding work for a PR by routing to scaffold, red, or green based on design doc progress. Use when resuming work on a PR, continuing TDD after a break, or when the user invokes charted continue with a design doc and PR number.

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

testmex/testmex42026年7月23日 更新

Interviews the user section by section to collaboratively produce design documents. Use when creating a design doc, starting feature design, or when the user invokes the design command.

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

testmex/testmex42026年7月23日 更新

Progressively activates todo tests one at a time, updates implementation code until each passes (verified via Wallaby), checks off matching design doc progress, then moves to the next—following the design doc as the single source of truth.

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

testmex/testmex42026年7月23日 更新

Writes the next failing test based on provided design doc and existing todo tests

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

testmex/testmex42026年7月23日 更新

Reviews a design doc with expert sub-agents

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

testmex/testmex42026年7月23日 更新

Writes work-in-progress code and tests based on design doc

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

testmex/testmex42026年7月23日 更新

查看 testmex 的全部技能

报告此技能的问题