← 返回 Skills 市场
sora-mury

Karpathy Compile

作者 sune · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
135
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install karpathy-compile
功能描述
Compile raw wiki entries from Phase 1 into structured, distilled knowledge points using LLM, grouping by topic and saving refined outputs.
使用说明 (SKILL.md)

Karpathy Compile Skill - Phase 2

描述

实现 Karpathy LLM Knowledge Base 的第二阶段:Wiki → Knowledge Points 编译。

将 Phase 1 生成的 wiki 条目通过 LLM distillation 编译为结构化的知识精华(knowledge points)。

工作流程

Phase 1: 用户查询 → Wiki 条目 (raw, 多条)
Phase 2: Wiki 条目 → Knowledge Points (精炼, 结构性)
Phase 3: Lint → 去重/合并/更新

Knowledge Point 格式

## Knowledge Point: [主题]

**核心概念**: [一句话概括]
**来源**: [wiki条目来源]
**详细说明**: [LLM生成的详细解释]
**标签**: [tag1, tag2]
**创建时间**: YYYY-MM-DD
**可信度**: high/medium/low

Compile Pipeline

  1. 读取 wiki 文件
  2. 按主题/标签分组
  3. 对每组使用 LLM distillation 生成 knowledge point
  4. 保存到 knowledge-points/ 目录

文件结构

karpathy-compile/
├── SKILL.md
├── scripts/
│   ├── __init__.py      # CompilePipeline
│   ├── distiller.py     # LLM distillation
│   ├── parser.py        # wiki 文件解析
│   └── test_compile.py  # 测试
└── knowledge-points/     # 输出目录

依赖

  • Phase 1 的 wiki 文件
  • M-Flow (用于存储编译后的 knowledge points)
  • Ollama LLM (qwen2.5:14b)
安全使用建议
This skill appears to do what it says: parse local wiki markdown, distill topics with an LLM, and save knowledge-point markdown files. Before running/installing: 1) ensure you run the distillation only against a trusted LLM endpoint — by default it targets http://localhost:11434 and uses a hardcoded api_key value, so either run a local Ollama-compatible server or update the code to use a secure, authenticated endpoint you control; 2) be cautious running the provided test scripts (test_compile.py/test_e2e.py) because they dynamically import and execute sibling skills (phase1, lint, retrieval) which may perform network access or require credentials; review those other skills first; 3) note the SKILL.md mentions M-Flow though this package doesn't integrate with it—if you expect M-Flow integration, verify or extend the code; 4) consider installing the openai Python package and, if you prefer, modify the code to read API keys from environment variables rather than using a hardcoded string. If you need me to, I can review the other phase skill files (karpathy-query-feedback, karpathy-lint, dual-retrieval) to surface any additional concerns.
功能分析
Type: OpenClaw Skill Name: karpathy-compile Version: 1.0.0 The skill implements a knowledge distillation pipeline (Phase 2) that parses local markdown wiki files and uses a local Ollama LLM instance to generate structured 'knowledge points'. The code in `scripts/__init__.py` and the test scripts (`test_compile.py`, `test_e2e.py`) are well-structured and align with the stated purpose of processing data within a multi-phase pipeline. While the test scripts dynamically load modules from sibling directories using `importlib`, this behavior is consistent with the integrated nature of the Karpathy LLM Knowledge Base project and does not exhibit malicious intent such as data exfiltration or unauthorized remote execution.
能力评估
Purpose & Capability
The name/description (compile wiki → knowledge points) align with the code: parsing wiki markdown, grouping by tags, calling an LLM distiller, and writing markdown outputs. Minor incoherence: SKILL.md mentions M-Flow as a dependency but the included code does not call or integrate with any M-Flow APIs—it only writes local files. The skill also references Ollama/qwen in docs and the code uses an OpenAI-compatible client to a default local endpoint, which is consistent.
Instruction Scope
SKILL.md and the code keep scope to reading Phase 1 wiki files and producing knowledge-points files. Tests in scripts/test_compile.py and scripts/test_e2e.py dynamically load other skills (phase 1, lint, retrieval) from sibling directories; running those tests will execute other skills' code (which may have their own side effects). The compile pipeline itself reads only local knowledge/wiki files and writes to knowledge/knowledge-points.
Install Mechanism
This is instruction-only at install level (no install spec). Files are included in the skill bundle; nothing is downloaded or installed during install. The code does import openai, but there is no install step declared—this is an operational/runtime dependency rather than an install-time risk.
Credentials
The skill declares no required environment variables or credentials, which is consistent with local file I/O. Implementation detail: LLMDistiller hardcodes endpoint='http://localhost:11434/v1' and api_key='ollama' and uses the openai client; this is odd but not directly dangerous. It means the code expects a local Ollama-compatible server by default. If someone changes the endpoint to a remote URL, the pipeline would send wiki content to that endpoint — so users should ensure the LLM endpoint is trusted before running. No requests for unrelated credentials or config paths are present.
Persistence & Privilege
The skill is not always-enabled and is user-invocable; it does not request persistent platform privileges or modify other skills' configs. It writes outputs only to a local knowledge/knowledge-points directory inside the repository tree.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install karpathy-compile
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /karpathy-compile 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Wiki to Knowledge Points compilation pipeline
元数据
Slug karpathy-compile
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Karpathy Compile 是什么?

Compile raw wiki entries from Phase 1 into structured, distilled knowledge points using LLM, grouping by topic and saving refined outputs. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 135 次。

如何安装 Karpathy Compile?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install karpathy-compile」即可一键安装,无需额外配置。

Karpathy Compile 是免费的吗?

是的,Karpathy Compile 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Karpathy Compile 支持哪些平台?

Karpathy Compile 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Karpathy Compile?

由 sune(@sora-mury)开发并维护,当前版本 v1.0.0。

💬 留言讨论