一键导入
demand-triage
Use immediately after codebase discovery to classify task scale and determine which workflow steps are required vs. optional.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use immediately after codebase discovery to classify task scale and determine which workflow steps are required vs. optional.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use for general product implementation work that is not primarily backend architecture, pure integration wiring, or screenshot-driven design-to-code.
Use when the main deliverable is maintainable documentation such as repository rules, onboarding guides, runbooks, ADRs, or architecture notes.
Use on first entry to a new repository to run environment scanning and ask targeted boundary questions before implementation.
Use after writing or modifying code to enforce the mandatory write → test → fix → repeat validation cycle.
Use before committing to a design or plan to force assumption-surfacing. The agent challenges your design, questions edge cases, and flags gaps — you patch vague decisions. Prevents the failure mode where a design "feels explained" but contains hidden flaws that only appear during implementation.
Use to establish and maintain a shared domain glossary (UBIQUITOUS_LANGUAGE.md). Creates a single source of term definitions that all agents, prompts, and documents must use — preventing semantic drift and repeated re-explanation across sessions.
| name | demand-triage |
| description | Use immediately after codebase discovery to classify task scale and determine which workflow steps are required vs. optional. |
| depends_on | ["repo-exploration"] |
| commonly_followed_by | ["feature-planning","application-implementation","memory-and-state"] |
Use this skill to classify a task's scale and adapt the workflow intensity accordingly. This prevents over-processing small tasks while maintaining full rigor for complex work.
Run triage after codebase discovery (the repo-exploration skill) but before planning or implementation. Triage requires evidence from reading the codebase — do not classify based on the request text alone.
After reading the relevant files, classify the task using observable criteria:
All of the following must be true:
Examples: typo fix, copy/label change, simple validation rule, single-function bug fix, adding a log line, updating a config value.
Any of the following:
Examples: adding a new API field with validation, refactoring a function and updating callers, adding a new UI component following existing patterns.
Any of the following:
Examples: new feature spanning API + service + UI, database migration, permission system change, new integration with external service.
If classification is uncertain, default to Medium. Never default to Small when unsure — the cost of under-processing a Medium task is higher than the cost of slightly over-processing a Small one.
The following characteristics always force Medium or Large, regardless of file count:
After classification, state:
[SCALE: SMALL | MEDIUM | LARGE]
Reason: [1–2 sentences explaining why, based on evidence from codebase discovery]
Files affected: [list]
Workflow adaptation depends on both task scale and the active trust level (see docs/operating-rules.md → Trust level). The rules below describe what can be simplified at each scale. Trust level further relaxes or tightens the ceremony.
When a task is classified as Small, the following workflow steps are skippable (may be skipped unless the task specifically requires them):
supervised trust level; optional at semi-auto and autonomoussupervised; at semi-auto/autonomous, a brief summary of what changed is sufficientThe following steps remain mandatory at all trust levels even for Small tasks:
Small path means explicit simplification, not implicit skipping. At supervised trust level, if required fields are omitted the task is non-conformant even if the code change itself is correct.
At minimal profile: output [SCALE: MEDIUM] or [SCALE: LARGE] and escalate to the user. Recommend switching to standard or full profile. Do not attempt the workflow at minimal.
For standard and full profiles: follow docs/agent-playbook.md → Workflow chains for the full procedure. Large tasks additionally require feature-planner (mandatory), critic (mandatory), risk-reviewer (mandatory), and context anchor at each major step.
Include the scale classification in your output so humans reviewing the work can quickly understand which path was taken:
[SCALE: SMALL], [SCALE: MEDIUM], or [SCALE: LARGE] near the top[small], [medium], or [large]Teams may customize the Small/Medium/Large thresholds in project/project-manifest.md. For example:
If project-specific overrides exist, they take precedence over the defaults above.
If during implementation you discover the task is larger than initially classified (e.g., a "Small" fix actually requires cross-module changes), stop and reclassify. If the new classification is higher, switch to the appropriate workflow path. If switching from Small to Medium/Large, this counts as scope expansion and requires user approval per the checkpoint gates.
[SCALE: ...], reason, files affected; scope growth triggers reclassification