skill2gene
- Repo stars 3,892
- Author updated Live
- Author repo mpx
- Domain
- AI
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @didi · no license declared
- Token usage
- Lean
- Setup complexity
- Plug-and-play
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- No special requirements
- Permissions
-
- Read-only
- Write / modify
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: skill2gene
description: 本 Skill 自身采用 Gene 理念编写——紧凑、控制导向、面向行为而非文档。 传统 Skill 是文档导向的经验表达(~2500 tokens),优化目标是人类可读性和完整性。Strat…
category: ai
runtime: no special runtime
---
# skill2gene output preview
## PART A: Task fit
- Use case: 本 Skill 自身采用 Gene 理念编写——紧凑、控制导向、面向行为而非文档。 传统 Skill 是文档导向的经验表达(~2500 tokens),优化目标是人类可读性和完整性。Strategy Gene 是控制导向的经验表达(~200-300 tokens),优化目标是推理时行为控制的信号密度和有效性。 | gene_id | 触发信号 | 文件 | runs entirely locally. Works with Claude Code, Cursor, Cline and 23 more..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “核心理念 / Gene 注册表 / 转换流程” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “本 Skill 自身采用 Gene 理念编写——紧凑、控制导向、面向行为而非文档。 传统 Skill 是文档导向的经验表达(~2500 tokens),优化目标是人类可读性和完整性。Strategy Gene 是控制导向的经验表达(~200-300 tokens),优化目标是推理时行为控制的信号密度和有效性。 | gene_id | 触发信号 | 文件 | runs entirely locally. Works with Claude Code, Cursor, Cline and 23 more.”.
- **02** When the source has headings, the agent prioritizes “核心理念 / Gene 注册表 / 转换流程” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source does not require a stable slash command. After installation, invoke the skill by name and describe the task.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files.
Start with a small task and check whether the result follows “核心理念 / Gene 注册表 / 转换流程”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: skill2gene
description: 本 Skill 自身采用 Gene 理念编写——紧凑、控制导向、面向行为而非文档。 传统 Skill 是文档导向的经验表达(~2500 tokens),优化目标是人类可读性和完整性。Strat…
category: ai
source: didi/mpx
---
# skill2gene
## When to use
- 本 Skill 自身采用 Gene 理念编写——紧凑、控制导向、面向行为而非文档。 传统 Skill 是文档导向的经验表达(~2500 tokens),优化目标是人类可读性和完整性。Strategy Gene 是控制导向的经验表达(~2…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “核心理念 / Gene 注册表 / 转换流程” and keep inference separate from source facts.
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "skill2gene" {
input -> user goal + target files + boundaries + acceptance criteria
context -> 核心理念 / Gene 注册表 / 转换流程
rules -> SKILL.md triggers / order / output contract
runtime -> no special runtime | read files, write/modify files | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} Skill2Gene: Procedural Skill → Strategy Gene 转换器
本 Skill 自身采用 Gene 理念编写——紧凑、控制导向、面向行为而非文档。
核心理念
传统 Skill 是文档导向的经验表达(2500 tokens),优化目标是人类可读性和完整性。Strategy Gene 是控制导向的经验表达(200-300 tokens),优化目标是推理时行为控制的信号密度和有效性。
Gene 不是 Skill 的压缩版,而是一种不同的经验抽象。
Gene 注册表
| gene_id | 触发信号 | 文件 |
|---|---|---|
gene_distill |
蒸馏, 提取, 转换skill, 拆分gene | genes/gene_distill.md |
gene_gep_format |
GEP格式, strategy-gene标签, 字段 | genes/gene_gep_format.md |
gene_signal_density |
信号密度, token预算, 精简, 去噪 | genes/gene_signal_density.md |
gene_failure_encoding |
失败经验, AVOID, 警告, 踩坑 | genes/gene_failure_encoding.md |
gene_evolution |
演化, 迭代, 积累, capsule, event | genes/gene_evolution.md |
gene_validation |
验证, 校验, 质量检查, 对比 | genes/gene_validation.md |
转换流程
输入:一个传统 Procedural Skill
读取目标 Skill 的全部文件:SKILL.md + references/ + scripts/
Step 1: 分析与拆分
始终加载: gene_distill + gene_gep_format
- 识别 Skill 中的控制信号——哪些内容实际影响模型行为(通常集中在 workflow 部分)
- 按功能域将控制信号拆分为原子 Gene 单元
- 丢弃纯文档性内容(overview、背景解释、API 文档搬运)
Step 2: 蒸馏为 Gene
按需加载: gene_signal_density + gene_failure_encoding
对每个原子功能域:
- 提取 keywords(触发信号)
- 写 1 句 summary(行为意图)
- 写 3-7 条 strategy(有序决策步骤)
- 提取 AVOID 项(从 pitfalls/error_handling 中蒸馏为紧凑警告)
Step 3: 组装与验证
加载: gene_validation
- 编写 GENES.md 注册表
- 编写 SKILL.md 入口(含调度规则)
- 对比验证:gene 是否覆盖了原 skill 的有效控制信号
Step 4: 演化准备(可选)
加载: gene_evolution
为后续迭代演化预留 Capsule 和 Event 接口
详细参考
| 参考文档 | 用途 |
|---|---|
| GEP 协议参考 | Gene Evolution Protocol 完整定义、对象模型、演化循环 |
Decide Fit First
2500 tokens),优化目标是人类可读性和完整性。Strategy Gene 是控制导向的经验表达(200-300 tok…Design Intent
How To Use It
Boundaries And Review