| name | specification-writing |
| title | Specification Writing: Section-by-Section Patent Description |
| description | Write the full patent specification from claims and invention disclosure. Use when user says "撰写说明书", "write specification", "写说明书", "patent description", or wants to draft the complete patent specification. |
| author | wanshuiyin |
| author_url | https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/tree/main/skills/skills-codex/specification-writing |
| license | MIT |
| version | 0.1.0 |
| execution_mode | open |
| jurisdiction | general |
| practice | ip |
| language | en |
Specification Writing: Section-by-Section Patent Description
Write the patent specification based on: $ARGUMENTS
Adapted from /paper-write for patent specifications. The specification supports the claims -- it is not a paper.
Constants
REVIEWER_MODEL = gpt-5.5 — External reviewer for specification quality
JURISDICTION = "auto" — Inherit from pipeline or detect from args; CN, US, EP, ALL
OUTPUT_FORMAT = "markdown" — Markdown drafts; converted to filing format by /jurisdiction-format
OUTPUT_DIR = "patent/" — Base output directory
LANGUAGE = "auto" — Auto from jurisdiction: CN->Chinese, US/EP->English
Inputs
patent/CLAIMS.md — the drafted claims (primary source)
patent/INVENTION_DISCLOSURE.md — invention decomposition
patent/PRIOR_ART_REPORT.md — for background section
- User-provided figures (if any)
Shared References
Load ../shared-references/patent-writing-principles.md for specification writing rules, language guidelines, and reference numeral conventions.
Load ../shared-references/patent-format-cn.md or patent-format-us.md or patent-format-ep.md based on jurisdiction.
Workflow
Step 1: Initialize Specification Structure
Create the output directory and section files:
patent/specification/
├── title.md
├── technical_field.md
├── background.md
├── summary.md
├── drawings_description.md
├── detailed_description.md
└── abstract.md
Step 2: Write Title (发明名称)
- Must match the broadest claim scope
- No trademarks, no "improved" or "new" or "novel"
- CN format: "一种[领域]的[技术主题]" or "[领域]的[技术主题]装置"
- US/EP format: "[Technical topic] for [purpose]" or "[Technical topic] and method thereof"
- Keep concise (CN: typically under 25 characters; US: under 500 characters)
Step 3: Write Technical Field (技术领域)
1-2 paragraphs identifying the technical domain:
- "The present invention relates to [broad field], and more particularly to [specific area]."
- CN: "本发明涉及[技术领域],具体涉及[具体领域]。"