-
Notifications
You must be signed in to change notification settings - Fork 0
refactor(okf): migrate to skills-dir plugin #897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
6ce2dbf
refactor(okf): migrate to skills-dir plugin
yxtay 8bb9300
fix(okf): rename .claude-plugin to dot_claude-plugin for chezmoi
yxtay 9e37379
fix(okf): use $CLAUDE_PLUGIN_ROOT in hook command
yxtay 595786c
feat(claude): add mattpocock skills plugin and enable 1m context models
yxtay b047ea7
refactor(okf): move scripts to hooks dir, add SessionStart hook, impr…
yxtay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| --- | ||
| name: okf | ||
| description: >- | ||
| Create and maintain knowledge bundles in Open Knowledge Format (OKF) — | ||
| markdown + YAML-frontmatter concept files for durable knowledge. Use when | ||
| the user wants to write, structure, or validate an OKF bundle, add a | ||
| "concept" document, build an `index.md`/`log.md`, cross-link concepts, or | ||
| asks "is this OKF-conformant". | ||
| user-invocable: true | ||
| argument-hint: "[produce|maintain|consume] [bundle-path]" | ||
| --- | ||
|
|
||
| # Open Knowledge Format (OKF) skill | ||
|
|
||
| OKF is a directory of markdown files with YAML frontmatter. Work from the spec — | ||
| [SPEC.md](SPEC.md) is the source of truth. | ||
|
|
||
| ## The one hard rule | ||
|
|
||
| Conformant (§9): every non-reserved `.md` file has parseable YAML frontmatter | ||
| with a **non-empty `type`** field. Everything else is soft guidance — tolerate | ||
| missing optional fields, unknown types, and broken links. | ||
|
|
||
| ## Conventions | ||
|
|
||
| - **One concept = one file.** File path minus `.md` is the concept ID. | ||
| - **Bundle path:** use what comes from context — `~/wiki` (personal wiki) or | ||
| `.okf/` (project bundle) are common. Use the path from the task; invent none. | ||
| - **Frontmatter:** `type` required. Add `title`, `description`, `tags`, | ||
| `timestamp` (ISO 8601) when useful; `resource` (canonical URI) only for | ||
| concepts bound to a real asset. | ||
| - **Body:** structural markdown (tables, lists, fenced code) over prose. | ||
| Conventional headings: `# Schema`, `# Examples`, `# Citations`. | ||
| - **Cross-links:** standard markdown links; absolute bundle-relative form | ||
| (`/services/auth-api.md`) preferred. Relationship kind belongs in prose. | ||
| - **Reserved:** `index.md` (directory listing) and `log.md` (ISO-dated history, | ||
| newest first) — concepts never use these names. | ||
|
|
||
| Templates: [concept](templates/concept.md), [index](templates/index.md), | ||
| [log](templates/log.md). | ||
|
|
||
| ## Modes | ||
|
|
||
| ### produce — create or extend a bundle | ||
|
|
||
| 1. Read [SPEC.md](SPEC.md). | ||
| 2. Choose sources: **code** (source, READMEs, docstrings, config), **docs/wiki** | ||
| (distill into concepts; cite originals under `# Citations`), **manual** | ||
| (decisions, playbooks, metrics). | ||
| 3. Lay out directories by domain (`services/`, `datasets/`, `decisions/`). | ||
| 4. Write each concept from [templates/concept.md](templates/concept.md): set a | ||
| descriptive `type`, fill recommended fields, cross-link related concepts. | ||
| 5. Add/refresh `index.md` per directory (`okf_version: "0.1"` in root index) | ||
| and append to `log.md`. Done when every new or changed concept has an | ||
| `index.md` entry. | ||
|
|
||
| ### maintain — sync a bundle with reality | ||
|
|
||
| 1. Triage affected concepts by `resource`, path, or topic — cover every one. | ||
| 2. Update body and `timestamp`; add or fix cross-links; create concepts for new | ||
| assets; mark removed assets with `**Deprecation**` to preserve context. | ||
| 3. Update `index.md` entries and append to `log.md`. Done when every | ||
| triage-listed concept has an updated `timestamp`, `index.md` reflects all | ||
| changes, and `log.md` has an entry. | ||
|
|
||
| ### consume — use a bundle as context | ||
|
|
||
| 1. Read the bundle-root `index.md` first, then follow links into relevant | ||
| concepts only. | ||
| 2. Broken links are not-yet-written knowledge, not errors. | ||
| 3. When you learn something durable, switch to **maintain** and write it back. | ||
|
|
||
| ## Before declaring done | ||
|
|
||
| - `index.md` updated for any new concepts. | ||
| - `log.md` entry appended if the bundle has one. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Keep the “Current plugins” list accurate.
The setup script still installs multiple plugins, but this section lists only
okf. Either list the other installed plugins or rename the heading to clarify that this is only the personal OKF plugin.🤖 Prompt for AI Agents