Okf Generator

Generate OKF (Open Knowledge Format) v0.2 knowledge bundles from codebases, and look up exact concepts for AI agent context injection. Use this skill whenever the user wants to: index a codebase, generate OKF bundles, extract code knowledge into structured markdown, convert codebases into training data, look up functions/classes/modules by name, prime an AI agent with codebase context, or integrate codebase knowledge with OpenCode or other AI coding agents. Also trigger for phrases like "index my code", "generate knowledge bundle", "extract codebase concepts", "what does X class do", or "look

110 stars 10 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add UmairBaig8/okf-generator --skill okf-generator
Manual install
git clone --depth 1 https://github.com/UmairBaig8/okf-generator.git /tmp/okf-generator
mkdir -p ~/.claude/skills
cp -r /tmp/okf-generator/. ~/.claude/skills/okf-generator

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# OKF Generator & Lookup Skill

Generates structured OKF v0.2 knowledge bundles from codebases (18 languages via
tree-sitter AST + stdlib ast), and provides fast concept lookup for AI agents
like OpenCode.

## Pipeline Overview

```
codebase
   |
   v
okf generate  -->  okf_bundle/          (domain/resource-path layout)
                       |
                okf lookup               (zero-LLM concept search)
                       |
                okf pairs          -->  okf_pairs.jsonl  (training data)
```

## CLI Reference

All features via single `okf` CLI (installed from PyPI).

| Command | Purpose |
|---------|---------|
| `okf generate` | Scan codebase and write OKF bundle |
| `okf lookup` | Search bundle and return exact concept |
| `okf pairs` | Convert bundle to JSONL training pairs |
| `okf summarize` | Regenerate SUMMARY.md from existing bundle |

## Dependencies

```bash
pip install okf-generator
# With LLM enrichment:
pip install "okf-generator[llm]"
```

---

## Task: Generate OKF Bundle

**When**: user says "index my codebase", "generate OKF bundle", "extract knowledge from code"

### Static extraction (no LLM — always run this first)
```bash
okf generate <source_dir> <output_dir>
```

### With LLM enrichment (fills missing docstrings and descriptions)

Configure enrichment in `.okfconfig` (JSON), then run:

```bash
okf generate <source_dir> <output_dir> --enrich
# or run enrichment standalone on an existing bundle:
okf enrich <output_dir>
```
Read the full skill on GitHub

Details

Skill name
okf-generator
License
MIT
Repo updated
1 August 2026

FAQ

What does the Okf Generator skill do?

Generate OKF (Open Knowledge Format) v0.2 knowledge bundles from codebases, and look up exact concepts for AI agent context injection. Use this skill whenever the user wants to: index a codebase, generate OKF bundles, extract code knowledge into structured markdown, convert codebases into training data, look up functions/classes/modules by name, prime an AI agent with codebase context, or integrate codebase knowledge with OpenCode or other AI coding agents. Also trigger for phrases like "index my code", "generate knowledge bundle", "extract codebase concepts", "what does X class do", or "look

How do I install the Okf Generator skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add UmairBaig8/okf-generator --skill okf-generator. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Okf Generator popular?

It lives in UmairBaig8/okf-generator, which has 110 GitHub stars and 10 forks.

Related skills

Prompt Sensei

109

chengzhongwei/Prompt-sensei

Stage-aware prompt coaching, prompt improvement, lookback analysis, prompting habit feedback, and local reports about prompt quality for AI coding agents such as Claude Code or Codex.

AI, LLMs & Agents10

Bria AI

74

Bria-AI/bria-skill

Image generation, photo editing, background removal — transparent PNG images, cutouts, ecommerce packshots, product catalogs, lifestyle shots via Bria.ai. Build store-ready e-commerce catalogs at scale — shadows, product dimensions images, lifestyle scenes, marketplace listing variants. ALWAYS use this skill when the user wants to generate, edit, or transform any image — hero images, banners, social media visuals, product photos, illustrations, icons, thumbnails, ad creatives, or marketing materials — or to build a product catalog, create a packshot, stage a lifestyle shot, remove a background

AI, LLMs & AgentsIn 3 lists

Claude for Safari

100

SDLLL/claude-for-safari

Control the user's real Safari browser on macOS through AppleScript, page JavaScript, screenshots, and carefully verified System Events input. Use when an agent needs to inspect or operate the user's existing Safari tabs and login sessions, including reading pages, navigating, clicking, filling non-sensitive forms, taking screenshots, observing page-level fetch/XHR metadata, or troubleshooting Safari-specific UI behavior.

AI, LLMs & Agents16

Gputw

119

GPUtw-ai/GPUtw-Skill

GPUtw 台灣 GPU 雲端 REST API 整合助手(gputw, GPUtw.ai, 台灣 GPU 雲, 租 GPU, 裸機 GPU, GPU 執行個體)。 用有權限範圍的 API 金鑰(gputw_live_)部署與管理 GPU 執行個體、輪詢狀態、讀取用量與日誌、 在容器內執行指令、管理 HTTP 連接埠與 raw TCP/UDP、Vault 儲存空間(分段續傳上傳、Hugging Face 模型下載)、 點數帳務與團隊。適用於撰寫自動化腳本、CI、代理程式,以及除錯 401/403/402/409/429 與 Cloudflare 403 回應。 Use when the user mentions GPUtw, gputw.ai, renting a GPU in Taiwan, /vault, or a gputw_live_ API key.

AI, LLMs & Agents

Penthera

78

danoszz/penthera

Offline cyber security agent for the user's own apps and AI coding tools, run locally with the Penthera CLI; open R&D, measured in public. Sets it up in one command ("set up penthera in this repo"). Scans the user's own live URL and repo (TLS, headers, auth, OpenAPI, secrets incl. AI keys, opt-in injection); checks npm and Python dependencies offline ("is this dependency safe?", "what changed in my deps?", "install X safely", "any AGPL in our deps?"); blocks secrets and risky agent config before commit ("add a pre-commit hook"); audits AI tooling ("audit my MCP servers / skills / hooks", "chec

AI, LLMs & AgentsIn 1 list13

Venice Models

160

veniceai/skills

Discover Venice models, their capabilities, constraints, and pricing. Covers GET /models (with the ?type filter - text, image, video, music, tts, asr, embedding, upscale, inpaint, decision, all, code), /models/traits, /models/compatibility_mapping, every ModelResponse field (capabilities, constraints, per-type pricing with promotional rates, uncensored, deprecation, voice-changer and voice-cloning specs), and how to use this to pick the right model programmatically.

AI, LLMs & AgentsIn 1 list27

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.