ワンクリックで
leap
LEAP — 落地执行引擎。内含两条管线:A 分支蒸馏(从 raw data 提取 skill)、 B 分支融合(多 skill 编织为一个)。被 SkillAlchemy 编排器调用。 Use when 编排器判断需要蒸馏或融合时。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
LEAP — 落地执行引擎。内含两条管线:A 分支蒸馏(从 raw data 提取 skill)、 B 分支融合(多 skill 编织为一个)。被 SkillAlchemy 编排器调用。 Use when 编排器判断需要蒸馏或融合时。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
SkillAlchemy — 一念落地,万象成形。输入任意想法或蒸馏目标,输出可安装的 SKILL.md。 内部编排 Lens(看清问题)和 LEAP(执行蒸馏/融合)。用户唯一入口。 Use when 用户说「蒸馏」「生成 skill」「融合」「我想做 X 但不知道从哪下手」。
Screens biomedical / life-science papers for signs of data fabrication, image manipulation, and statistical anomalies, using the detection techniques distilled from the field's canonical exposure platforms (PubPeer, Data Colada, Science Integrity Digest, For Better Science) and tools (ImageTwin/Proofig, statcheck, GRIM/GRIMMER, Problematic Paper Screener, Seek & Blastn). Use when asked to check a paper/figure for image duplication, blot splicing, impossible statistics, paper-mill or tortured-phrase signals, research integrity, or "is this data faked"; or when a user shares a figure, Western blot, supplementary dataset, or DOI and asks whether it looks manipulated. Reports observable anomalies as questions for clarification — it never accuses anyone of fraud.
Lens — 给你的问题加一层认知镜片。输入任意任务描述,输出增强版 description, 发现「你不知道自己不知道」的隐性维度、前置条件和认知路线。 Use when 用户说「帮我想想」「分析一下」「生成 skill」「蒸馏」「融合」 或输入看起来太简单需要展开。
Cross-framework enhancement overlay for choosing a multi-agent topology BEFORE writing any agent. A binary-question rubric — is single-agent + tools enough? do agents need to know about each other? does the output need one voice? — maps the answer to single-agent / supervisor / swarm / sequential / hierarchical. Activates when a coder agent is tempted to "split the work into roles" or reaches for a multi-agent framework. Encodes the *selection rubric* that the per-framework skills assume but never surface. Search keywords: when to use multi-agent, single vs multi agent, do I need multiple agents, supervisor vs swarm, multi-agent vs single agent, agent team design.
SOP for terminal-based, git-native AI pair programming with Aider (git work-tree + tree-sitter repo-map + edit-format + human-in-loop REPL). Use when editing code in an existing git repo via an LLM, when you need to converge a change to 2-5 files, pick an edit format that fits the model, run architect+editor mode, or wire an auto-test loop.
Universal discipline for any LM-driven loop — agent retries, plan-act-observe, multi-agent handoffs, optimiser passes, test-fix cycles. Encodes the one rule every framework documents quietly and every team relearns expensively: the LM in the loop is NEVER a reliable terminator. Termination must be provided by an explicit counter + exit predicate + stagnation signal + escalation path that live OUTSIDE the LM's control. This is a tool- level, framework-agnostic skill. It maps onto LangGraph (recursion_limit + state counter + interrupt), CrewAI (max_iter + max_rpm + human_input), Claude / OpenAI SDKs (max_iterations + tool_use_budget), DSPy (declared evaluation budget), Aider (REPL + explicit retry cap), and AutoGen (max_consecutive_auto_reply). Search keywords: infinite loop, recursion limit, recursion_limit, GraphRecursionError, max iterations, max_iter, agent stuck, agent won't stop, runaway agent, ReAct loop not terminating, agent repeating itself.
| name | LEAP |
| description | LEAP — 落地执行引擎。内含两条管线:A 分支蒸馏(从 raw data 提取 skill)、 B 分支融合(多 skill 编织为一个)。被 SkillAlchemy 编排器调用。 Use when 编排器判断需要蒸馏或融合时。 |
| version | v1.0 |
LEAP 不自己做路由,不跟用户交互。上游 Skill-Alchemy 告诉它走哪条分支,它执行。 所有交互节点由 Skill-Alchemy 编排——LEAP 只负责跑管线,跑完返回结果。
| 指令 | 分支 | 管线 |
|---|---|---|
distill / 蒸馏 | A 分支 | 蒸馏管线 — 从 raw data 提取 target OS,编译为 persona/tool skill |
fuse / 融合 | B 分支 | 融合管线 — method.skill(骨架) × subject.skill(s)(血肉) → output.skill |
| Mode | Trigger | Behavior |
|---|---|---|
| Full run | No special keyword | 完整管线 + Gate,输出 skill 包 |
| Plan only | 只到 Stage 3 或 stop_after_stage: 3 | A 分支 Stage 1-3 only,输出 research_plan.json 后停止 |
| Resume | 从 Stage 4 继续 或 resume_from_stage: 4 | A 分支跳过 1-3,使用已有 research_plan.json,跑 4-7 + Gates |
Source Intake → Intake Assessment → Research Plan Design
→ Research Swarm → Gate 1: Merge
→ Exemplar Discovery → Synthesis (3 agents)
→ Skill Compilation → Gate 2: Validation
Core principle: extract the operating system behind the source, not just the content or answer.
Input: person, author, method, organization, domain, URL, repo, or local files.
Create package workspace at output/<target-slug>-skill/:
output/<target-slug>-skill/
├── README.md
├── SKILL.md.draft
├── references/ # agent reports + exemplars
├── intermediate/ # structured data
├── examples/ # persona: required; tool: optional
└── validation/ # only for deep mode (Phase 8)
templates/不再预建——输出模板在 LEAP 共享层,产出 skill 不需要。validation/只在 depth=deep 且 Phase 8 执行时创建。
Write intermediate/open_world_task.json with target, goal, sources, depth_level:
depth_level | Effect | Use case |
|---|---|---|
quick | Agent count ≤3, skip Phase 8, mark quality: draft | Rapid prototype |
standard | No correction to auto-assessment, Phase 8 suggested | Daily use (default) |
deep | Agent count upper bound +1 (≤8), Phase 8 required, dual review | Release quality |
Classify every source by what it can reveal:
| Modality | Examples | Reveals |
|---|---|---|
transcript_interview | podcasts, video captions, Q&A | spontaneous reasoning, analogies, changed positions |
longform_text | books, papers, essays, newsletters | core arguments, methodology, narrative structure |
secondary_criticism | reviews, biographies, analysis | external perspective, blind spots, competing views |
video_subtitle | YouTube, B站 captions | speech patterns, unscripted reasoning |
social_media | posts, threads | expression patterns, real-time reactions |
code_repo | git repos, PRs | architecture patterns, API contracts, testing strategy |
For each modality present, note what operations it could reveal. Skip absent ones.
Read domains/<domain>/domain.md to confirm. Record primary + secondary domains.
Don't count sources — assess their density.
Apply depth_level correction: quick→floor+cap at 3, standard→no change,
deep→ceiling+1, cap at 8.
| Target type | Skill mode | Behavior |
|---|---|---|
| Person / author / expert | persona | First-person role-play. Has 角色扮演规则, 身份, 我怎么说话, 决策启发式 |
| Domain / method / organization | tool | Third-person analytical. Has Activation Rules, Agentic Protocol, Operation Models |
domains/<primary-domain>/domain.md → Research dimensionsdomains/persona-os/domain.md. This cross-cutting layer
provides OS extraction lenses (decision under constraint, failure processing,
value conflict resolution, attention allocation, etc.).Good: "What was the hardest decision at [event]? What options did they have?"
Bad: "What is their leadership style?"
Every agent's search_direction should name a specific moment, event, or decision that can be traced to a verifiable source.
If invoked with 只到 Stage 3 or stop_after_stage: 3:
写完 research_plan.json 后立即停止。输出:
Research plan 已生成,保存在 intermediate/research_plan.json。
[N] 个 agent,维度:
R1 — [dimension]: [search_direction 摘要]
R2 — [dimension]: [search_direction 摘要]
...
不要进入 Stage 4。等待 Skill-Alchemy 返回确认/调整后的指令。
Resume mode: 如果在 从 Stage 4 继续 模式下调用,直接从已有的
intermediate/research_plan.json 读取 agent 配置。跳过 Stage 1-3。
Launch N agents in parallel. Each agent writes references/R<NN>-<agent_id>.md:
Status: pass (or warning / fail)
## Key Findings
## Dilemma Decision Cases (≥2 required)
### Case N: [one-line summary]
- 困境 (Dilemma): specific conflict or hard choice
- 约束 (Constraints): what limited their options
- 决策步骤 (Decision Steps): what they did, step by step
- 结果 (Outcome): what happened
- 可提取的操作 (Extractable Operation): generalizable rule/pattern/heuristic
## Evidence Sources (source_id, type, confidence)
## Supported Candidate Operations
## Rejected or Weak Candidate Operations
## Target-specific Patterns
## Boundaries and Uncertainties
## Recommendations for Later Skill Compilation
Agent Contract: Every report begins with Status: pass / warning / fail.
Dilemma Decision Cases are the most important section for persona targets —
they are the raw material from which mental models and heuristics are built.
Agent Timeout Rule: If any research agent hasn't produced a report within 10 minutes, do not wait. Proceed with completed agents. Gate 1 checks:
merge_report.json: "agents_lost": ["R2", "R3"].Agent uses data-analysis skill to process reports:
从 skills.sh 的公开 skill 池中实时检索最佳 exemplar,注入 Compilation 做 few-shot 结构参照。
使用 find-skills 搜索: 调 skills.sh 的 find-skills 接口,用目标的关键词搜索。返回 top 20 个候选 skill_key。
并发下载候选 SKILL.md + 机械评分:
python3 scripts/score_skill.py --skill <path> --json自动择优注入:
references/exemplars/exemplar-<N>.mdreferences/exemplar_candidates.json 备查取不到时的处理:
exemplar_discovery.json 的 status: "degraded"| # | Agent | What it does |
|---|---|---|
| S1 | Taxonomy Alignment | Separate generic lenses from evidence-backed ops. Promote only source-backed. |
| S2 | SOP Compression | Compress operations into model cards. Primary input: Dilemma Decision Cases. Each card's Action must trace to case decision steps. |
| S3 | Package Design | Design activation rules, protocol, output modes, templates, boundary rules. |
Compile final package from all research + synthesis reports + exemplars.
skill-grammar.md — 必须先 Read。 对照反模式清单逐条检查输出。对照精英模板确认 section 结构。编译前不读 skill-grammar → 禁止编译。<skill-name>/
├── SKILL.md # lean entry point — runtime loaded
├── skill.json # metadata (name, version, skill_mode, domain)
├── README.md # storefront (see template in shared layer)
├── references/
│ ├── sop_models.md # full operation model cards (runtime on-demand)
│ └── research_notes.md # human-readable evidence summary
├── examples/
│ └── demo_conversation.md # persona: 3-4 scenarios (required)
├── intermediate/ # pipeline audit trail
└── validation/ # quality reports
运行时只加载 SKILL.md。sop_models.md 由运行时协议按需 Read。 R1-Rn、S1-S3、intermediate/、validation/ 为审计文件。
Persona MUST include examples/demo_conversation.md(3-4 场景:常见/边界/拒答)。缺失 → fail。
Tool 模式不强制要求 examples/。
编译完成且自评通过后,删除中间产物,保持 output 干净:
references/exemplar_candidates.json — 临时评分文件,编译已用references/exemplars/ — 中间参照副本,编译已用validation/(如果空)、任何其他空目录R*.md(研究证据)、intermediate/(审计追踪)、产出包intermediate/ 保留(审计追踪),references/R*.md 保留(证据溯源)编译完成后,对照 skill-grammar.md 精英 checklist 自评打分:
| 检查项 | 分值 |
|---|---|
| ≥5 个具体步骤(chain-of-steps 或运行时协议) | 2 |
| 有边界声明(Boundary Rules / 边界) | 2 |
| description 含触发词("Use when" / 触发场景) | 2 |
| 100-350 行篇幅 | 1 |
| 反模式 0 命中 | 1 |
| Persona: 有「我绝不会说」+「我的标志句式」 | 2 |
| 满分 | 10 |
写入 intermediate/self_quality_report.json:
{
"score": 8,
"max": 10,
"breakdown": {"steps": 2, "boundary": 2, "trigger_desc": 2, "length": 1, "anti_patterns": 1},
"persona_extras": {"forbidden_phrases": true, "signature_line": true},
"grade": "standard"
}
评分标准:
standard,可发布draft,警告用户「自评低于发布标准」此评分不替代 Phase 8 验证,但提供了可对比的基线。 Ablation 实验时跑同一个目标 with/without exemplar,对比分数。
python3 scripts/quality_check.py --skill <package_dir>/SKILL.md
Checks: all required sections present, no forbidden patterns, skill.json parses.
Gating by depth_level:
| depth_level | Phase 8 | 双 agent 交叉审核 | 失败处理 |
|---|---|---|---|
quick | 跳过 | 跳过 | — |
standard | 建议执行(不强制) | 跳过 | warning 写入 quality_report |
deep | 强制 | 强制 | fail → 退回 Compilation 重修,最多 2 轮 |
双 agent 交叉审核(deep only):启动两个独立 agent 分别审核,一个从内容质量角度、一个从声音一致性角度。
Agent 读生成的 SKILL.md 的 Core Operation Models,出 3 道该 skill 应能答对的题,实际回答并评分。≥2/3 pass。
检查:
出 1 道边界外的问题,验证是否诚实拒答而非编造。如果 skill 自信地回答了该拒绝的事 → fail。
对每个心智模型检查:
≤1/3 → reject。2/3 → medium。3/3 → high-confidence core。
任一检查 fail → 退回 Skill Compilation 重修。最多 2 轮。2 轮后记录残余弱点,发布当前最佳版本。
Write validation/content_quality_report.json:
{
"known_position_test": {"passed": 3, "failed": 0, "status": "pass"},
"edge_case_test": {"status": "pass"},
"triple_validation": {"models_checked": 5, "passed_3of3": 3, "passed_2of3": 1, "rejected": 1},
"voice_consistency": {"has_forbidden_phrases": true, "has_signature_line": true, "status": "pass"},
"heuristic_falsifiability": {"checked": 4, "falsifiable": 4, "status": "pass"},
"loop_count": 0,
"overall": "pass"
}
Fix source segmentation, taxonomy alignment, or evidence binding. Don't lower thresholds to hide failures.
method.skill (骨架) × subject.skill(s) (血肉) → output.skill
WEAVE is not a concatenator. If you can tell where one skill ends and another begins, the weave failed.
确认融合所需 skill 是否就绪:
primary: "采访技巧" ← workflow 骨架
secondary: ["北斗导航"] ← style/persona 来源
depth: "standard"
对每个所需 skill,按顺序检索:
output/ 目录(之前生成过的 skill)~/.claude/skills/)如果 skill 不存在:
Skill 拉取后跑 python3 scripts/score_skill.py --skill <path> --json 确认质量。
draft(<9 分)skill 不应作为融合源——垃圾进垃圾出。
走 find-skills 找到候选时,输出评分结果到 references/fusion_candidates.json:
[
{"skill_key": "xxx", "score": 12, "summary": "...", "recommended_role": "primary"},
{"skill_key": "yyy", "score": 9, "summary": "...", "recommended_role": "secondary"}
]
Skill-Alchemy 会展示这些候选给用户确认。LEAP 不自己做交互。
Extract:
The primary skill determines the structure of the output.
For each secondary skill, extract:
The secondary skills determine the texture of the output.
Fusion depth is controlled by depth_level.
Each style element from secondary skills is injected into the primary workflow at the most relevant step. Minimal rewriting.
采访技巧 Step 3 "生成核心问题"
→ 注入北斗导航的提问风格:从具体经历切入、先建立共鸣再追问
Rewrite the role. Create a new unified identity.
Weave workflow × style. For each step in the primary workflow, embed relevant style/pattern from secondary skills.
Merge constraints. Union of all source skill constraints. Remove duplicates. Flag conflicts (if primary says "do X" and secondary says "never do X").
Check for gaps. Are there steps in the workflow that no secondary
skill has pattern coverage for? Mark as [通用模式] — filled by
general best practices, not specific to any source.
Same as standard, plus:
Detect conflicts. When two source skills contradict on a point, resolve explicitly. Default: primary skill wins on workflow decisions, secondary skill wins on style decisions. Document every conflict and resolution.
Fill gaps. For steps marked [通用模式], launch a lightweight
research agent to find domain-specific patterns.
Cross-validation. Verify that every style claim in the output can be traced back to a specific section of a source skill. Verify that no constraint was dropped.
Generate output.skill using the SKILL.md templates in the shared layer below.
<skill-name>/
├── SKILL.md # lean entry point — runtime loaded
├── skill.json # metadata (name, version, skill_mode, source_skills)
├── README.md # storefront (see shared layer)
├── references/
│ └── sop_models.md # full operation model cards (runtime on-demand)
├── examples/
│ └── demo_conversation.md # persona: 3-4 scenarios (required)
└── validation/ # quality reports (deep mode only)
与 A 分支相同:
references/fusion_candidates.json(临时评分文件)python3 scripts/quality_check.py --skill <package_dir>/SKILL.md
Checks: all required sections present, no forbidden patterns, skill.json parses.
—北斗导航.skill §我怎么说话)Gating by depth_level:
| depth | Phase 8 | 双审核 | 失败处理 |
|---|---|---|---|
| quick | 跳过 | 跳过 | — |
| standard | 建议 | 跳过 | warning |
| deep | 强制 | 强制 | 退回重修 ≤2轮 |
8.1 Fusion identity test (3 questions): Agent 出 3 道跨源 skill 的问题——答案需要同时用到 primary 和 secondary 的知识。 ≥2/3 能正确融合回答 → pass。
8.2 Boundary non-leakage test (1 question): 出 1 道超出所有源 skill 约束的问题。验证输出诚实拒答而非编造。
8.3 Source traceability: 每个 output 声明是否能追溯到具体的源 skill 章节?≥90% 可追溯 → pass。
8.4 Anti-stitching blind test: 将输出与两个源 skill 拼接版对比。独立 reviewer 能否区分哪个是 WEAVE 输出、 哪个是拼接版?无法区分 → fail。若 reviewer 区分准确率 ≤60% → 编织成功。
8.5 Loop guard: 任一 fail → 退回 B-Step 3 Weave 重修。最多 2 轮。
A 和 B 分支共用以下模板和基础设施。
skill_mode: "tool") — 7 个必选章节## Activation Rules
触发 + 不触发的具体例子。各列 4-5 个场景。
## Agentic Protocol
可执行步骤,不是「考虑 X」而是「做 X 然后 Y」:
Step 1: 阶段判定
Step 2: 模型匹配(读 sop_models.md)
Step 3: 执行诊断
Step 4: 输出(选 output mode)
## Core Operation Models
H1-Hn 摘要表。格式:
| # | 模型 | 核心命题 | 主要来源 |
|---|------|---------|---------|
| H1 | **模型名** | 一句话 | 来源 |
完整卡片在 references/sop_models.md。
## Output Style
- 「先给一句话结论,再展开。不把整个模型卡片贴出来。」
- 用自然段落,不用 markdown 表格(除非用户明确要对比表)
- 引用来源时说「PG 在 2012 年文章里指出...」不说「根据 references/sop_models.md 的 H1」
- 禁止词:「根据框架分析...」「按照模型卡片...」「让我来系统分析...」
- 回答完就停,不问「需要我进一步展开吗」
## Output Modes
| Mode | 触发条件 | 输出结构 |
|------|---------|---------|
| ... | ... | ... |
4-7 种模式。
## Boundary Rules
7-8 条编号规则。覆盖:证据边界、适用范围、禁止事项、版本截止。
## References
指针表:sop_models.md + research_notes.md + R 报告 + S 报告。
skill_mode: "persona") — 8 个必选章节 + 1 个可选## 角色扮演规则(最重要,放第一)
直接以[人名]的身份回应。用「我」说话。
读者已经知道你是谁。不要每轮都交代出身背景。
用我的语气、节奏、词汇说话。不确定的时候在角色里犹豫。
如果有人明显第一次和你说话,简短带一句免责。
说「退出角色」或「切回正常」就退出。
## 身份
3-5 句,第一人称。不是生平——是一个握手。
只写对理解这个人看世界方式最重要的几个事实。
## 我看世界的方式
3-5 个心智模型,每个一段不超过 5 行。
对话式段落,不是结构化卡片。用这个人的声音写。
证据和局限在 references/sop_models.md,不内联。
## 我怎么说话
第一句是最强的输出格式约束:
「我是[身份],不是[对立身份]。不分点论述,不列一二三四。」
句式(长短、问答比例)· 词汇(高频、禁用)· 节奏(先结论/先铺垫)
幽默(自嘲/讽刺/荒诞/无)· 确定性(我不确定型/显然型)
「我绝不会说」(2-3 句这个人永远不会说的话——比正向描述更能建立辨识度)
「我的标志句式」(1 句让人一眼认出的标志性表达)
引用习惯 + 禁忌
## 决策启发式
3-5 条。格式:规则名 — 一句话描述 + 适用场景。每条必须 falsifiable。
❌「Think long-term」(不可证伪)
✅「如果一个三分钟内想不清楚,放进 Too Hard 筐」(可证伪)
证据在 references/sop_models.md,不内联。
## 运行时协议
5 步 SOP 驱动流程:
1. 匹配模型:Read references/sop_models.md,扫描「When to use」找到匹配的模型卡片
2. 按模型行动:严格按 Action 步骤组织回答,引用 Evidence 标注出处
3. 检查边界:对照 Boundary 字段,越界诚实拒答,Failure mode 主动避开
4. 事实性问题先查:涉及具体事实 → WebSearch → 用心智模型框架分析
5. 纯经验判断直接回:价值观/闲聊 → 直接回应,超出认知 → 「这我不专业,不乱说」
## 边界
~5 行。不能代表真人。信息截止日期。
最后一行标注:深度: quick/standard/deep · 质量: draft/standard/validated
## 参考
指针:references/sop_models.md + references/research_notes.md
## 价值观(可选)
只在人物有强烈、独特、公开记录的价值观时加。不是 filler。
Every persona skill MUST include examples/demo_conversation.md — 3-4
short conversation scenarios: a common ask, an edge case, a boundary refusal.
Every persona skill MUST include a README.md using this template:
# [人名] · [英文名或标签]
> 「[一句最能代表这个人的话]」
[一句话:谁,做了什么,为什么值得听。不超过30字。]
## 安装
cp -r [skill] ~/.claude/skills/[name]/
## 触发方式
[3-5个典型触发场景,用自然语言描述]
## 心智模型
| # | 模型 | 一句话 |
|---|------|--------|
| 1 | [名称] | [15字内] |
## 他会怎么说
- **标志句式**:[一句话]
- **绝不会说**:[一句话] / [一句话] / [一句话]
## 免责
基于公开资料提炼的模拟角色,不代表本人立场。信息截止 [年份]月。
README rules: top quote MUST be real and verified. Keep under 40 lines. 心智模型 table = exactly the same models as 我看世界的方式。 标志句式/绝不会说 = exactly the same as 我怎么说话.
domains/ — 12 domain packs(11 主域 + persona-os),A 分支 Stage 3 研究维度选择references/skill-grammar.md — skill 写作方法论(skills.sh 数据验证),A/B 分支编译必读scripts/score_skill.py — 13 分机械评分,A-Stage 5 / B-Step 1 运行时质量过滤scripts/quality_check.py — A/B 分支 Gate 机械验证scripts/download_subtitles.sh + scripts/srt_to_transcript.py — 视频源处理(按需使用)scripts/build_corpus.py + scripts/build_component_index.py — 构建 skill-grammar 的数据挖掘工具(开源构建用,运行时不需要)find-skills(skills.sh)— 在线 skill 语义检索,A-Stage 5 / B-Step 1 的候选发现层