بنقرة واحدة
detailed-spec-writing
Transform requirements into precise specifications for coding tasks
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Transform requirements into precise specifications for coding tasks
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Generate and curate Claude-oriented bash-policy project rules. Use to run bash-policy export/report, review .bash-policy-candidates.yaml from Claude settings, update .bash-policy.yaml, normalize command-shape identities, or validate bash-policy configuration.
Assess whether an input document is ready for a specific §BRAND_NAME_TITLE§ MAS entry point. Use when a user asks whether a goal, functional spec, detailed spec, technical spec, PRD, story bundle, architecture plan, or other source document is solid enough to run through §BRAND_BINARY_NAME§ with `--entry-point general-objective`, `functional-spec`, `detailed-spec`, or `technical-spec`; when deciding which entry point fits a document; or before `§BRAND_BINARY_NAME§ init --spec`.
Coordinate Pairing-mode doer/reviewer sessions through a Markdown blackboard. Use when the user invokes /adversarial-pairing with role and blackboard-path arguments or asks multiple pairing agents to coordinate plan review, implementation, staged code review, and follow-up review rounds without §BRAND_NAME_TITLE§ multi-agent mode.
Define component boundaries, interfaces, and structural decisions for a change
Summarize artifacts produced by §BRAND_BINARY_NAME§ agents for human checkpoint review
Pre-commit Clean Code refactoring
| name | detailed-spec-writing |
| description | Transform requirements into precise specifications for coding tasks |
Transform fuzzy requirements into precise, SMARC specifications an Orchestrator can decompose into coding tasks.
Output: a git-tracked markdown document. One spec per task; one cohesive capability per spec.
Your task provides:
Scope discipline:
PRD format template at the task-specified path.
Read source material. Distinguish what is said, implied, and missing before writing any requirements.
Multiple independent capabilities → flag to Orchestrator for split. Do not silently produce a mega-spec.
SMARC every functional requirement — Specific, Measurable, Achievable, Relevant, Context-bound (implementable within a single agent's context budget — if it forces loading many files or deep cross-component knowledge, decompose further).
Cannot make it SMARC → Open Question, never a vague requirement.
References: Each feature traces to source material. No traceability = Scope Absorption.
Dependencies: True ordering constraints only. FT-X depends on FT-Y only if FT-X cannot be implemented or tested without FT-Y.
Assumptions are first-class outputs. Surfaced ambiguity is more valuable than papered-over gaps. Assumptions resolve behavioral ambiguity only — if an assumption names a file format, storage engine, library, or protocol, you've crossed into design territory. State the behavioral need and move on.
Acceptance Criteria are contracts. ACs define done. If they don't fully define done, the spec is incomplete.
Audience: Write for the implementing engineer. No marketing language, hedging, or filler.
Before submitting:
Fix issues before submitting.
| Pattern | What goes wrong |
|---|---|
| Wishful Specification | Untestable requirements. "User-friendly" is not a requirement. |
| Hidden Coupling | References other components' behavior without declaring a dependency. |
| Assumption Burial | Assumptions embedded in FRs instead of surfaced in Assumptions section. |
| Scope Absorption | Source says "support X" → you spec X, Y, and Z. Stick to task scope. |
| Premature Solutioning | Specifying how instead of what. Common leak: assumptions resolving technical ambiguity instead of stating behavioral need." |
| Context Explosion | Requirement needs the entire codebase to implement. Decompose until bounded. |
| Skill | Relationship |
|---|---|
| spec-review | Downstream. Validates specs against completeness/consistency/testability checklist. |
| spec-backfill | Complementary. Backfill: specs from code (archaeology). This skill: specs from requirements (forward-looking). Same specs/ hierarchy. |
| code-review | ACs are the contract bridge — Coders implement against them, reviewers validate against them. |
Pairing: Present draft for human review before writing. Human may redirect scope, resolve OQs, or confirm assumptions. §BRAND_NAME_TITLE§: Autonomous within task scope.
| Pairing Prompt | §BRAND_NAME_TITLE§ Behavior |
|---|---|
| "Multiple capabilities — split?" | BLOCKED with split recommendation |
| "LOW confidence assumption — resolve?" | Surface in Assumptions; human resolves before coding sprint |
| "Adjacent spec may conflict?" | Read adjacent spec, declare in References, note in Context |