Agent skill

Patent Disclosure Quality Gate

by illusionaireal in illusionaireal/oh-my-patent

Scores a patent disclosure for completeness by checking required, recommended and informational sections and deducting points, using a TypeScript QualityChecker.

MITAuto-check passedLegal & Compliance

Install Patent Disclosure Quality Gate

skills CLI
$ npx skills add illusionaireal/oh-my-patent --skill quality-gate -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install illusionaireal/oh-my-patent quality-gate --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/illusionaireal/oh-my-patent.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/skills/quality-gate .claude/skills/quality-gate && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
quality-gate
GitHub stars
104
Token cost
~216 tokens
SKILL.md length
55 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Scores a patent disclosure for completeness by checking required, recommended and informational sections and deducting points, using a TypeScript QualityChecker.

  • Checking a patent disclosure draft for missing required sections
  • SKILL.md covers Usage, Checks and Score Calculation
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Scoring disclosure quality before moving to the next workflow stage

What it does

The skill validates a patent disclosure with a `QualityChecker` class imported from the project's `quality-gate` TypeScript module. Six sections are required and raise errors when missing: title, technical field, background, summary, embodiments and claims, each named in both English and Chinese. Abstract and drawings description are recommended and raise warnings, and a claim count recommendation is informational.

The score starts at 100 and loses 20 points per error, 5 per warning and 2 per informational finding. The description also mentions evidence quality, citation integrity and workflow exit criteria, but the excerpt shows only the section checks.

When your agent uses it

  • Checking a patent disclosure draft for missing required sections
  • Scoring disclosure quality before moving to the next workflow stage
  • Deciding whether a draft is ready to leave a patent drafting workflow

Example prompts

  • “Run the quality gate on my patent disclosure draft and list the missing sections.”
  • “What score does this disclosure get if it has no drawings description?”
  • “Check that the draft has a title, background, embodiments and claims.”

Requirements

  • A TypeScript project that includes the quality-gate module

What it can do on your machine

Read from SKILL.md and the folder at commit f44755c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Patent Disclosure Quality Gate loads about 216 tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 55 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~33
When it runs · the whole SKILL.md, loaded when a task matches
~216

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from illusionaireal/oh-my-patent at commit f44755c, republished under its MIT licence (© illusionaireal). 55 words, ~216 tokens.

Download SKILL.mdSave it as .claude/skills/quality-gate/SKILL.md (or your agent's skills folder).
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 (权利要求书)
  • Abstract (摘要)
  • Drawings Description (附图说明)
Informational (INFO)
  • Claim count recommendation

Score Calculation

  • ERROR: -20 points
  • WARNING: -5 points
  • INFO: -2 points
  • Base: 100 points

© illusionaireal, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in src/skills/quality-gate of illusionaireal/oh-my-patent.

Open the folder on GitHubat commit f44755c

Compare with similar skills

Patent Disclosure Quality Gate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Patent Disclosure Quality Gate compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Patent Disclosure Quality Gate this skillillusionaireal/oh-my-patent104—~216Automated safety check: PassMIT
Test Writing WorkflowiOfficeAI/AionUi33k1 repos~1.2kAutomated safety check: PassApache-2.0
Frontend AI Guideshinpr/claude-code-workflows694—~3kAutomated safety check: PassMIT
Sonarcloud Reviewlucasvieirasilva/nx-plugins153—~2.7kAutomated safety check: NotesMIT
Michel Packmind Engineer ReviewPackmindHub/packmind318—~2.7kAutomated safety check: PassApache-2.0
Parse Error Logsmaslennikov-ig/claude-code-orchestrator-kit260—~1.5kAutomated safety check: PassCustom licence

Similar skills

  • Test Writing Workflow

    iOfficeAI/AionUi

    Sets the test-writing workflow for the repository: risk-first scenario lists, behavior-focused Vitest tests, a full run before each commit and a coverage target.

    33k GitHub starsUsed in 1 repo~1.2k tokens
    Testing & QAAuto-check passed
  • Frontend AI Guide

    shinpr/claude-code-workflows

    Applies React/TypeScript-specific technical decision criteria, anti-pattern detection, debugging, and frontend quality gates.

    694 GitHub stars~3k tokensUpdated 8 days ago
    DevelopmentAuto-check passed
  • Sonarcloud Review

    lucasvieirasilva/nx-plugins

    Fetches and triages SonarCloud findings (issues, security hotspots, quality gate) for the current pull request or branch of this repository via the SonarCloud Web API, summarizes them in a markdown…

    153 GitHub stars~2.7k tokensUpdated 11 days ago
    DevelopmentAuto-check: notes
  • Review an implemented GitHub issue the way a senior Packmind engineer would — the human-judgment checks that ESLint, the TypeScript compiler, and e2e tests cannot catch (authorization scoping…

    318 GitHub stars~2.7k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Parse Error Logs

    maslennikov-ig/claude-code-orchestrator-kit

    Parse build errors, test failures, type-check output, and validation logs into structured data.

    260 GitHub stars~1.5k tokensUpdated 7 mo ago
    Testing & QAAuto-check passed
  • Pump Testing

    nirholas/pump-fun-sdk

    Multi-language test infrastructure for the Pump SDK — Rust unit/integration/security/performance tests, TypeScript Jest tests, Python fuzz tests, shell test orchestration, Criterion benchmarks, and…

    134 GitHub stars~706 tokensUpdated today
    Testing & QAAuto-check passed

More from illusionaireal/oh-my-patent

  • Patent Brainstorm Path Tracker

    illusionaireal/oh-my-patent

    Records, branches and visualizes the rounds of a patent brainstorming session, scoring each candidate and letting you restore an abandoned idea.

    104 GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Prior-Art Evidence Cards

    illusionaireal/oh-my-patent

    Creates standardized evidence cards for patents, papers, standards and other prior-art references, saved as markdown files with required fields by source type.

    104 GitHub stars~516 tokensUpdated yesterday
    Auto-check passed
  • Patent Jurisdiction Rules

    illusionaireal/oh-my-patent

    Supplies rules for Chinese, US and PCT patent filings, including examination type, timelines, claim formats, fees and special requirements, through a small TypeScript module.

    104 GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed
  • Prior Art Search

    illusionaireal/oh-my-patent

    A skill your agent uses when searching patents and technical literature for prior art, novelty, or patentability assessment.

    104 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Patent Disclosure Drafting

    illusionaireal/oh-my-patent

    Turns technical ideas, documents or code into traceable patent disclosures, with search planning, patent review, figure drawing and the ability to resume a project.

    104 GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Disclosure Template

    illusionaireal/oh-my-patent

    A skill your agent uses when creating or validating a patent disclosure document against the required section template.

    104 GitHub stars~161 tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Patent Disclosure Quality Gate

What does Patent Disclosure Quality Gate do?

Scores a patent disclosure for completeness by checking required, recommended and informational sections and deducting points, using a TypeScript QualityChecker. The skill validates a patent disclosure with a `QualityChecker` class imported from the project's `quality-gate` TypeScript module. Six sections are required and raise errors when missing: title, technical field, background, summary, embodiments and claims, each named in both English and Chinese.

When should I use Patent Disclosure Quality Gate?

Patent Disclosure Quality Gate fits situations like: checking a patent disclosure draft for missing required sections; scoring disclosure quality before moving to the next workflow stage; deciding whether a draft is ready to leave a patent drafting workflow.

How do I install Patent Disclosure Quality Gate in Claude Code?

Run `npx skills add illusionaireal/oh-my-patent --skill quality-gate -a claude-code`. Or copy the skill folder (src/skills/quality-gate in illusionaireal/oh-my-patent) into .claude/skills/quality-gate in your project. Claude Code loads it when a task matches its description.

How do I install Patent Disclosure Quality Gate in Codex?

Run `npx skills add illusionaireal/oh-my-patent --skill quality-gate -a codex`. Or copy the skill folder (src/skills/quality-gate in illusionaireal/oh-my-patent) into .agents/skills/quality-gate in your project. Codex loads it when a task matches its description.

Can I use Patent Disclosure Quality Gate in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add illusionaireal/oh-my-patent --skill quality-gate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/quality-gate, .gemini/skills/quality-gate, .github/skills/quality-gate and .opencode/skills/quality-gate in your project.

What does Patent Disclosure Quality Gate need to run?

SKILL.md names no scripts, command-line tools or credentials: Patent Disclosure Quality Gate is instructions for the agent only. Our summary lists: A TypeScript project that includes the quality-gate module.

Does Patent Disclosure Quality Gate access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Patent Disclosure Quality Gate safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Patent Disclosure Quality Gate use?

Patent Disclosure Quality Gate is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Patent Disclosure Quality Gate use?

About 216 tokens (SKILL.md is roughly 864 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Patent Disclosure Quality Gate?

Skills that share tags, products or a category with Patent Disclosure Quality Gate: Test Writing Workflow (iOfficeAI/AionUi, 33k stars), Frontend AI Guide (shinpr/claude-code-workflows, 694 stars), Sonarcloud Review (lucasvieirasilva/nx-plugins, 153 stars) and Michel Packmind Engineer Review (PackmindHub/packmind, 318 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Patent Disclosure Quality Gate?

illusionaireal (a GitHub user) maintains it in illusionaireal/oh-my-patent, which has 104 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 9, 2026.

Source: illusionaireal/oh-my-patent on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.