agentleFS
hamakyohamakyo/okf-skills/skills/update-okf/SKILL.md

update-okf

Skill3 starsChanged 11 days 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.

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 14 are distinctive, and 6 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.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this Skill after code or documentation changes that affect:

    line 10
  2. Distinctive:

    Do not use this Skill for:

    line 18
  3. Distinctive:

    Before editing OKF, read:

    line 35
  4. Distinctive:

    Add or update YAML frontmatter for non-reserved concept documents:

    line 53
  5. Very specific:

    Add or update sources when identifiable source material changed.

    line 55
  6. Very specific:

    When generated exists and content meaningfully changes, update generated.by and generated.at for the current producer (using an RFC 3339 …

    line 56
  7. Very specific:

    Add generated when the producer is known and can be represented without guessing.

    line 57
  8. Very specific:

    Do not treat verification events older than generated.at as verification of meaningfully changed content.

    line 58
  9. Very specific:

    Keep okf/index.md (including its bundle-root frontmatter such as okf_version, title, description, or license) accurate when adding, moving, …

    line 62
  10. Very specific:

    Add a dated entry to okf/log.md using YYYY-MM-DD.

    line 63
  11. Distinctive:

    Avoid copying large code blocks unless they are the best durable reference.

    line 64
  12. Distinctive:

    Verify Markdown links and YAML metadata.

    line 65
  13. Distinctive:

    Do not turn OKF into a changelog of every code edit.

    line 69
  14. Distinctive:

    Do not store secrets, credentials, private URLs, or personal data.

    line 70
  15. Distinctive:

    Do not write speculative claims as facts.

    line 71
  16. Distinctive:

    Do not fabricate producer identities, sources, verification events, or freshness deadlines.

    line 72
  17. Distinctive:

    Do not treat verification of older content as verification of meaningfully changed content.

    line 73
  18. Distinctive:

    Do not duplicate long README or docs sections.

    line 74
  19. Distinctive:

    Do not change Skill behavior while updating OKF unless the task explicitly asks for it.

    line 75
  20. Distinctive:

    Do not create empty directories or placeholder documents with no useful knowledge.

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 diff or a list of changed files.
  • Relevant issue, PR, or user request.
  • Existing OKF bundle.
  • Date for okf/log.md entry.
  • Current producer actor in OKF form when known, such as <producer>/<version> or <scheme>:<id> (human:<id>, team:<id>, process:<id>).

Required context

Before editing OKF, read:

  • okf/index.md
  • okf/log.md
  • Existing OKF documents related to changed behavior
  • The implementation diff
  • README or docs when the public usage story changed

Workflow

  1. Inspect git diff or changed files.
  2. 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.
  3. Map each knowledge change to an existing OKF document or create a new concept document.
  4. Add or update YAML frontmatter for non-reserved concept documents:
    • Keep type non-empty.
    • Add or update sources when identifiable source material changed.
    • When generated exists and content meaningfully changes, update generated.by and generated.at for the current producer (using an RFC 3339 offset-aware date-time or YYYY-MM-DD full-date).
    • Add generated when the producer is known and can be represented without guessing.
    • Do not treat verification events older than generated.at as verification of meaningfully changed content; remove stale verified events or record a fresh verification event with verified[].at >= generated.at.
    • Set status only when draft or deprecated conveys useful lifecycle information; omission means stable. When deprecating a concept with a replacement, set superseded_by to the replacement concept path.
    • Set stale_after only when an absolute validity horizon is known.
    • Preserve unknown metadata keys and x- producer extensions; do not add the legacy timestamp field.
  5. Keep okf/index.md (including its bundle-root frontmatter such as okf_version, title, description, or license) accurate when adding, moving, or removing OKF documents.
  6. Add a dated entry to okf/log.md using YYYY-MM-DD.
  7. Avoid copying large code blocks unless they are the best durable reference.
  8. 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.md was checked.
  • okf/log.md has 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.md and okf/log.md were updated.
  • How provenance, verification, and freshness metadata were handled.
  • Link or validation checks run.
  • Any implementation changes that did not require OKF updates.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.