arscontexta 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/.claude-plugin/marketplace.json +11 -0
  2. package/.claude-plugin/plugin.json +22 -0
  3. package/README.md +683 -0
  4. package/agents/knowledge-guide.md +49 -0
  5. package/bin/cli.mjs +66 -0
  6. package/generators/agents-md.md +240 -0
  7. package/generators/claude-md.md +379 -0
  8. package/generators/features/atomic-notes.md +124 -0
  9. package/generators/features/ethical-guardrails.md +58 -0
  10. package/generators/features/graph-analysis.md +188 -0
  11. package/generators/features/helper-functions.md +92 -0
  12. package/generators/features/maintenance.md +164 -0
  13. package/generators/features/methodology-knowledge.md +70 -0
  14. package/generators/features/mocs.md +144 -0
  15. package/generators/features/multi-domain.md +61 -0
  16. package/generators/features/personality.md +71 -0
  17. package/generators/features/processing-pipeline.md +428 -0
  18. package/generators/features/schema.md +149 -0
  19. package/generators/features/self-evolution.md +229 -0
  20. package/generators/features/self-space.md +78 -0
  21. package/generators/features/semantic-search.md +99 -0
  22. package/generators/features/session-rhythm.md +85 -0
  23. package/generators/features/templates.md +85 -0
  24. package/generators/features/wiki-links.md +88 -0
  25. package/generators/soul-md.md +121 -0
  26. package/hooks/hooks.json +45 -0
  27. package/hooks/scripts/auto-commit.sh +44 -0
  28. package/hooks/scripts/session-capture.sh +35 -0
  29. package/hooks/scripts/session-orient.sh +86 -0
  30. package/hooks/scripts/write-validate.sh +42 -0
  31. package/methodology/AI shifts knowledge systems from externalizing memory to externalizing attention.md +59 -0
  32. package/methodology/BM25 retrieval fails on full-length descriptions because query term dilution reduces match scores.md +39 -0
  33. package/methodology/IBIS framework maps claim-based architecture to structured argumentation.md +58 -0
  34. package/methodology/LLM attention degrades as context fills.md +49 -0
  35. package/methodology/MOC construction forces synthesis that automated generation from metadata cannot replicate.md +49 -0
  36. package/methodology/MOC maintenance investment compounds because orientation savings multiply across every future session.md +41 -0
  37. package/methodology/MOCs are attention management devices not just organizational tools.md +51 -0
  38. package/methodology/PKM failure follows a predictable cycle.md +50 -0
  39. package/methodology/ThreadMode to DocumentMode transformation is the core value creation step.md +52 -0
  40. package/methodology/WIP limits force processing over accumulation.md +53 -0
  41. package/methodology/Zeigarnik effect validates capture-first philosophy because open loops drain attention.md +42 -0
  42. package/methodology/academic research uses structured extraction with cross-source synthesis.md +566 -0
  43. package/methodology/adapt the four-phase processing pipeline to domain-specific throughput needs.md +197 -0
  44. package/methodology/agent notes externalize navigation intuition that search cannot discover and traversal cannot reconstruct.md +48 -0
  45. package/methodology/agent self-memory should be architecturally separate from user knowledge systems.md +48 -0
  46. package/methodology/agent session boundaries create natural automation checkpoints that human-operated systems lack.md +56 -0
  47. package/methodology/agent-cognition.md +107 -0
  48. package/methodology/agents are simultaneously methodology executors and subjects creating a unique trust asymmetry.md +66 -0
  49. package/methodology/aspect-oriented programming solved the same cross-cutting concern problem that hooks solve.md +39 -0
  50. package/methodology/associative ontologies beat hierarchical taxonomies because heterarchy adapts while hierarchy brittles.md +53 -0
  51. package/methodology/attention residue may have a minimum granularity that cannot be subdivided.md +46 -0
  52. package/methodology/auto-commit hooks eliminate prospective memory failures by converting remember-to-act into guaranteed execution.md +47 -0
  53. package/methodology/automated detection is always safe because it only reads state while automated remediation risks content corruption.md +42 -0
  54. package/methodology/automation should be retired when its false positive rate exceeds its true positive rate or it catches zero issues.md +56 -0
  55. package/methodology/backlinks implicitly define notes by revealing usage context.md +35 -0
  56. package/methodology/backward maintenance asks what would be different if written today.md +62 -0
  57. package/methodology/balance onboarding enforcement and questions to prevent premature complexity.md +229 -0
  58. package/methodology/basic level categorization determines optimal MOC granularity.md +51 -0
  59. package/methodology/batching by context similarity reduces switching costs in agent processing.md +43 -0
  60. package/methodology/behavioral anti-patterns matter more than tool selection.md +42 -0
  61. package/methodology/betweenness centrality identifies bridge notes connecting disparate knowledge domains.md +57 -0
  62. package/methodology/blueprints that teach construction outperform downloads that provide pre-built code for platform-dependent modules.md +42 -0
  63. package/methodology/bootstrapping principle enables self-improving systems.md +62 -0
  64. package/methodology/build automatic memory through cognitive offloading and session handoffs.md +285 -0
  65. package/methodology/capture the reaction to content not just the content itself.md +41 -0
  66. package/methodology/claims must be specific enough to be wrong.md +36 -0
  67. package/methodology/closure rituals create clean breaks that prevent attention residue bleed.md +44 -0
  68. package/methodology/cognitive offloading is the architectural foundation for vault design.md +46 -0
  69. package/methodology/cognitive outsourcing risk in agent-operated systems.md +55 -0
  70. package/methodology/coherence maintains consistency despite inconsistent inputs.md +96 -0
  71. package/methodology/coherent architecture emerges from wiki links spreading activation and small-world topology.md +48 -0
  72. package/methodology/community detection algorithms can inform when MOCs should split or merge.md +52 -0
  73. package/methodology/complete navigation requires four complementary types that no single mechanism provides.md +43 -0
  74. package/methodology/complex systems evolve from simple working systems.md +59 -0
  75. package/methodology/composable knowledge architecture builds systems from independent toggleable modules not monolithic templates.md +61 -0
  76. package/methodology/compose multi-domain systems through separate templates and shared graph.md +372 -0
  77. package/methodology/concept-orientation beats source-orientation for cross-domain connections.md +51 -0
  78. package/methodology/confidence thresholds gate automated action between the mechanical and judgment zones.md +50 -0
  79. package/methodology/configuration dimensions interact so choices in one create pressure on others.md +58 -0
  80. package/methodology/configuration paralysis emerges when derivation surfaces too many decisions.md +44 -0
  81. package/methodology/context files function as agent operating systems through self-referential self-extension.md +46 -0
  82. package/methodology/context phrase clarity determines how deep a navigation hierarchy can scale.md +46 -0
  83. package/methodology/continuous small-batch processing eliminates review dread.md +48 -0
  84. package/methodology/controlled disorder engineers serendipity through semantic rather than topical linking.md +51 -0
  85. package/methodology/creative writing uses worldbuilding consistency with character tracking.md +672 -0
  86. package/methodology/cross-links between MOC territories indicate creative leaps and integration depth.md +43 -0
  87. package/methodology/dangling links reveal which notes want to exist.md +62 -0
  88. package/methodology/data exit velocity measures how quickly content escapes vendor lock-in.md +74 -0
  89. package/methodology/decontextualization risk means atomicity may strip meaning that cannot be recovered.md +48 -0
  90. package/methodology/dense interlinked research claims enable derivation while sparse references only enable templating.md +47 -0
  91. package/methodology/dependency resolution through topological sort makes module composition transparent and verifiable.md +56 -0
  92. package/methodology/derivation generates knowledge systems from composable research claims not template customization.md +63 -0
  93. package/methodology/derivation-engine.md +27 -0
  94. package/methodology/derived systems follow a seed-evolve-reseed lifecycle.md +56 -0
  95. package/methodology/description quality for humans diverges from description quality for keyword search.md +73 -0
  96. package/methodology/descriptions are retrieval filters not summaries.md +112 -0
  97. package/methodology/design MOCs as attention management devices with lifecycle governance.md +318 -0
  98. package/methodology/design-dimensions.md +66 -0
  99. package/methodology/digital mutability enables note evolution that physical permanence forbids.md +54 -0
  100. package/methodology/discovery-retrieval.md +48 -0
  101. package/methodology/distinctiveness scoring treats description quality as measurable.md +69 -0
  102. package/methodology/does agent processing recover what fast capture loses.md +43 -0
  103. package/methodology/domain-compositions.md +37 -0
  104. package/methodology/dual-coding with visual elements could enhance agent traversal.md +55 -0
  105. package/methodology/each module must be describable in one sentence under 200 characters or it does too many things.md +45 -0
  106. package/methodology/each new note compounds value by creating traversal paths.md +55 -0
  107. package/methodology/eight configuration dimensions parameterize the space of possible knowledge systems.md +56 -0
  108. package/methodology/elaborative encoding is the quality gate for new notes.md +55 -0
  109. package/methodology/enforce schema with graduated strictness across capture processing and query zones.md +221 -0
  110. package/methodology/enforcing atomicity can create paralysis when ideas resist decomposition.md +43 -0
  111. package/methodology/engineering uses technical decision tracking with architectural memory.md +766 -0
  112. package/methodology/every knowledge domain shares a four-phase processing skeleton that diverges only in the process step.md +53 -0
  113. package/methodology/evolution observations provide actionable signals for system adaptation.md +67 -0
  114. package/methodology/external memory shapes cognition more than base model.md +60 -0
  115. package/methodology/faceted classification treats notes as multi-dimensional objects rather than folder contents.md +65 -0
  116. package/methodology/failure-modes.md +27 -0
  117. package/methodology/false universalism applies same processing logic regardless of domain.md +49 -0
  118. package/methodology/federated wiki pattern enables multi-agent divergence as feature not bug.md +59 -0
  119. package/methodology/flat files break at retrieval scale.md +75 -0
  120. package/methodology/forced engagement produces weak connections.md +48 -0
  121. package/methodology/four abstraction layers separate platform-agnostic from platform-dependent knowledge system features.md +47 -0
  122. package/methodology/fresh context per task preserves quality better than chaining phases.md +44 -0
  123. package/methodology/friction reveals architecture.md +63 -0
  124. package/methodology/friction-driven module adoption prevents configuration debt by adding complexity only at pain points.md +48 -0
  125. package/methodology/gardening cycle implements tend prune fertilize operations.md +41 -0
  126. package/methodology/generation effect gate blocks processing without transformation.md +40 -0
  127. package/methodology/goal-driven memory orchestration enables autonomous domain learning through directed compute allocation.md +41 -0
  128. package/methodology/good descriptions layer heuristic then mechanism then implication.md +57 -0
  129. package/methodology/graph-structure.md +65 -0
  130. package/methodology/guided notes might outperform post-hoc structuring for high-volume capture.md +37 -0
  131. package/methodology/health wellness uses symptom-trigger correlation with multi-dimensional tracking.md +819 -0
  132. package/methodology/hook composition creates emergent methodology from independent single-concern components.md +47 -0
  133. package/methodology/hook enforcement guarantees quality while instruction enforcement merely suggests it.md +51 -0
  134. package/methodology/hook-driven learning loops create self-improving methodology through observation accumulation.md +62 -0
  135. package/methodology/hooks are the agent habit system that replaces the missing basal ganglia.md +40 -0
  136. package/methodology/hooks cannot replace genuine cognitive engagement yet more automation is always tempting.md +87 -0
  137. package/methodology/hooks enable context window efficiency by delegating deterministic checks to external processes.md +47 -0
  138. package/methodology/idempotent maintenance operations are safe to automate because running them twice produces the same result as running them once.md +44 -0
  139. package/methodology/implement condition-based maintenance triggers for derived systems.md +255 -0
  140. package/methodology/implicit dependencies create distributed monoliths that fail silently across configurations.md +58 -0
  141. package/methodology/implicit knowledge emerges from traversal.md +55 -0
  142. package/methodology/incremental formalization happens through repeated touching of old notes.md +60 -0
  143. package/methodology/incremental reading enables cross-source connection finding.md +39 -0
  144. package/methodology/index.md +32 -0
  145. package/methodology/inline links carry richer relationship data than metadata fields.md +91 -0
  146. package/methodology/insight accretion differs from productivity in knowledge systems.md +41 -0
  147. package/methodology/intermediate packets enable assembly over creation.md +52 -0
  148. package/methodology/intermediate representation pattern enables reliable vault operations beyond regex.md +62 -0
  149. package/methodology/justification chains enable forward backward and evolution reasoning about configuration decisions.md +46 -0
  150. package/methodology/knowledge system architecture is parameterized by platform capabilities not fixed by methodology.md +51 -0
  151. package/methodology/knowledge systems become communication partners through complexity and memory humans cannot sustain.md +47 -0
  152. package/methodology/knowledge systems share universal operations and structural components across all methodology traditions.md +46 -0
  153. package/methodology/legal case management uses precedent chains with regulatory change propagation.md +892 -0
  154. package/methodology/live index via periodic regeneration keeps discovery current.md +58 -0
  155. package/methodology/local-first file formats are inherently agent-native.md +69 -0
  156. package/methodology/logic column pattern separates reasoning from procedure.md +35 -0
  157. package/methodology/maintenance operations are more universal than creative pipelines because structural health is domain-invariant.md +47 -0
  158. package/methodology/maintenance scheduling frequency should match consequence speed not detection capability.md +50 -0
  159. package/methodology/maintenance targeting should prioritize mechanism and theory notes.md +26 -0
  160. package/methodology/maintenance-patterns.md +72 -0
  161. package/methodology/markdown plus YAML plus ripgrep implements a queryable graph database without infrastructure.md +55 -0
  162. package/methodology/maturity field enables agent context prioritization.md +33 -0
  163. package/methodology/memory-architecture.md +27 -0
  164. package/methodology/metacognitive confidence can diverge from retrieval capability.md +42 -0
  165. package/methodology/metadata reduces entropy enabling precision over recall.md +91 -0
  166. package/methodology/methodology development should follow the trajectory from documentation to skill to hook as understanding hardens.md +80 -0
  167. package/methodology/methodology traditions are named points in a shared configuration space not competing paradigms.md +64 -0
  168. package/methodology/mnemonic medium embeds verification into navigation.md +46 -0
  169. package/methodology/module communication through shared YAML fields creates loose coupling without direct dependencies.md +44 -0
  170. package/methodology/module deactivation must account for structural artifacts that survive the toggle.md +49 -0
  171. package/methodology/multi-domain systems compose through separate templates and shared graph.md +61 -0
  172. package/methodology/multi-domain-composition.md +27 -0
  173. package/methodology/narrow folksonomy optimizes for single-operator retrieval unlike broad consensus tagging.md +53 -0
  174. package/methodology/navigation infrastructure passes through distinct scaling regimes that require qualitative strategy shifts.md +48 -0
  175. package/methodology/navigational vertigo emerges in pure association systems without local hierarchy.md +54 -0
  176. package/methodology/note titles should function as APIs enabling sentence transclusion.md +51 -0
  177. package/methodology/note-design.md +57 -0
  178. package/methodology/notes are skills /342/200/224 curated knowledge injected when relevant.md" +62 -0
  179. package/methodology/notes function as cognitive anchors that stabilize attention during complex tasks.md +41 -0
  180. package/methodology/novel domains derive by mapping knowledge type to closest reference domain then adapting.md +50 -0
  181. package/methodology/nudge theory explains graduated hook enforcement as choice architecture for agents.md +59 -0
  182. package/methodology/observation and tension logs function as dead-letter queues for failed automation.md +51 -0
  183. package/methodology/operational memory and knowledge memory serve different functions in agent architecture.md +48 -0
  184. package/methodology/operational wisdom requires contextual observation.md +52 -0
  185. package/methodology/orchestrated vault creation transforms arscontexta from tool to autonomous knowledge factory.md +40 -0
  186. package/methodology/organic emergence versus active curation creates a fundamental vault governance tension.md +68 -0
  187. package/methodology/orphan notes are seeds not failures.md +38 -0
  188. package/methodology/over-automation corrupts quality when hooks encode judgment rather than verification.md +62 -0
  189. package/methodology/people relationships uses Dunbar-layered graphs with interaction tracking.md +659 -0
  190. package/methodology/personal assistant uses life area management with review automation.md +610 -0
  191. package/methodology/platform adapter translation is semantic not mechanical because hook event meanings differ.md +40 -0
  192. package/methodology/platform capability tiers determine which knowledge system features can be implemented.md +48 -0
  193. package/methodology/platform fragmentation means identical conceptual operations require different implementations across agent environments.md +44 -0
  194. package/methodology/premature complexity is the most common derivation failure mode.md +45 -0
  195. package/methodology/prevent domain-specific failure modes through the vulnerability matrix.md +336 -0
  196. package/methodology/processing effort should follow retrieval demand.md +57 -0
  197. package/methodology/processing-workflows.md +75 -0
  198. package/methodology/product management uses feedback pipelines with experiment tracking.md +789 -0
  199. package/methodology/productivity porn risk in meta-system building.md +30 -0
  200. package/methodology/programmable notes could enable property-triggered workflows.md +64 -0
  201. package/methodology/progressive disclosure means reading right not reading less.md +69 -0
  202. package/methodology/progressive schema validates only what active modules require not the full system schema.md +49 -0
  203. package/methodology/project management uses decision tracking with stakeholder context.md +776 -0
  204. package/methodology/propositional link semantics transform wiki links from associative to reasoned.md +87 -0
  205. package/methodology/prospective memory requires externalization.md +53 -0
  206. package/methodology/provenance tracks where beliefs come from.md +62 -0
  207. package/methodology/queries evolve during search so agents should checkpoint.md +35 -0
  208. package/methodology/question-answer metadata enables inverted search patterns.md +39 -0
  209. package/methodology/random note resurfacing prevents write-only memory.md +33 -0
  210. package/methodology/reconciliation loops that compare desired state to actual state enable drift correction without continuous monitoring.md +59 -0
  211. package/methodology/reflection synthesizes existing notes into new insight.md +100 -0
  212. package/methodology/retrieval utility should drive design over capture completeness.md +69 -0
  213. package/methodology/retrieval verification loop tests description quality at scale.md +81 -0
  214. package/methodology/role field makes graph structure explicit.md +94 -0
  215. package/methodology/scaffolding enables divergence that fine-tuning cannot.md +67 -0
  216. package/methodology/schema enforcement via validation agents enables soft consistency.md +60 -0
  217. package/methodology/schema evolution follows observe-then-formalize not design-then-enforce.md +65 -0
  218. package/methodology/schema field names are the only domain specific element in the universal note pattern.md +46 -0
  219. package/methodology/schema fields should use domain-native vocabulary not abstract terminology.md +47 -0
  220. package/methodology/schema templates reduce cognitive overhead at capture time.md +55 -0
  221. package/methodology/schema validation hooks externalize inhibitory control that degrades under cognitive load.md +48 -0
  222. package/methodology/schema-enforcement.md +27 -0
  223. package/methodology/self-extension requires context files to contain platform operations knowledge not just methodology.md +47 -0
  224. package/methodology/sense-making vs storage does compression lose essential nuance.md +73 -0
  225. package/methodology/session boundary hooks implement cognitive bookends for orientation and reflection.md +60 -0
  226. package/methodology/session handoff creates continuity without persistent memory.md +43 -0
  227. package/methodology/session outputs are packets for future selves.md +43 -0
  228. package/methodology/session transcript mining enables experiential validation that structural tests cannot provide.md +38 -0
  229. package/methodology/skill context budgets constrain knowledge system complexity on agent platforms.md +52 -0
  230. package/methodology/skills encode methodology so manual execution bypasses quality gates.md +50 -0
  231. package/methodology/small-world topology requires hubs and dense local links.md +99 -0
  232. package/methodology/source attribution enables tracing claims to foundations.md +38 -0
  233. package/methodology/spaced repetition scheduling could optimize vault maintenance.md +44 -0
  234. package/methodology/spreading activation models how agents should traverse.md +79 -0
  235. package/methodology/stale navigation actively misleads because agents trust curated maps completely.md +43 -0
  236. package/methodology/stigmergy coordinates agents through environmental traces without direct communication.md +62 -0
  237. package/methodology/storage versus thinking distinction determines which tool patterns apply.md +56 -0
  238. package/methodology/structure enables navigation without reading everything.md +52 -0
  239. package/methodology/structure without processing provides no value.md +56 -0
  240. package/methodology/student learning uses prerequisite graphs with spaced retrieval.md +770 -0
  241. package/methodology/summary coherence tests composability before filing.md +37 -0
  242. package/methodology/tag rot applies to wiki links because titles serve as both identifier and display text.md +50 -0
  243. package/methodology/temporal media must convert to spatial text for agent traversal.md +43 -0
  244. package/methodology/temporal processing priority creates age-based inbox urgency.md +45 -0
  245. package/methodology/temporal separation of capture and processing preserves context freshness.md +39 -0
  246. package/methodology/ten universal primitives form the kernel of every viable agent knowledge system.md +162 -0
  247. package/methodology/testing effect could enable agent knowledge verification.md +38 -0
  248. package/methodology/the AgentSkills standard embodies progressive disclosure at the skill level.md +40 -0
  249. package/methodology/the derivation engine improves recursively as deployed systems generate observations.md +49 -0
  250. package/methodology/the determinism boundary separates hook methodology from skill methodology.md +46 -0
  251. package/methodology/the fix-versus-report decision depends on determinism reversibility and accumulated trust.md +45 -0
  252. package/methodology/the generation effect requires active transformation not just storage.md +57 -0
  253. package/methodology/the no wrong patches guarantee ensures any valid module combination produces a valid system.md +58 -0
  254. package/methodology/the system is the argument.md +46 -0
  255. package/methodology/the vault constitutes identity for agents.md +86 -0
  256. package/methodology/the vault methodology transfers because it encodes cognitive science not domain specifics.md +47 -0
  257. package/methodology/therapy journal uses warm personality with pattern detection for emotional processing.md +584 -0
  258. package/methodology/three capture schools converge through agent-mediated synthesis.md +55 -0
  259. package/methodology/three concurrent maintenance loops operate at different timescales to catch different classes of problems.md +56 -0
  260. package/methodology/throughput matters more than accumulation.md +58 -0
  261. package/methodology/title as claim enables traversal as reasoning.md +50 -0
  262. package/methodology/topological organization beats temporal for knowledge work.md +52 -0
  263. package/methodology/trading uses conviction tracking with thesis-outcome correlation.md +699 -0
  264. package/methodology/trails transform ephemeral navigation into persistent artifacts.md +39 -0
  265. package/methodology/transform universal vocabulary to domain-native language through six levels.md +259 -0
  266. package/methodology/type field enables structured queries without folder hierarchies.md +53 -0
  267. package/methodology/use-case presets dissolve the tension between composability and simplicity.md +44 -0
  268. package/methodology/vault conventions may impose hidden rigidity on thinking.md +44 -0
  269. package/methodology/verbatim risk applies to agents too.md +31 -0
  270. package/methodology/vibe notetaking is the emerging industry consensus for AI-native self-organization.md +56 -0
  271. package/methodology/vivid memories need verification.md +45 -0
  272. package/methodology/vocabulary-transformation.md +27 -0
  273. package/methodology/voice capture is the highest-bandwidth channel for agent-delegated knowledge systems.md +45 -0
  274. package/methodology/wiki links are the digital evolution of analog indexing.md +73 -0
  275. package/methodology/wiki links as social contract transforms agents into stewards of incomplete references.md +52 -0
  276. package/methodology/wiki links create navigation paths that shape retrieval.md +63 -0
  277. package/methodology/wiki links implement GraphRAG without the infrastructure.md +101 -0
  278. package/methodology/writing for audience blocks authentic creation.md +22 -0
  279. package/methodology/you operate a system that takes notes.md +79 -0
  280. package/openclaw/SKILL.md +110 -0
  281. package/package.json +45 -0
  282. package/platforms/README.md +51 -0
  283. package/platforms/claude-code/generator.md +61 -0
  284. package/platforms/claude-code/hooks/README.md +186 -0
  285. package/platforms/claude-code/hooks/auto-commit.sh.template +38 -0
  286. package/platforms/claude-code/hooks/session-capture.sh.template +72 -0
  287. package/platforms/claude-code/hooks/session-orient.sh.template +189 -0
  288. package/platforms/claude-code/hooks/write-validate.sh.template +106 -0
  289. package/platforms/openclaw/generator.md +82 -0
  290. package/platforms/openclaw/hooks/README.md +89 -0
  291. package/platforms/openclaw/hooks/bootstrap.ts.template +224 -0
  292. package/platforms/openclaw/hooks/command-new.ts.template +165 -0
  293. package/platforms/openclaw/hooks/heartbeat.ts.template +214 -0
  294. package/platforms/shared/features/README.md +70 -0
  295. package/platforms/shared/skill-blocks/graph.md +145 -0
  296. package/platforms/shared/skill-blocks/learn.md +119 -0
  297. package/platforms/shared/skill-blocks/next.md +131 -0
  298. package/platforms/shared/skill-blocks/pipeline.md +326 -0
  299. package/platforms/shared/skill-blocks/ralph.md +616 -0
  300. package/platforms/shared/skill-blocks/reduce.md +1142 -0
  301. package/platforms/shared/skill-blocks/refactor.md +129 -0
  302. package/platforms/shared/skill-blocks/reflect.md +780 -0
  303. package/platforms/shared/skill-blocks/remember.md +524 -0
  304. package/platforms/shared/skill-blocks/rethink.md +574 -0
  305. package/platforms/shared/skill-blocks/reweave.md +680 -0
  306. package/platforms/shared/skill-blocks/seed.md +320 -0
  307. package/platforms/shared/skill-blocks/stats.md +145 -0
  308. package/platforms/shared/skill-blocks/tasks.md +171 -0
  309. package/platforms/shared/skill-blocks/validate.md +323 -0
  310. package/platforms/shared/skill-blocks/verify.md +562 -0
  311. package/platforms/shared/templates/README.md +35 -0
  312. package/presets/experimental/categories.yaml +1 -0
  313. package/presets/experimental/preset.yaml +38 -0
  314. package/presets/experimental/starter/README.md +7 -0
  315. package/presets/experimental/vocabulary.yaml +7 -0
  316. package/presets/personal/categories.yaml +7 -0
  317. package/presets/personal/preset.yaml +41 -0
  318. package/presets/personal/starter/goals.md +21 -0
  319. package/presets/personal/starter/index.md +17 -0
  320. package/presets/personal/starter/life-areas.md +21 -0
  321. package/presets/personal/starter/people.md +21 -0
  322. package/presets/personal/vocabulary.yaml +32 -0
  323. package/presets/research/categories.yaml +8 -0
  324. package/presets/research/preset.yaml +41 -0
  325. package/presets/research/starter/index.md +17 -0
  326. package/presets/research/starter/methods.md +21 -0
  327. package/presets/research/starter/open-questions.md +21 -0
  328. package/presets/research/vocabulary.yaml +33 -0
  329. package/reference/AUDIT-REPORT.md +238 -0
  330. package/reference/claim-map.md +172 -0
  331. package/reference/components.md +327 -0
  332. package/reference/conversation-patterns.md +542 -0
  333. package/reference/derivation-validation.md +649 -0
  334. package/reference/dimension-claim-map.md +134 -0
  335. package/reference/evolution-lifecycle.md +297 -0
  336. package/reference/failure-modes.md +235 -0
  337. package/reference/interaction-constraints.md +204 -0
  338. package/reference/kernel.yaml +242 -0
  339. package/reference/methodology.md +283 -0
  340. package/reference/open-questions.md +279 -0
  341. package/reference/personality-layer.md +302 -0
  342. package/reference/self-space.md +299 -0
  343. package/reference/semantic-vs-keyword.md +288 -0
  344. package/reference/session-lifecycle.md +298 -0
  345. package/reference/templates/base-note.md +16 -0
  346. package/reference/templates/companion-note.md +70 -0
  347. package/reference/templates/creative-note.md +16 -0
  348. package/reference/templates/learning-note.md +16 -0
  349. package/reference/templates/life-note.md +16 -0
  350. package/reference/templates/moc.md +26 -0
  351. package/reference/templates/relationship-note.md +17 -0
  352. package/reference/templates/research-note.md +19 -0
  353. package/reference/templates/session-log.md +24 -0
  354. package/reference/templates/therapy-note.md +16 -0
  355. package/reference/test-fixtures/edge-case-constraints.md +148 -0
  356. package/reference/test-fixtures/multi-domain.md +164 -0
  357. package/reference/test-fixtures/novel-domain-gaming.md +138 -0
  358. package/reference/test-fixtures/research-minimal.md +102 -0
  359. package/reference/test-fixtures/therapy-full.md +155 -0
  360. package/reference/testing-milestones.md +1087 -0
  361. package/reference/three-spaces.md +363 -0
  362. package/reference/tradition-presets.md +203 -0
  363. package/reference/use-case-presets.md +341 -0
  364. package/reference/validate-kernel.sh +432 -0
  365. package/reference/vocabulary-transforms.md +85 -0
  366. package/scripts/sync-thinking.sh +147 -0
  367. package/skill-sources/graph/SKILL.md +567 -0
  368. package/skill-sources/graph/skill.json +17 -0
  369. package/skill-sources/learn/SKILL.md +254 -0
  370. package/skill-sources/learn/skill.json +17 -0
  371. package/skill-sources/next/SKILL.md +407 -0
  372. package/skill-sources/next/skill.json +17 -0
  373. package/skill-sources/pipeline/SKILL.md +314 -0
  374. package/skill-sources/pipeline/skill.json +17 -0
  375. package/skill-sources/ralph/SKILL.md +604 -0
  376. package/skill-sources/ralph/skill.json +17 -0
  377. package/skill-sources/reduce/SKILL.md +1113 -0
  378. package/skill-sources/reduce/skill.json +17 -0
  379. package/skill-sources/refactor/SKILL.md +448 -0
  380. package/skill-sources/refactor/skill.json +17 -0
  381. package/skill-sources/reflect/SKILL.md +747 -0
  382. package/skill-sources/reflect/skill.json +17 -0
  383. package/skill-sources/remember/SKILL.md +534 -0
  384. package/skill-sources/remember/skill.json +17 -0
  385. package/skill-sources/rethink/SKILL.md +658 -0
  386. package/skill-sources/rethink/skill.json +17 -0
  387. package/skill-sources/reweave/SKILL.md +657 -0
  388. package/skill-sources/reweave/skill.json +17 -0
  389. package/skill-sources/seed/SKILL.md +303 -0
  390. package/skill-sources/seed/skill.json +17 -0
  391. package/skill-sources/stats/SKILL.md +371 -0
  392. package/skill-sources/stats/skill.json +17 -0
  393. package/skill-sources/tasks/SKILL.md +402 -0
  394. package/skill-sources/tasks/skill.json +17 -0
  395. package/skill-sources/validate/SKILL.md +310 -0
  396. package/skill-sources/validate/skill.json +17 -0
  397. package/skill-sources/verify/SKILL.md +532 -0
  398. package/skill-sources/verify/skill.json +17 -0
  399. package/skills/add-domain/SKILL.md +441 -0
  400. package/skills/add-domain/skill.json +17 -0
  401. package/skills/architect/SKILL.md +568 -0
  402. package/skills/architect/skill.json +17 -0
  403. package/skills/ask/SKILL.md +388 -0
  404. package/skills/ask/skill.json +17 -0
  405. package/skills/health/SKILL.md +760 -0
  406. package/skills/health/skill.json +17 -0
  407. package/skills/help/SKILL.md +348 -0
  408. package/skills/help/skill.json +17 -0
  409. package/skills/recommend/SKILL.md +553 -0
  410. package/skills/recommend/skill.json +17 -0
  411. package/skills/reseed/SKILL.md +385 -0
  412. package/skills/reseed/skill.json +17 -0
  413. package/skills/setup/SKILL.md +1688 -0
  414. package/skills/setup/skill.json +17 -0
  415. package/skills/tutorial/SKILL.md +496 -0
  416. package/skills/tutorial/skill.json +17 -0
  417. package/skills/upgrade/SKILL.md +395 -0
  418. package/skills/upgrade/skill.json +17 -0
@@ -0,0 +1,188 @@
1
+ # Feature: Graph Analysis
2
+
3
+ ## Context File Block
4
+
5
+ ```markdown
6
+ ## Graph Analysis — Your Vault as a Queryable Database
7
+
8
+ Your wiki-linked vault is not just a folder of markdown files. It is a graph database:
9
+
10
+ - **Nodes** are markdown files (your {DOMAIN:notes})
11
+ - **Edges** are wiki links (`[[connections]]` between {DOMAIN:notes})
12
+ - **Properties** are YAML frontmatter fields (structured metadata on every node)
13
+ - **Query engine** is ripgrep (`rg`) operating over structured text
14
+
15
+ This means every question you can ask about a graph database — "what connects to what?", "where are the clusters?", "what is isolated?" — you can answer with standard command-line tools. No external database required. The filesystem IS the database.
16
+
17
+ ### Three Query Levels
18
+
19
+ Graph queries operate at three levels of increasing sophistication:
20
+
21
+ #### Level 1: Field-Level Queries (Property Inspection)
22
+
23
+ Query individual YAML fields across {DOMAIN:notes}:
24
+
25
+ ```bash
26
+ # Find all {DOMAIN:notes} of a specific type
27
+ rg '^type: pattern' {DOMAIN:notes}/
28
+
29
+ # Scan descriptions for a concept
30
+ rg '^description:.*friction' {DOMAIN:notes}/
31
+
32
+ # Find {DOMAIN:notes} missing required fields
33
+ rg -L '^description:' {DOMAIN:notes}/*.md
34
+
35
+ # Find {DOMAIN:notes} by {DOMAIN:topic map}
36
+ rg '^topics:.*\[\[methodology\]\]' {DOMAIN:notes}/
37
+
38
+ # Cross-field queries (combine with xargs)
39
+ rg -l '^type: tension' {DOMAIN:notes}/ | xargs rg '^status: pending'
40
+ ```
41
+
42
+ Field-level queries answer: "What properties do my {DOMAIN:notes} have?" They are fast, precise, and require no external tools.
43
+
44
+ #### Level 2: Node-Level Queries (Neighborhood Inspection)
45
+
46
+ Query a specific {DOMAIN:note}'s relationships — what it links to, what links to it:
47
+
48
+ ```bash
49
+ # Find all outgoing links from a {DOMAIN:note}
50
+ ./ops/scripts/graph/extract-links.sh "{DOMAIN:note} title"
51
+
52
+ # Find all incoming links (backlinks) to a {DOMAIN:note}
53
+ ./ops/scripts/backlinks.sh "{DOMAIN:note} title"
54
+
55
+ # Count connections
56
+ ./ops/scripts/backlinks.sh "{DOMAIN:note} title" --count
57
+ ```
58
+
59
+ Node-level queries answer: "What is this {DOMAIN:note}'s neighborhood?" They reveal a single node's context within the larger graph.
60
+
61
+ #### Level 3: Graph-Level Queries (Structural Analysis)
62
+
63
+ Query the graph's topology — clusters, bridges, synthesis opportunities, influence patterns:
64
+
65
+ ```bash
66
+ # Find synthesis opportunities (open triangles)
67
+ ./ops/scripts/graph/find-triangles.sh
68
+
69
+ # Detect isolated clusters
70
+ ./ops/scripts/graph/find-clusters.sh
71
+
72
+ # Find structurally critical {DOMAIN:notes}
73
+ ./ops/scripts/graph/find-bridges.sh
74
+
75
+ # Measure overall graph health
76
+ ./ops/scripts/link-density.sh
77
+ ```
78
+
79
+ Graph-level queries answer: "What does the structure of my knowledge look like?" They reveal patterns invisible from any single {DOMAIN:note}.
80
+
81
+ ### Available Graph Operations
82
+
83
+ #### Traversal Operations
84
+
85
+ Navigate the graph from any starting point:
86
+
87
+ | Operation | Script | What It Does |
88
+ |-----------|--------|-------------|
89
+ | Forward N-hop | `graph/n-hop-forward.sh "{DOMAIN:note}" [depth]` | Find everything reachable within N links from a starting {DOMAIN:note}. Depth 1 shows direct connections; depth 2 shows connections-of-connections. Useful for understanding a concept's reach. |
90
+ | Backward N-hop | `graph/recursive-backlinks.sh "{DOMAIN:note}" [depth]` | Find everything that leads TO a {DOMAIN:note} within N hops. Reveals what lines of thought converge on a concept. |
91
+ | Link extraction | `graph/extract-links.sh "{DOMAIN:note}"` | List all wiki links in a specific {DOMAIN:note}. The raw edge list from a single node. |
92
+
93
+ #### Synthesis Operations
94
+
95
+ Detect opportunities for new connections and insights:
96
+
97
+ | Operation | Script | What It Does |
98
+ |-----------|--------|-------------|
99
+ | Triangle detection | `graph/find-triangles.sh` | Find open triadic closures: {DOMAIN:note} A links to B, A links to C, but B and C do not link to each other. These are synthesis opportunities — two concepts connected through a shared parent but not yet directly related. |
100
+ | Topic siblings | `graph/topic-siblings.sh "{DOMAIN:topic map}"` | Find {DOMAIN:notes} in the same {DOMAIN:topic map} that do not link to each other. Notes that share a topic but lack direct connections often reveal unexplored relationships. |
101
+
102
+ Triangle detection is particularly powerful because it finds structural gaps that browsing cannot detect. When A links to B and A links to C, there is often a genuine relationship between B and C that was simply not captured. The script surfaces these candidates for human judgment — not every open triangle should close, but many reveal real connections.
103
+
104
+ #### Structural Operations
105
+
106
+ Understand the architecture of your knowledge graph:
107
+
108
+ | Operation | Script | What It Does |
109
+ |-----------|--------|-------------|
110
+ | Cluster detection | `graph/find-clusters.sh` | Find connected components — groups of {DOMAIN:notes} that link to each other but not to other groups. Reveals topic boundaries and isolated knowledge islands. |
111
+ | Bridge detection | `graph/find-bridges.sh` | Find bridge {DOMAIN:notes} — nodes whose removal would disconnect parts of the graph. These are structurally critical and may need splitting to reduce fragility. |
112
+ | Connected components | `graph/find-clusters.sh --components` | Count the number of separate connected subgraphs. A healthy vault is one large connected component. Multiple components suggest domain silos. |
113
+
114
+ #### Density Operations
115
+
116
+ Measure the health of your graph's connectivity:
117
+
118
+ | Operation | Script | What It Does |
119
+ |-----------|--------|-------------|
120
+ | Link density | `link-density.sh` | Average outgoing links per {DOMAIN:note}. Target: 3+ links per {DOMAIN:note}. Below this, the graph is sparse and traversal is unreliable. |
121
+ | Orphan detection | `orphan-notes.sh` | {DOMAIN:Notes} with zero incoming links. Invisible to traversal — they exist but no path leads to them. |
122
+ | Dangling links | `dangling-links.sh` | Wiki links pointing to {DOMAIN:notes} that do not exist. Demand signals for what should be created. |
123
+
124
+ #### Centrality Operations
125
+
126
+ Identify the most important and influential {DOMAIN:notes}:
127
+
128
+ | Operation | Script | What It Does |
129
+ |-----------|--------|-------------|
130
+ | Hub/authority ranking | `graph/influence-flow.sh` | Ranks {DOMAIN:notes} by link patterns. Hubs are {DOMAIN:notes} with many outgoing links (they point to lots of things). Authorities are {DOMAIN:notes} with many incoming links (lots of things point to them). Synthesizers have both high incoming and high outgoing — they integrate knowledge. |
131
+
132
+ #### Schema Queries
133
+
134
+ Use YAML frontmatter as a queryable property layer:
135
+
136
+ ```bash
137
+ # All {DOMAIN:notes} by methodology tradition
138
+ rg '^methodology:.*Zettelkasten' {DOMAIN:notes}/
139
+
140
+ # Unresolved tensions
141
+ rg -l '^type: tension' {DOMAIN:notes}/ | xargs rg '^status: pending'
142
+
143
+ # {DOMAIN:Notes} adapted from human patterns
144
+ rg '^adapted_from: ' {DOMAIN:notes}/ | grep -v 'null'
145
+
146
+ # Combined methodology synthesis {DOMAIN:notes}
147
+ rg '^methodology: \[' {DOMAIN:notes}/ | grep -E '\[.*,.*\]'
148
+
149
+ # {DOMAIN:Notes} without source attribution
150
+ rg -L '^source:' {DOMAIN:notes}/*.md
151
+ ```
152
+
153
+ Schema queries are domain-adapted: the specific fields and enum values come from your templates. Every schema field becomes a query dimension. Combining dimensions surfaces cross-cutting insights that browsing alone cannot find.
154
+
155
+ ### The /graph Command
156
+
157
+ Use /{DOMAIN:analyze} for interactive graph analysis. Ask questions in natural language or use explicit operation names:
158
+
159
+ ```
160
+ /{DOMAIN:analyze} "What connects to [[{DOMAIN:note} title]]?"
161
+ /{DOMAIN:analyze} triangles
162
+ /{DOMAIN:analyze} "Where are synthesis opportunities?"
163
+ /{DOMAIN:analyze} orphans
164
+ /{DOMAIN:analyze} "What are the most influential {DOMAIN:notes}?"
165
+ /{DOMAIN:analyze} density
166
+ ```
167
+
168
+ The command routes to the appropriate script(s), interprets results in domain vocabulary, and suggests concrete actions. Results always include context (descriptions, relationship types), not bare file lists. Large result sets are summarized with top findings rather than dumped in full.
169
+
170
+ ### When to Use Each Operation Type
171
+
172
+ | Situation | Operation | Why |
173
+ |-----------|-----------|-----|
174
+ | Just created new {DOMAIN:notes} | Triangle detection + topic siblings | Find connections you missed during creation |
175
+ | Graph feels disconnected | Cluster detection + bridge analysis | Understand the structure and find linking opportunities |
176
+ | Preparing for a synthesis session | Forward N-hop from key {DOMAIN:notes} | Map the neighborhood before writing |
177
+ | Health check | Orphan detection + dangling links + density | Standard diagnostic pass |
178
+ | Prioritizing maintenance | Influence flow + bridge detection | Focus on structurally important {DOMAIN:notes} first |
179
+ | Exploring a new topic | Backward N-hop to the {DOMAIN:topic map} | See what converges on this topic |
180
+ | Schema audit | Field-level queries across all {DOMAIN:notes} | Verify consistency and completeness |
181
+
182
+ ### Limitations
183
+
184
+ Graph analysis scripts find structural patterns — they cannot assess whether a connection is intellectually warranted. Triangle detection reveals that B and C share a parent but are not linked; it cannot tell you whether B and C SHOULD be linked. That judgment is yours. Use structural analysis to find candidates, then apply intellectual judgment to evaluate them.
185
+ ```
186
+
187
+ ## Dependencies
188
+ Requires: wiki-links (graph edges depend on wiki link infrastructure), schema (property queries depend on structured YAML)
@@ -0,0 +1,92 @@
1
+ # Feature: Helper Functions
2
+
3
+ ## Context File Block
4
+
5
+ ```markdown
6
+ ## Helper Functions — Essential Graph Infrastructure
7
+
8
+ Your vault ships with utility scripts for safe graph maintenance. These are not afterthoughts — they are essential infrastructure that prevents common failure modes when working with a wiki-linked knowledge graph.
9
+
10
+ ### Safe Rename
11
+
12
+ Never rename a {DOMAIN:note} manually. Manual renames break every wiki link that references the old title, silently degrading the graph. Use the rename script:
13
+
14
+ ```bash
15
+ ./ops/scripts/rename-note.sh "old title" "new title"
16
+ ```
17
+
18
+ The script:
19
+ 1. Finds the file by name (searches the entire vault)
20
+ 2. Renames with `git mv` (preserves history)
21
+ 3. Updates ALL wiki links across every file in the vault
22
+ 4. Verifies no broken links remain after the rename
23
+
24
+ This is the only safe way to rename. Wiki links resolve by filename — when a filename changes, every `[[old title]]` in the vault becomes a dangling link unless updated. The script handles this atomically.
25
+
26
+ ### Graph Maintenance Utilities
27
+
28
+ Scripts for detecting and resolving common graph health issues:
29
+
30
+ **Orphan detection** — Find {DOMAIN:notes} with no incoming links. Orphaned {DOMAIN:notes} are invisible to traversal — they exist but nobody can reach them:
31
+ ```bash
32
+ ./ops/scripts/orphan-notes.sh
33
+ ```
34
+ Every orphan is either a gap (needs connections) or stale (needs archiving). Neither is acceptable as a permanent state.
35
+
36
+ **Dangling link detection** — Find wiki links that point to non-existent {DOMAIN:notes}:
37
+ ```bash
38
+ ./ops/scripts/dangling-links.sh
39
+ ```
40
+ Dangling links are demand signals — they tell you what {DOMAIN:notes} should exist but do not. Either create the missing {DOMAIN:note} or fix the link.
41
+
42
+ **Backlink count** — Count incoming links to a specific {DOMAIN:note}:
43
+ ```bash
44
+ ./ops/scripts/backlinks.sh "note title"
45
+ ```
46
+ High backlink counts identify hub {DOMAIN:notes} — central concepts that many other {DOMAIN:notes} reference. Low counts on important {DOMAIN:notes} suggest connection-finding opportunities.
47
+
48
+ **Link density** — Measure the average number of links per {DOMAIN:note}:
49
+ ```bash
50
+ ./ops/scripts/link-density.sh
51
+ ```
52
+ Healthy graphs maintain an average of 3+ outgoing links per {DOMAIN:note}. Below that threshold, the graph is sparse and traversal becomes unreliable.
53
+
54
+ **Schema validation** — Validate all {DOMAIN:notes} against their template schemas:
55
+ ```bash
56
+ ./ops/scripts/validate-schema.sh
57
+ ```
58
+ Checks required fields, enum values, and constraints. Reports violations by severity (PASS, WARN, FAIL).
59
+
60
+ ### Batch Operations
61
+
62
+ When processing multiple {DOMAIN:notes}, batch utilities streamline common operations:
63
+
64
+ - **Queue status** — View pending tasks, phase distribution, archivable batches, and stalled batches:
65
+ ```bash
66
+ ./ops/scripts/queue-status.sh
67
+ ```
68
+
69
+ - **Workboard reconciliation** — Run condition-based invariant checks, surface violated conditions as tasks, and auto-close satisfied conditions:
70
+ ```bash
71
+ ./ops/scripts/reconcile.sh
72
+ ```
73
+ This is idempotent — safe to run any number of times. It only reads state, never modifies your {DOMAIN:notes} or graph.
74
+
75
+ ### Domain-Specific Helpers
76
+
77
+ As your vault grows, you may create additional utility scripts for domain-specific operations. Place them in `ops/scripts/` and document their usage here. Common extensions include:
78
+
79
+ - Export scripts for sharing subsets of the graph
80
+ - Import scripts for bulk ingestion from external sources
81
+ - Report generators for domain-specific analytics
82
+ - Migration scripts for schema evolution across existing {DOMAIN:notes}
83
+
84
+ The pattern: if you find yourself running the same sequence of commands repeatedly, extract it into a script. Scripts encode methodology the same way skills do — they make repeatable operations reliable and consistent.
85
+
86
+ ### When to Use Helpers vs Skills
87
+
88
+ Helpers are lightweight, stateless utilities — they inspect or modify the graph without pipeline state. Skills are pipeline-aware workflows with quality gates, handoff protocols, and queue integration. Use helpers for quick checks and mechanical operations. Use skills for knowledge work that requires judgment and quality verification.
89
+ ```
90
+
91
+ ## Dependencies
92
+ None — helper functions are standalone utilities.
@@ -0,0 +1,164 @@
1
+ # Feature: Maintenance
2
+
3
+ ## Context File Block
4
+
5
+ ```markdown
6
+ ## Maintenance — Keeping the Graph Healthy
7
+
8
+ A knowledge graph degrades without maintenance. Notes written last month don't know about notes written today. Links break when titles change. {DOMAIN:topic maps} grow stale as topics evolve. Maintenance is not optional — it's what keeps the system useful.
9
+
10
+ ### Health Check Categories
11
+
12
+ Run these checks when conditions warrant — orphans detected, links broken, schema violations accumulated:
13
+
14
+ **1. Orphan Detection**
15
+ {DOMAIN:Notes} with no incoming links are invisible to traversal. Find them:
16
+ ```bash
17
+ # Find notes not linked from anywhere
18
+ rg -l '.' {DOMAIN:notes/}*.md | while read f; do
19
+ title=$(basename "$f" .md)
20
+ rg -q "\[\[$title\]\]" {DOMAIN:notes/} || echo "Orphan: $f"
21
+ done
22
+ ```
23
+ Every orphan is either a gap (needs connections) or stale (needs archiving).
24
+
25
+ **2. Dangling Links**
26
+ Wiki links pointing to non-existent {DOMAIN:notes} create confusion:
27
+ ```bash
28
+ # Find [[links]] to files that don't exist
29
+ rg -o '\[\[([^\]]+)\]\]' {DOMAIN:notes/} -r '$1' --no-filename | sort -u | while read title; do
30
+ find . -name "$title.md" -not -path "./.git/*" | grep -q . || echo "Dangling: [[$title]]"
31
+ done
32
+ ```
33
+ Either create the missing {DOMAIN:note} or fix the link.
34
+
35
+ **3. Schema Validation**
36
+ Check that {DOMAIN:notes} have required YAML fields:
37
+ ```bash
38
+ rg -L '^description:' {DOMAIN:notes/}*.md # missing descriptions
39
+ ```
40
+ Missing descriptions mean the {DOMAIN:note} can't be filtered during search.
41
+
42
+ **4. {DOMAIN:Topic Map} Coherence**
43
+ {DOMAIN:Topic maps} should accurately reflect the notes they organize:
44
+ - Do all listed {DOMAIN:notes} still exist?
45
+ - Are there {DOMAIN:notes} on this topic NOT listed in the {DOMAIN:topic map}?
46
+ - Has the topic grown large enough to warrant splitting?
47
+
48
+ **5. Stale Content**
49
+ {DOMAIN:Notes} that haven't been touched in a long time may contain outdated claims. Check modification dates and review oldest notes first.
50
+
51
+ ### Reweaving — The Backward Pass
52
+
53
+ New {DOMAIN:notes} create connections going forward. But older {DOMAIN:notes} don't automatically know about newer ones. Reweaving is the practice of revisiting old {DOMAIN:notes} and asking: "If I wrote this today, what would be different?"
54
+
55
+ **Reweaving can:**
56
+ - Add connections to newer {DOMAIN:notes} that didn't exist when the original was written
57
+ - Sharpen a claim that's become clearer with more context
58
+ - Split a {DOMAIN:note} that actually contains multiple ideas
59
+ - Challenge a claim that new evidence contradicts
60
+ - Rewrite prose to incorporate new links inline
61
+
62
+ **When to reweave:**
63
+ - After creating a batch of new {DOMAIN:notes} — check what older {DOMAIN:notes} should link to them
64
+ - When a health check flags sparse {DOMAIN:notes} with few connections
65
+ - When {DOMAIN:notes} have not been touched since N new notes were added to the graph
66
+ - When a {DOMAIN:note} feels disconnected from the rest of the graph
67
+
68
+ ### Condition-Based Maintenance
69
+
70
+ Maintenance triggers are condition-based, not time-based. Time-based triggers (weekly, monthly, quarterly) assume uniform activity — a vault that scales fast would overwhelm a monthly check, while a vault used rarely would run empty checks on schedule. Condition-based triggers respond to actual state, firing exactly when the system needs attention.
71
+
72
+ | Condition | Threshold | Action When True |
73
+ |-----------|-----------|-----------------|
74
+ | Orphan {DOMAIN:notes} | Any detected | Surface for connection-finding |
75
+ | Dangling links | Any detected | Surface for resolution |
76
+ | {DOMAIN:Topic map} size | >40 {DOMAIN:notes} | Suggest sub-{DOMAIN:topic map} split |
77
+ | Pending observations | >=10 | Suggest /{DOMAIN:rethink} |
78
+ | Pending tensions | >=5 | Suggest /{DOMAIN:rethink} |
79
+ | Inbox pressure | Items older than 3 days | Suggest processing |
80
+ | Stale pipeline batch | >2 sessions without progress | Surface as blocked |
81
+ | Schema violations | Any detected | Surface for correction |
82
+
83
+ These conditions are evaluated by /next via queue reconciliation. When a condition fires, it materializes as a `type: "maintenance"` entry in the queue — not a calendar reminder.
84
+
85
+ ### Session Maintenance Checklist
86
+
87
+ Before ending a work session:
88
+ - [ ] New {DOMAIN:notes} are linked from at least one {DOMAIN:topic map}
89
+ - [ ] Wiki links in new {DOMAIN:notes} point to real files
90
+ - [ ] Descriptions add information beyond the title
91
+ - [ ] Changes are committed
92
+
93
+ ### The Maintenance Mindset
94
+
95
+ Maintenance is not cleanup — it's cultivation. Each pass through old {DOMAIN:notes} is an opportunity to deepen the graph. Reweaving discovers connections that weren't visible when the {DOMAIN:notes} were first written. Health checks reveal structural gaps that point toward missing insights.
96
+
97
+ The graph doesn't just get maintained. It gets better.
98
+
99
+ ### Unified Queue Reconciliation
100
+
101
+ Maintenance work lives alongside pipeline work in the same queue. Instead of a separate tracking file, /next evaluates conditions and materializes maintenance tasks directly in the queue.
102
+
103
+ The reconciliation pattern:
104
+ 1. **Declare conditions** — the system defines what "healthy" looks like (desired state) via `maintenance_conditions` in the queue
105
+ 2. **Measure actual state** — /next compares reality against each condition on every invocation
106
+ 3. **Auto-create tasks** — when a condition is violated, a `type: "maintenance"` entry appears in the queue
107
+ 4. **Auto-close tasks** — when the condition is satisfied again, the entry is marked done
108
+
109
+ This is idempotent: running /next any number of times produces the same queue state (no duplicates). Each `condition_key` has at most one pending maintenance task.
110
+
111
+ The key insight: you don't manage task status manually. Fix the underlying problem and the task goes away on its own.
112
+
113
+ ### Invariant-Based Task Creation
114
+
115
+ The reconciliation checks 12 invariants that together define a healthy system:
116
+
117
+ | Invariant | What It Checks |
118
+ |-----------|---------------|
119
+ | Inbox pressure (per subdir) | Are {DOMAIN:inbox/} subdirectories accumulating unprocessed material? |
120
+ | Orphan {DOMAIN:notes} | Are there {DOMAIN:notes} with no incoming links? |
121
+ | Dangling links | Do wiki links point to non-existent {DOMAIN:notes}? |
122
+ | Observation accumulation | Have pending observations exceeded the threshold (10+)? |
123
+ | Tension accumulation | Have pending tensions exceeded the threshold (5+)? |
124
+ | {DOMAIN:Topic map} size | Has any {DOMAIN:topic map} grown beyond its healthy range? |
125
+ | Stale batches | Are there processing batches that have been sitting unfinished? |
126
+ | Infrastructure ideas | Are there improvement ideas waiting for review? |
127
+ | Pipeline pressure | Is the processing queue backing up? |
128
+ | Schema compliance | Do all {DOMAIN:notes} pass schema validation? |
129
+ | Experiment staleness | Are there experiments or trials that need evaluation? |
130
+
131
+ Each invariant is self-healing: fix the underlying issue (process the inbox, connect the orphan, resolve the tension) and the task disappears at next reconciliation. No manual status updates needed.
132
+
133
+ ### Consequence-Speed Priority
134
+
135
+ Maintenance tasks are prioritized by how fast their consequences compound, not by manual importance labels:
136
+
137
+ | Consequence Speed | Priority | Examples | Why This Priority |
138
+ |-------------------|----------|----------|-------------------|
139
+ | `session` | Highest | Orphan {DOMAIN:notes}, dangling links, inbox pressure | These degrade your work quality right now — orphans are invisible, dangling links confuse traversal, inbox pressure means lost ideas |
140
+ | `multi_session` | Medium | Pipeline batch completion, stale batches | These compound over days — unfinished batches block downstream work |
141
+ | `slow` | Lower | {DOMAIN:Topic map} oversizing, rethink thresholds, infrastructure ideas | These compound over weeks — annoying but not blocking |
142
+
143
+ The principle: a task that causes problems THIS session matters more than one that compounds slowly. Priority is derived from the invariant's consequence speed, not assigned by you. This means you don't waste time triaging priority — the system knows.
144
+
145
+ ### Integration with /{DOMAIN:next} and /{DOMAIN:rethink}
146
+
147
+ The unified queue connects to two key workflows:
148
+
149
+ **/{DOMAIN:next}** reconciles maintenance conditions and recommends the highest-priority action from the unified queue. It considers:
150
+ - Consequence speed (session-priority maintenance tasks first)
151
+ - Current pipeline state (are there claims waiting to be processed?)
152
+ - Accumulated signals (are observations or tensions piling up?)
153
+
154
+ This means you can start any session by asking "what should I work on?" and get a prioritized answer based on actual system state, not a stale to-do list.
155
+
156
+ **/{DOMAIN:rethink}** is surfaced automatically when /next detects signal accumulation:
157
+ - 10+ pending observations → /next creates a maintenance task suggesting /{DOMAIN:rethink}
158
+ - 5+ pending tensions → /next creates a maintenance task suggesting /{DOMAIN:rethink}
159
+
160
+ This closes the loop: maintenance detects that your system has accumulated enough operational evidence to warrant a meta-cognitive pass. You review the evidence, promote insights, implement changes, and the system evolves. Maintenance feeds evolution, evolution improves maintenance.
161
+ ```
162
+
163
+ ## Dependencies
164
+ Requires: wiki-links (link health checks depend on wiki link infrastructure), mocs (MOC coherence checks require MOC awareness)
@@ -0,0 +1,70 @@
1
+ # Feature: Methodology Knowledge
2
+
3
+ ## Context File Block
4
+
5
+ ```markdown
6
+ ## Your System's Self-Knowledge (ops/methodology/)
7
+
8
+ Your vault knows why it was built the way it was. The `ops/methodology/` folder contains linked notes explaining configuration rationale, learned behavioral patterns, and operational evolution. This is not documentation *about* your system — it IS your system's self-model.
9
+
10
+ ### What Lives Here
11
+
12
+ | Content | Created By | Purpose |
13
+ |---------|-----------|---------|
14
+ | Derivation rationale | /setup | Why each dimension was configured this way |
15
+ | Behavioral patterns | /{DOMAIN:remember} | Learned corrections and operational guidance |
16
+ | Configuration state | /{DOMAIN:rethink}, /architect | Active features, threshold adjustments |
17
+ | Evolution history | /{DOMAIN:rethink}, /architect, /reseed | What changed and why |
18
+
19
+ ### How to Query Your Methodology
20
+
21
+ Your methodology notes are plain markdown with YAML frontmatter. Query them directly — no special tools needed.
22
+
23
+ ```bash
24
+ # List all methodology notes
25
+ ls ops/methodology/*.md
26
+
27
+ # Search by category
28
+ rg '^category:' ops/methodology/
29
+
30
+ # Find active directives (not archived)
31
+ rg '^status: active' ops/methodology/
32
+
33
+ # Keyword search across methodology
34
+ rg -i 'duplicate' ops/methodology/
35
+
36
+ # Read a specific note
37
+ cat ops/methodology/derivation-rationale.md
38
+ ```
39
+
40
+ ### When to Consult Methodology
41
+
42
+ | Task | Grep Pattern | What You'll Find |
43
+ |------|-------------|-----------------|
44
+ | Processing a source | `rg -i 'pipeline\|processing\|extract' ops/methodology/` | Pipeline preferences, extraction categories |
45
+ | Finding connections | `rg -i 'connect\|link\|reflect' ops/methodology/` | Linking philosophy, connection standards |
46
+ | Maintaining the graph | `rg -i 'maintenance\|health\|reweave' ops/methodology/` | Maintenance thresholds, condition triggers |
47
+ | Writing for the domain | `rg -i 'voice\|tone\|vocabulary' ops/methodology/` | Domain vocabulary, personality guidance |
48
+ | Quality checking | `rg -i 'quality\|schema\|validate' ops/methodology/` | Schema expectations, validation rules |
49
+
50
+ **Key rule:** When methodology notes contradict the context file on behavioral specifics, methodology notes are the more current authority. The context file defines the architecture; methodology notes capture operational learnings that refine it.
51
+
52
+ ### The Research Foundation
53
+
54
+ Your system's design choices are backed by a knowledge base of 249 interconnected methodology notes — research claims, guidance documents, and domain examples — covering knowledge systems, cognitive science, and agent cognition. Access it through:
55
+
56
+ ```
57
+ /ask "why does my system use atomic notes?"
58
+ /ask "what are the trade-offs of condition-based maintenance?"
59
+ /ask "how should I handle sources that span multiple domains?"
60
+ ```
61
+
62
+ The /ask command consults two knowledge layers:
63
+ - **Local methodology** (ops/methodology/) — "How does MY system work?" questions
64
+ - **Research graph** (249 bundled methodology notes) — "Why is this a good idea in general?" questions
65
+
66
+ When you need to understand a design choice: check ops/methodology/ for the specific rationale, then /ask for the theoretical backing.
67
+ ```
68
+
69
+ ## Dependencies
70
+ Requires: self-evolution (methodology-knowledge teaches querying; self-evolution teaches capturing and Rule Zero)
@@ -0,0 +1,144 @@
1
+ # Feature: MOCs (Maps of Content)
2
+
3
+ ## Context File Block
4
+
5
+ ```markdown
6
+ ## {DOMAIN:Topic Maps} — Attention Management
7
+
8
+ {DOMAIN:Topic maps} organize {DOMAIN:notes} by topic. They are not folders — they are navigation hubs that reduce context-switching cost. When you switch to a topic, you need to know: what is known, what is in tension, what is unexplored. Without a {DOMAIN:topic map}, you search blindly. With a {DOMAIN:topic map}, you see the landscape immediately.
9
+
10
+ ### Why {DOMAIN:Topic Maps}
11
+
12
+ A flat collection of {DOMAIN:notes} becomes unnavigable as it grows. At 20 {DOMAIN:notes}, you can load everything into context. At 100, you cannot. {DOMAIN:Topic maps} solve this by providing curated entry points into topic areas. They tell you what exists and WHY each {DOMAIN:note} matters in context — not just a list of titles, but a map with reasoning about relationships.
13
+
14
+ ### {DOMAIN:Topic Map} Taxonomy
15
+
16
+ The system supports several types of navigation structures, each serving a different purpose:
17
+
18
+ **Hub {DOMAIN:topic map}** — Entry point for the entire workspace. Pure navigation linking to domain {DOMAIN:topic maps}. One per workspace. Answers: "What topics exist?"
19
+
20
+ **Domain {DOMAIN:topic map}** — Entry point for a research or knowledge area. Contains synthesis across the domain and links to topic-level {DOMAIN:topic maps}. Answers: "What are the big themes here?"
21
+
22
+ **Topic {DOMAIN:topic map}** — Active workspace for a specific topic. Core ideas, tensions, gaps. This is where you start when you know which topic you are working in. Answers: "What do we know about this topic?"
23
+
24
+ **Self {DOMAIN:topic map}** — Agent identity and operational memory (self/identity.md, self/methodology.md, etc.). Flat peer structure — these {DOMAIN:topic maps} are equals, not hierarchically related.
25
+
26
+ **Operational {DOMAIN:topic map}** — Procedure tracking with atomic entries. Categories of observations, tensions, operational learnings. Answers: "What has the system noticed?"
27
+
28
+ Not every type applies to every workspace. A simple system may have only topic {DOMAIN:topic maps}. A complex system may use the full taxonomy. Create the types you need, not the ones that theoretically could exist.
29
+
30
+ ### Your Starting {DOMAIN:Topic Maps}
31
+
32
+ ```
33
+ self/
34
+ ├── identity.md — {DOMAIN:topic map}: who you are
35
+ ├── methodology.md — {DOMAIN:topic map}: how you work
36
+ ├── goals.md — {DOMAIN:topic map}: current threads
37
+ └── relationships.md — {DOMAIN:topic map}: key people (if relevant)
38
+ ```
39
+
40
+ These are your foundation. As your {DOMAIN:notes}/ grows, you will create topic {DOMAIN:topic maps} there as well. Start with what you need and let the structure emerge from your content.
41
+
42
+ ### {DOMAIN:Topic Map} Structure
43
+
44
+ ```markdown
45
+ # topic-name
46
+
47
+ Brief orientation — 2-3 sentences explaining what this topic covers and how to use this {DOMAIN:topic map}.
48
+
49
+ ## Core Ideas
50
+ - [[{DOMAIN:note}]] — context explaining why this matters here
51
+ - [[{DOMAIN:note}]] — what this adds to the topic
52
+
53
+ ## Tensions
54
+ Unresolved conflicts — intellectual work, not bugs. What questions remain open? Where do ideas clash?
55
+
56
+ ## Open Questions
57
+ What is unexplored. Research directions, gaps in understanding, areas that need attention.
58
+ ```
59
+
60
+ **The critical rule:** Core Ideas entries MUST have context phrases. A bare link list (`- [[{DOMAIN:note}]]` without explanation) is an address book, not a map. The context phrase explains WHY this {DOMAIN:note} belongs here and what it contributes to the topic. This is what makes {DOMAIN:topic maps} navigable — you can scan the context phrases to find the entry point you need without reading every linked {DOMAIN:note}.
61
+
62
+ ### Lifecycle
63
+
64
+ **Create** when:
65
+ - 5+ related {DOMAIN:notes} accumulate without navigation structure
66
+ - You can not navigate a topic without loading everything into context
67
+ - You find yourself repeatedly loading the same set of {DOMAIN:notes} across sessions
68
+ - A topic appears in multiple existing {DOMAIN:topic maps}' Open Questions sections
69
+
70
+ **Do NOT create** when fewer than 5 related {DOMAIN:notes} exist, the topic fits as a section in an existing {DOMAIN:topic map}, or "just in case." Premature creation adds maintenance burden without navigation value.
71
+
72
+ **Split** when:
73
+ - A {DOMAIN:topic map} exceeds 40 {DOMAIN:notes} and distinct sub-communities form
74
+ - Sections have different update frequencies (one part is active, another is stable)
75
+ - Navigation friction emerges — you can not quickly find what you need
76
+
77
+ How to split: create sub-{DOMAIN:topic map}(s) named `parent-subtopic.md`. Move Core Ideas for the subtopic. Parent becomes domain-style ({DOMAIN:topic map} of {DOMAIN:topic maps}). Update all affected {DOMAIN:notes}' Topics footers.
78
+
79
+ **Merge** when: Both {DOMAIN:topic maps} are small (under 30 combined {DOMAIN:notes}), significant content overlap exists, and they update at the same frequency.
80
+
81
+ **Archive** when: fewer than 5 {DOMAIN:notes} remain and the topic has been stagnant for 6+ months, the {DOMAIN:topic map} has been superseded, or all {DOMAIN:notes} have been absorbed elsewhere. Move to archive, do not delete.
82
+
83
+ ### Maintenance Protocol
84
+
85
+ **Continuous (every {DOMAIN:note} creation):**
86
+ 1. Add the new {DOMAIN:note} to relevant {DOMAIN:topic map}(s) Core Ideas with a context phrase
87
+ 2. If the {DOMAIN:note} spans multiple topics, add to all relevant {DOMAIN:topic maps}
88
+ 3. Update the {DOMAIN:note}'s Topics footer to list its {DOMAIN:topic maps}
89
+
90
+ This is handled by /{DOMAIN:connect} in the pipeline. When creating {DOMAIN:notes} manually (not through the pipeline), you must do this yourself.
91
+
92
+ **Condition-based checks:**
93
+
94
+ | Condition | Action When True |
95
+ |-----------|-----------------|
96
+ | {DOMAIN:Topic map} exceeds 40 {DOMAIN:notes} | Consider splitting into sub-{DOMAIN:topic maps} |
97
+ | Orphan {DOMAIN:notes} detected | Add to appropriate {DOMAIN:topic map} |
98
+ | Dangling links in {DOMAIN:topic map} | Fix or remove broken links |
99
+ | {DOMAIN:Topic map} not updated in 90+ days | Review and refresh |
100
+
101
+ ### Health Metrics
102
+
103
+ | Metric | Healthy | Warning | Action |
104
+ |--------|---------|---------|--------|
105
+ | {DOMAIN:Notes} per topic {DOMAIN:topic map} | 10-40 | >50 | Split into sub-{DOMAIN:topic maps} |
106
+ | Orphan {DOMAIN:notes} | 0 | Any | Add to appropriate {DOMAIN:topic map} |
107
+ | Dangling links in {DOMAIN:topic map} | 0 | Any | Fix or remove |
108
+ | {DOMAIN:Topic map} last updated | Recent | >90 days | Review and refresh |
109
+
110
+ ### Multi-{DOMAIN:Topic Map} Membership
111
+
112
+ Some {DOMAIN:notes} genuinely span multiple topics. This is valuable — it reveals synthesis opportunities and cross-cutting insights. List ALL relevant {DOMAIN:topic maps} in the {DOMAIN:note}'s Topics footer:
113
+
114
+ ```markdown
115
+ Topics:
116
+ - [[methodology]]
117
+ - [[relationships]]
118
+ ```
119
+
120
+ Cross-{DOMAIN:topic map} membership is a signal, not a problem. When a {DOMAIN:note} appears in multiple {DOMAIN:topic maps}, it often serves as a bridge between topic areas. The /{DOMAIN:connect} phase identifies these naturally.
121
+
122
+ ### Growing {DOMAIN:Topic Maps}
123
+
124
+ - Start with the self/ {DOMAIN:topic maps} — they are your foundation
125
+ - Create new {DOMAIN:topic maps} when a topic accumulates enough {DOMAIN:notes} to warrant navigation
126
+ - Split {DOMAIN:topic maps} when they exceed their healthy range and sub-communities form
127
+ - Every {DOMAIN:note} links back to its {DOMAIN:topic map}(s) via the Topics footer
128
+ - The hierarchy emerges from your content, not from planning — let {DOMAIN:topic maps} form around natural clusters
129
+
130
+ ### Anti-Patterns
131
+
132
+ **Bare link lists** — `- [[{DOMAIN:note}]]` without context phrases. These are address books, not maps. Always explain WHY each {DOMAIN:note} belongs.
133
+
134
+ **{DOMAIN:Topic maps} as content** — Developed thinking belongs in {DOMAIN:notes}, not {DOMAIN:topic maps}. Synthesis that makes claims should become a synthesis {DOMAIN:note} linked FROM the {DOMAIN:topic map}, not prose within the {DOMAIN:topic map}.
135
+
136
+ **Too many {DOMAIN:topic maps}** — If you can not decide which to update, merge small ones. A {DOMAIN:topic map} for 3 {DOMAIN:notes} is overhead without value.
137
+
138
+ **Stale navigation** — Creating {DOMAIN:notes} without updating {DOMAIN:topic maps}. The pipeline handles this automatically; manual creation requires discipline.
139
+
140
+ **Deep hierarchy** — Keep the {DOMAIN:topic map} depth manageable. Beyond 3-4 levels, reconsider your decomposition. Navigation should get you to the right {DOMAIN:note} in 2-3 hops, not 6.
141
+ ```
142
+
143
+ ## Dependencies
144
+ Requires: wiki-links (MOCs use wiki-links to reference notes)