Github to okf

From yzfly/awesome-okf · View interactive version

Github to okf is an AI agent skill from the GitHub repository yzfly/awesome-okf. 把一个 GitHub 仓库(远程或本地)转换并富化为符合 OKF v0.2 的知识包(bundle), 让仓库的文档与代码成为 AI 智能体可检索的知识. 适用场景包括为开源项目生成知识库, 把代码仓库变成 agent 可问答的上下文, 建立仓库的架构与 API 知识图谱. 当用户提到 github to okf, 把仓库转 OKF, 为某个 repo 生成知识库, 或导入某个 GitHub 项目为知识时触发.

How to use this skill

Skill file

GitHub to OKF

把一个 GitHub 仓库转成 OKF 知识包,并富化成 agent 真正用得上的项目知识。

何时使用

工作流

  1. 导入(机械):用 CODE0 生成基础 bundle。

```bash

github-to-okf <owner/repo 或 本地路径> -o ./out [--deep]

```

产出仓库总览 + 代码概念(带 language、符号、blob 行级 resource)+ 文档概念。

  1. 富化(AI,关键) —— 按 code-to-okf 约定 提升正文:
  1. 取舍:别每个文件都精修;优先公共 API、核心算法、易踩坑处。
  1. 校验:../okf-creator/scripts/validate_okf.py ./out。
  1. 发布:CODE0(单文件可视化)或 CODE1(文档站)。

注意

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.