بنقرة واحدة
okf-retreive
Read-only OKF retrieval and parsing reference.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Read-only OKF retrieval and parsing reference.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | okf-retreive |
| description | Read-only OKF retrieval and parsing reference. |
| disable-model-invocation | true |
Parse OKF cheap first: extract only the contract the spec guarantees, then deepen only if the task needs it.
Identify the bundle root, then enumerate markdown files under it.
Treat files as three classes:
index.mdlog.md.md fileCompletion criterion: every markdown file in the bundle is classified once.
For each concept file, split the file into:
---Parse only what OKF requires for conformant consumption:
type must exist and be non-emptyFor reserved files:
index.md has no frontmatter, except root index.md may carry okf_version: "0.1"log.md has no frontmatterCompletion criterion: every concept file is reduced to id, frontmatter map, and body; every reserved file is recognized under the reserved-file rules.
Derive a stable record per concept:
id: file path minus .mdpathtypetitle: frontmatter title, else filenamedescriptionresourcetagstimestampbodyThen extract cheap body structure without semantic guesswork:
# Citations items# Schema tables# Examples code blocksCompletion criterion: every concept has one record with metadata plus raw structural extracts.
Resolve markdown links as untyped directed edges.
If the task is to inspect relations from one concept outward, use okf-cli tree before doing a wider manual link walk.
Use these rules:
/ and are bundle-root relative.md links are leaves, not concept parsesDo not infer relationship meaning from link text alone; OKF leaves semantics in the surrounding prose.
Completion criterion: every markdown link is classified as internal concept edge, broken internal edge, external link, or non-markdown leaf.
Default retrieval depth:
Reach for deeper parsing only when the task depends on it:
# Schema for fields and columns# Examples for usage# Citations for source backingCompletion criterion: the returned parse includes enough structure for the task, without upgrading the whole bundle to deep parsing by default.
Use this order every time:
.md filesThe stable parse contract is small:
typeEverything else is permissive:
type values are allowedParse OKF as a document graph, not as a strict schema system.
That means:
okf-cli tree can retrieve relation shape quickly, and okf-cli metadata can show frontmatter plus relations:
okf-cli tree [--show-non-md] <start_file.md> [max_depth]
okf-cli metadata [--show-non-md] <start_file.md> [max_depth]
okf-cli tag [--dir <start_dir>] <tag> [<tag> ...]
okf-cli tag [--dir <start_dir>]
Use it to:
!~--show-non-md is usefulokf-cli tagokf-cli tag and no tag argumentsFor the full format rules and examples, read ./SPEC.md.