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
package/README.md ADDED
@@ -0,0 +1,683 @@
1
+ # Ars Contexta
2
+
3
+ **A second brain for agents.**
4
+
5
+ A Claude Code plugin that generates complete, working knowledge systems from natural conversation. You describe how you think and work. The engine derives a cognitive architecture — folder structure, context files, processing pipeline, automation hooks, navigation maps, and note templates — tailored to your domain and backed by 249 interconnected research claims synthesizing Zettelkasten, evergreen notes, Cornell note-taking, memory palaces, cognitive science, and network theory.
6
+
7
+ No templates. No configuration forms. Just conversation.
8
+
9
+ **v0.6.0** — 15 kernel primitives, 26 commands, 17 feature blocks, 249 research claims, 3 presets.
10
+
11
+ ---
12
+
13
+ ## Table of Contents
14
+
15
+ - [What It Does](#what-it-does)
16
+ - [Installation](#installation)
17
+ - [Quick Start](#quick-start)
18
+ - [Prerequisites](#prerequisites)
19
+ - [Architecture](#architecture)
20
+ - [Presets](#presets)
21
+ - [Commands](#commands)
22
+ - [Hooks](#hooks)
23
+ - [Processing Pipeline](#processing-pipeline)
24
+ - [Platform Support](#platform-support)
25
+ - [Semantic Search](#semantic-search)
26
+ - [The Research Graph](#the-research-graph)
27
+ - [Project Structure](#project-structure)
28
+ - [Development](#development)
29
+ - [Philosophy](#philosophy)
30
+ - [License](#license)
31
+
32
+ ---
33
+
34
+ ## What It Does
35
+
36
+ Most AI tools start every session blank. Ars Contexta changes that by generating a persistent thinking system derived from how you actually work.
37
+
38
+ **The core concept:** conversation in, complete working knowledge system out. You talk about your domain — what you track, how you think, what matters. The engine maps your signals to eight configuration dimensions backed by cognitive science research, validates coherence, and generates everything you need.
39
+
40
+ **What you get:**
41
+
42
+ - **A vault** — a folder of plain markdown files connected by wiki links, forming a traversable knowledge graph. No database, no cloud service, no lock-in.
43
+ - **A processing pipeline** — skills that extract insights from sources, find connections between notes, update old notes with new context, and verify quality.
44
+ - **Automation** — hooks that enforce structure on every file write, detect when maintenance is needed, capture session state, and auto-commit changes.
45
+ - **Navigation** — Maps of Content (MOCs) that let you and your agent orient quickly without reading everything. Hub, domain, and topic levels.
46
+ - **Templates** — note templates with schema definitions (`_schema` blocks) that serve as the single source of truth for validation.
47
+ - **A user manual** — 7 pages of domain-native documentation generated alongside your vault.
48
+
49
+ **The key differentiator:** derivation, not templating. Every configuration choice traces to specific research claims. The engine doesn't copy a template — it reasons from principles about what your domain needs and why.
50
+
51
+ ### Three-Space Architecture
52
+
53
+ Every generated system separates content into three spaces with fundamentally different durability profiles:
54
+
55
+ | Space | Purpose | Growth Pattern |
56
+ |-------|---------|----------------|
57
+ | **self/** | Agent persistent mind — identity, methodology, goals | Slow (tens of files), loaded fully each session |
58
+ | **notes/** | Knowledge graph — the reason the system exists | Steady (10-50 notes/week), progressive disclosure |
59
+ | **ops/** | Operational coordination — queue state, session logs, health reports | Fluctuating, nothing permanent |
60
+
61
+ The names adapt to your domain (`notes/` might become `reflections/`, `claims/`, or `decisions/`), but the architectural separation is invariant. Conflating any two spaces produces predictable, documented failures.
62
+
63
+ ---
64
+
65
+ ## Installation
66
+
67
+ ### NPM (recommended)
68
+
69
+ One command installs the plugin into your current project:
70
+
71
+ ```bash
72
+ npx arscontexta
73
+ ```
74
+
75
+ This checks that Claude Code is installed, then copies the plugin into `.claude/plugins/arscontexta/` in your current working directory. After installation:
76
+
77
+ 1. Restart Claude Code (required for plugin activation)
78
+ 2. Run `/arscontexta:setup` to begin the conversational onboarding
79
+
80
+ **How it works:** `npx` downloads the package from npm, runs `bin/cli.mjs`, which copies all plugin directories (skills, hooks, generators, methodology, reference files) into your project's `.claude/plugins/arscontexta/`. Claude Code discovers the plugin on next launch via the `plugin.json` manifest.
81
+
82
+ ### GitHub
83
+
84
+ ```bash
85
+ /install-plugin https://github.com/agenticnotetaking/arscontexta
86
+ ```
87
+
88
+ Or clone and install locally:
89
+
90
+ ```bash
91
+ git clone https://github.com/agenticnotetaking/arscontexta.git
92
+ claude plugin add ./arscontexta
93
+ ```
94
+
95
+ ### Local Development
96
+
97
+ For testing or contributing:
98
+
99
+ ```bash
100
+ git clone https://github.com/agenticnotetaking/arscontexta.git
101
+ claude --plugin-dir ./arscontexta
102
+ ```
103
+
104
+ This loads the plugin for a single session without copying files. Useful for iterating on the plugin itself.
105
+
106
+ ---
107
+
108
+ ## Quick Start
109
+
110
+ ### Prerequisites
111
+
112
+ | Dependency | Required | Purpose |
113
+ |-----------|----------|---------|
114
+ | [Claude Code](https://docs.anthropic.com/en/docs/claude-code) v1.0.33+ | Yes | Plugin host |
115
+ | `tree` | Yes | File structure injection at session start |
116
+ | `ripgrep` (`rg`) | Yes | YAML metadata queries, schema validation |
117
+ | Node.js >= 18 | For npx install only | Runs the CLI installer |
118
+ | [qmd](https://github.com/tobi/qmd) | Optional | Semantic search (concept matching across vocabularies) |
119
+
120
+ ### First Run
121
+
122
+ ```
123
+ 1. Install the plugin (see Installation above)
124
+ 2. Restart Claude Code
125
+ 3. Run /arscontexta:setup
126
+ 4. Answer 2-4 questions about your domain
127
+ 5. The engine generates your complete knowledge system
128
+ 6. Restart Claude Code again (to activate generated skills and hooks)
129
+ 7. Run /arscontexta:help to see everything available
130
+ ```
131
+
132
+ ### The Setup Flow
133
+
134
+ `/arscontexta:setup` runs a 6-phase process:
135
+
136
+ 1. **Platform Detection** — automatically detects Claude Code, OpenClaw, or minimal environment
137
+ 2. **Understanding** — 2-4 conversation turns where you describe your domain naturally
138
+ 3. **Derivation** — maps your signals to eight configuration dimensions with confidence scoring
139
+ 4. **Proposal** — shows what will be generated and why, in your own vocabulary
140
+ 5. **Generation** — produces all files: context file, folder structure, templates, skills, hooks, manual
141
+ 6. **Validation** — checks all 15 kernel primitives, runs a pipeline smoke test
142
+
143
+ The whole process takes about 5 minutes.
144
+
145
+ For advanced users who want to configure dimensions directly: `/arscontexta:setup --advanced`
146
+
147
+ ---
148
+
149
+ ## Prerequisites
150
+
151
+ ### Required
152
+
153
+ **Claude Code** v1.0.33 or later. The plugin uses hooks (`SessionStart`, `PostToolUse`, `Stop`), skills with `context: fork`, and the `${CLAUDE_PLUGIN_ROOT}` path variable — all features requiring recent Claude Code versions.
154
+
155
+ **tree** — Used by the session orientation hook to inject workspace structure at the start of every session. Install: `brew install tree` (macOS) or `apt install tree` (Linux).
156
+
157
+ **ripgrep (rg)** — Used for YAML metadata queries, schema validation, backlink detection, and graph analysis scripts. The vault treats markdown + YAML + ripgrep as a queryable graph database. Install: `brew install ripgrep` (macOS) or `apt install ripgrep` (Linux).
158
+
159
+ ### Optional
160
+
161
+ **qmd** — Semantic search engine combining BM25 full-text search with vector embeddings and LLM re-ranking. Enables concept matching across vocabularies (finding notes about "learning friction" when the note says "errors as feedback"). The system works fully without it using grep + MOC traversal.
162
+
163
+ Install: `brew install tobi/tap/qmd` (macOS). The plugin bundles MCP configuration that connects qmd automatically.
164
+
165
+ ---
166
+
167
+ ## Architecture
168
+
169
+ ### 15 Kernel Primitives
170
+
171
+ Every generated system includes these primitives regardless of preset or domain. The kernel is constant; the derivation engine varies everything above it.
172
+
173
+ | # | Primitive | Layer | Enforcement |
174
+ |---|-----------|-------|-------------|
175
+ | 1 | **Markdown + YAML** — notes are plain text with structured metadata | Foundation | Invariant |
176
+ | 2 | **Wiki links** — `[[note title]]` creates navigable graph edges | Foundation | Invariant |
177
+ | 3 | **Filesystem graph database** — markdown nodes, wiki link edges, YAML properties, ripgrep queries | Foundation | Invariant |
178
+ | 4 | **MOC hierarchy** — Maps of Content organize notes into navigable topic areas | Convention | Invariant |
179
+ | 5 | **Tree injection** — agent sees full file structure at session start | Convention | Invariant |
180
+ | 6 | **Description field** — YAML description (~150 chars) enables filter-before-read | Convention | Invariant |
181
+ | 7 | **Topics footer** — every note declares MOC membership | Convention | Invariant |
182
+ | 8 | **Schema enforcement** — templates define required fields, validation checks compliance | Convention | Invariant |
183
+ | 9 | **Self space** — dedicated directory for identity, methodology, goals | Convention | Configurable |
184
+ | 10 | **Session rhythm** — orient, work, persist cycle encoded in context file | Convention | Invariant |
185
+ | 11 | **Semantic search** — meaning-based discovery across vocabularies | Automation | Configurable |
186
+ | 12 | **Discovery-first** — everything optimized for future agent findability | Convention | Invariant |
187
+ | 13 | **Operational learning loop** — accumulate friction signals, periodically review | Convention | Invariant |
188
+ | 14 | **Task stack** — lifecycle backbone with unified pipeline + maintenance queue | Convention | Invariant |
189
+ | 15 | **Session capture** — every session transcript saved automatically | Automation | Invariant |
190
+
191
+ Primitives form a dependency DAG. Foundation primitives (`markdown-yaml`, `wiki-links`) enable convention primitives (`moc-hierarchy`, `schema-enforcement`), which enable automation primitives (`semantic-search`, `session-capture`). See `reference/kernel.yaml` for the full dependency graph.
192
+
193
+ ### 17 Feature Blocks
194
+
195
+ Feature blocks are composable modules that get toggled by your configuration and assembled into coherent context files during generation:
196
+
197
+ | Block | Category | Purpose |
198
+ |-------|----------|---------|
199
+ | `atomic-notes` | Conditional | Note design: one claim per file, prose-as-title |
200
+ | `wiki-links` | Always | Link philosophy, inline links as prose |
201
+ | `mocs` | Conditional | MOC hierarchy, navigation patterns |
202
+ | `processing-pipeline` | Always | The 6 Rs processing approach |
203
+ | `semantic-search` | Conditional | qmd integration, discovery patterns |
204
+ | `schema` | Always | YAML metadata, query patterns |
205
+ | `maintenance` | Always | Health checks, reweaving, condition-based triggers |
206
+ | `self-evolution` | Always | System evolution: architect, reseed, rethink |
207
+ | `methodology-knowledge` | Always | Querying the bundled research graph |
208
+ | `session-rhythm` | Always | Orient, work, persist cycle |
209
+ | `templates` | Always | Template usage and schema enforcement |
210
+ | `ethical-guardrails` | Always | Behavioral constraints and safety |
211
+ | `helper-functions` | Always | Utility scripts |
212
+ | `graph-analysis` | Always | Graph intelligence and query patterns |
213
+ | `personality` | Conditional | Agent voice and identity characteristics |
214
+ | `self-space` | Conditional | Agent persistent memory (self/ directory) |
215
+ | `multi-domain` | Conditional | Cross-domain rules for multi-topic systems |
216
+
217
+ 11 blocks are always included. 6 are toggled based on your derived configuration. The generator composes them sequentially, applies vocabulary transformation, eliminates cross-references to excluded blocks, and produces a cohesive context file.
218
+
219
+ ### 8 Configuration Dimensions
220
+
221
+ The derivation engine maps conversation signals to positions on eight dimensions:
222
+
223
+ | Dimension | Spectrum | What It Controls |
224
+ |-----------|----------|-----------------|
225
+ | **Granularity** | Atomic ↔ Coarse | One claim per note vs. per-session compound notes |
226
+ | **Organization** | Flat ↔ Hierarchical | Flat associative network vs. folder-based hierarchy |
227
+ | **Linking** | Explicit ↔ Implicit | Manual typed links vs. semantic similarity discovery |
228
+ | **Processing** | Light ↔ Heavy | Capture-and-file vs. full pipeline with quality gates |
229
+ | **Navigation** | 2-tier ↔ 3-tier | Simple index vs. hub → domain → topic hierarchy |
230
+ | **Maintenance** | Manual ↔ Condition-based | User-triggered vs. automatic threshold detection |
231
+ | **Schema** | Minimal ↔ Dense | Title + description vs. rich typed metadata |
232
+ | **Automation** | Convention ↔ Full | Context-file instructions vs. hooks + pipeline + orchestration |
233
+
234
+ Dimensions interact — choices in one create pressure on others. The coherence validator catches conflicts (e.g., atomic granularity + 2-tier navigation + high volume = navigational vertigo).
235
+
236
+ ---
237
+
238
+ ## Presets
239
+
240
+ Three starting points with different defaults tuned for how you'll use the system. All three give you every skill and every capability — the difference is defaults.
241
+
242
+ ### Research
243
+
244
+ **Optimizes for:** Deep synthesis, cross-domain connection density, long-term knowledge accumulation.
245
+
246
+ **Closest tradition:** Zettelkasten + Cornell processing phases.
247
+
248
+ | Dimension | Position |
249
+ |-----------|----------|
250
+ | Granularity | 0.8 (atomic) |
251
+ | Organization | 0.3 (flat-associative) |
252
+ | Linking | 0.7 (explicit + semantic) |
253
+ | Processing | 0.8 (full pipeline) |
254
+ | Navigation | 3-tier |
255
+ | Maintenance | Condition-based |
256
+ | Schema | Moderate |
257
+ | Automation | 0.8 (full) |
258
+
259
+ **Best for:** Academic research, literature review, knowledge building, tools-for-thought investigation.
260
+
261
+ ### Personal Assistant
262
+
263
+ **Optimizes for:** Life reflection, pattern detection, personal growth tracking, relationship awareness.
264
+
265
+ | Dimension | Position |
266
+ |-----------|----------|
267
+ | Granularity | 0.5 (mixed) |
268
+ | Organization | 0.5 (light hierarchy) |
269
+ | Linking | 0.3 (associative) |
270
+ | Processing | 0.7 (full pipeline, personal categories) |
271
+ | Navigation | 3-tier |
272
+ | Maintenance | Condition-based |
273
+ | Schema | Moderate |
274
+ | Automation | 0.6 (semi-automated) |
275
+
276
+ **Best for:** Life management, personal journaling, relationship tracking, goal tracking, habit awareness.
277
+
278
+ ### Experimental
279
+
280
+ **Optimizes for:** User co-design, deep understanding of trade-offs, custom configuration.
281
+
282
+ All dimensions start null — you choose positions during an extended onboarding conversation with research notes surfaced for every design decision.
283
+
284
+ **Best for:** Novel domains (wine tasting, competitive gaming, legal case tracking), users who want full control, unusual workflows.
285
+
286
+ Every preset value is overridable during the `/setup` conversation and adjustable post-init via `ops/config.yaml` or `/arscontexta:architect`.
287
+
288
+ ---
289
+
290
+ ## Commands
291
+
292
+ 26 commands organized by category. All use the `/arscontexta:` prefix.
293
+
294
+ ### Onboarding (3 commands)
295
+
296
+ | Command | Purpose |
297
+ |---------|---------|
298
+ | `/arscontexta:setup` | Conversational onboarding — derive and generate your knowledge system. Use `--advanced` for upfront dimension configuration. |
299
+ | `/arscontexta:help` | Contextual guidance and command discovery |
300
+ | `/arscontexta:tutorial` | Interactive walkthrough for new users |
301
+
302
+ ### Navigation (5 commands)
303
+
304
+ | Command | Purpose |
305
+ |---------|---------|
306
+ | `/arscontexta:next` | Intelligent next-action recommendation based on vault state. Reconciles maintenance conditions and surfaces the highest-priority work. |
307
+ | `/arscontexta:ask` | Query the bundled 249-note TFT research graph for methodology guidance |
308
+ | `/arscontexta:recommend` | Architecture recommendation without file generation — analysis only |
309
+ | `/arscontexta:stats` | Vault statistics and metrics: note count, link density, MOC coverage, orphans |
310
+ | `/arscontexta:graph` | Knowledge graph visualization and structural analysis |
311
+
312
+ ### Processing (5 commands)
313
+
314
+ | Command | Purpose |
315
+ |---------|---------|
316
+ | `/arscontexta:reduce` | Extract insights from source material. Domain-native extraction categories with selectivity gates. |
317
+ | `/arscontexta:reflect` | Find connections for new notes. Semantic judgment to identify genuine relationships, update MOCs. |
318
+ | `/arscontexta:reweave` | Update older notes with new connections. The backward pass — "if written today, what would be different?" |
319
+ | `/arscontexta:verify` | Combined quality verification: description quality test, schema compliance, per-note health checks |
320
+ | `/arscontexta:validate` | Schema compliance checking against template `_schema` blocks |
321
+
322
+ ### Orchestration (4 commands)
323
+
324
+ | Command | Purpose |
325
+ |---------|---------|
326
+ | `/arscontexta:seed` | Create extraction task from source material with duplicate checking |
327
+ | `/arscontexta:ralph` | Queue processing with fresh context per phase. Spawns isolated subagents for quality. |
328
+ | `/arscontexta:pipeline` | End-to-end source processing: seed → reduce → all claims → archive |
329
+ | `/arscontexta:tasks` | View and manage the task queue |
330
+
331
+ ### Growth (2 commands)
332
+
333
+ | Command | Purpose |
334
+ |---------|---------|
335
+ | `/arscontexta:learn` | Research a topic using available research tools (Exa, web search) and grow your knowledge graph |
336
+ | `/arscontexta:remember` | Mine session artifacts for persistent learnings. Captures operational corrections to `ops/methodology/`. |
337
+
338
+ ### Evolution (6 commands)
339
+
340
+ | Command | Purpose |
341
+ |---------|---------|
342
+ | `/arscontexta:health` | Platform-aware diagnostic health checks |
343
+ | `/arscontexta:architect` | Research-backed evolution advice with implementation steps. Detects configuration drift. |
344
+ | `/arscontexta:reseed` | Principled restructuring when drift becomes systemic — re-derives from updated understanding |
345
+ | `/arscontexta:refactor` | Targeted structural improvements |
346
+ | `/arscontexta:rethink` | Challenge system assumptions against accumulated observations and tensions |
347
+ | `/arscontexta:upgrade` | Apply plugin updates to an existing generated system |
348
+
349
+ ### Domain Management (1 command)
350
+
351
+ | Command | Purpose |
352
+ |---------|---------|
353
+ | `/arscontexta:add-domain` | Extend an existing system with a new knowledge domain |
354
+
355
+ ### Command Architecture
356
+
357
+ Commands come from two sources:
358
+
359
+ - **10 plugin-level commands** in `skills/` — onboarding, navigation, evolution, and domain management. These ship with the plugin and work immediately.
360
+ - **16 generated commands** from `skill-sources/` — processing, orchestration, growth, and diagnostics. These are vocabulary-transformed during `/setup` and written to the user's `.claude/skills/` directory with domain-native names.
361
+
362
+ Generated commands use domain vocabulary: a therapy vault's `/surface` (reduce) and `/find-patterns` (reflect) do the same thing as a research vault's `/reduce` and `/reflect`, but in language that fits the domain.
363
+
364
+ ---
365
+
366
+ ## Hooks
367
+
368
+ Four hooks automate quality enforcement and session continuity:
369
+
370
+ | Hook | Event | What It Does |
371
+ |------|-------|-------------|
372
+ | **Session Orient** | `SessionStart` | Injects workspace tree, loads identity and methodology from self/, surfaces maintenance signals and reminders, provides session orientation |
373
+ | **Write Validate** | `PostToolUse` (Write to notes/) | Schema enforcement on every note write — checks required fields, enum values, description quality |
374
+ | **Auto Commit** | `PostToolUse` (Write, async) | Auto-commits file changes to git. Runs asynchronously so it doesn't block the agent. |
375
+ | **Session Capture** | `Stop` | Persists session state (notes created, modified, discoveries) to `ops/sessions/`, auto-commits artifacts |
376
+
377
+ Hooks are defined in `hooks/hooks.json` and reference scripts in `hooks/scripts/`. For Claude Code, they fire via the platform's event system. For OpenClaw, equivalent behavior is documented in the generated AGENTS.md.
378
+
379
+ ---
380
+
381
+ ## Processing Pipeline
382
+
383
+ The vault implements the **6 Rs**, extending Cornell Note-Taking's 5 Rs with a meta-cognitive layer.
384
+
385
+ ### The 6 Rs
386
+
387
+ | Phase | What Happens | Command |
388
+ |-------|-------------|---------|
389
+ | **Record** | Zero-friction capture. Everything enters through inbox/. Speed beats precision. | Manual capture |
390
+ | **Reduce** | Extract insights from sources. Domain-native categories with selectivity gates. | `/arscontexta:reduce` |
391
+ | **Reflect** | Find connections, update MOCs. Semantic judgment for genuine relationships. | `/arscontexta:reflect` |
392
+ | **Reweave** | Update older notes with new connections. The backward pass. | `/arscontexta:reweave` |
393
+ | **Verify** | Combined quality check: description test + schema validation + health checks. | `/arscontexta:verify` |
394
+ | **Rethink** | Challenge system assumptions against accumulated evidence. | `/arscontexta:rethink` |
395
+
396
+ ### Fresh Context Per Phase
397
+
398
+ Each processing phase runs in its own context window. This is not a convenience — it's a quality requirement. LLM attention degrades as context fills. By spawning a fresh subagent for each phase, every phase operates in the "smart zone."
399
+
400
+ The `/arscontexta:ralph` command orchestrates this:
401
+
402
+ ```
403
+ /arscontexta:ralph 5
404
+ ├── Read queue, find next unblocked task
405
+ ├── Spawn subagent for that phase (fresh context)
406
+ │ └── Subagent: runs skill, updates task file, returns handoff
407
+ ├── Parse handoff, capture learnings
408
+ ├── Advance phase in queue
409
+ └── Repeat for 5 tasks
410
+ ```
411
+
412
+ ### Queue-Based Orchestration
413
+
414
+ Every note flows through a lifecycle tracked in `ops/queue/`:
415
+
416
+ ```
417
+ create → reflect → reweave → verify → done
418
+ ```
419
+
420
+ Each phase appends to a per-claim task file. Downstream phases see what upstream phases discovered. If a subagent crashes mid-phase, the queue still shows the failed phase — re-running `/ralph` picks it up automatically.
421
+
422
+ ### End-to-End Processing
423
+
424
+ For processing a complete source file from start to finish:
425
+
426
+ ```
427
+ /arscontexta:pipeline inbox/article.md
428
+ ```
429
+
430
+ This chains: seed (create task) → reduce (extract claims) → process all claims through reflect/reweave/verify → archive the batch with a summary.
431
+
432
+ ---
433
+
434
+ ## Platform Support
435
+
436
+ Three platform tiers with different automation ceilings:
437
+
438
+ | Aspect | Claude Code | OpenClaw | Minimal |
439
+ |--------|------------|----------|---------|
440
+ | Context file | `CLAUDE.md` | `SOUL.md` + `AGENTS.md` | `README.md` |
441
+ | Skills | `.claude/skills/` | `skills/` (external) | None |
442
+ | Hooks | `.claude/hooks/` (bash) | TypeScript hooks | None |
443
+ | Automation ceiling | Full | Partial | Convention only |
444
+ | Session start | Hook auto-injects tree | Must load manually | Agent instructed to `ls` |
445
+ | Three-space architecture | Identical | Identical | Identical |
446
+
447
+ **The principle:** The three-space architecture (self/, notes/, ops/) is platform-invariant. Only the context file format and automation infrastructure differ. The intellectual workspace is structurally identical across all platforms.
448
+
449
+ Claude Code is the primary target with the richest automation. OpenClaw support generates appropriate context files and skill formats. Minimal tier generates a self-contained conventions document for environments without hook or skill support.
450
+
451
+ ---
452
+
453
+ ## Semantic Search
454
+
455
+ ### What qmd Provides
456
+
457
+ [qmd](https://github.com/tobi/qmd) combines BM25 full-text search with vector embeddings and LLM re-ranking. It enables:
458
+
459
+ - **Concept matching across vocabularies** — find notes about "learning friction" when the note says "errors as feedback"
460
+ - **Duplicate detection** — catch same-idea-different-words before creating redundant notes
461
+ - **Connection discovery** — find genuinely related notes that share no keywords
462
+
463
+ ### Installation
464
+
465
+ ```bash
466
+ # macOS
467
+ brew install tobi/tap/qmd
468
+
469
+ # Initialize in your vault
470
+ cd your-vault/
471
+ qmd init
472
+ qmd update && qmd embed
473
+ ```
474
+
475
+ The plugin bundles MCP configuration (`.mcp.json`) that connects qmd as an MCP server automatically. Skills use MCP tools (`mcp__qmd__query`, `mcp__qmd__vsearch`, `mcp__qmd__search`) for search operations.
476
+
477
+ ### Without qmd
478
+
479
+ The system works fully without semantic search. All commands fall back to:
480
+
481
+ 1. **ripgrep** — keyword-based YAML metadata queries, backlink detection
482
+ 2. **MOC traversal** — following wiki links through the topic hierarchy
483
+ 3. **Graph analysis scripts** — structural queries (orphans, bridges, triangles)
484
+
485
+ Semantic search adds discovery power but is never a dependency. The dual discovery path (semantic + structural) ensures search failures never block work.
486
+
487
+ ### Search Modes
488
+
489
+ | Mode | MCP Tool | Speed | Best For |
490
+ |------|----------|-------|----------|
491
+ | Keyword | `mcp__qmd__search` | ~0.2s | Exact terms, filename lookup |
492
+ | Vector | `mcp__qmd__vsearch` | ~5s | Semantic matching, duplicate detection |
493
+ | Hybrid | `mcp__qmd__query` | ~20s | Deep connection finding with LLM reranking |
494
+
495
+ ---
496
+
497
+ ## The Research Graph
498
+
499
+ The `methodology/` directory contains **249 interconnected research claims** about tools for thought, knowledge management, and agent-native cognitive architecture. These claims back every configuration decision the derivation engine makes.
500
+
501
+ ### What It Synthesizes
502
+
503
+ - **Zettelkasten** — atomic notes, bidirectional linking, emergent structure
504
+ - **Cornell Note-Taking** — the 5 Rs (Record, Reduce, Recite, Reflect, Review)
505
+ - **Evergreen Notes** — continuous rewriting, composability, note-as-API
506
+ - **PARA** — project/area/resource/archive organization
507
+ - **GTD** — capture, clarify, organize, reflect, engage
508
+ - **Memory Palaces** — spatial organization, navigation as cognition
509
+ - **Cognitive Science** — extended mind thesis, spreading activation, generation effect, working memory limits, attention residue
510
+ - **Network Theory** — small-world topology, betweenness centrality, community detection
511
+ - **Agent Architecture** — context window constraints, session boundaries, multi-agent collaboration
512
+
513
+ ### How Claims Back Decisions
514
+
515
+ Every kernel primitive includes `cognitive_grounding` linking it to specific research. For example:
516
+
517
+ - **MOC hierarchy** grounds in context-switching cost research (Leroy 2009) — MOCs reduce the 23-minute reorientation penalty
518
+ - **Description field** grounds in progressive disclosure — each discovery layer reveals more but costs more tokens
519
+ - **Wiki links** ground in spreading activation — reading one note primes related notes through explicit edges
520
+
521
+ The `/arscontexta:ask` command lets you query this research graph directly: "Why does my system use atomic notes?" returns the relevant claims with reasoning.
522
+
523
+ ---
524
+
525
+ ## Project Structure
526
+
527
+ ```
528
+ arscontexta/
529
+ ├── .claude-plugin/
530
+ │ └── plugin.json # Plugin manifest (name, version, description)
531
+ ├── bin/
532
+ │ └── cli.mjs # npx installer entry point
533
+ ├── skills/ # 10 plugin-level commands (always available)
534
+ │ ├── setup/ # Conversational onboarding
535
+ │ ├── help/ # Contextual guidance
536
+ │ ├── tutorial/ # Interactive walkthrough
537
+ │ ├── ask/ # Query the research graph
538
+ │ ├── recommend/ # Architecture analysis
539
+ │ ├── architect/ # Evolution advice
540
+ │ ├── reseed/ # Principled restructuring
541
+ │ ├── upgrade/ # Apply plugin updates
542
+ │ ├── add-domain/ # Multi-domain extension
543
+ │ └── health/ # Diagnostic checks
544
+ ├── skill-sources/ # 16 generated command templates
545
+ │ ├── reduce/ # Extract insights
546
+ │ ├── reflect/ # Find connections
547
+ │ ├── reweave/ # Update old notes
548
+ │ ├── verify/ # Combined quality check
549
+ │ ├── validate/ # Schema compliance
550
+ │ ├── seed/ # Create extraction task
551
+ │ ├── ralph/ # Queue orchestration
552
+ │ ├── pipeline/ # End-to-end processing
553
+ │ ├── tasks/ # Queue management
554
+ │ ├── stats/ # Vault metrics
555
+ │ ├── graph/ # Graph analysis
556
+ │ ├── next/ # Next-action recommendation
557
+ │ ├── learn/ # Research and grow
558
+ │ ├── remember/ # Mine session learnings
559
+ │ ├── rethink/ # Challenge assumptions
560
+ │ └── refactor/ # Structural improvements
561
+ ├── agents/
562
+ │ └── knowledge-guide.md # Subagent for pipeline work
563
+ ├── hooks/
564
+ │ ├── hooks.json # Hook configuration manifest
565
+ │ └── scripts/ # Hook implementation scripts
566
+ ├── generators/
567
+ │ ├── claude-md.md # CLAUDE.md generation template
568
+ │ ├── agents-md.md # AGENTS.md generation template (OpenClaw)
569
+ │ ├── soul-md.md # SOUL.md generation template (OpenClaw)
570
+ │ └── features/ # 17 composable feature blocks
571
+ │ ├── atomic-notes.md
572
+ │ ├── wiki-links.md
573
+ │ ├── mocs.md
574
+ │ ├── processing-pipeline.md
575
+ │ ├── semantic-search.md
576
+ │ ├── schema.md
577
+ │ ├── maintenance.md
578
+ │ ├── self-evolution.md
579
+ │ ├── methodology-knowledge.md
580
+ │ ├── session-rhythm.md
581
+ │ ├── templates.md
582
+ │ ├── ethical-guardrails.md
583
+ │ ├── helper-functions.md
584
+ │ ├── graph-analysis.md
585
+ │ ├── personality.md
586
+ │ ├── self-space.md
587
+ │ └── multi-domain.md
588
+ ├── methodology/ # 249 interconnected TFT research claims
589
+ ├── reference/ # Core reference documents
590
+ │ ├── kernel.yaml # 15 kernel primitives
591
+ │ ├── three-spaces.md # Three-space architecture
592
+ │ ├── use-case-presets.md # 3 presets with pre-validated configs
593
+ │ ├── interaction-constraints.md # Dimension coupling rules
594
+ │ ├── failure-modes.md # 10 failure modes with vulnerability matrix
595
+ │ ├── vocabulary-transforms.md # 6 vocabulary transformation levels
596
+ │ ├── personality-layer.md # 4 personality dimensions
597
+ │ ├── conversation-patterns.md # 5 worked derivation examples
598
+ │ └── validate-kernel.sh # Kernel primitive validation script
599
+ ├── platforms/ # Platform-specific adapters
600
+ │ ├── claude-code/
601
+ │ ├── openclaw/
602
+ │ └── shared/
603
+ ├── presets/ # Pre-validated configurations
604
+ │ ├── research/
605
+ │ ├── personal/
606
+ │ └── experimental/
607
+ ├── openclaw/ # OpenClaw-specific files
608
+ ├── scripts/ # Utility scripts
609
+ ├── package.json # NPM manifest
610
+ └── README.md
611
+ ```
612
+
613
+ ---
614
+
615
+ ## Development
616
+
617
+ ### Testing Locally
618
+
619
+ Load the plugin for a single session without installing:
620
+
621
+ ```bash
622
+ git clone https://github.com/agenticnotetaking/arscontexta.git
623
+ claude --plugin-dir ./arscontexta
624
+ ```
625
+
626
+ This lets you iterate on skills, hooks, generators, and reference files with immediate feedback.
627
+
628
+ ### Validating
629
+
630
+ ```bash
631
+ # Validate plugin structure
632
+ claude plugin validate ./arscontexta
633
+
634
+ # Run kernel validation on a generated vault
635
+ cd your-test-vault/
636
+ bash .claude/plugins/arscontexta/reference/validate-kernel.sh
637
+ ```
638
+
639
+ ### Contributing
640
+
641
+ 1. Fork the repository
642
+ 2. Create a feature branch
643
+ 3. Make changes — the key directories are `skills/`, `skill-sources/`, `generators/features/`, and `reference/`
644
+ 4. Test with `claude --plugin-dir ./` against a fresh vault
645
+ 5. Submit a pull request
646
+
647
+ ### Key Files for Contributors
648
+
649
+ - `reference/kernel.yaml` — the 15 primitives define what every system must include
650
+ - `generators/features/*.md` — feature blocks are the composable units of context file generation
651
+ - `skill-sources/*/SKILL.md` — generated command templates that get vocabulary-transformed
652
+ - `skills/setup/SKILL.md` — the derivation engine (the most complex single file)
653
+ - `reference/use-case-presets.md` — preset definitions with dimension values
654
+
655
+ ---
656
+
657
+ ## Philosophy
658
+
659
+ The name connects to a tradition. **Ars Combinatoria**, **Ars Memoria**, **Ars Contexta**: the art of context.
660
+
661
+ Ramon Llull's rotating wheels generated truth through combination. Giordano Bruno's memory wheels created millions of image combinations. They were external thinking systems — tools to think with rather than just store in. The missing piece was that they required a human mind to do the traversing.
662
+
663
+ Now LLMs can traverse. The wheels can spin again.
664
+
665
+ ### Tools for Thought for Agents
666
+
667
+ Just as Zettelkasten, evergreen notes, and memory palaces gave humans external structures to think with, Ars Contexta gives agents an external structure to think with. The agent builds structure optimized for retrieval and expansion. The vault extends cognition across sessions.
668
+
669
+ The methodology transfers because it encodes cognitive science — working memory limits, extended mind thesis, spreading activation, generation effect — not domain specifics. The note structure is universal: prose-title + YAML metadata + body + wiki-links. Only the vocabulary and field names change between research, relationships, learning, therapy, and life management.
670
+
671
+ ### Derivation, Not Templating
672
+
673
+ Templates give you a folder structure. Derivation gives you a knowledge architecture with every choice justified.
674
+
675
+ The difference: a template says "put your notes here." A derived system says "your domain has these characteristics, which map to these dimension positions, which produce this specific architecture, because of these research findings." When something doesn't work, you can trace the decision back to its reasoning and adjust the specific dimension — not throw away the whole template and start over.
676
+
677
+ Built on [Tools for Thought for Agents](https://github.com/agenticnotetaking) research.
678
+
679
+ ---
680
+
681
+ ## License
682
+
683
+ MIT