okf-memory
БесплатноБез исполняемых скриптовНе проверенUse before answering any question about this project's design, data, or a past decision; before changing code in an area that may carry recorded constraints…
от uw-ssec★ 33 звезды на GitHubОб этом скилле
OKF Memory
Project memory is the OKF v0.2 bundle at knowledge/ in the repository root.
Read it and write it only through the okf CLI, run as pixi run okf (the
binary from the pixi environment; there is no pixi task). Run it from the
repository root, where the bundle path defaults to knowledge and can be
omitted; from any other directory okf treats that directory as the bundle.
Quick reference
| Task | Command |
|---|---|
| Find what is recorded | pixi run okf search "<keywords>" --limit 3 |
| Concepts governing a file | pixi run okf search --for-path <path/to/file> |
| Read one concept | pixi run okf show <id> |
| Record | pixi run okf create <area>/<slug> --type <Type> --title "<t>" --desc "<d>" --tags "<a,b>" --body "<md>" |
| Revise | pixi run okf update <id> --desc "<d>" (also --title, --body, --status) |
| Link two concepts | pixi run okf relate <src-id> <tgt-id> --desc "<why they relate>" |
| Check the bundle | pixi run okf validate --strict --drift |
Add --json for machine-readable output. pixi run okf help <command> lists
the rest. Pass --actor <harness>:<model> to create, update, and relate,
using the same token as the Assisted-by trailer in AI_POLICY.md.
Read before write
- Search first. On a fresh bundle an empty result is normal; go on to create.
Do not browse
knowledge/withfind,grep, orcatto learn what is there;searchandshoware the readers. Read a hit's one-line description andshowit only if needed. - Before the first edit in a subsystem, run
search --for-pathon the file. A hit withgovernance: holdmeans stop and confirm with the user. A hit withgovernance: constraintlists invariants the change must keep. - If a concept already covers the topic,
updateit. Do not create a-v2. Keep superseded reasoning in a "Superseded" section of the same concept.
What to record
| Persist | Discard |
|---|---|
| Decisions, rejected alternatives, and their trade-offs | Naming deliberations, momentary thoughts |
| Requirements, constraints, platform or performance targets | One-off prompt instructions ("make it shorter") |
| Non-obvious quirks, workarounds, undocumented tool behavior | Anything the official docs already say |
| Root causes of subtle bugs | Syntax errors fixed in one step |
| Explicit, durable directives from the project owner | Transcripts, scratch notes, chain of thought |
The test: would an agent starting from a blank context benefit from knowing
this? Concept IDs are <area>/<slug>, where area is one of decisions,
architecture, facts, requirements, bugs. Types are free-form; use
Decision, Architecture, Fact, Requirement, or Bug unless the concept
is clearly something else. Mark inferences as inferred and name what would
confirm them; do not write a guess as a fact.
Frontmatter fields with no CLI flag
show --json prints them. Opening the one concept file you are changing and
editing these fields by hand is allowed; validate afterwards.
| Field | Meaning and rules |
|---|---|
code_refs |
Paths or globs the concept governs, relative to the repo root. No .., no / start. |
governance |
hold, constraint, or context (the default); surfaced by search --for-path. |
stale_after |
YYYY-MM-DD; validate --stale fails the gate once it passes. |
sources |
Documents, commits, or URLs the knowledge came from. |
verified |
Human-only. Never write it; generated is the agent's provenance and okf sets it. |
Repo-specific traps
- Do not run a Markdown formatter such as prettier over
knowledge/: it folds longdescription:lines into multi-line YAML that okf reads as empty. If this repository adds a formatter, excludeknowledge/from it. - Keep
description:on one lin
Установить okf-memory в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл okf-memory?
Use before answering any question about this project's design, data, or a past decision; before changing code in an area that may carry recorded constraints; when a decision or non-obvious discovery from this session should outlive it; or when `okf validate` fails. Not for how-to-run questions, which the rules and other skills answer.
Как установить скилл okf-memory?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл okf-memory запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic