跳到正文
cccskills
免费在 GitHub 公开

process

Process: retrospectives, session handoff, pair programming, subagent-driven development, condition-based waiting.

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

集成工具GitHub
查看安装方法

包含的文件(7)

  • SKILL.md7.9 KB
  • adr-reviewer-prompt.md6.3 KB
  • code-quality-reviewer-prompt.md4.9 KB
  • implementer-prompt.md5.8 KB
  • references/cbw-implementation-patterns.md14.7 KB
  • references/cbw-preferred-patterns.md8.1 KB
  • references/cbw-testing-patterns.md8.8 KB

SKILL.md(原文)

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

Process Skill

Five modes. Parse the request to pick one. Default to retro when ambiguous.

SignalMode
Routing stats, review ROI, retroRetro
Hand off, package state, session pickup, rehydrateHandoff
Pair program, step by step, walk me through, one change at a timePair
Subagent per task, execute plan, fresh contextSubagent
Wait for, retry, backoff, poll, health check, circuit breakerWait

Mode: Retro

Read-only retrospective. Store: learning.db (routing/review telemetry via scripts/learning-db.py).

Subcommands

ArgumentAction
routing, route healthRun python3 ~/.claude/scripts/learning-db.py route-health, then route-stats --by agent (or the user's dimension). Present outcome basis before rates.
reviews, review ROIRun learning-db.py review-roi and review-fps. Present cost, findings, and false positives per agent in one table.

For comparisons: learning-db.py route-delta --from SHA_OR_DATE --to SHA_OR_DATE.


Mode: Handoff

Two submodes sharing one state contract. HANDOFF packages work for the next session. PICKUP rehydrates from that package.

Handoff (ending/pausing work)

Produce a bullet package with these sections:

  1. Scope/status -- task in one line, finished vs. remaining, blockers.
  2. Working tree -- git status -sb; note unpushed commits and worktree path.
  3. Branch/PR -- branch, PR URL, CI status (gh pr checks).
  4. Live processes -- summarize relevant processes with attach/tail commands. Redact secrets.
  5. Tests/checks -- commands, results, checked revision, log paths.
  6. Next steps -- remaining actions in execution order.
  7. Risks/gotchas -- flaky tests, feature flags, approvals needed.

Gate: every process has a copy-paste command; every pending step is ordered.

Pickup (starting on existing work)

  1. Read the handoff and repository instructions.
  2. Confirm branch, local commits, worktree path (git status -sb).
  3. Check CI/PR (gh pr view --comments).
  4. Check live processes from the handoff. Attach or tail logs.
  5. Rerun only invalidated or missing checks.
  6. Write next 2-3 actions as bullets, then execute.

Gate: branch, PR state, and first action confirmed. Observed state wins over handoff.

Constraints: separate observed from inherited results. Redact secrets. Scale detail to the next action.


Mode: Pair

Announce-Show-Wait-Apply-Verify micro-step protocol. Stay in the main session (forks cannot conduct user gates).

Setup

Read the request and code. Show a numbered plan (one logical change per step). Wait for acknowledgment. Track current step, remaining steps, and speed.

Per-step cycle

  1. Announce the change and reason (1-2 sentences).
  2. Show the proposed diff (default 15 lines, cap 50). Split larger changes into sub-steps.
  3. Wait for a control command.
  4. Apply only after ok / yes / y.
  5. Verify with relevant checks. Report result in one sentence.
CommandAction
ok/yes/yApply current step, propose next
no/nSkip, propose alternative
fasterDouble step size (cap 50)
slowerHalve step size (min 5)
skipSkip to next step
planShow remaining steps
doneEnd pairing, run final verification

"Just do it" = switch to autonomous mode for remaining authorized work.


Mode: Subagent

Execute a plan with fresh implementer subagents. Planning owns the plan format; this mode owns dispatch and integration.

Phase 1: SETUP

  1. Read the plan once. Extract tasks with text, files, dependencies, and verify commands.
  2. Track tasks as pending/in-progress/complete.
  3. Capture BASE_SHA (git rev-parse HEAD), project conventions, and relevant context.
  4. Check scope overlap: python3 scripts/check-scope-overlap.py --tasks '<json>'. Serialize overlapping writes; parallelize independent groups.

Gate: tasks, BASE_SHA, context, and scope checks ready.

Phase 2: EXECUTE (per task)

  1. Mark in-progress. Dispatch implementer with full task text and context.
  2. Dispatch ADR compliance reviewer. Fix requirement failures before code quality.
  3. Dispatch code quality reviewer. Fix Critical and Important findings; Minor optional.
  4. Mark complete. After three failed reviews at either stage, stop and report.

Gate: requirements and code quality pass per task.

Phase 3: FINALIZE

  1. Review combined BASE_SHA..HEAD diff for cross-task conflicts and integration issues.
  2. Follow the authorized completion path (pr-workflow).

Gate: combined changes work, required checks pass.


Mode: Wait

Implement condition-based polling and retry patterns with bounded timeouts.

Pattern selection

ScenarioPattern
Wait for condition to become trueSimple poll (timeout + min interval)
Retry failing operationExponential backoff (max retries + jitter + delay cap)
API returns 429Rate limit recovery (Retry-After + fallback)
Wait for service(s) to startHealth check (all-pass + per-check status)
Prevent cascade failuresCircuit breaker (failure threshold + recovery timeout)

Shared rules

  • Read CLAUDE.md and search for existing wait/retry patterns first.
  • Every loop needs a mandatory timeout. No infinite waits.
  • Use time.monotonic() for elapsed time, never time.time().
  • Minimum poll interval: 10ms in-process, 100ms external services.
  • Jitter is mandatory on exponential backoff (prevents thundering herd).
  • Classify errors before retrying: 408/429/500/502/503/504 are retryable; 400/401/403/404 are not.
  • Log each attempt with failure reason and attempt number.
  • Test both success and timeout/exhaustion paths.

Simple poll core

start = time.monotonic()
while time.monotonic() < start + timeout:
    if condition():
        return result
    time.sleep(interval)
raise TimeoutError(f"Timeout waiting for: {description}")

Exponential backoff core

for attempt in range(max_retries + 1):
    try:
        return operation()
    except retryable_exceptions:
        if attempt >= max_retries: raise
        jitter = 1.0 + random.uniform(-0.5, 0.5)
        time.sleep(min(delay * jitter, max_delay))
        delay = min(delay * backoff_factor, max_delay)

For full implementations (rate-limited client, health check waiter, circuit breaker), detection commands, and test patterns, load the deep references.


Deep References

SignalLoadContent
Writing wait/retry implementationsreferences/cbw-implementation-patterns.mdComplete Python/Bash code for all 5 patterns
Reviewing wait/retry code for mistakesreferences/cbw-preferred-patterns.mdDetection commands and fixes for common mistakes
Testing wait/retry codereferences/cbw-testing-patterns.mdpytest patterns for polling, backoff, circuit breaker

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

accounts

免费

Manage multiple Claude Code accounts: add, list, check, launch, and install shell aliases for 10+ isolated CLAUDE_CONFIG_DIR profiles.

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

notque/vexjoy-agent4422026年10月20日 更新

Improve architecture across modules by deepening interfaces.

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

notque/vexjoy-agent4422026年10月20日 更新

Assessment: read-only inspection, codebase overview, value analysis, health checks, ADR consultation, decision analysis, multi-perspective critique.

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

notque/vexjoy-agent4422026年10月20日 更新

Background memory consolidation — overnight review, merge, and injection payload for memory files.

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

notque/vexjoy-agent4422026年10月20日 更新

Jev-driven browser automation: Jev picks operations, programs execute, a text model writes field values only when Jev cannot pick one from the goal.

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

notque/vexjoy-agent4422026年10月20日 更新

Write, compose, integrate, and improve programs that call Jev, TypeSafe's System One judgment model.

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

notque/vexjoy-agent4422026年10月20日 更新

查看 notque 的全部技能

报告此技能的问题