跳到正文
FunCoding

00-async-dev

Drive the async-dev pipeline from one entry point, whether setup, run, or review. Use when the user wants to install async dev, run a ready issue, or address PR review comments, or on a webhook trigger. Not for plain status checks.

Star
593
许可证
MIT
最近提交
2026年12月1日

plugins/aidd-orchestrator/skills/00-async-dev/SKILL.md

在 GitHub 上查看

Async-dev

Single skill that drives the async development pipeline end to end. Three sub-flows live inside, accessed through one router:

Sub-flowWhen
SetupRepo not yet configured for async dev; user wants to install.
RunAn issue is labeled to-implement (or commented @claude /implement); no open PR closes it.
ReviewA PR is labeled to-review (or commented @claude /review); change requests pending.

Iron rule

You are the router until you commit to a sub-flow. Once committed, run that sub-flow's actions in order; do not jump back to routing mid-flow.

Routing: hybrid contract

Walk in order. First match wins.

  1. Argument override. If the arguments contain exactly setup, run, or review (case-insensitive, standalone token), route there immediately. This is the explicit override the CI workflow uses.
  2. Trigger env. When invoked from CI (GITHUB_EVENT_NAME set):
    • Label payload to-implement → run.
    • Label payload to-review → review.
    • Comment body matches @claude /implement (or /aidd-dev:02-implement) → run.
    • Comment body matches @claude /review → review.
  3. Repo state.
    • Missing .github/workflows/aidd-async.yml AND missing .claude/aidd-orchestrator.json → setup.
    • Open PR closes the referenced issue → review.
    • Fresh issue with no linked PR + intent to implement → run.
  4. Natural-language intent. Verbs in the user prompt:
    • install / configure / set up / bootstrap / rotate config → setup.
    • implement / run / process / handle queue / claude on issue → run.
    • address review / iterate on PR / fix comments / handle review → review.

Tie-break: most-specific signal wins (PR number > label > free-text keyword > config absence).

If none of the above resolves, surface the three sub-flows with one-line triggers and ask the human which to run. Never proceed blindly.

If repo state contradicts intent (e.g. user says "run" but .claude/aidd-orchestrator.json is absent), surface the conflict before delegating; never silently switch.

See references/routing.md for the full decision tree, signal precedence, and edge cases.

Sub-flows

Setup (11 actions)

Sets up async-dev in a repo. Detects context, asks for runtime parameters, generates artefacts, bootstraps labels, installs user-scope plugins (local mode), configures secrets (remote mode), schedules the poll routine (local mode), commits and pushes the generated files, and offers a smoke test on the chosen issue.

#ActionRole
01detect-contextIdentify repo, default branch, existing config, CI permissions
02ask-configCollect runtime parameters (mode, auth, labels, schedule, agents)
03generate-workflowEmit .github/workflows/aidd-async.yml from assets/setup/workflow-template.yml
04generate-local-scriptEmit poll/daemon scripts (local mode only) from assets/setup/local-*-template.sh
05write-configPersist .claude/aidd-orchestrator.json from assets/setup/config-template.json
06bootstrap-labelsCreate to-implement / to-review / claude/* labels via gh
07install-user-scope-pluginsInstall aidd-orchestrator + aidd-dev at user scope (local mode)
08configure-remote-secretsSync CLAUDE_CODE_OAUTH_TOKEN, AIDD_BOT_TOKEN, etc. (remote mode)
09bootstrap-schedulingSchedule the poll routine (local) or rely on workflow webhook (remote)
10commit-and-pushStage generated files, conventional-commit, push
11smoke-testLabel a throwaway issue with to-implement; verify the pipeline reacts

Files: actions/setup/01-detect-context.md ... actions/setup/11-smoke-test.md.

Default flow: 01 → 02 → 03 → 04 → 05 → 06 → 07 → 08 → 09 → 10 → 11. Actions self-skip when their preconditions are not met (e.g. 07 skips in remote mode, 08 skips in local mode).

Run (6 actions)

Executes one orchestration cycle on a fresh issue. Reads ready issues, resolves blockers, acquires the lock label, hands the implementation to the active SDLC orchestration capability, observes the resulting git and VCS state, and emits a run-result.json summary the workflow's post-job consumes.

#ActionRole
01poll-readyFind the next issue with to-implement, no claude/working, no open closing PR
02resolve-depsCheck linked issues / dependencies; abort if blocked
03acquire-lockApply claude/working label; refuse if already held
04check-sdlcVerify an SDLC orchestration capability is loaded
05delegate-sdlcHand the issue to the SDLC capability; observe outcome
06write-auditEmit run-result.json for the workflow's post-job

Files: actions/run/01-poll-ready.md ... actions/run/06-write-audit.md.

Default flow: 01 → 02 → 03 → 04 → 05 → 06. One cycle per ready issue.

Review (4 actions)

Closes the loop after a PR is opened by the run flow. Detects when to keep auto-fixing and when to hand off to a human. Idempotent on re-runs.

#ActionRole
01collect-commentsRead all PR + linked-issue comments newer than the last bot activity
02detect-stopDecide stop vs continue using references/review/stop-conditions.md
03fix-iterationDelegate fixes to the SDLC capability; reply to each addressed comment
04finalizeResolve threads, post the structured summary, set claude/awaiting-review or blocked

Files: actions/review/01-collect-comments.md ... actions/review/04-finalize.md.

Default flow: 01 → 02 → (03 → 01 loop if continue) → 04. Stop conditions in references/review/stop-conditions.md.

Rules

  • Exactly one sub-flow runs per invocation. The router commits, then runs that sub-flow to completion.
  • Never inline a sub-flow's logic at the router level. The router decides; the actions execute.
  • Each action enforces its own pre-flight checks and exit codes. The router never enforces post-conditions.
  • If a sub-flow aborts, surface the exit state; do not retry by switching sub-flows.
  • For batch invocations (e.g. multiple ready issues), the workflow re-invokes the skill once per item; the router does not loop.

References

  • references/routing.md - full decision tree, signal precedence, conflict resolution.
  • references/setup/auth-modes.md - local vs remote auth contracts.
  • references/setup/claude-action-auth.md - claude-code-action token setup.
  • references/setup/local-mode-scheduling.md - poll routine options.
  • references/review/stop-conditions.md - when the review loop hands off to a human.

Assets

Setup-only templates copied into the target repo by the setup sub-flow:

  • assets/setup/workflow-template.yml - .github/workflows/aidd-async.yml skeleton.
  • assets/setup/local-poll-template.sh - local-mode poll script.
  • assets/setup/local-daemon-template.sh - local-mode daemon script.
  • assets/setup/config-template.json - .claude/aidd-orchestrator.json skeleton.

Test

Each sub-flow's final action carries a ## Test block that exercises the full sub-flow with mocked dependencies.

相似的 Skill

rea-ci-tests-audit

MOmorluto/rea485k近 7 天新增 9,215 个 star

rea-changelog-update

MOmorluto/rea485k近 7 天新增 9,215 个 star

wizard

MAmattpocock/skills336k近 7 天新增 5,004 个 star

pr

MAmattpocock/skills336k近 7 天新增 5,004 个 star

triage

MAmattpocock/skills336k近 7 天新增 5,004 个 star

精选

git-guardrails-claude-code

阻止危险的 git 命令,避免误推、误删分支。

MAmattpocock/skills336k近 7 天新增 5,004 个 star