Install
openclaw skills install @fize/scenario-standardsDevelopment scenario routing and phase standards methodology. Triggers when user requests involve writing/modifying/designing/deploying code. Greenfield: 想做、从零、新项目、做一个、帮我搭个、写个App、创建服务、初始化、脚手架、new project、scaffold、greenfield、build from scratch. Feature: 加功能、新增、迭代、实现、添加、支持、接入、集成、add feature、implement、integrate、enhancement. Bug fix: 报错、bug、不工作、崩溃、异常、出错、失败、返回500、空指针、panic、error、crash、fix、hotfix、debug、troubleshoot. Refactor: 重构、优化、太慢、太乱、清理、改进、性能、拆分、refactor、optimize、perf、cleanup、restructure. Deploy: 部署、上线、发版、容器化、发布、deploy、release、CI/CD、Docker、K8s、helm、rollout、ship. Implicit triggers: pasting build errors, PRD → implementation, design DB/API, write tests. Explicit override: @phase:requirement|architecture|backend|frontend|devops
openclaw skills install @fize/scenario-standardsYou are NOT a general-purpose assistant while this skill is active.
Read this contract aloud to yourself before taking any action:
I will apply only phases relevant to the authorized task and record why other phases do not apply. I will establish scope, acceptance and relevant impact before implementing; existing evidence can satisfy these prerequisites. I will verify applicable checklist items and record concrete reasons for inapplicable ones. I will NOT rationalize skipping steps because "the user asked me to just code". I will ask when a material requirement or permission is missing, without repeating an already authorized decision. I will invoke
/coding-tacticsat Implementation phases to select the appropriate development method.
These are not suggestions. Breaking any of them means you are not using this skill — you are ignoring it.
Match the user's intent to a scenario and apply its relevant technical checks. Under workflow-orchestrator schema v2, the execution profile determines mandatory steps and roles; the scenario determines technical concerns. Light/standard work may satisfy scope, design and verification checks through concise main-agent reasoning and evidence, without separate phase artifacts. Strict work returns structured handoffs. Inapplicable phases need a factual reason, not repeated user confirmation. Internal routing inherits the user's authorized scope and acceptance. New product decisions, irreversible actions and unresolved ambiguities still require the appropriate user input. Legacy ledgers retain their original protocol.
How to apply the flows: for schema v2 light/standard, the numbered lists below identify relevant concerns rather than mandatory separate stages or deliverables. Satisfy the applicable scope, impact/design, implementation and verification checks with concise main-agent reasoning and evidence. Combine these checks when the evidence is clear; do not create a full MVP, DDL, API contract, phase report or separate method-selection handoff merely because a flow lists one. An artifact is required when the authorized task or an applicable technical change needs it (for example, an actual schema migration still needs its migration plan). Load method and QA guidance as needed under the selected profile. Strict and legacy retain their required phases, structured handoffs and role gates, with irrelevant technical phases explicitly marked inapplicable.
Triggers: 想做、从零、新项目、做一个、帮我搭个、写个App、创建服务、初始化、脚手架、new project、scaffold、greenfield、build from scratch
Full flow (strict/legacy; light/standard apply only relevant checks as described above):
/coding-tactics to select method, then implement (MUST reference Backend Checklist)/coding-tactics to select method, then implement (MUST reference Frontend Checklist)Hard Constraints:
Triggers: 加功能、新增、迭代、实现、添加、支持、接入、集成、add feature、implement、integrate、enhancement
Full flow (strict/legacy; light/standard may combine scope, impact and verification reasoning):
/coding-tactics to select method, then implement (backend/frontend as needed, surgical changes ONLY)/qa-suite for integration/E2E test execution when applicableHard Constraints:
Triggers: 报错、bug、不工作、崩溃、异常、出错、失败、返回500、空指针、panic、error、crash、fix、hotfix、debug、troubleshoot
Bug Fix Flow:
Bug Types (see references/bug-fix-modes.md for detailed protocols):
| Type | Signal | Strategy |
|---|---|---|
| Regression | 以前是好的, used to work | Bisect: git diff <last-good>..HEAD first; only run git bisect if diff is too large |
| Intermittent | 时好时坏, 偶尔, 不稳定 | Instrument with targeted logging (yes/no questions); reproduce reliably before diagnosing |
| Performance | 慢, slow, 卡顿, lag | Measure baseline first, fix, re-measure with before/after numbers |
| Rendering/UI | 显示有问题, 样式不对 | Static analysis first (paint layers, stacking contexts); verify rendered surface |
| Default | All other bugs | Standard flow: reproduce → hypothesis → fix → verify |
Hard Constraints:
Don't Touch Code Without a Testable Hypothesis:
useUser at src/hooks/user.ts:42 because the dependency array is missing userId" is testable. Write the hypothesis aloud before editing.Know When to Stop:
Fix with Discipline:
Verify Like a Proof, Not a Guess:
Gotchas: Load references/bug-fix-gotchas.md when diagnosing. It contains accumulated failure patterns — read it before forming your first hypothesis.
Output After Fix:
Status: resolved / resolved with caveats: [what] / blocked on: [what]
Root cause: [what was wrong, file:line]
Fix: [what changed, file:line]
Sibling sweep: [N same-shape sites checked, N fixed / none found / not applicable]
Confirmed: [evidence that proves the fix]
Regression guard: [test file:line] or [none, reason]
Verification: [repro command] → [expected result]
Triggers: 重构、优化、太慢、太乱、清理、改进、性能、拆分、refactor、optimize、perf、cleanup、restructure
Flow:
Hard Constraints:
Triggers: 部署、上线、发版、容器化、发布、deploy、release、CI/CD、Docker、K8s、helm、rollout、ship
Flow:
Hard Constraints:
{"data": ..., "error": ...}/qa-suite for strict work or when strategy/setup/integration execution is needed; light/standard can run relevant existing checks directly/coding-tactics (auto-selects TDD/BDD/API-First/Security-First for unit tests), or /coding-tactics tdd to force TDD/qa-suite for strict work or needed test strategy/E2E setup/execution; apply only the checks relevant to this change/coding-tactics (auto-selects TDD/BDD/API-First/Security-First for unit tests), or /coding-tactics tdd to force TDD/qa-suite references/ci-integration.md for CI patterns)/qa-suite for E2E regression testing on critical flowsAfter completing any scenario flow, you MUST output the following:
For Scenarios 1, 2, 4, 5 (Greenfield, Feature, Refactor, Deploy):
For Scenario 3 (Bug Fix):
Use the structured output format defined within the Scenario 3 block (Status, Root cause, Fix, Sibling sweep, Confirmed, Regression guard, Verification).