code2patent SKILL.md skillA
code2patent from cat-xierluo/legal-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add cat-xierluo/legal-skills/code2patent@v1.6.0Pins v1.6.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- cat-xierluo/legal-skills
- Path
skills/code2patent/SKILL.md- Versions recorded
- 5
- Latest version
- v1.6.0, committed Jun 22, 2026
- First version recorded
- Apr 5, 2026
- Size
- 12,019 bytes
- Repository stars
- 775
- License
- none declared
从已开发代码项目中提取技术实现证据,围绕候选专利方案生成算法/软件类说明书式技术交底书,并以“权利要求布局卡 → 发明专利初稿”两步法继续生成接近可申报版的中国发明专利起草材料。触发场景包括:读取代码仓库后撰写技术交底书、将人工总结的专利方案映射到具体实现、从代码中挖掘可专利技术方案、为专利代理师准备权利要求布局和发明专利初稿。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 代码仓库转专利交付
## 定位
本技能用于把已经开发完成的代码项目整理成专利代理师可继续起草和判断的材料。核心目标不是把代码翻译成专利语言,而是把真实实现、技术问题、技术方案、技术效果和证据位置整理成可追溯的发明专利底稿。
默认法域为中国发明专利,主要适用于软件、算法、Agent 系统、调度优化、状态表示、鉴权、记忆、上下文编排和文件系统等以代码实现为主的方案。
推荐主链路:
```text
用户材料 + 代码仓库
↓
输入成熟度判断 + archive 归档目录
↓
项目边界与依赖画像
↓
方案-代码证据映射
↓
算法/软件类说明书式技术交底书
↓
权利要求布局卡 + 权利要求-证据矩阵
↓
发明专利初稿 + 初稿自检表
```
## 启动闸门
开始读取代码前,先确认:
1. 是否已有候选专利方案清单。
2. 候选清单是仅有名称,还是已有技术问题、核心实现、技术效果和代码范围。
3. 本次目标是技术交底书、权利要求布局卡、发明专利初稿,还是候选方案挖掘。
4. 是否有 PRD、需求说明、会议纪要、客户交底书模板、既有申请样式或代理师格式要求。
5. 本次归档主题是什么,用于创建 `archive/YYYY-MM-DD-主题/`。
**专利名称不是技术方案。** 如果用户只给标题或一句话方向,不要直接写交底书或初稿。
## 输入成熟度分流
| 等级 | 输入状态 | 默认动作 |
|------|----------|----------|
| T0 名称清单 | 只有专利名称、标题或一句话方向 | 输出《专利名称反向澄清卡》,等待用户确认 |
| T1 方向清单 | 有名称和业务方向,但缺少技术问题、实现路径或效果 | 先补齐候选解释、代码证据方向和待确认问题 |
| T2 技术方案清单 | 已有技术问题、核心实现、目标效果和初步模块范围 | 进入定向检索,生成代码证据映射和交底书 |
| T3 证据型方案清单 | 已有技术方案、代码路径、关键流程和证据等级 | 复核证据后继续生成交底书、布局卡或初稿 |
| 无清单 | 用户希望从代码中挖掘专利点 | 先输出候选可专利方案清单,人工筛选后再起草 |
未经人工确认的 T0/T1 或自动挖掘结果,只能作为候选方向,不得写成客户已确认的技术方案。
## 材料优先级
执行时先读用户提供材料,再读代码。建议顺序:
1. 候选专利方案清单或标题清单
2. PRD、产品方案、需求说明
3. 沟通纪要、录音转写、客户补充说明
4. 技术交底书模板、既有申请文件、代理师格式要求
5. 代码仓库 README、架构文档、目录说明
6. 源代码、配置、测试、部署和运行时文件
…Read the whole file at its exact version.
How to install
mdr add cat-xierluo/legal-skills/code2patent@sha256:5106c8e306a6a250The line at the top of this page pins the label v1.6.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_debscnrbzxqd6ux6)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Apr 5, 2026 and Jun 22, 2026, about one every 19 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.6.0 latest | 2026-06-22 | bc5cab8 | 12,019 B | A | view · diff |
| v1.5.3 | 2026-05-28 | decb8b3 | 10,490 B | A | view · diff |
| v1.4.2 | 2026-04-15 | 3a71ace | 27,092 B | A | view · diff |
| v1.4.2 | 2026-04-06 | 6a29b30 | 27,099 B | A | view · diff |
| v1.4.1 | 2026-04-05 | 8798f2a | 26,874 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (12019 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
cat-xierluo/legal-skills · 775 stars · license none declared · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_debscnrbzxqd6ux6 GET https://markdownregistry.com/api/v1/resolve?ref=cat-xierluo/legal-skills/code2patent GET https://markdownregistry.com/api/v1/blob/5106c8e306a6a250da185d184c55068906ccc14fd2bfeae65b91d40619fb3d05
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.