okf-generator
Copilot instructions99 starsChanged 5 months agoMITView on GitHub
This project uses okf-generator to produce an OKF v0.2 knowledge bundle at ./okf_bundle/. The bundle contains structured markdown files — one per function, class, module, and dependency. BEFORE reading or editing any source file, you MUST run: This returns signature, parameters, docstring, dependencies, callers, and callees in milliseconds — faster and more accurate than reading the source file.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- okf-generatorSkill
The file
Files
OKF Knowledge Bundle — Copilot Instructions
CRITICAL RULE: Never read source files directly for context
This project uses okf-generator to produce an OKF v0.2 knowledge bundle at ./okf_bundle/. The bundle contains structured markdown files — one per function, class, module, and dependency.
BEFORE reading or editing any source file, you MUST run:
okf lookup --bundle ./okf_bundle <ConceptName>This returns signature, parameters, docstring, dependencies, callers, and callees in milliseconds — faster and more accurate than reading the source file.
Common lookups
# Single concept full detail
okf lookup --bundle ./okf_bundle ClassName
# All concepts from one source file
okf lookup --bundle ./okf_bundle --file path/to/source.py
# Filter by type
okf lookup --bundle ./okf_bundle --type Class
okf lookup --bundle ./okf_bundle --type Function
okf lookup --bundle ./okf_bundle --type Dependency
# Filter by language
okf lookup --bundle ./okf_bundle --tag lang:python
okf lookup --bundle ./okf_bundle --tag lang:typescript
okf lookup --bundle ./okf_bundle --tag lang:go
# Filter by ecosystem
okf lookup --bundle ./okf_bundle --tag ecosystem:pip
okf lookup --bundle ./okf_bundle --tag ecosystem:npm
okf lookup --bundle ./okf_bundle --tag ecosystem:cargo
# JSON output for programmatic use
okf lookup --bundle ./okf_bundle --json <Name>
# Dependencies (all or by ecosystem)
okf lookup --bundle ./okf_bundle --type Dependency
okf lookup --bundle ./okf_bundle --type Dependency --tag ecosystem:pip --compactSeeing what changed between bundles
okf diff ./okf_bundle.bak ./okf_bundle --compact
okf diff ./okf_bundle.bak ./okf_bundle --jsonBundle location
- Default:
./okf_bundle/ - Also checked:
./Knowlege/okf_bundle/,./knowledge/okf_bundle/ - okf-generator README
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

