quality-gate — Claude Code skill: patent disclosure checks
Checks a patent draft for missing sections, weak evidence and broken citations. Useful once the text exists and you need to spot gaps before filing.
npx skills add illusionaireal/oh-my-patent --skill quality-gate -a claude-codeWhat quality-gate does
The skill walks a patent draft through a checklist of mandatory sections: title, technical field, background, summary, embodiments and claims. Miss one and it reports an error. Abstract and drawings description sit in a second tier — recommended, not required. A third tier holds informational notes, such as a suggestion about how many claims to write.
Under the hood it is a TypeScript class, QualityChecker, imported from ../skills/quality-gate.ts. Two calls do the work: check(content) hands back the list of issues, getScore(content) returns a number. Scoring starts at 100. An error costs 20 points, a warning 5, an informational note 2 — so one absent claims section outweighs several small remarks.
The import path is relative, which means the skill expects to run inside the oh-my-patent repository; pulled out on its own, the code will not resolve. Worth installing if your patent drafts live in Markdown and you want a machine pass before a human reads them.
What it helps with
- catch mandatory sections missing from a patent draft
- get a numeric readiness score for the text
- separate hard errors from soft recommendations
- check whether the claims section is long enough
- run a disclosure check without leaving the editor
Example prompts for the agent
- Run the quality-gate skill over
patent-draft.mdand list every error - Score the current document for disclosure completeness
- Which required sections are still empty in my patent draft?
How to install quality-gate
1Skills CLI (Vercel)
npx skills add illusionaireal/oh-my-patent --skill quality-gate -a claude-code2Manually: put the files in place
~/.claude/skills/quality-gate/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/quality-gate/
1Skills CLI (Vercel)
npx skills add illusionaireal/oh-my-patent --skill quality-gate -a codex2Manually: put the files in place
.agents/skills/quality-gate/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add illusionaireal/oh-my-patent --skill quality-gate -a cursor2Manually: put the files in place
.cursor/skills/quality-gate/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install illusionaireal/oh-my-patent quality-gate2Manually: put the files in place
.github/skills/quality-gate/SKILL.md1Skills CLI (Vercel)
npx skills add illusionaireal/oh-my-patent --skill quality-gate -a gemini-cli2Platform CLI
gemini skills install https://github.com/illusionaireal/oh-my-patent --path src/skills/quality-gateManually: put the files in place
.devin/skills/quality-gate/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add illusionaireal/oh-my-patent --skill quality-gate -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about quality-gate
How do I install quality-gate in Claude Code?
Run npx skills add illusionaireal/oh-my-patent --skill quality-gate -a claude-code. The skill lands at ~/.claude/skills/quality-gate/SKILL.md.
What does quality-gate do?
It validates a patent disclosure: flags absent required sections, marks recommended ones, and produces a score starting from 100 points.
What does the skill need to run?
QualityChecker is imported from ../skills/quality-gate.ts, so the skill has to be used inside the oh-my-patent repository, where that relative path resolves.
Source text
SKILL.md · MIT
---
name: quality-gate
description: Use when validating patent disclosure completeness, evidence quality, citation integrity, and workflow exit criteria.
---
# Quality Gate Skill
Validates patent disclosure completeness and quality.
## Usage
Import from `../skills/quality-gate.ts`:
```typescript
import { QualityChecker } from '../skills/quality-gate';
const checker = new QualityChecker();
const issues = checker.check(content);
const score = checker.getScore(content);
```
## Checks
### Required (ERROR)
- Title (发明名称)
- Technical Field (技术领域)
- Background (背景技术)
- Summary (发明内容)
- Embodiments (具体实施方式)
- Claims (权利要求书)
### Recommended (WARNING)
- Abstract (摘要)
- Drawings Description (附图说明)
### Informational (INFO)
- Claim count recommendation
## Score Calculation
- ERROR: -20 points
- WARNING: -5 points
- INFO: -2 points
- Base: 100 points
© illusionaireal · MIT · illusionaireal/oh-my-patent