figure-description — скилл для Claude Code: описания патентных фигур
Разбирает ваши патентные изображения, расставляет ссылочные позиции и пишет формальные описания фигур. Пригодится, когда чертежи уже нарисованы, а «附图说明» ещё нет.
npx skills add wanshuiyin/Auto-claude-code-research-in-sleep --skill figure-description -a claude-codeЧто делает figure-description
Скилл ищет файлы изображений (PNG, JPG, SVG, PDF) в каталоге проекта — сначала в patent/figures/, затем в figures/ и в корне — и читает их через инструмент Read. Для каждой фигуры он определяет компоненты, связи между ними и порядок шагов, если перед ним блок-схема.
Дальше идёт нумерация по сериям: FIG. 1 получает позиции 100–199, FIG. 2 — 200–299 и так далее. Один и тот же узел в разных фигурах остаётся под тем же номером. Описания пишутся в двух форматах на выбор — китайском для CN и английском для US/EP. На выходе два файла: patent/figures/figure_descriptions.md и patent/figures/numeral_index.md с таблицей «позиция — компонент — фигура — пункт формулы».
Сверка с формулой обязательна: если элементу пункта не хватает чертежа или номера, скилл ставит пометку [MISSING FIGURE: ...] или [MISSING NUMERAL: ...]. Сами изображения он не трогает, только описывает. Чтобы разметка сошлась с текстом заявки, нужны patent/INVENTION_DISCLOSURE.md и patent/CLAIMS.md. Без них привязывать номера к пунктам не к чему.
Какие задачи решает
- пронумеровать компоненты на чертежах по сериям 100, 200, 300
- написать формальные описания фигур для заявки
- сверить каждый элемент формулы с номером на фигуре
- найти элементы формулы, для которых не хватает чертежа
- собрать сквозной индекс ссылочных позиций
Примеры запросов агенту
- Обработай фигуры из
patent/figures/и напиши описания с ссылочными позициями - Проверь, что у каждого элемента из
patent/CLAIMS.mdесть номер на чертеже - Сделай индекс позиций для FIG. 1 и FIG. 2 в формате US
Как установить figure-description
1Через Skills CLI (Vercel)
npx skills add wanshuiyin/Auto-claude-code-research-in-sleep --skill figure-description -a claude-code2Вручную: положить файлы
~/.claude/skills/figure-description/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/figure-description/
1Через Skills CLI (Vercel)
npx skills add wanshuiyin/Auto-claude-code-research-in-sleep --skill figure-description -a codex2Вручную: положить файлы
.agents/skills/figure-description/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add wanshuiyin/Auto-claude-code-research-in-sleep --skill figure-description -a cursor2Вручную: положить файлы
.cursor/skills/figure-description/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install wanshuiyin/Auto-claude-code-research-in-sleep figure-description2Вручную: положить файлы
.github/skills/figure-description/SKILL.md1Через Skills CLI (Vercel)
npx skills add wanshuiyin/Auto-claude-code-research-in-sleep --skill figure-description -a gemini-cli2Командой платформы
gemini skills install https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep --path skills/figure-descriptionВручную: положить файлы
.devin/skills/figure-description/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add wanshuiyin/Auto-claude-code-research-in-sleep --skill figure-description -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о figure-description
Как установить figure-description в Claude Code?
Выполните npx skills add wanshuiyin/Auto-claude-code-research-in-sleep --skill figure-description -a claude-code, затем откройте ~/.claude/skills/figure-description/SKILL.md.
Что делает figure-description?
Читает патентные изображения, присваивает компонентам ссылочные позиции по сериям и генерирует описания фигур вместе с индексом позиций.
Какие файлы нужны для работы?
Изображения фигур в проекте, а также patent/INVENTION_DISCLOSURE.md и patent/CLAIMS.md — по ним скилл понимает состав компонентов и сверяет номера с пунктами формулы.
Исходный текст
SKILL.md · MIT
---
name: figure-description
description: "Process user-provided patent figures and generate formal drawing descriptions. Use when user says \"附图处理\", \"figure description\", \"附图说明\", \"drawings description\", or wants to describe patent figures with reference numerals."
argument-hint: "[figure-directory-or-figure-list]"
allowed-tools: Bash(*), Read, Write, Edit, Grep, Glob, WebSearch, WebFetch
---
# Figure Description for Patents
Process patent figures and generate drawing descriptions based on: **$ARGUMENTS**
Unlike `/paper-figure` which generates data plots, this skill processes user-provided technical diagrams and assigns reference numerals.
## Constants
- `FIGURE_DIR = "patent/figures/"` — Output directory for figure descriptions
- `REFERENCE_NUMERAL_PREFIX = 100` — Starting numeral for first figure's components
- `NUMERAL_SERIES = 100` — Each figure uses a separate 100-series (Fig 1: 100-199, Fig 2: 200-299, etc.)
## Inputs
1. User-provided figures (PNG, JPG, SVG, PDF) — search for them in the project directory
2. `patent/INVENTION_DISCLOSURE.md` — for understanding what components to identify
3. `patent/CLAIMS.md` — for mapping numerals to claim elements
## Workflow
### Step 1: Discover Figures
1. Search the project directory for figure files:
- Check `patent/figures/`, `figures/`, root directory
- Look for PNG, JPG, SVG, PDF files
- Check INVENTION_BRIEF.md or INVENTION_DISCLOSURE.md for figure references
2. List all discovered figures with their paths
3. If figures are missing that claims require, note them as `[MISSING: description needed]`
### Step 2: Analyze Each Figure
For each figure found:
1. **Read the image** using the Read tool (supports image files)
2. **Identify components**: What labeled or visually distinct components are shown?
3. **Identify connections**: How do components relate to each other?
4. **Identify flow**: If it's a flowchart or sequence, what is the step order?
### Step 3: Assign Reference Numerals
For each figure, assign numerals using the series convention:
| Figure | Numeral Range |
|--------|-------------|
| FIG. 1 | 100-199 |
| FIG. 2 | 200-299 |
| FIG. 3 | 300-399 |
For each identified component:
- Assign the next available numeral in the series
- Cross-reference to the claim elements it supports
- Note if a component appears in multiple figures (use same numeral across figures)
### Step 4: Generate Drawing Descriptions
Write formal drawing descriptions (附图说明):
**For CN jurisdiction (Chinese)**:
```
图1是[发明名称]的系统结构示意图;
图2是[发明名称]的方法流程图;
图3是[具体组件]的详细结构示意图;
```
**For US/EP jurisdiction (English)**:
```
FIG. 1 is a block diagram illustrating the system architecture according to one embodiment;
FIG. 2 is a flowchart illustrating the method steps according to one embodiment;
FIG. 3 is a detailed view of the processing module of FIG. 1;
```
### Step 5: Generate Reference Numeral Index
Create a complete mapping:
```markdown
## Reference Numeral Index
| Numeral | Component Name | Figure(s) | Claim Element |
|---------|---------------|-----------|---------------|
| 100 | System | FIG. 1 | Claim X preamble |
| 102 | Processor | FIG. 1 | Claim X, element 1 |
| 104 | Memory | FIG. 1 | Claim X, element 2 |
| 106 | Communication bus | FIG. 1 | Claim X, element 3 |
| 200 | Method | FIG. 2 | Claim 1 preamble |
| 202 | Receiving step | FIG. 2 | Claim 1, step 1 |
| 204 | Processing step | FIG. 2 | Claim 1, step 2 |
```
### Step 6: Cross-Reference to Claims
Verify that every claim element has at least one reference numeral:
| Claim Element | Figure | Numeral | Status |
|---------------|--------|---------|--------|
| [element] | [which fig] | [numeral] | Covered / [MISSING] |
If any claim element has no corresponding figure or numeral, flag it:
- `[MISSING FIGURE: Need a diagram showing {element description}]`
- `[MISSING NUMERAL: Component {name} in figure {X} needs a numeral]`
### Step 7: Output
Write `patent/figures/figure_descriptions.md`:
```markdown
## Figure Descriptions
### FIG. 1 — [Description]
[Formal one-paragraph description with all reference numerals]
### FIG. 2 — [Description]
[Formal one-paragraph description with all reference numerals]
...
```
Write `patent/figures/numeral_index.md`:
```markdown
## Reference Numeral Index
[Complete table of all numerals, components, figures, and claim mappings]
```
## Key Rules
- Every component in every figure must have a reference numeral.
- Every reference numeral must be explained in the specification.
- Numeral series must be consistent: 100-series for FIG. 1, 200-series for FIG. 2.
- If the same component appears in multiple figures, use the SAME numeral.
- Do NOT modify user-provided figures -- only describe them.
- Flag missing figures that the claims require but the user has not provided.
- Drawing descriptions are one sentence each, in a consistent format.
© wanshuiyin · MIT · wanshuiyin/Auto-claude-code-research-in-sleep