Jurisdiction Format logo

Jurisdiction Format

CommunityPopular
wanshuiyin
jurisdiction-format

Compile patent application into jurisdiction-specific filing format. Use when user says "格式转换", "jurisdiction format", "国家格式", "compile patent", or wants formatted patent documents for CN/US/EP filing.

Overview

Publisherwanshuiyin
RepositoryAuto-claude-code-research-in-sleep
Skill namejurisdiction-format
Stars
16.3K
Forks
1.4K
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by wanshuiyin on GitHub. Read the source before you install it.

Installation

Install the Jurisdiction Format AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep.git /tmp/Auto-claude-code-research-in-sleep
mkdir -p .claude/skills
cp -r /tmp/Auto-claude-code-research-in-sleep/skills/jurisdiction-format .claude/skills/jurisdiction-format
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Jurisdiction Format in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Jurisdiction Format on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Jurisdiction Format is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Jurisdiction Format: Patent Filing Compilation

Compile the patent application into filing-ready format based on: $ARGUMENTS

Analogous to /paper-compile but for patent document formatting instead of LaTeX.

Constants

  • JURISDICTION = "auto" — From pipeline or args: CN, US, EP, ALL
  • PATENT_TYPE = "invention"invention (发明专利) or utility_model (实用新型, CN only)
  • OUTPUT_FORMAT = "markdown"markdown (for review) or docx (for filing, requires python-docx)
  • OUTPUT_DIR = "patent/output/" — Base output directory

Inputs

  1. patent/CLAIMS.md — drafted claims
  2. patent/specification/ — all specification sections (title, technical_field, background, summary, drawings_description, detailed_description, abstract)
  3. patent/figures/ — figure descriptions and numeral index
  4. patent/INVENTION_DISCLOSURE.md — for metadata

Shared References

Load ../shared-references/patent-format-cn.md for CNIPA document structure and formatting rules. Load ../shared-references/patent-format-us.md for USPTO document structure. Load ../shared-references/patent-format-ep.md for EPO document structure.

Workflow

Step 1: Determine Output Jurisdictions

From $ARGUMENTS or constant:

  • CN -> Generate CNIPA format only
  • US -> Generate USPTO format only
  • EP -> Generate EPO format only
  • ALL -> Generate all three formats

Step 2: Generate CN Format (if CN or ALL)

Output to patent/output/CN/:

权利要求书 (Claims)
  • Extract claims from patent/CLAIMS.md
  • Format per CNIPA conventions:
    • Independent claims: "1. 一种[主题]的方法,...其特征在于..."
    • Dependent claims: "2. 根据权利要求1所述的方法,其特征在于..."
  • Ensure Chinese terminology is correct (所述, 其特征在于, 包括, 等)
说明书 (Description)

Combine all specification sections in CNIPA order:

  1. 发明名称 (from title.md)
  2. 技术领域 (from technical_field.md)
  3. 背景技术 (from background.md)
  4. 发明内容 (from summary.md — split into 技术问题/技术方案/有益效果)
  5. 附图说明 (from drawings_description.md)
  6. 具体实施方式 (from detailed_description.md)
说明书摘要 (Abstract)
  • Extract from abstract.md
  • Verify word count <= 300 Chinese characters
  • Include most representative claim
Format as markdown or docx

If OUTPUT_FORMAT = "markdown":

  • Write as separate .md files with clear section headers

If OUTPUT_FORMAT = "docx":

  • Use python-docx to create Word documents matching CNIPA templates
  • Set font to 宋体 (SimSun) for body, 黑体 (SimHei) for headers
  • Standard margins (上下 2.54cm, 左右 3.17cm)

Step 3: Generate US Format (if US or ALL)

Output to patent/output/US/:

Claims Section
  • Number all claims sequentially (1, 2, 3, ...)
  • Format per US conventions:
    • "1. A method for [purpose], comprising:"
    • "2. The method of claim 1, wherein..."
  • Ensure antecedent basis is correct ("a" -> "the")
Specification

Combine all sections in USPTO order:

  1. Title
  2. Cross-Reference to Related Applications (if any)
  3. Field of the Invention
  4. Background of the Invention
  5. Brief Summary of the Invention
  6. Brief Description of the Drawings
  7. Detailed Description of Preferred Embodiments
  8. Abstract

Format drawings references as "FIG. 1" (not "Figure 1").

Abstract
  • Extract from abstract.md
  • Verify word count <= 150 words / 2500 characters
Application Data Sheet (ADS) Template

Generate a skeleton ADS with:

  • Title
  • Inventor information (placeholder)
  • Application type
  • Entity status (small/micro/large)

Step 4: Generate EP Format (if EP or ALL)

Output to patent/output/EP/:

Claims Section
  • Format in two-part form per Rule 43(1) EPC:
    • "1. A method for [purpose], comprising [known features], characterised in that [inventive features]."
  • Ensure the "characterised in that" phrase is present in all independent claims
Description

Combine all sections in EPO Rule 42 order:

  1. Title of the Invention
  2. Technical Field
  3. Background Art
  4. Disclosure of the Invention (problem-solution-advantage)
  5. Description of Embodiments
  6. Brief Description of Drawings
  7. Reference Signs List (mandatory at EPO)

Format drawings references as "FIG. 1" or "Figure 1".

Abstract
  • Extract from abstract.md
  • ~150 words limit

Step 5: Consistency Check

Verify across all generated formats:

  • All claims are present in every format
  • Claim numbering is consistent
  • Reference numerals match specification across all formats
  • No format-specific requirements are violated
  • Language is correct for each jurisdiction (Chinese for CN, English for US/EP)

Step 6: Output Summary

Write patent/output/OUTPUT_SUMMARY.md:

markdown
## Patent Filing Documents

### Generated Files

#### CN (CNIPA)
| File | Description | Status |
|------|-------------|--------|
| 权利要求书.md | Claims in CN format | Complete |
| 说明书.md | Description in CN format | Complete |
| 说明书摘要.md | Abstract (CN) | Complete |

#### US (USPTO)
| File | Description | Status |
|------|-------------|--------|
| claims.md | Claims in US format | Complete |
| specification.md | Description in US format | Complete |
| abstract.md | Abstract (US) | Complete |
| ads_template.md | Application Data Sheet skeleton | Complete |

#### EP (EPO)
| File | Description | Status |
|------|-------------|--------|
| claims.md | Claims in EP format | Complete |
| description.md | Description in EP format | Complete |
| abstract.md | Abstract (EP) | Complete |

### Consistency Check
- [ ] All claims present in all formats
- [ ] Reference numerals consistent
- [ ] Language correct per jurisdiction

Key Rules

  • Never mix jurisdiction formats (e.g., do not include "其特征在于" in US claims).
  • Claims must be identical in technical content across jurisdictions, only the format differs.
  • For CN output, verify Chinese patent terminology is correct and consistent.
  • For EP output, the two-part claim form is mandatory -- every independent claim must have "characterised in that."
  • Abstract word limits are jurisdiction-specific and must be verified.
  • The jurisdiction-format skill does NOT modify claim content -- it reformats existing content only.
  • If OUTPUT_FORMAT = "docx", check that python-docx is available; if not, fall back to markdown.

Frequently asked questions

What does the Jurisdiction Format AI skill do?

Compile patent application into jurisdiction-specific filing format. Use when user says "格式转换", "jurisdiction format", "国家格式", "compile patent", or wants formatted patent documents for CN/US/EP filing.

Why use Jurisdiction Format on TypingMind?

Because you install it once and use it with any model. Jurisdiction Format is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Jurisdiction Format in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/tree/main/skills/jurisdiction-format. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Jurisdiction Format?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Jurisdiction Format?

As many as you like. As long as a model supports skills, you can use Jurisdiction Format with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Jurisdiction Format AI skill free?

Yes. It is published on GitHub by wanshuiyin under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇