ccc Semantic Code Search
cocoindex-io/cocoindex-code
Semantic code search and index management with the ccc CLI: the agent initializes, indexes and queries the project by concept, filtering by language or path.
Generate OKF (Open Knowledge Format) v0.2 knowledge bundles from codebases, and look up exact concepts for AI agent context injection.
$ npx skills add UmairBaig8/okf-generator --skill okf-generator -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install UmairBaig8/okf-generator okf-generator --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
Claude Code skills documentation · loads skills from .claude/skills/
Install the "okf-generator" agent skill from https://github.com/UmairBaig8/okf-generator/tree/main into .claude/skills/okf-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "okf-generator", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add UmairBaig8/okf-generator --skill okf-generator -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install UmairBaig8/okf-generator okf-generator --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "okf-generator" agent skill from https://github.com/UmairBaig8/okf-generator/tree/main into .agents/skills/okf-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "okf-generator", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add UmairBaig8/okf-generator --skill okf-generator -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install UmairBaig8/okf-generator okf-generator --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "okf-generator" agent skill from https://github.com/UmairBaig8/okf-generator/tree/main into .cursor/skills/okf-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "okf-generator", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add UmairBaig8/okf-generator --skill okf-generator -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install UmairBaig8/okf-generator okf-generator --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "okf-generator" agent skill from https://github.com/UmairBaig8/okf-generator/tree/main into .gemini/skills/okf-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "okf-generator", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install UmairBaig8/okf-generator okf-generatorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add UmairBaig8/okf-generator --skill okf-generator -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "okf-generator" agent skill from https://github.com/UmairBaig8/okf-generator/tree/main into .github/skills/okf-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "okf-generator", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add UmairBaig8/okf-generator --skill okf-generator -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install UmairBaig8/okf-generator okf-generator --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "okf-generator" agent skill from https://github.com/UmairBaig8/okf-generator/tree/main into .opencode/skills/okf-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "okf-generator", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
okf-generatorGenerate OKF (Open Knowledge Format) v0.2 knowledge bundles from codebases, and look up exact concepts for AI agent context injection.
Okf Generator is an agent skill from UmairBaig8/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…
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 486 other files, including scripts and reference files (for example `.devcontainer/devcontainer.json`, `.github/ISSUE_TEMPLATE/bug_report.md` and `.github/ISSUE_TEMPLATE/feature_request.md`).
It sits in Agent Workflows, covering Codebase knowledge for agents. The repository describes itself as: OKF v0.1 knowledge bundle generator — Claude skill + OpenCode integration. The licence is MIT.
Read from SKILL.md and the folder at commit 5fb73be. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/, which the agent can run.
Shell commands in SKILL.md call:
pipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
SYNTH_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Okf Generator loads about 1.7k tokens when it runs, and up to ~7.2k if it reads all its reference files. Until then it costs about 157 tokens; SKILL.md has 427 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from UmairBaig8/okf-generator at commit 5fb73be, republished under its MIT licence (© UmairBaig8). 427 words, ~1,670 tokens.
.claude/skills/okf-generator/SKILL.md (or your agent's skills folder). This skill also uses 481 other files; get the full folder from GitHub.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.
codebase
|
v
okf generate --> okf_bundle/ (domain/resource-path layout)
|
okf lookup (zero-LLM concept search)
|
okf pairs --> okf_pairs.jsonl (training data)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 |
pip install okf-generator
# With LLM enrichment:
pip install "okf-generator[llm]"When: user says "index my codebase", "generate OKF bundle", "extract knowledge from code"
okf generate <source_dir> <output_dir>Configure enrichment in .okfconfig (JSON), then run:
okf generate <source_dir> <output_dir> --enrich
# or run enrichment standalone on an existing bundle:
okf enrich <output_dir>// .okfconfig
{
"llm": { "enabled": true, "base_url": "http://localhost:8080/v1", "api_key": "llamabarn" },
"providers": {
"default": { "model": "ggml-org/gemma-3-4b-it-qat-GGUF:Q4_0", "max_workers": 2 }
}
}Enrichment is resumable — rerun safely if interrupted. Already-enriched concepts are skipped automatically (checks disk on every run).
okf_bundle/
├── SUMMARY.md <- bird's-eye view for AI agents
├── index.md <- root index
├── log.md <- generation history
└── <domain>/
└── <module>/
├── index.md <- lists all concepts in folder
├── <module>.md <- Module concept
└── <ClassName>.md <- Class / Function conceptsWhen: user asks "what does X do", "find class X", "look up X", or needs to prime OpenCode with exact concept context before editing code.
# Full detail — signature, docstring, params, returns, related
okf lookup WorldBankConnector
# All concepts from one source file
okf lookup --file StockAI/RnD/python/connectors/economic_data.py
# Filter by type
okf lookup --type Class connector
# Filter by tag
okf lookup --tag lang:python --tag type:Function fetch
# Compact list (many results)
okf lookup --compact connector
# JSON output (programmatic / agent use)
okf lookup --json WorldBankConnector
# Custom bundle path
okf lookup --bundle ./Knowlege/okf_bundle WorldBankConnectorDefault bundle path: ./okf_bundle. Also auto-tries ./Knowlege/okf_bundle
and ./knowledge/okf_bundle.
When: user wants JSONL training data from the OKF bundle.
# Static only (instant, no LLM)
SKIP_SYNTH=1 okf pairs <bundle_dir> output.jsonl
# With LLM (QA, doc, summarize pairs)
SYNTH_BASE_URL="http://localhost:8080/v1" \
SYNTH_API_KEY="llamabarn" \
SYNTH_MODEL="ggml-org/gemma-3-4b-it-qat-GGUF:Q4_0" \
MAX_WORKERS=2 \
QA_PER_CONCEPT=3 \
okf pairs <bundle_dir> output.jsonl
# Specific pair types only
PAIR_TYPES="codegen,qa" okf pairs <bundle_dir> output.jsonl| Type | Static | LLM | Covers |
|---|---|---|---|
codegen | yes | yes | Functions, Classes |
qa | no | yes | All (purpose/params/return/edge) |
doc | no | yes | Functions, Classes |
summarize | yes | yes | Modules, Classes |
crosslink | yes | no | All with related concepts |
okf summarize <bundle_dir>Use after enrichment finishes to refresh the summary without re-scanning.
See references/opencode-integration.md for full setup.
Quick setup:
# 1. Add to AGENTS.md (auto-loaded by OpenCode)
echo "OKF bundle at ./okf_bundle — use: okf lookup <Name>" >> AGENTS.md
# 2. Add lookup command
mkdir -p .opencode/commands
echo "RUN okf lookup --bundle ./okf_bundle \$NAME" \
> .opencode/commands/lookup.md| Language | Parser | Extracts |
|---|---|---|
| Python | stdlib ast | functions, classes, params, return types, docstrings |
| JS / TS | tree-sitter | functions, arrow fns, classes, JSDoc |
| Go | tree-sitter | funcs, methods, structs, interfaces, GoDoc |
| Java | tree-sitter | classes, methods, constructors, Javadoc |
| Rust | tree-sitter | fns, structs, enums, traits, impl blocks, doc comments |
| Ruby | tree-sitter | defs, classes, modules, hash comments |
| C / C++ / C# | tree-sitter | funcs, structs, classes, headers, XML-doc |
| Swift / Kotlin | tree-sitter | funcs, classes, protocols, visibility |
| PHP / Dart | tree-sitter | classes, functions, docblocks |
| Scala / Julia | tree-sitter | defs, classes, traits, objects |
| SQL | tree-sitter | tables, views, functions |
| YAML | PyYAML | documents, keys, anchors |
No concepts found: Check that source dir is not inside a SKIP_DIRS name
(node_modules, .venv, dist, etc). Leading path components like /tmp are
no longer skipped (fixed in v0.1.3).
Enrichment slow: Set max_workers: 1 in the provider config. Local models process ~1 request at a time. At 32 tok/sec expect ~3-5s per concept.
Enrichment interrupted: Rerun same command. Enriched files are skipped.
JS/TS concepts missing: Ensure tree-sitter-typescript is installed. TypeScript uses a separate grammar from JavaScript.
Lookup wrong result: Add --type or --file to narrow the search scope.
© UmairBaig8, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 481 other files (scripts, references) in the repository root of UmairBaig8/okf-generator.
Open the folder on GitHubat commit 5fb73be
Okf Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Okf Generator this skillUmairBaig8/okf-generator | 109 | — | ~1.7k | Automated safety check: Pass | MIT | |
| ccc Semantic Code Searchcocoindex-io/cocoindex-code | 2.8k | — | ~938 | Automated safety check: Pass | Apache-2.0 | |
| Context Engineeringabashev/vfs-s3 | 106 | 9 repos | ~2.6k | Automated safety check: Notes | Apache-2.0 | |
| Repomix Codebase Packeryamadashy/repomix | 29k | — | ~1.3k | Automated safety check: Notes | MIT | |
| Codebase Handbook BuilderRuhan-Wang/Harness_Handbook | 334 | — | ~2.2k | Automated safety check: Pass | Apache-2.0 | |
| CodemapJordanCoin/codemap | 703 | — | ~1.8k | Automated safety check: Pass | MIT |
cocoindex-io/cocoindex-code
Semantic code search and index management with the ccc CLI: the agent initializes, indexes and queries the project by concept, filtering by language or path.
abashev/vfs-s3
Optimizes agent context setup. An agent skill from abashev/vfs-s3.
yamadashy/repomix
Packs a local directory or remote GitHub repository into one AI-friendly file with Repomix, then searches it to explore structure, find patterns and count tokens.
Ruhan-Wang/Harness_Handbook
Generates, refreshes, validates and uses a compact handbook that maps where a change touches in a repository, using the active Codex session and no external LLM API.
JordanCoin/codemap
Gives an agent a quick map of a codebase's structure, dependencies, changes and handoffs, and tunes per-project config so the output stays code-first.
sopaco/deepwiki-rs
A skill your agent uses when an agent needs source code from the local repomix index under .terrain/agent/repomix.md (not committed; regenerate via Terrain scan).
Categories
Generate OKF (Open Knowledge Format) v0.2 knowledge bundles from codebases, and look up exact concepts for AI agent context injection. Okf Generator is an agent skill from UmairBaig8/okf-generator.2 knowledge bundles from codebases, and look up exact concepts for AI agent context injection.
Okf Generator fits situations like: the user wants to: index a codebase; generate OKF bundles; extract code knowledge into structured markdown; convert codebases into training data.
Run `npx skills add UmairBaig8/okf-generator --skill okf-generator -a claude-code`. Or copy the skill folder (the UmairBaig8/okf-generator repository) into .claude/skills/okf-generator in your project. Claude Code loads it when a task matches its description.
Run `npx skills add UmairBaig8/okf-generator --skill okf-generator -a codex`. Or copy the skill folder (the UmairBaig8/okf-generator repository) into .agents/skills/okf-generator in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add UmairBaig8/okf-generator --skill okf-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/okf-generator, .gemini/skills/okf-generator, .github/skills/okf-generator and .opencode/skills/okf-generator in your project.
Going by SKILL.md and its folder, Okf Generator needs the command-line tools its instructions call (pip) and credentials named SYNTH_API_KEY. Our summary lists: Python 3; A credential in SYNTH_API_KEY.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Okf Generator is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.5k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Okf Generator: ccc Semantic Code Search (cocoindex-io/cocoindex-code, 2.8k stars), Context Engineering (abashev/vfs-s3, 106 stars), Repomix Codebase Packer (yamadashy/repomix, 29k stars) and Codebase Handbook Builder (Ruhan-Wang/Harness_Handbook, 334 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
UmairBaig8 (a GitHub user) maintains it in UmairBaig8/okf-generator, which has 109 GitHub stars. The repository was last updated on August 1, 2026.
Source: UmairBaig8/okf-generator on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.