一键导入
autobuild
Autonomous scheduled build workflows and pipelines. Trigger on "/autobuild schedule", "run workflow", "automate build", or "schedule task".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Autonomous scheduled build workflows and pipelines. Trigger on "/autobuild schedule", "run workflow", "automate build", or "schedule task".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | autobuild |
| description | Autonomous scheduled build workflows and pipelines. Trigger on "/autobuild schedule", "run workflow", "automate build", or "schedule task". |
.autoclaw/autobuild/workflows/x.yaml makes every missing folder along the way. (This is why mkdir -p / touch / New-Item are unnecessary and unreliable across Bash/PowerShell/cmd — but you don't have to reason about that: there is simply no directory step to take.)schedule with an existing <name> updates the workflow in place — do not duplicate registry entries. cancel on a missing name reports "no such workflow" and exits cleanly.npm run build, npm test). If a step needs a shell builtin, prefer Node/npm scripts in package.json over raw shell so it works on every host.Determine the sub-command from the user's message:
schedule "<cron>" <name> → Schedule a workflowrun <name> → Run a workflow immediatelylist → List all workflowscancel <name> / delete <name> → Remove a workflowstatus <name> → Show last run result| Name contains | Default step(s) |
|---|---|
inbox / sweep / triage | id: inbox-sweep, mode: report, run: npm run autoclaw -- inbox sweep (or, if no such script, a report-only doctor pass) |
lint | id: lint, run: npm run lint |
test | id: test, run: npm test |
build | id: build, run: npm run build |
deploy / release | id: build+id: test+id: deploy (deploy gated on {{test.exit_code}} == 0) |
health / doctor / check | id: check, mode: report, run: npm run doctor |
| none of the above | a single mode: report step that runs the project's most relevant npm script; if none is obvious, leave steps: [] and set status draft |
.autoclaw/autobuild/workflows/<name>.yaml. Example for a nightly-test workflow:
name: <name>
cron: "<expression>"
created: <ISO timestamp>
steps:
- id: test
run: npm test
notify: true
.autoclaw/autobuild/registry.json (create if missing). Set
status to draft when the workflow has no concrete steps (empty
steps: or any step you couldn't resolve to a real command), otherwise
scheduled. A draft workflow is NOT fired by the scheduler — it is parked
until its steps are real.
{ "workflows": [{ "name": "<name>", "cron": "<expr>", "lastRun": null, "status": "scheduled" }] }
<name> scheduled (<cron>) with N step(s): . Edit .autoclaw/autobuild/workflows/<name>.yaml to refine." — and if status: draft, say so plainly: "parked as draft (no concrete steps yet) — it will not run until you add real steps.".autoclaw/autobuild/workflows/<name>.yaml..autoclaw/autobuild/runs/<name>-<ISO timestamp>.log.[STEP: <id>] before running.[FAILED: <id>], skip remaining steps, set status to failed.[OK: <id>].passed / failed) to the run log and update registry.json.<name> — <passed|failed>. Check .autoclaw/autobuild/runs/ for full log.".autoclaw/autobuild/scheduler-heartbeat.json. If it is missing or its
at timestamp is older than ~3× the tick interval (≥120s old), the
AutoClaw scheduler is dormant — print a banner first:
⚠ Scheduler dormant — workflows below are registered but NOTHING will run. Open the AutoClaw workspace / re-activate the extension to start it.
Otherwise print ✓ Scheduler live (last tick <relative time>).registry.json and display a table. Flag any draft row as not-yet-runnable:Name Cron Last Run Status
───────────────────────────────────────────────────────────
nightly-build 0 2 * * * 2026-04-01 02:00 passed
inbox-sweep */10 * * * * — draft ⚠ no concrete steps — will not run
.autoclaw/autobuild/workflows/<name>.yaml.registry.json.Read the most recent log file matching .autoclaw/autobuild/runs/<name>-*.log and display the last 20 lines plus overall pass/fail.
If the user describes a task without a sub-command (e.g. "autobuild run my tests and deploy"):
oneshot-<timestamp>.name: my-workflow
cron: "0 2 * * *" # standard 5-field cron
created: 2026-04-01T00:00:00Z
steps:
- id: install
run: npm ci
- id: build
run: npm run build
- id: test
run: npm test
- id: deploy
run: npm run deploy
condition: "{{test.exit_code}} == 0" # optional gate
notify: true # VS Code notification on completion
timeout: 600 # seconds per step, default 120
A step's optional condition gates whether it runs, evaluated against earlier
steps' results. A step without a condition keeps the default behaviour: it is
skipped once any earlier step fails. A step with a condition runs whenever the
condition is true — even after an earlier failure (e.g. a notify-on-failure
step) — and is skipped (without aborting the rest of the run) when it is false or
cannot be evaluated.
{{<stepId>.<field>}} where field is one of exit_code,
success, skipped, timed_out.== != > >= < <=. Relational operators need numeric
operands. With no operator the expression is a truthiness check."{{test.exit_code}} == 0", "{{build.exit_code}} != 0",
"{{lint.success}} == false".Steps can opt into fix mode with a guard block that enforces safety constraints before and after execution:
steps:
- id: auto-fix
run: npm run lint -- --fix
mode: fix
guard:
scope_globs: ["src/**", "test/**"] # files the step may touch
max_files: 10 # hard cap on files changed
require_clean_git: true # reject if dirty working tree
rollback_on: test_fail # rollback on test failure (or "never")
verify: npm test # command to verify fix succeeded
Guard enforcement order:
require_clean_git — if true, rejects the step before execution if git status --porcelain is non-empty. Verdict: rejected_dirty.git diff --name-only + untracked files before execution (for rollback).files_changed — computed from git diff --name-only + untracked files after execution.max_files — if files_changed.length > max_files, rejects. Verdict: rejected_cap.scope_globs — if any changed file doesn't match a glob pattern, rejects. Verdict: rejected_scope.rollback_on: test_fail — if verify command fails, runs git checkout -- <pre-image files> to restore working tree.Guard verdicts: applied (passed), rejected_dirty, rejected_cap, rejected_scope, rolled_back, na (not applicable / report mode).
Step results now include: mode, files_changed[], guard_verdict.
Run results now include: guardBlockRejected (count), guardRolledBack (count).
When creating workflows that should recover from common failures, use these patterns:
name: self-heal-lint
cron: "0 4 * * *"
steps:
- id: lint-fix
run: npm run lint -- --fix
mode: fix
guard:
scope_globs: ["src/**"]
max_files: 20
require_clean_git: true
rollback_on: test_fail
verify: npm run lint
- id: test-after-fix
run: npm test
name: health-check
cron: "*/30 * * * *"
steps:
- id: check
run: npm run doctor
mode: report # never modifies files, guard not needed
Rule of thumb: Use mode: report unless the step intentionally mutates files. Use mode: fix with a guard when the step should change code and you want automatic rollback on failure.
Local-first intelligence layer that learns from past AI coding sessions, does RAG over your codebase, and cuts token waste. Trigger on "learn from my sessions", "index my code", "retrieve context", "/learn", "/index-code", "/retrieve", or "intelligence layer".
Multi-agent parallel development orchestrator. Reads task manifests, builds dependency DAGs, generates sprint plans, assigns scoped work to parallel agents, and coordinates review gates. Trigger on "/orchestrate", "plan sprints", "parallel agents", "assign sprint", or "orchestrate tasks".
Multi-agent parallel development orchestrator. Reads task manifests, builds dependency DAGs, generates sprint plans, assigns scoped work to parallel agents, and coordinates review gates. Trigger on "/orchestrate", "plan sprints", "parallel agents", "assign sprint", or "orchestrate tasks".
Keeps user-facing docs in sync with public-API changes. Triggered by /persona doc-writer and auto-dispatched on a task_complete whose diff touches a public API (exported types, command contributions, MCP tools, CLI flags). Writes only docs + CHANGELOG; never code. Reads its persona memory so doc conventions accumulate. Local-first provider with cloud fallback.
Persistent always-on background agent with automatic memory consolidation. Trigger on "start background agent", "enable kdream", "/kdream start", "persistent daemon", or "auto-dream memory".
Audits a target module for security defects against a seeded pattern set, writes a structured finding report with severity + disposition, and gates security-tier merges. Triggered by /persona security-auditor, by /sprint when a task touches auth/crypto/network/secrets, and before any GA flip. Reads prior findings from its persona memory so a re-audit picks up where the last left off. Local-first provider with cloud fallback.