update-okf
Skill2 starsChanged 3 months agoMITView on GitHub
Use after implementation changes to update OKF from git diff or changed files. Extract durable behavior, architecture, domain, data, and playbook changes into relevant OKF documents and log entries. Do not use for temporary task notes or changes with no durable project knowledge impact.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-testSkill
- implement-featureSkill
- investigate-bugSkill
- refactor-safelySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 14 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
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 10
Use this Skill after code or documentation changes that affect:
- Distinctive: line 18
Do not use this Skill for:
- Distinctive: line 35
Before editing OKF, read:
- Distinctive: line 53
Add or update YAML frontmatter for non-reserved concept documents:
- Very specific: line 55
Add or update sources when identifiable source material changed.
- Very specific: line 56
When generated exists and content meaningfully changes, update generated.by and generated.at for the current producer.
- Very specific: line 57
Add generated when the producer is known and can be represented without guessing.
- Very specific: line 58
Remove or replace verified events after meaningful content changes unless the new content was verified again.
- Very specific: line 61
Do not add the legacy timestamp field.
- Very specific: line 62
Keep okf/index.md accurate when adding, moving, or removing OKF documents.
- Very specific: line 63
Add a dated entry to okf/log.md using YYYY-MM-DD.
- Distinctive: line 64
Avoid copying large code blocks unless they are the best durable reference.
- Distinctive: line 65
Verify Markdown links and YAML metadata.
- Distinctive: line 69
Do not turn OKF into a changelog of every code edit.
- Distinctive: line 70
Do not store secrets, credentials, private URLs, or personal data.
- Distinctive: line 71
Do not write speculative claims as facts.
- Distinctive: line 72
Do not fabricate producer identities, sources, verification events, or freshness deadlines.
- Distinctive: line 73
Do not treat verification of older content as verification of meaningfully changed content.
- Distinctive: line 74
Do not duplicate long README or docs sections.
- Distinctive: line 75
Do not change Skill behavior while updating OKF unless the task explicitly asks for it.
- Distinctive: line 76
Do not create empty directories or placeholder documents with no useful knowledge.
≈ “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
Update OKF
When to use
Use this Skill after code or documentation changes that affect:
- User-visible behavior.
- Architecture, ownership, or module boundaries.
- Domain terminology or business rules.
- Data structures, schemas, contracts, or migrations.
- Operational playbooks or recurring procedures.
Do not use this Skill for:
- Temporary investigation notes.
- Formatting-only changes.
- Internal refactors that do not alter durable knowledge.
- Duplicating implementation details that are already obvious from code and not useful as project knowledge.
Inputs
- Current
git diffor a list of changed files. - Relevant issue, PR, or user request.
- Existing OKF bundle.
- Date for
okf/log.mdentry. - Current producer actor in OKF form when known, such as
tool/version,human:<id>, orprocess:<id>.
Required context
Before editing OKF, read:
okf/index.mdokf/log.md- Existing OKF documents related to changed behavior
- The implementation diff
- README or docs when the public usage story changed
Workflow
- Inspect
git diffor changed files. - Extract only durable knowledge changes:
- New or changed behavior.
- New or changed architecture.
- New or changed domain terms.
- New or changed data contracts.
- New or changed playbooks.
- Map each knowledge change to an existing OKF document or create a new concept document.
- Add or update YAML frontmatter for non-reserved concept documents:
- Keep
typenon-empty. - Add or update
sourceswhen identifiable source material changed. - When
generatedexists and content meaningfully changes, updategenerated.byandgenerated.atfor the current producer. - Add
generatedwhen the producer is known and can be represented without guessing. - Remove or replace
verifiedevents after meaningful content changes unless the new content was verified again. - Set
statusonly whendraftordeprecatedconveys useful lifecycle information; omission meansstable. - Set
stale_afteronly when an absolute validity horizon is known. - Do not add the legacy
timestampfield.
- Keep
- Keep
okf/index.mdaccurate when adding, moving, or removing OKF documents. - Add a dated entry to
okf/log.mdusingYYYY-MM-DD. - Avoid copying large code blocks unless they are the best durable reference.
- Verify Markdown links and YAML metadata.
Guardrails
- Do not turn OKF into a changelog of every code edit.
- Do not store secrets, credentials, private URLs, or personal data.
- Do not write speculative claims as facts.
- Do not fabricate producer identities, sources, verification events, or freshness deadlines.
- Do not treat verification of older content as verification of meaningfully changed content.
- Do not duplicate long README or docs sections.
- Do not change Skill behavior while updating OKF unless the task explicitly asks for it.
- Do not create empty directories or placeholder documents with no useful knowledge.
Completion checklist
- Diff or changed files were inspected.
- Durable knowledge changes were separated from temporary implementation detail.
- Relevant OKF documents were updated or intentionally left unchanged.
- Provenance, trust, and lifecycle metadata were evaluated for meaningful content changes.
okf/index.mdwas checked.okf/log.mdhas a dated entry when OKF changed.- Links were checked.
Expected final response
Report:
- Which knowledge changes were captured.
- OKF files added or updated.
- Whether
okf/index.mdandokf/log.mdwere updated. - How provenance, verification, and freshness metadata were handled.
- Link or validation checks run.
- Any implementation changes that did not require OKF updates.
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.

