Best for
- Use when user says "写专利", "patent pipeline", "专利申请", "draft patent", "写权利要求书", or wants to draft a complete patent application.
wanshuiyin/Auto-claude-code-research-in-sleep/skills/skills-codex/patent-pipeline/SKILL.md
Use it for design and operations tasks; the detail page covers purpose, installation, and practical steps.
Decision brief
Draft a complete patent application based on: $ARGUMENTS
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep --skill "skills/skills-codex/patent-pipeline"Inspect the Agent Skill "patent-pipeline" from https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/014c16e0e58198e4230fafd246b0e6203892422f/skills/skills-codex/patent-pipeline/SKILL.md at commit 014c16e0e58198e4230fafd246b0e6203892422f. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Parse $ARGUMENTS to extract:
Parse $ARGUMENTS to extract:
Invoke /prior-art-search:
Invoke /invention-structuring:
Invoke /specification-writing:
Permission review
The documentation asks the agent to create, modify, or delete local files.
*Write this file at the end of every phase.** On invocation, check for this file:Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 94/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 15,246 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Draft a complete patent application based on: $ARGUMENTS
This skill orchestrates the full patent drafting lifecycle -- from prior art search through jurisdiction-formatted filing documents. It chains sub-skills into a patent-specific pipeline:
/prior-art-search → /patent-novelty-check → /invention-structuring → /claims-drafting → /specification-writing → /patent-review → /jurisdiction-format
(search) (verify) (structure) (claims) (description) (examiner) (compile)
├── /figure-description
└── /embodiment-description
This is a parallel branch, not part of the linear research pipeline. After /idea-discovery produces validated ideas, the user can either:
/experiment-bridge → /auto-review-loop → /paper-writing (publish track)/grant-proposal (funding track)/patent-pipeline (patent track) <-- this skill ┌→ /experiment-bridge → /auto-review-loop → /paper-writing (publish track)
/idea-discovery ────┤
├→ /grant-proposal → [get funded] → ... (funding track)
└→ /patent-pipeline → [file patent] (patent track)
Patents are about protecting inventions (legal scope), not publishing results (academic contribution). This skill handles the unique requirements of patent drafting: prior art analysis, claims hierarchy design, specification writing with enablement support, embodiment descriptions, and jurisdiction-specific formatting.
CN — Target patent jurisdiction. Options: CN (CNIPA), US (USPTO), EP (EPO), ALL (generate all three). Override via argument (e.g., /patent-pipeline "invention — US").invention — invention (发明专利, 20 year protection) or utility_model (实用新型, CN only, 10 year protection, apparatus claims only). Override via argument.gpt-5.6-sol — Model used via Codex MCP for examiner-style review.true only if user explicitly requests autonomous mode.auto — Output language. Auto-detected from jurisdiction: CN->Chinese, US->English, EP->English. Override explicitly if needed.patent/ — Directory for generated patent files.markdown — Draft format. markdown for review, docx for filing-ready.Override defaults via arguments:
/patent-pipeline "invention — US, utility model"or/patent-pipeline "invention — ALL, language: Chinese".
| Field | Detail |
|---|---|
| Protection | 20 years from filing date |
| Subject matter | Methods, systems, products, compositions, processes |
| Examination | Substantive examination required |
| Inventive step | High (must involve an inventive step / 创造性) |
| Timeline | 2-4 years to grant (CN); 2-3 years (US); 3-5 years (EP) |
| Claims | Method + system + product claims allowed |
| Field | Detail |
|---|---|
| Protection | 10 years from filing date |
| Subject matter | Product shape, structure, or combination thereof only |
| Examination | Formal examination only (no substantive examination) |
| Inventive step | Lower than invention patent |
| Timeline | 6-8 months to grant |
| Claims | Apparatus/device claims only. NO method claims. |
| Restriction | CN jurisdiction only |
Patent drafting is a long task that may trigger context compaction. Persist state to patent/PATENT_STATE.json after each phase:
{
"phase": 3,
"jurisdiction": "CN",
"patent_type": "invention",
"language": "Chinese",
"codex_thread_id": "019cfcf4-...",
"invention_title": "...",
"claims_count": 15,
"status": "in_progress",
"timestamp": "2026-04-10T15:00:00"
}
Write this file at the end of every phase. On invocation, check for this file:
status: "completed" -> fresh startstatus: "in_progress" and within 24h -> resume from saved phase (read output files to restore context)On completion, set "status": "completed".
Parse $ARGUMENTS to extract:
Then gather context from the project directory:
INVENTION_BRIEF.md if it exists (user filled in the template)IDEA_REPORT.md if it exists (from /idea-discovery -- can extract invention from research results)refine-logs/FINAL_PROPOSAL.md if it existsNARRATIVE_REPORT.md if it exists (research results that may be patentable)patent/PATENT_STATE.json (resume from prior interrupted run)If insufficient context exists:
INVENTION_BRIEF.mdIf the input is conversational (not a structured brief), parse the description into the invention brief structure and write patent/INVENTION_BRIEF.md for downstream phases.
Invoke /prior-art-search:
/prior-art-search "patent/INVENTION_BRIEF.md"
This searches patent databases (Google Patents, Espacenet) and academic literature for relevant prior art.
Invoke /patent-novelty-check:
/patent-novelty-check "patent/INVENTION_BRIEF.md"
This assesses novelty and non-obviousness against the prior art found in step 1.1.
🚦 Checkpoint: Present the prior art landscape and novelty assessment:
Prior art search complete:
- [X] patent references found
- [Y] non-patent literature references found
- Closest prior art: [reference] -- [why it's closest]
- Novelty assessment: [PATENTABLE / PATENTABLE WITH AMENDMENTS / NOT PATENTABLE]
- Key risk areas: [list]
Ready to proceed with invention structuring?
⛔ STOP HERE and wait for user response. Do NOT auto-proceed unless AUTO_PROCEED=true.
Options:
patent/DRAFT_NOTES.mdState: Write PATENT_STATE.json with phase: 1.
Invoke /invention-structuring:
/invention-structuring "patent/INVENTION_BRIEF.md"
This decomposes the invention into core inventive concept, supporting features, and optional features. Produces patent/INVENTION_DISCLOSURE.md.
Invoke /claims-drafting:
/claims-drafting "patent/INVENTION_DISCLOSURE.md"
This drafts the claims hierarchy -- the most critical part of the patent. Produces patent/CLAIMS.md.
🚦 Checkpoint: Present the invention structure and claims:
Invention structured:
- Core inventive concept: [summary]
- Claim categories: [method, system, etc.]
- Claims drafted: [X] independent + [Y] dependent = [Z] total
- Independent claim 1 (broadest): [first 50 words of claim 1]
- Examiner review score: [X]/10
The claims define the legal scope of protection. Please review before proceeding to specification.
⛔ STOP HERE and wait for user response. Do NOT auto-proceed unless AUTO_PROCEED=true.
Options:
State: Write PATENT_STATE.json with phase: 2.
Invoke /specification-writing:
/specification-writing "patent/CLAIMS.md"
This writes the full specification section by section. Internally invokes /figure-description (if user-provided figures exist) and /embodiment-description for the detailed description. The specification-writing skill handles figure processing and embodiment writing as sub-skills.
🚦 Checkpoint: Present the specification overview:
Specification written:
- Title: [title]
- Sections: Technical Field, Background, Summary, Drawings Description, Detailed Description, Abstract
- Embodiments: [X]
- Reference numerals: [Y] components mapped
- Abstract length: [Z] words (limit: [jurisdiction limit])
- Claim support: [all elements covered / X elements missing]
Ready to proceed to review?
⛔ STOP HERE and wait for user response.
State: Write PATENT_STATE.json with phase: 3.
Invoke /patent-review:
/patent-review "patent/"
This runs 2 rounds of examiner-style review via GPT-5.6-Sol xhigh. The examiner evaluates clarity, written description, enablement, novelty, non-obviousness, and claim scope.
State: Write PATENT_STATE.json with phase: 4 and review score.
Invoke /jurisdiction-format:
/jurisdiction-format "patent/"
This compiles the application into the target jurisdiction format(s).
| Output | Location | Description |
|---|---|---|
| CN: 权利要求书 | patent/output/CN/ | Claims in CNIPA format |
| CN: 说明书 | patent/output/CN/ | Description in CNIPA format |
| CN: 说明书摘要 | patent/output/CN/ | Abstract (CN) |
| US: Claims | patent/output/US/ | Claims in USPTO format |
| US: Specification | patent/output/US/ | Description in USPTO format |
| US: Abstract | patent/output/US/ | Abstract (US) |
| EP: Claims | patent/output/EP/ | Claims in EPO format |
| EP: Description | patent/output/EP/ | Description in EPO format |
| EP: Abstract | patent/output/EP/ | Abstract (EP) |
## Patent Pipeline Complete
### Application Summary
- Title: [invention title]
- Jurisdiction: [CN/US/EP/ALL]
- Patent Type: [Invention / Utility Model]
- Language: [Chinese/English]
- Total Claims: [X] independent + [Y] dependent
### Pipeline Scores
| Phase | Score |
|-------|-------|
| Prior Art Search | [completeness assessment] |
| Novelty Assessment | [PATENTABLE/PATENTABLE WITH AMENDMENTS/NOT PATENTABLE] |
| Examiner Review Round 1 | [X]/10 |
| Examiner Review Round 2 | [Y]/10 |
| Final | [Z]/10 |
### Output Files
[Table of all generated files with paths]
### Next Steps
- [ ] Have a patent attorney review the application
- [ ] Conduct professional prior art search (this tool's search is preliminary)
- [ ] Prepare formal drawings (if user figures need professional rendering)
- [ ] File with the patent office
- [ ] For utility model (CN): formal examination typically takes 6-8 months
- [ ] For invention patent: substantive examination may take 2-4 years
State: Write PATENT_STATE.json with phase: 5, status: "completed".
cat <<'EOF' heredoc.The patent pipeline can start from multiple entry points:
User describes invention directly ──→ /patent-pipeline
/idea-discovery produces IDEA_REPORT.md ──→ /patent-pipeline (extract patentable aspects)
/research-refine produces FINAL_PROPOSAL.md ──→ /patent-pipeline (from refined research idea)
/auto-review-loop produces strong results ──→ /patent-pipeline (patent the method)
Built on the ARIS (Auto-claude-code-research-in-sleep) skill architecture. Patent writing principles adapted from MPEP (US), CN Patent Examination Guidelines (CN), and EPO Guidelines for Examination (EP).
Frequently asked questions
Draft a complete patent application based on: $ARGUMENTS
The source record exposes this install command: npx skills add https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep --skill "skills/skills-codex/patent-pipeline". Inspect the command and pinned source before running it.
Static rules flagged write-files in the source; the page lists the matching lines and excerpts.
Alternatives
wanshuiyin/Auto-claude-code-research-in-sleep
Use it for design and operations tasks; the detail page covers purpose, installation, and practical steps.
prowler-cloud/prowler
PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing index usage statistics, reindexing, dropping indexes, or working with partitioned table indexes. Also trigger when discussing index strategies, partial indexes, or index maintenance
oaustegard/claude-skills
Generate hierarchical _FEATURES.md files that describe what a codebase DOES from a user/consumer perspective, anchored to source symbols via tree-sitting. Supports large complex codebases through feature-driven decomposition into sub-feature files. Uses a multi-pass synthesis: orientation → detail → overview rewrite. Use when someone says "what does this do", "document features", "feature inventory", "_FEATURES.md", or needs to understand a codebase's purpose before modifying it. Complements tre
HKUDS/Vibe-Trading
Create, modify, and optimize quantitative trading strategies, then backtest and evaluate them.