一键导入
workflow
Scaffold durable workflow orchestration — workflow definitions, activities, HITL signal handlers, checkpoint/resume, and saga compensations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold durable workflow orchestration — workflow definitions, activities, HITL signal handlers, checkpoint/resume, and saga compensations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Switch model mid-session preserving thinking blocks. Used by /model command and by BRD §6.2 failover when the primary provider rate-limits or fails.
Six-phase ReAct loop (pre-check, thinking, self-critique, action, tool, post). Activates per-workflow via the thinking_level knob in config/workflows.yaml. Replaces standard ReAct for workflows where independent verification of the reasoning improves outcomes.
Mines completed sessions for repeating {tool sequence → outcome} tuples. Scores by frequency × success_rate × novelty. High-scoring tuples become "instincts" — candidate skill seeds — in instincts/pending/.
Walk-back algorithm for the Spec-Auditor subagent. Given a failure at phase N, identifies the earliest phase whose spec, if tightened, would have prevented the failure. Proposes a surgical amendment.
Sessions stored as trees (not lists). /fork creates a branch from any point; /tree navigates; /branch labels a path; /export produces HTML for review. All branches live in one session file under sessions/<project>/<session_id>.json.
Progressive context refinement for subagents. Don't dump everything; retrieve in passes. Start with a list of file paths and one-line abstracts; load full content only when the abstract proves insufficient.
| name | workflow |
| description | Scaffold durable workflow orchestration — workflow definitions, activities, HITL signal handlers, checkpoint/resume, and saga compensations. |
Scaffold durable workflow orchestration based on the architect's engine choice and process requirements.
/workflow
Also invoked by the architect when the BRD describes long-running or approval processes.
project-manifest.json exists with stack section populated.specs/design/.Read architect's design documents for:
Based on engine choice:
Temporal:
@workflow.defn decoratorsInngest:
Custom (state machine + PostgreSQL):
Generate activity/step implementations:
Generate human-in-the-loop approval gates:
Generate durability mechanisms:
If multi-step transactions are required:
Generate API endpoints:
Outputs depend on engine choice:
| Engine | Files |
|---|---|
| Temporal | src/workflows/, src/activities/, src/workers/ |
| Inngest | src/functions/, src/events/ |
| Custom | src/state_machine/, src/stores/workflow_store.py, migrations/ |