okf:update
Skill2 starsChanged 5 months agoUnlicenseView on GitHub
Add new source documents to an existing OKF bundle; the skill classifies each piece of extracted knowledge as new, update, split, or conflict and proposes a structured diff before writing anything. Use when you have new files to ingest. Use okf:reconcile for a full alignment check against all existing sources; use okf:edit for a direct natural-language change that does not involve a source document.
In this repository12 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- github-issueSkill
- okf:createSkill
- okf:editSkill
- okf:_okf-skill-git-commitSkill
- okf:_okf-skill-read-specSkill
- okf:reconcileSkill
- okf:_okf-skill-scan-bundleSkill
- okf:searchSkill
- okf:_okf-skill-validateSkill
- okf:validateSkill
- okf:_okf-skill-write-logSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 7 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
If no source path is provided, ask the user before proceeding.
- Very specific: line 28
Follow okf:_okf-skill-scan-bundle.
- Very specific: line 35
Read every source document at the given path.
- Distinctive: line 52
Before writing anything, present a structured diff to the user:
- Distinctive: line 77
Ask: "Apply these changes?
- Distinctive: line 79
Wait for the user's answer.
- Very specific: line 86
Write each new concept file following the same rules as /okf:create step 5.
- Very specific: line 91
Update timestamp to the current datetime.
- Very specific: line 92
Do NOT change type or resource unless the update explicitly requires it.
- Very specific: line 97
Create each new atomic concept file following the same rules as /okf:create step 5.
- Distinctive: line 98
Delete the original file, unless it had many inbound cross-links — in that case, repurpose it as a redirect stub with a short body pointing …
- Distinctive: line 99
Update every cross-link in the bundle that pointed to the original file to point to the appropriate new file.
- Distinctive: line 100
Add cross-links between the new atomic files where the relationship is meaningful.
- Very specific: line 116
Follow okf:_okf-skill-git-commit with commit message: update: add <N> concepts, update <M> concepts (<source name>)
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are updating an existing OKF (Open Knowledge Format) bundle with new source documents.
1. Parse arguments
$ARGUMENTS may contain:
- A path to new source documents: a single file, a directory, or a glob pattern (required).
bundle:<path>— path to the existing bundle root (default: current working directory).
If no source path is provided, ask the user before proceeding.
2. Read the spec
Follow okf:_okf-skill-read-spec.
3. Read the existing bundle
Follow okf:_okf-skill-scan-bundle. Use the returned index as the bundle state, including:
- Concept ID →
type,title,description,resource,tags,timestamp(and body in full mode). - Existing cross-links between concepts.
- Current
index.mdcontents per directory.
4. Read new source documents
Read every source document at the given path. For each, extract the same information as in /okf:create step 3: topics, facts, relationships, external resources.
5. Classify changes
For each piece of knowledge extracted from the new documents, decide which category it falls into:
- New concept: the knowledge describes something not represented by any existing concept. → Create a new
.mdfile. - Update to existing concept: the knowledge extends, corrects, or enriches an existing concept (matched by topic,
resourceURI, or semantic similarity). → Merge new content into the existing file; updatetimestamp. - Split of existing concept: the new document provides enough detail about distinct sub-topics within an existing concept file that the file should be broken into multiple atomic files. Apply when an existing file covers N distinct named entities, processes, or ideas — each of which warrants its own file under the granularity principle in
/okf:create("Design the bundle structure" section, Concepts item). → Replace the original file with N atomic concept files; update all cross-links in the bundle that pointed to the original. - Conflict: the new document contradicts or significantly overlaps an existing concept in a way that requires human judgement. → Flag for user review; do not auto-apply.
Use semantic reasoning to make these classifications. When uncertain between "new" and "update", default to "new" and let the user decide. When uncertain between "update" and "split", default to "split" if the existing file contains multiple distinct named entities each with their own H2/H3 sections.
In two-pass mode: read the full body of each candidate concept before classifying it.
6. Propose changes
Before writing anything, present a structured diff to the user:
Proposed changes to: <bundle root path>
─────────────────────────────────────────
NEW CONCEPTS (<N>)
+ <group>/<concept>.md [type: <Type>] — <one-line description>
+ <group>/<concept>.md [type: <Type>] — <one-line description>
UPDATES TO EXISTING CONCEPTS (<N>)
~ <path/to/concept>.md — <what changes: new section added / description revised / schema extended / …>
SPLITS (<N>)
÷ <path/to/existing>.md → <group>/<concept-a>.md, <group>/<concept-b>.md, … — <reason for split>
CONFLICTS — REQUIRES YOUR INPUT (<N>)
! <path/to/concept>.md — <describe the conflict>
INDEX FILES TO REGENERATE (<N>)
↻ <dir>/index.md
LOG ENTRY
log.md — will add entry for <today's date>Ask: "Apply these changes? (yes / no / describe adjustments)"
Wait for the user's answer. If they request adjustments, revise and show the proposal again. For conflicts, present each one individually and ask the user how to resolve it before including it in the plan.
7. Apply changes
After user approval:
New concepts
Write each new concept file following the same rules as /okf:create step 5. Add cross-links to related existing concepts where appropriate.
Updated concepts
For each updated concept:
- Merge new content into the body. Prefer adding new sections or extending existing ones over rewriting existing prose.
- Update
timestampto the current datetime. - Do NOT change
typeorresourceunless the update explicitly requires it. - Preserve all existing frontmatter keys, including producer-defined extensions.
Split concepts
For each split:
- Create each new atomic concept file following the same rules as
/okf:createstep 5. - Delete the original file, unless it had many inbound cross-links — in that case, repurpose it as a redirect stub with a short body pointing to the new files.
- Update every cross-link in the bundle that pointed to the original file to point to the appropriate new file.
- Add cross-links between the new atomic files where the relationship is meaningful.
Index files
Regenerate index.md for every directory that gained or lost concepts. Preserve any manually written sections in the existing index.md — only add or remove entries for the affected concepts.
Log file
Prepend a new date section to the bundle-root log.md (or create it if absent):
## <YYYY-MM-DD>
* **Creation**: Added [<title>](<path>) — <description>. ← for each new concept
* **Update**: Updated [<title>](<path>) — <what changed>. ← for each updated concept
* **Split**: Split [<original title>](<original path>) into [<title-a>](<path-a>), [<title-b>](<path-b>), … — <reason>. ← for each split8. Git (optional)
Follow okf:_okf-skill-git-commit with commit message:
update: add <N> concepts, update <M> concepts (<source name>)
9. Validate
Follow okf:_okf-skill-validate.
10. Final report
OKF bundle updated
─────────────────────────────────────────
Bundle : <absolute path>
Added : <N> new concept(s)
Updated : <M> existing concept(s)
Split : <K> concept(s) split into <J> new files
Skipped : <L> conflict(s) — review manually
Git : committed / not committed
Validation: ✓ Conformant (OKF <version>)
Bundle mode: <full / two-pass (N concepts, threshold 50)>
Skill version: 1.011. Write invocation log
Follow okf:_okf-skill-write-log with:
skill:okf:update,version:1.0bundle: absolute path to the bundle rootoutcome:successif the final report was printed;cancelledif the user declined the proposed changes;errorif an unrecoverable error occurredconcepts_added: number of new concept files created (N from final report)concepts_updated: number of existing concepts updated (M from final report)concepts_split: number of concepts split (K from final report)conflicts: number of conflicts skipped (L from final report)note:null
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.

