一键导入
speckit-discovery-decision
Evaluate a scenario-specific technical decision for API, performance, migration, UX, or compatibility risks before formal planning.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Evaluate a scenario-specific technical decision for API, performance, migration, UX, or compatibility risks before formal planning.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Wrap core analysis with behavior-first vertical consistency checks.
Apply approved architecture refactors by updating plan and task artifacts directly.
Perform a framework-agnostic architecture review validating implementation against spec.md, plan.md, tasks.md, and the governance and architecture constitutions.
Perform an architecture-aware verification gate validating implementation against spec.md, plan.md, tasks.md, and the Architecture Constitution.
Run a single architecture workflow that prefers memory-first context and can incorporate security review when available.
Run implementation with memory context, then review the produced implementation against security and architecture constraints.
| name | speckit-discovery-decision |
| description | Evaluate a scenario-specific technical decision for API, performance, migration, UX, or compatibility risks before formal planning. |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"discovery:commands/decision.md"} |
api: external API, SDK, webhook provider, internal service, SaaS platform, protocol, or partner system integration.performance: latency, throughput, scalability, resource, reliability, capacity, or cost constraint.migration: data model change, storage choice, schema migration, backfill, import/export flow, retention change, or persistence boundary.ux: UX interaction, stateful workflow, responsive behavior, accessibility requirement, or frontend/backend handoff.compatibility: browser, OS, device, runtime, framework version, deployment target, database version, API version, or operating environment support.
$ARGUMENTS
The user may provide:
api, performance, migration, ux, or compatibility.Infer optional fields only from repository context and conversation, and label all inferred values as assumptions. If the decision type cannot be derived from the input, ask one concise clarifying question. If the type is clear but required scenario context is missing, inspect repository context and ask one concise clarifying question only when the scenario cannot be inferred.
1. Normalize the input into: - Decision type: exactly one of `api`, `performance`, `migration`, `ux`, or `compatibility`. - Decision question. - Scenario context. - Success criteria. - Evaluation mode: `comparison` or `single-approach-readiness`. - Candidate approaches. - Known constraints. - Assumptions.Apply type-specific framing:
api, capture integration target, intended workflow, actors and systems, data exchanged, authentication, authorization, contract assumptions, rate limits, retries, idempotency, sandbox access, observability, versioning, privacy, compliance, vendor lock-in, and operational ownership.performance, capture target flow, workload assumptions, measurable thresholds, hot paths, data volume growth, bottleneck hypotheses, concurrency, backpressure, queue depth, memory, CPU, startup time, deployment constraints, cost, and repeatable measurement gaps.migration, capture current state, affected readers and writers, data volume, data quality assumptions, migration constraints, compatibility boundaries, rollout order, rollback feasibility, backup or recovery points, privacy, retention, auditability, and sample data representativeness.ux, capture user workflow, primary and secondary users, states and transitions, edge cases, loading states, optimistic updates, error recovery, undo, accessibility, keyboard support, focus behavior, responsive behavior, and cross-team contract needs.compatibility, capture feature or workflow, required support matrix, optional support, runtime or platform metadata, dependency version constraints, build and packaging behavior, feature availability, fallbacks, degradation paths, and release verification effort.Inspect relevant repository context when available:
Classify evidence:
Create or update the type-specific discovery document by rendering the matching template. Prefer the active feature directory when it exists. Otherwise create the file under discovery/<short-name>/.
| Decision type | Template | Output file |
|---|---|---|
api | .specify/templates/api-integration-discovery.md | api-integration-discovery.md |
performance | .specify/templates/performance-discovery.md | performance-discovery.md |
migration | .specify/templates/data-migration-discovery.md | data-migration-discovery.md |
ux | .specify/templates/ux-discovery.md | ux-discovery.md |
compatibility | .specify/templates/compatibility-discovery.md | compatibility-discovery.md |
Set Planning Decision using the selected type's allowed values:
api: ready-for-planning, needs-poc, needs-provider-clarification, not-recommended, inconclusive.performance: ready-for-planning, needs-benchmark, needs-design-change, not-feasible, inconclusive.migration: ready-for-planning, needs-dry-run, needs-model-redesign, not-recommended, inconclusive.ux: ready-for-planning, needs-prototype, needs-contract-clarification, not-recommended, inconclusive.compatibility: ready-for-planning, needs-matrix-test, needs-fallback-design, not-supported, inconclusive.Recommend follow-up work only when it directly reduces decision risk, such as /speckit.discovery.poc, /speckit.discovery.techselect, /speckit.discovery.codebase, /speckit.discovery.codebase-api-imp, or /speckit.discovery.feasibility.