Align PKM skills with OKF v0.1 spec #14
Notifications
Due Date
No due date set.
Depends on
Reference: steve/skills#14
Reference in New Issue
Block a user
Problem Statement
The PKM skills in
common/pkm/(research-vault,pkm-curation,conversation-summary,crit) were built against an ad-hoc set of vault conventions that predate any formal knowledge representation spec. The Open Knowledge Format (OKF)v0.1 now provides a standard for representing knowledge as self-describing markdown bundles. The skills need to be updated to produce OKF-conformant output while
remaining compatible with Obsidian and the existing vault at
/home/sjb/Documents/sjb-brain.Additionally, the vault itself has grown organically with inconsistent frontmatter, mixed link styles, and no bundle structure. A migration is needed to bring existing notes into conformance.
Solution
Adopt the OKF v0.1 spec as the structural backbone for all PKM skills and the vault. Key changes:
[[wikilinks]]with standard markdown[...](...)links across all skills and vault notesindex.md(progressive-disclosure listing) andlog.md(change history) is an OKF bundletype,title,description,resource,tags,timestamp) with existing vault fields (id,aliases,area,project) into a single required schematypevalues for the skills to useUser Stories
As a vault owner, I want the
research-vaultskill to create OKF-conformant research packets (bundles withindex.md,log.md, and concept frontmatter), so that my research output is portable and agents can reliably consume it.As a vault owner, I want the
pkm-curationskill to addtypeto every note's frontmatter and use markdown links instead of wikilinks, so that curated notes are OKF-conformant.As a vault owner, I want the
conversation-summaryskill to save conversation reports/transcripts into an OKF-conformant bundle (AI Conversation Summaries/withindex.mdandlog.md), so that summaries are discoverable and conformant.As a vault owner, I want the
vault-conventions.mdreference file to document the merged frontmatter schema, bundle structure, and link conventions, so that all skills and agents share a single source of truth.As a vault owner, I want the vault root to have an
index.mdandlog.mdlisting the major sub-bundles, so that the entire vault is a valid OKF bundle.As a vault owner, I want
Knowledge/,Notes/,Resources/,Profiles/,AI Conversation Summaries/, eachResearch/<packet>/, and eachProjects/<project>/to be OKF-conformant bundles withindex.mdandlog.md, so that agents can navigate themprogressively.
As a vault owner, I want existing notes in bundle directories to have their frontmatter updated (add
type, convert wikilinks to markdown links), so that the migration is complete without breaking existing content.As a vault owner, I want
Inbox/,Dailies/,Templates/, andClippings/to remain non-bundle directories, so that temporary or structured-content areas are not forced into the bundle pattern.As an agent, I want to be able to parse any note in the vault and reliably determine its
type, title, description, and relationships via markdown links, so that I can traverse and summarize knowledge without guessing.As a consumer of the skills repo, I want
critto remain vault-agnostic (no file I/O), so that the CRIT brainstorming framework is not coupled to vault structure.Implementation Decisions
Frontmatter Schema (merged)
All notes created or curated by PKM skills MUST include this frontmatter:
Type Vocabulary
Fixed set of type values across all PKM skills:
InboxSourceConceptProjectDailyReferenceConversation ReportConversation TranscriptResearch SynthesisResearch Claim IndexResearch Source ListResearch GlossaryResearch QuestionsResearch LogMOCTemplatePersonToolLink Convention
Standard markdown links
[text](relative/path.md)replace Obsidian[[wikilinks]]throughout all skill instructions, reference files, and vault notes. Obsidian renders both syntaxes, so this is backward-compatible.Bundle = subdirectory with index.md + log.md
index.md: OKF progressive-disclosure listing (no frontmatter, sections with bullet links + descriptions). See OKF §6.log.md: OKF chronological update log (datestamped entries, newest first). See OKF §7.index.mdandlog.mdMUST NOT be used for concept documents.Bundle map
sjb-brain/(root)Knowledge/Notes/+ subdirsResources/+ subdirsProfiles/AI Conversation Summaries/Research/<packet>/Projects/<project>/Inbox/Dailies/Templates/Clippings/Tasks/,tools/,wts-services/Implementation order
common/pkm/pkm-curation/references/vault-conventions.md— single source of truth for the new conventionssjb-brain/index.md,sjb-brain/log.md)research-vaultskill (packet template, bundle structure, frontmatter, links)pkm-curationskill (frontmatter normalization, link syntax, bundle awareness)conversation-summaryskill (frontmatter, bundle structure, links)critskill for any references needing updateTesting Decisions
These are agent skills — instructions for LLMs, not compiled code. Testing is therefore about conformance of the skill's output (notes written into the vault) against the OKF spec.
What makes a good test: An end-to-end invocation of each skill against a test vault, followed by automated conformance checks on the generated files.
Seams (from highest to lowest):
End-to-end conformance — Run each skill against a small test vault, then run an OKF bundle conformance check (§9 of OKF) on the output. This is the highest seam: if the files pass conformance, the skill did its job.
Frontmatter audit — For each note a skill creates, verify that all required fields (
type,id,aliases,tags,area) are present and non-empty, and that recommended fields (title,description,timestamp) are present when applicable.Link audit — Verify that all links use
[...](...)syntax, not[[wikilinks]], and that links within a bundle use bundle-relative paths (prefixed with/for OKF absolute, or./for relative).Bundle structure audit — For each directory designated as a bundle, verify that
index.mdandlog.mdexist and follow OKF format.What will be tested:
research-vault— packet creation end-to-endpkm-curation— note curation and atomic note extractionconversation-summary— report/transcript pair creationvault-conventions.md— correctness of the documented schema (manual review)What will NOT be tested:
crit— no vault I/OPrior art: No existing test infrastructure for skills in this repo. Testing will be manual or script-based (shell checks + OKF conformance via custom script).
Out of Scope
Tasks/,tools/,wts-services/directories — deferred until their content is reorganizedAGENTS.mdin the vault root — that file serves a different purpose (agent instructions), not a concept doc.obsidian/configuration or pluginsFurther Notes
index.mdandIndex.mdare distinct files — the vault has both forms in different places (e.g., research packets usedIndex.md). The migration must handle this carefully to avoid data loss.research-vaultpacket template needs the most structural rework: the existingIndex.md(MOC-style with frontmatter) becomes OKFindex.md(progressive disclosure, no frontmatter);Log.mdbecomes OKFlog.md(datestamped entries); all other packet files getconcept frontmatter with proper
typevalues.