Tech Spec (Canonical)
This is the canonical skill for transforming a tech spec into specialized delivery artifacts.
Philosophy
- Keep technical planning focused and mode-driven.
- Use one canonical source to avoid duplicated instructions.
- Prefer measurable, verifiable outputs over vague recommendations.
- Make assumptions explicit and call out risk early.
Scope and triggers
Use this skill when you already have a tech spec and need one of these modes:
data_spec: schema/contracts/lifecycle/retention/access controls.migration_plan: phased rollout, rollback, compatibility, validation.ops_spec: SLOs, alerts, runbooks, ownership, escalation.performance_plan: budgets, load testing, thresholds, monitoring.
Default mode: infer from user request keywords; ask one clarifier only if ambiguous.
Required inputs
- Source tech spec path or pasted excerpt.
- Desired mode (
data_spec,migration_plan,ops_spec,performance_plan). - Known constraints: compliance/SLA/timeline/risk tolerance.
Deliverables
Write outputs beside source tech spec (unless user overrides path):
data_spec→*-data-spec.mdmigration_plan→*-migration-plan.mdops_spec→*-ops-spec.mdperformance_plan→*-performance-plan.md
All outputs should include assumptions, evidence quality, and explicit gaps.
Procedure
- Resolve mode and confirm source artifact.
- Extract only relevant sections from source tech spec.
- Apply mode-specific template below.
- Produce concise artifact with checkable criteria.
- Summarize unresolved risks and next validation step.
Mode templates:
data_spec
Required sections:
- Data entities and schema tables
- Field constraints and indexes
- Data sources and contracts
- Lifecycle and retention
- Migration/backfill strategy
- Privacy and access controls
migration_plan
Required sections:
- Scope and assumptions
- Schema/data changes
- Phased rollout steps
- Rollback triggers and recovery runbook
- Validation checkpoints
- Compatibility/deprecation policy
ops_spec
Required sections:
- Service overview and ownership
- SLOs/error budget
- Alerts and thresholds
- Dashboards/signals
- Incident response and rollback
- On-call and escalation path
performance_plan
Required sections:
- Objectives (latency/throughput/availability)
- Budgets per endpoint/component
- Load + stress testing plan
- Bottleneck risks/mitigations
- Monitoring thresholds and alerts
- Acceptance criteria
Validation
Fail fast: stop at the first failed gate and do not proceed.
- Confirm chosen mode maps to output sections fully.
- Confirm thresholds/criteria are measurable (no vague adjectives).
- Confirm assumptions and unresolved risks are explicitly listed.
- For migration/performance/ops modes, include rollback/fallback language.
Anti-patterns
- Mixing multiple modes in one unfocused artifact.
- Omitting rollback criteria for migration/ops/performance work.
- Producing unmeasurable goals (e.g., "fast", "reliable").
- Inventing source details not present in tech spec.
Constraints
- Redact secrets/tokens/credentials/PII by default.
- Avoid destructive operations unless explicitly requested.
- Keep output tied to source-spec evidence; mark gaps explicitly.
Examples
- "Generate migration plan from this tech spec" →
migration_plan - "Create data spec for this architecture draft" →
data_spec - "Need SLO/alerts/runbook from this design" →
ops_spec - "Need perf budgets and load tests from this spec" →
performance_plan
References
references/contract.yamlreferences/evals.yaml
