Patent DrafterSAFE
Overview
An agent skill published by revfactory.
459e1bb8f76eOBSERVED · 2026-10-12What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
---
name: patent-drafter
description: "A full patent specification drafting pipeline. An agent team collaborates to generate prior art search, claims, specification, and drawing descriptions in a single pass. Use this skill for contexts such as 'write a patent specification', 'patent application', 'invention patent', 'draft claims', 'prior art search', 'patent draft', 'patent specification draft', 'convert invention report to patent', 'turn an idea into a patent', and other patent specification drafting tasks. Note: Actual patent office filing, patent examination responses (opinion statements/amendments), patent litigation, and international filing (PCT/Paris Convention) practice are outside the scope of this skill."
---
# Patent Drafter — Patent Specification Drafting Pipeline
Converts an invention's technical idea into a systematic patent specification set.
## Execution Mode
**Agent Team** — 5 agents communicate directly via SendMessage and cross-verify each other's work.
## Agent Composition
| Agent | File | Role | Type |
|-------|------|------|------|
| prior-art-researcher | `.claude/agents/prior-art-researcher.md` | Prior art search, novelty/inventive step analysis | general-purpose |
| claim-drafter | `.claude/agents/claim-drafter.md` | Independent/dependent claim drafting, claim scope design | general-purpose |
| specification-writer | `.claude/agents/specification-writer.md` | Detailed description of invention, embodiment writing | general-purpose |
| drawing-designer | `.claude/agents/drawing-designer.md` | Drawing composition, reference numeral descriptions | general-purpose |
| patent-reviewer | `.claude/agents/patent-reviewer.md` | Consistency cross-verification, description deficiency check | general-purpose |
## Workflow
### Phase 1: Preparation (Performed Directly by Orchestrator)
1. Extract from user input:
- **Title of Invention**: Technical title
- **Technical Field**: The field to which the invention belongs
- **Invention Overview**: Core technical concept, components, operating principles
- **Problem to be Solved**: Problems with existing technology and the problem to be solved
- **Existing Materials** (optional): Invention report, technical documents, prototype information
2. Create the `_workspace/` directory in the project root
3. Organize the input and save to `_workspace/00_input.md`
4. Determine the **execution mode** based on the requested scope
### Phase 2: Team Assembly and Execution
| Order | Task | Owner | Dependencies | Output |
|-------|------|-------|-------------|--------|
| 1 | Prior Art Search | prior-art-researcher | None | `_workspace/01_prior_art_report.md` |
| 2 | Claim Drafting | claim-drafter | Task 1 | `_workspace/02_claims.md` |
| 3a | Specification Writing | specification-writer | Tasks 1, 2 | `_workspace/03_specification.md` |
| 3b | Drawing Design | drawing-designer | Task 2 | `_workspace/04_drawings.md` |
| 4 | Patent Review | patent-reviewer | Tasks 1, 2, 3a, 3b | `_workspace/05_review_report.md` |
Tasks 3a (Specification) and 3b (Drawing) are executed **in parallel**. Both depend on claims, so they can start simultaneously after Task 2 is complete. However, both sides communicate for reference numeral coordination.
**Inter-agent Communication Flow:**
- prior-art-researcher completes -> Delivers differentiation points and design-around direction to claim-drafter
- claim-drafter completes -> Delivers elements and terms to specification-writer, structure to drawing-designer
- specification-writer <-> drawing-designer: Mutual coordination of reference numeral system
- patent-reviewer cross-verifies all deliverables. If Red must-fix items found, requests revision from relevant agent (up to 2 times)
### Phase 3: Integration and Final Deliverables
1. Review all files in `_workspace/`
2. Verify that all Red must-fix items from the review report have been addressed
3. Report the final summary to the user:
- Prior Art Search Report — `01_prior_art_report.md`
- Claim Set — `02_claims.md`
- Detailed Description of Invention — `03_specification.md`
- Drawing Description — `04_drawings.md`
- Review Report — `05_review_report.md`
## Modes by Request Scope
| User Request Pattern | Execution Mode | Agents Deployed |
|---------------------|----------------|-----------------|
| "Write the full patent specification" | **Full Pipeline** | All 5 agents |
| "Just search prior art" | **Search Mode** | prior-art-researcher only |
| "Just draft claims" | **Claims Mode** | claim-drafter + reviewer |
| "Write spec from these claims" (existing claims) | **Specification Mode** | specification-writer + drawing-designer + reviewer |
| "Review this specification" | **Review Mode** | patent-reviewer only |
## Data Transfer Protocol
| Strategy | Method | Purpose |
|----------|--------|---------|
| File-based | `_workspace/` directory | Storing and sharing main deliverables |
| Message-based | SendMessage | Real-time delivery of key info, numeral coordination, revision requests |
File naming convention: `{order}_{agent}_{deliverable}.{extension}`
## Error Handling
| Error Type | Strategy |
|-----------|----------|
| Web search failure | Prior art researcher works based on general knowledge, notes "DB search not performed" |
| Insufficient invention info | Request additional info from user, draft with minimum information |
| Agent failure | Retry once -> if failed, proceed without that deliverable, note omission in review report |
| Red items found in review | Request revision from relevant agent -> rework -> re-verify (up to 2 times) |
| Reference numeral mismatch | drawing-designer and specification-writer mutually coordinate |
## Test Scenarios
### Normal Flow
**Prompt**: "Write a patent specification for an IoT-based smart flowerpot automatic watering system. It measures with a soil moisture sensor and AI adjusts the watering amount based on plant type."
**Expected Results**:
- Prior Art Search: 5+ prior pTrust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | NA |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (0)
No findings outside the package's declared scope.
Gates applied: no_behavioural_pass.
459e1bb8f76efull audit observations/trust-audit/skill/revfactory__patent-drafter.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-12 | 459e1bb8f76e | SAFE | B | 89 | first audit |
Questions
Is Patent Drafter safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Patent Drafter access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
How current is this page?
The grade is for one exact copy of the source (459e1bb8f76e), read on 2026-10-12. The repository is watched, and a new audit runs when it changes — this is the first audit.