Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

specification-writing

Skill by wanshuiyin

Writes a full patent specification from drafted claims and an invention disclosure. It is for patent drafters working under CN, US or EP formats.

  • Score 91
  • 20k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install specification-writing

Built from the published package, never by AI.

git clone --depth 1 https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep /tmp/Auto-claude-code-research-in-sleep && mkdir -p ~/.claude/skills && cp -r /tmp/Auto-claude-code-research-in-sleep/skills/skills-codex/specification-writing ~/.claude/skills/specification-writing

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install specification-writing in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill drafts a patent specification section by section. It reads the claims file and the invention disclosure, and uses the prior art report for the background section. It writes the title, technical field, background, summary, drawings description, detailed description and abstract into files under patent/specification/. Each section follows jurisdiction rules for CN, US or EP, with abstract word limits set per jurisdiction.

The skill checks that every claim element has support in the specification, using a claim support table with section, paragraph and reference numeral. It then sends the full specification to a separate reviewer agent for a check on written description, enablement and consistency. It is intended for patent drafters preparing a filing-ready specification from their claims.

Written from the project's SKILL.md and checked against it.

What it can do

  • Initialize structureCreates the patent/specification/ folder with one file per section.
  • Write title and technical fieldDrafts the invention title and the technical field paragraphs.
  • Write background and summaryDescribes prior art deficiencies and the technical problem, solution and advantages.
  • Describe drawingsWrites the brief description of drawings, using figure-description for user figures.
  • Write detailed descriptionDrafts the embodiments by calling the embodiment-description sub-skill.
  • Write abstractDrafts the abstract within the word limit for the chosen jurisdiction.
  • Verify claim supportBuilds a table mapping each claim element to specification paragraphs and reference numerals.
  • Run fresh-agent reviewSends claims and specification to a reviewer agent for completeness checks.

What you need

  • Codex agent support enabled in the host for the reviewer step
  • Drafted claims in patent/CLAIMS.md
  • Invention disclosure in patent/INVENTION_DISCLOSURE.md

Try asking

  • Write the patent specification from my claims and invention disclosure
  • Draft the full CN specification for the claims in patent/CLAIMS.md
  • Write the abstract and check claim support for each element

Good to know

  • Outputs markdown drafts; conversion to filing format is done by a separate jurisdiction-format skill.
  • Requires Codex agent support for the reviewer step; the skill stops if it is unavailable.
  • Excludes experimental results, accuracy metrics and empirical evaluations from the specification.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/skills-codex/specification-writing/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Bash(*)ReadWriteEditGrepGlobSkillWebSearchWebFetchmcp__antigravity__antigravitymcp__antigravity__antigravity-replymcp__grok__grokmcp__grok__grok-replymcp__claude-review__reviewmcp__claude-review__review_replymcp__claude-review__review_startmcp__claude-review__review_reply_startmcp__claude-review__review_status

  • SKILL.md9 KB

Alternatives to specification-writing

All alternatives →

Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr

specification-writing: common questions

What files does the specification writing skill need?

It reads patent/CLAIMS.md as the primary source and patent/INVENTION_DISCLOSURE.md for the invention breakdown. It uses patent/PRIOR_ART_REPORT.md for the background section.

Which patent jurisdictions does it support?

The skill lists CN, US and EP, with jurisdiction-specific title, abstract and format rules. It can also run for all three.

Does it check that the specification supports the claims?

Yes. It builds a claim support table that maps each claim element to a specification section, paragraph and reference numeral, and adds missing description before continuing.

How do I install specification-writing?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is specification-writing free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is specification-writing safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to specification-writing?

Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.

specification-writing Install

Add to stack

Loading.