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,562 @@
1
+ ---
2
+ # GENERATION TEMPLATE — Do not edit directly
3
+ # This template is transformed by the derivation engine during /setup.
4
+ # All {vocabulary.*} markers resolve from the preset's vocabulary.yaml.
5
+ # All {config.*} markers resolve from the preset's preset.yaml.
6
+ # All {DOMAIN:*} markers resolve from conversation-derived domain context.
7
+ # All {if ...}{endif} blocks are conditionally included based on config.
8
+ source_skill: verify
9
+ min_processing_depth: standard
10
+ platform: shared
11
+ ---
12
+
13
+ ---
14
+ name: {vocabulary.verify}
15
+ description: Combined verification — description quality (cold-read prediction) + schema compliance + health checks. Use as a quality gate after creating {vocabulary.note_plural} or as periodic maintenance. Triggers on "/{vocabulary.verify}", "/{vocabulary.verify} [{vocabulary.note}]", "verify {vocabulary.note} quality", "check {vocabulary.note} health".
16
+ user-invocable: true
17
+ allowed-tools: Read, Write, Edit, Grep, Glob, mcp__qmd__vsearch
18
+ context: fork
19
+ model: opus
20
+ generated_from: "arscontexta-{plugin_version}"
21
+ ---
22
+
23
+ ## Runtime Configuration (Step 0 — before any processing)
24
+
25
+ Read these files to configure domain-specific behavior:
26
+
27
+ 1. **`{config.ops_dir}/derivation-manifest.md`** — vocabulary mapping, platform hints
28
+ - Use `vocabulary.notes` for the notes folder name
29
+ - Use `vocabulary.note` / `vocabulary.note_plural` for note type references
30
+ - Use `vocabulary.verify` for the process verb in output
31
+ - Use `vocabulary.topic_map` for {DOMAIN:topic map} references
32
+ - Use `vocabulary.templates` for the templates folder path
33
+ - Use `vocabulary.cmd_reflect` for redirect when missing connections found
34
+
35
+ 2. **`{config.ops_dir}/config.yaml`** — processing depth, verification settings
36
+ - `processing.depth`: deep | standard | quick
37
+ - `processing.verification.description_test`: true | false
38
+ - `processing.verification.schema_check`: true | false
39
+ - `processing.verification.link_check`: true | false
40
+
41
+ If these files don't exist, use universal defaults.
42
+
43
+ **Processing depth adaptation:**
44
+
45
+ | Depth | Verification Behavior |
46
+ |-------|-----------------------|
47
+ | deep | Full verification: cold-read prediction, complete schema check, exhaustive link verification, {DOMAIN:topic map} coverage, orphan risk analysis, content staleness detection, bundling analysis |
48
+ | standard | Balanced: cold-read prediction, schema check, link verification, {DOMAIN:topic map} coverage |
49
+ | quick | Basic: schema check, link verification only. Skip cold-read prediction and health analysis |
50
+
51
+ ## EXECUTE NOW
52
+
53
+ **Target: $ARGUMENTS**
54
+
55
+ Parse immediately:
56
+ - If target contains a {vocabulary.note} name: verify that specific {vocabulary.note}
57
+ - If target contains `--handoff`: output RALPH HANDOFF block at end
58
+ - If target is "all" or "recent": verify recently created/modified {vocabulary.note_plural}
59
+ - If target is empty: ask which {vocabulary.note} to verify
60
+
61
+ ## Anti-Shortcut Warning
62
+
63
+ Before marking verification as passed, you MUST complete ALL four categories:
64
+
65
+ 1. COMPLETE description quality test — cold-read the title + description,
66
+ predict what the {vocabulary.note} contains, compare against actual content.
67
+ A description that merely restates the title FAILS.
68
+
69
+ 2. COMPLETE schema validation — check ALL required fields from the
70
+ template schema, verify ALL enum values are valid, confirm ALL
71
+ constraints are met. A single missing required field FAILS.
72
+
73
+ 3. COMPLETE link verification — confirm ALL wiki links in the {vocabulary.note}
74
+ resolve to existing files. A single dangling link FAILS.
75
+
76
+ 4. COMPLETE {DOMAIN:topic map} integration — verify the {vocabulary.note} appears in at least
77
+ one {DOMAIN:topic map}'s Core Ideas section with a context phrase.
78
+ A {vocabulary.note} with no {DOMAIN:topic map} mention FAILS.
79
+
80
+ Do NOT declare success after checking only one or two categories.
81
+ ALL FOUR must pass.
82
+
83
+ **Execute these steps IN ORDER:**
84
+
85
+ ### Step 0: INDEX FRESHNESS CHECK
86
+
87
+ Before any retrieval tests, verify the semantic search index is current:
88
+
89
+ {if config.semantic_search}
90
+ 1. Try `mcp__qmd__vsearch` with a simple test query to confirm MCP availability
91
+ 2. If MCP is available, proceed to Step 1
92
+ 3. If MCP is unavailable (tool fails or returns error): note "retrieval test will be deferred" and proceed — do NOT let index issues block verification
93
+ {endif}
94
+
95
+ {if !config.semantic_search}
96
+ 1. Semantic search is not configured — retrieval test will use grep-based findability check instead
97
+ 2. Proceed to Step 1
98
+ {endif}
99
+
100
+ The index freshness check prevents false retrieval failures on recently created {vocabulary.note_plural}. If the index is stale, retrieval test results should be interpreted with that context.
101
+
102
+ ### Step 1: RECITE (cold-read prediction test)
103
+
104
+ **CRITICAL: Do NOT read the full {vocabulary.note} yet. Only read frontmatter.**
105
+
106
+ This step tests whether the title + description alone enable an agent to predict the {vocabulary.note}'s content. The cold-read constraint is the entire point — reading the {vocabulary.note} first contaminates the prediction.
107
+
108
+ **1. Read ONLY title + description**
109
+
110
+ Use Read with a line limit to get just the first few lines of frontmatter. Extract:
111
+ - Title (the filename without .md)
112
+ - Description (the description field)
113
+
114
+ Do NOT scroll past the frontmatter closing `---`.
115
+
116
+ **2. Form prediction**
117
+
118
+ Before reading further, write out what you expect:
119
+ - Core argument: what claim does this {vocabulary.note} make?
120
+ - Mechanism: what reasoning or evidence does it use?
121
+ - Scope: what boundaries does the argument have?
122
+ - Likely connections: what other {vocabulary.note_plural} would it reference?
123
+
124
+ Write this prediction explicitly in your output. It must be specific enough to be wrong.
125
+
126
+ **3. Read full {vocabulary.note} content**
127
+
128
+ NOW read the complete {vocabulary.note}. Compare against your prediction.
129
+
130
+ **4. Score prediction accuracy (1-5)**
131
+
132
+ | Score | Meaning | Threshold |
133
+ |-------|---------|-----------|
134
+ | **5** | Perfect — description fully captured the argument | Pass |
135
+ | **4** | Strong — minor details missed, core predicted | Pass |
136
+ | **3** | Adequate — general area right, missed key aspects | Pass (minimum) |
137
+ | **2** | Weak — significant mismatch between prediction and content | FAIL |
138
+ | **1** | Failed — {vocabulary.note} argued something different than expected | FAIL |
139
+
140
+ **Passing threshold: 3 or above.**
141
+
142
+ **5. Run semantic retrieval test**
143
+
144
+ Test whether the description enables semantic retrieval:
145
+
146
+ {if config.semantic_search}
147
+ - Try `mcp__qmd__vsearch` with query = "[the {vocabulary.note}'s description text]", collection = "{vocabulary.notes_collection}", limit = 10
148
+ - If MCP unavailable: report "retrieval test deferred (semantic search unavailable)" — do NOT skip silently
149
+
150
+ Check where the {vocabulary.note} appears in results:
151
+ - Top 3: description works well for semantic retrieval
152
+ - Position 4-10: adequate but could improve
153
+ - Not in top 10: flag — description may not convey the {vocabulary.note}'s meaning
154
+ {endif}
155
+
156
+ {if !config.semantic_search}
157
+ - Run grep-based findability test: search for key terms from the description across {config.notes_dir}/
158
+ - Check if the {vocabulary.note} would be discoverable via keyword search using its description terms
159
+ - Report "semantic retrieval test not available — grep findability check used instead"
160
+ {endif}
161
+
162
+ **Why vsearch specifically:** Agents find {vocabulary.note_plural} via semantic search during /{vocabulary.reflect} and /{vocabulary.reweave}. Testing with keyword search tests the wrong retrieval method. Full hybrid search with LLM reranking compensates for weak descriptions — too lenient. vsearch tests real semantic findability without hiding bad descriptions behind reranking.
163
+
164
+ **6. Draft improved description if needed**
165
+
166
+ If prediction score < 3:
167
+ - Diagnose the failure: too vague? missing mechanism? wrong emphasis? restates title?
168
+ - Draft an improved description that would score higher
169
+ - If you have Edit tool access: apply the improvement
170
+
171
+ **7. Combined scoring**
172
+
173
+ | Prediction Score | Retrieval Rank | Suggested Action |
174
+ |------------------|----------------|------------------|
175
+ | 4-5 | top 3 | Description works — no changes needed |
176
+ | 3-4 | top 5 | Adequate — minor improvements possible |
177
+ | 3+ | 6-10 | Investigate — passes prediction but weak retrieval |
178
+ | any | not in top 10 | Flag for review — description may not enable retrieval |
179
+ | < 3 | any | FAIL — description needs rewriting |
180
+
181
+ ### Step 2: VALIDATE (schema check)
182
+
183
+ Read the template that applies to this {vocabulary.note} type. Determine the template by checking:
184
+ - {vocabulary.note} location (e.g., {config.notes_dir}/ uses the standard {vocabulary.note} template)
185
+ - Type field in frontmatter (if present, may indicate a specialized template)
186
+
187
+ If the vault has templates with `_schema` blocks, read the `_schema` from the relevant template for authoritative field requirements. If no `_schema` exists, use the checks below as defaults.
188
+
189
+ **Required fields (FAIL if missing):**
190
+
191
+ | Field | Requirement | Severity |
192
+ |-------|-------------|----------|
193
+ | `description` | Must exist and be non-empty | FAIL |
194
+ | Topics footer or `topics` field | Must reference at least one {DOMAIN:topic map} | FAIL |
195
+
196
+ **Description constraints (WARN if violated):**
197
+
198
+ | Constraint | Check | Severity |
199
+ |------------|-------|----------|
200
+ | Length | Should be ~50-200 characters | WARN |
201
+ | Format | Single sentence, no trailing period | WARN |
202
+ | Content | MUST add NEW information beyond title | WARN |
203
+ | Semantic value | Should capture mechanism, not just topic | WARN |
204
+
205
+ **How to check "adds new info":** Read the title, read the description. If the description says the same thing in different words, it fails this check. A good description adds: mechanism (how/why), scope (boundaries), implication (what follows), or context (where it applies).
206
+
207
+ **YAML validity (FAIL if broken):**
208
+
209
+ | Check | Rule | Severity |
210
+ |-------|------|----------|
211
+ | Frontmatter delimiters | Must start with `---` and close with `---` | FAIL |
212
+ | Valid YAML | Must parse without errors | FAIL |
213
+ | No unknown fields | Fields not in the template | WARN |
214
+
215
+ **Domain-specific field enums (WARN if invalid):**
216
+
217
+ If the {vocabulary.note} has fields with enumerated values (type, category, status, etc.), check them against the template's `_schema.enums` block. Each invalid enum value produces a WARN.
218
+
219
+ **Relevant notes format (WARN if incorrect):**
220
+
221
+ | Constraint | Check | Severity |
222
+ |------------|-------|----------|
223
+ | Format | Array with context: `["[[{vocabulary.note}]] -- relationship"]` | WARN |
224
+ | Relationship type | Should use standard types: extends, foundation, contradicts, enables, example | INFO |
225
+ | Links exist | Each referenced {vocabulary.note} must exist as a file | WARN |
226
+
227
+ **Topics format (FAIL if invalid):**
228
+
229
+ | Constraint | Check | Severity |
230
+ |------------|-------|----------|
231
+ | Format | Array of wiki links: `["[[{vocabulary.topic_map}]]"]` | FAIL |
232
+ | Links exist | Each {DOMAIN:topic map} must exist as a file | WARN |
233
+
234
+ **Composability (WARN if fails):**
235
+
236
+ | Check | Rule | Severity |
237
+ |-------|------|----------|
238
+ | Title test | Can you complete "This {vocabulary.note} argues that [title]"? | WARN |
239
+ | Specificity | Is the claim specific enough to disagree with? | WARN |
240
+
241
+ ### Step 3: REVIEW (per-note health checks)
242
+
243
+ Run these 5 checks on the {vocabulary.note}:
244
+
245
+ **1. YAML frontmatter integrity**
246
+ - File starts with `---`, has closing `---`
247
+ - YAML parses without errors
248
+ - No duplicate keys
249
+
250
+ **2. Description quality (independent of recite)**
251
+ - Description is present and non-empty
252
+ - Description adds information beyond the title
253
+ - Description is not just the title rephrased
254
+
255
+ **3. {DOMAIN:topic map} connection**
256
+ - {vocabulary.note} appears in at least one {DOMAIN:topic map}'s Core Ideas section
257
+ - How to check: grep for `[[{vocabulary.note} title]]` in files that serve as {DOMAIN:topic map}s
258
+ - The {vocabulary.note}'s Topics footer references a valid {DOMAIN:topic map}
259
+ - A {vocabulary.note} with no {DOMAIN:topic map} mention is orphaned — FAIL
260
+
261
+ **4. Wiki link density**
262
+ - Count outgoing wiki links in the {vocabulary.note} body (not just frontmatter)
263
+ - Expected minimum: 2 outgoing links
264
+ - If < 2: flag as sparse — the {vocabulary.note} is not participating in the graph
265
+ - Sparse {vocabulary.note_plural} should be routed to /{vocabulary.reflect} for connection finding
266
+
267
+ **5. Link resolution**
268
+ - Scan ALL wiki links in the {vocabulary.note} — body, frontmatter `relevant_notes`, and Topics
269
+ - For each `[[link]]`, confirm a matching file exists in the vault
270
+ - **Exclude** wiki links inside backtick-wrapped code blocks (single backtick or triple backtick) — these are syntax examples, not real links
271
+ - A single dangling link = FAIL with the specific broken link identified
272
+
273
+ **Deep-only checks (when processing.depth = deep):**
274
+
275
+ **6. Orphan risk assessment**
276
+ - Count incoming links: grep for `[[{vocabulary.note} title]]` across all .md files
277
+ - If 0 incoming links: AT RISK — {vocabulary.note} exists but nothing references it
278
+ - If 1 incoming link: LOW RISK — single point of connection
279
+ - If 2+ incoming links: OK
280
+
281
+ **7. Content staleness detection**
282
+ - Read the {vocabulary.note}'s content and assess whether claims still seem current
283
+ - Check if referenced concepts/tools/approaches have changed
284
+ - Flag anything that reads as potentially outdated
285
+
286
+ **8. Bundling analysis**
287
+ - Does the {vocabulary.note} make multiple distinct claims that could be separate {vocabulary.note_plural}?
288
+ - Check: could you link to part of this {vocabulary.note} without dragging unrelated context?
289
+ - If yes: flag for potential splitting
290
+
291
+ ### Step 4: APPLY FIXES
292
+
293
+ If you have Edit tool access, apply fixes for clear-cut issues:
294
+
295
+ **Auto-fix (safe to apply):**
296
+ - Improved description if recite score < 3
297
+ - Missing `---` frontmatter delimiters
298
+ - Trailing period on description
299
+ - Missing Topics footer (if obvious which {DOMAIN:topic map} applies)
300
+
301
+ **Do NOT auto-fix (requires judgment):**
302
+ - Bundled {vocabulary.note_plural} (splitting requires understanding the claims)
303
+ - Content staleness (needs human review of factual accuracy)
304
+ - Missing connections (use /{vocabulary.reflect} instead — connection finding is its own phase)
305
+ - Ambiguous {DOMAIN:topic map} assignment (when {vocabulary.note} could fit multiple)
306
+
307
+ ### Step 5: Compile Results
308
+
309
+ Combine all checks into a unified report:
310
+
311
+ ```
312
+ === VERIFY: [{vocabulary.note} title] ===
313
+
314
+ RECITE:
315
+ Prediction score: N/5
316
+ Retrieval rank: #N (or "not in top 10" or "deferred")
317
+ Description: [pass/improved/needs work]
318
+
319
+ VALIDATE:
320
+ Required fields: [PASS/FAIL — detail]
321
+ Description constraints: [PASS/WARN — detail]
322
+ Topics format: [PASS/FAIL — detail]
323
+ Optional fields: [PASS/WARN/N/A]
324
+ Relevant notes: [PASS/WARN/N/A]
325
+ Composability: [PASS/WARN]
326
+
327
+ REVIEW:
328
+ Frontmatter: [PASS/FAIL]
329
+ Description quality: [PASS/WARN]
330
+ {DOMAIN:topic map} connection: [PASS/FAIL — which {DOMAIN:topic map}]
331
+ Wiki links: N outgoing [PASS/WARN if < 2]
332
+ Link resolution: [PASS/FAIL — broken links listed]
333
+
334
+ Overall: [PASS / WARN (N warnings) / FAIL (N failures)]
335
+
336
+ Actions Taken:
337
+ - [List of fixes applied, or "none"]
338
+
339
+ Recommended Actions:
340
+ - [List of suggested next steps, or "none"]
341
+ ===
342
+ ```
343
+
344
+ ### Step 6: Update task file and capture observations
345
+
346
+ - If a task file is in context (pipeline execution): update the `## {vocabulary.verify_title}` section with results
347
+ - Reflect on the process: friction? surprises? methodology insights? process gaps?
348
+ - If any observations worth capturing: create atomic note in the observations directory per the observation capture pattern
349
+ - If `--handoff` in target: output RALPH HANDOFF block (see below)
350
+
351
+ **START NOW.** The reference material below explains philosophy and methodology — use to guide reasoning, not as output to repeat.
352
+
353
+ ---
354
+
355
+ # {vocabulary.verify_title}
356
+
357
+ Combined verification: recite (description quality) + validate (schema compliance) + review (health checks). Three lightweight checks in one context window.
358
+
359
+ ## philosophy
360
+
361
+ **verification is one concern, not three.**
362
+
363
+ recite tests whether the description enables retrieval. validate checks schema compliance. review checks graph health. all three operate on the same {vocabulary.note}, read the same frontmatter, and together answer one question: is this {vocabulary.note} ready?
364
+
365
+ running them separately meant three context windows, three subagent spawns, three rounds of reading the same file. the checks are lightweight enough (combined context ~15-25% of window) that they fit comfortably in one session while staying in the smart zone.
366
+
367
+ > "the unit of verification is the {vocabulary.note}, not the check type."
368
+
369
+ ## execution order matters
370
+
371
+ **Recite MUST run first.** The cold-read prediction test requires forming an honest prediction from title + description BEFORE reading the full {vocabulary.note}. If validate or review ran first (both read the full {vocabulary.note}), the prediction would be contaminated. Recite's constraint: predict first, read second.
372
+
373
+ **Index freshness runs before everything.** The retrieval test in recite depends on semantic search having current data. Without a freshness check, recently created {vocabulary.note_plural} produce false retrieval failures that obscure actual description quality issues.
374
+
375
+ After recite reads the full {vocabulary.note}, validate and review can run in any order since they both need the full content.
376
+
377
+ ## recite: description quality
378
+
379
+ the testing effect applied to vault quality. read only title + description, predict what the {vocabulary.note} argues, then check. if your prediction fails, the description fails.
380
+
381
+ **why this matters:** descriptions are the API of the vault. agents decide whether to load a {vocabulary.note} based on title + description. a misleading description causes two failure modes:
382
+ - **false positive:** agent reads the {vocabulary.note} expecting X, wastes context on Y
383
+ - **false negative:** agent skips the {vocabulary.note} because description doesn't signal relevance
384
+
385
+ both degrade the vault's value as a knowledge tool.
386
+
387
+ {if config.semantic_search}
388
+ **retrieval test rationale:** agents find {vocabulary.note_plural} via semantic search during /{vocabulary.reflect} and /{vocabulary.reweave}. testing with BM25 keyword matching tests the wrong retrieval method. full hybrid search with LLM reranking compensates for weak descriptions — too lenient. vsearch tests real semantic findability without hiding bad descriptions.
389
+ {endif}
390
+
391
+ ## validate: schema compliance
392
+
393
+ checks against the relevant template schema:
394
+
395
+ | Check | Requirement | Severity |
396
+ |-------|-------------|----------|
397
+ | `description` | Must exist, non-empty | FAIL |
398
+ | `topics` | Must exist, array of wiki links | FAIL |
399
+ | description length | < 200 chars | WARN |
400
+ | description content | Adds info beyond title | WARN |
401
+ | description format | No trailing period | WARN |
402
+ | domain enum fields | Valid values per template `_schema.enums` | WARN |
403
+ | `relevant_notes` format | Array with context phrases | WARN |
404
+ | YAML integrity | Well-formed, `---` delimiters | FAIL |
405
+ | Composability | Title passes "This {vocabulary.note} argues that [title]" test | WARN |
406
+
407
+ **FAIL means fix needed. WARN is informational but worth addressing.**
408
+
409
+ **template discovery:** The skill reads the template for the {vocabulary.note} type to get its `_schema` block. If no template exists or no `_schema` block is found, fall back to the default checks above.
410
+
411
+ ## review: per-note health
412
+
413
+ 5 focused checks per {vocabulary.note} (not a full vault-wide audit):
414
+
415
+ 1. **YAML frontmatter** — well-formed, has `---` delimiters, valid parsing
416
+ 2. **Description quality** — present, adds info beyond title, not a restatement
417
+ 3. **{DOMAIN:topic map} connection** — appears in at least one {DOMAIN:topic map}
418
+ 4. **Wiki link count** — >= 2 outgoing links (graph participation threshold)
419
+ 5. **Link resolution** — all wiki links point to existing files (full body scan, excluding backtick-wrapped examples)
420
+
421
+ plus 3 deep-only checks for comprehensive audits:
422
+ 6. **Orphan risk** — incoming link count (is anything pointing here?)
423
+ 7. **Content staleness** — does the content still seem accurate?
424
+ 8. **Bundling** — does the {vocabulary.note} make multiple distinct claims?
425
+
426
+ ## common failure patterns
427
+
428
+ | Pattern | Symptom | Fix |
429
+ |---------|---------|-----|
430
+ | Title restated as description | Recite score 1-2, prediction trivially correct but content is richer | Rewrite description to add mechanism/scope |
431
+ | Missing {DOMAIN:topic map} | Review fails {DOMAIN:topic map} check | Add to appropriate {DOMAIN:topic map} or create Topics footer |
432
+ | Dangling links | Review fails link resolution | Remove link, create the target {vocabulary.note}, or fix the spelling |
433
+ | Sparse {vocabulary.note} | < 2 outgoing links | Route to /{vocabulary.reflect} for connection finding |
434
+ | Schema drift | Enum values not in template | Update {vocabulary.note} to use valid values, or propose enum addition |
435
+
436
+ ## batch mode (--all)
437
+
438
+ When verifying all {vocabulary.note_plural}:
439
+
440
+ 1. Discover all {vocabulary.note_plural} in {config.notes_dir}/ directory
441
+ 2. For each {vocabulary.note}, run the full verification pipeline
442
+ 3. Produce summary report:
443
+ - Total {vocabulary.note_plural} checked
444
+ - PASS / WARN / FAIL counts per category
445
+ - Top issues grouped by check type
446
+ - {vocabulary.note_plural} needing immediate attention (FAIL items)
447
+ - Pattern analysis across failures
448
+
449
+ **Performance note:** In batch mode, the recite cold-read test runs honestly for each {vocabulary.note}. Do not "warm up" by reading multiple {vocabulary.note_plural} first — each prediction must be genuinely cold.
450
+
451
+ ## standalone invocation
452
+
453
+ ### /{vocabulary.verify} [{vocabulary.note}]
454
+
455
+ Run all three checks on a specific {vocabulary.note}. Full detailed report.
456
+
457
+ ### /{vocabulary.verify} --all
458
+
459
+ Comprehensive audit of all {vocabulary.note_plural} in {config.notes_dir}/. Summary table + flagged failures.
460
+
461
+ ### /{vocabulary.verify} --handoff [{vocabulary.note}]
462
+
463
+ Pipeline mode for orchestrator. Runs full workflow, outputs RALPH HANDOFF block.
464
+
465
+ ## handoff mode (--handoff flag)
466
+
467
+ When invoked with `--handoff`, output this structured format at the END of the session:
468
+
469
+ ```
470
+ === RALPH HANDOFF: {vocabulary.verify} ===
471
+ Target: [[{vocabulary.note} name]]
472
+
473
+ Work Done:
474
+ - Recite: prediction N/5, retrieval #N, [pass/fail]
475
+ - Validate: [PASS/WARN/FAIL] (N checks, M warnings, K failures)
476
+ - Review: [PASS/WARN/FAIL] (N checks, M issues)
477
+ - Description improved: [yes/no]
478
+
479
+ Files Modified:
480
+ - {config.notes_dir}/[{vocabulary.note}].md (description improved, if applicable)
481
+ - [task file path] ({vocabulary.verify_title} section updated, if applicable)
482
+
483
+ Learnings:
484
+ - [Friction]: [description] | NONE
485
+ - [Surprise]: [description] | NONE
486
+ - [Methodology]: [description] | NONE
487
+ - [Process gap]: [description] | NONE
488
+
489
+ Queue Updates:
490
+ - Mark: {vocabulary.verify} done for this task
491
+ === END HANDOFF ===
492
+ ```
493
+
494
+ ## task file update
495
+
496
+ When a task file is in context (pipeline execution), update the `## {vocabulary.verify_title}` section:
497
+
498
+ ```markdown
499
+ ## {vocabulary.verify_title}
500
+ **Verified:** [UTC timestamp]
501
+
502
+ Recite:
503
+ - Prediction: N/5 — [brief reason]
504
+ - Retrieval: #N via vsearch (or "deferred")
505
+ - Description: [kept/improved — brief note]
506
+
507
+ Validate:
508
+ - Required fields: PASS
509
+ - Description constraints: PASS (147 chars, adds mechanism)
510
+ - Topics: PASS (["[[{vocabulary.topic_map}]]"])
511
+ - Optional: [status]
512
+
513
+ Review:
514
+ - Frontmatter: PASS
515
+ - {DOMAIN:topic map} connection: PASS ([[{vocabulary.topic_map}]])
516
+ - Wiki links: N outgoing
517
+ - Link resolution: PASS (all resolve)
518
+
519
+ Overall: [PASS/WARN/FAIL]
520
+ ```
521
+
522
+ ## Pipeline Chaining
523
+
524
+ /{vocabulary.verify} is the **final pipeline phase**. After verification completes:
525
+
526
+ - **manual:** Output "Verified. Pipeline complete." — no next step
527
+ - **suggested:** Output completion summary AND suggest marking task done in queue
528
+ - **automatic:** Task marked done, summary logged to task file
529
+
530
+ If verification FAILS (recite score < 3 or any FAIL-level issue), do NOT mark done. Instead:
531
+ - Output what failed and what needs fixing
532
+ - Keep task at `current_phase: "{vocabulary.verify}"` for re-run after fixes
533
+
534
+ The chaining output uses domain-native vocabulary from the derivation manifest.
535
+
536
+ ## queue.json update (interactive execution)
537
+
538
+ When running interactively (NOT via orchestrator), YOU must execute queue updates:
539
+
540
+ ```bash
541
+ TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
542
+ jq '(.tasks[] | select(.id=="TASK_ID")).status = "done" | (.tasks[] | select(.id=="TASK_ID")).completed = "'"$TIMESTAMP"'"' {config.ops_dir}/queue/queue.json > tmp.json && mv tmp.json {config.ops_dir}/queue/queue.json
543
+ ```
544
+
545
+ The queue path uses the domain-native operations folder. Check `{config.ops_dir}/` or equivalent.
546
+
547
+ ## critical constraints
548
+
549
+ **never:**
550
+ - read the {vocabulary.note} before forming the recite prediction (cold-read is the whole point)
551
+ - auto-fix FAIL-level issues without flagging them in the report
552
+ - skip the semantic retrieval test without reporting "deferred"
553
+ - leave failures without suggested improvements
554
+ - declare PASS after checking only some categories
555
+
556
+ **always:**
557
+ - run recite FIRST (before validate/review — execution order is load-bearing)
558
+ - be honest about prediction accuracy (inflated scores defeat the purpose)
559
+ - suggest specific improved descriptions for score < 3
560
+ - report all severity levels clearly (PASS/WARN/FAIL)
561
+ - update task file if one is in context
562
+ - capture observations for friction, surprises, or methodology insights
@@ -0,0 +1,35 @@
1
+ # shared/templates/ -- Note Type Templates
2
+
3
+ Note type templates live at `reference/templates/`. They define the YAML frontmatter schema and structural patterns for each note type a generated vault can contain.
4
+
5
+ This directory does not duplicate those files. It exists to document the shared template layer from a distribution perspective.
6
+
7
+ ## Canonical Source
8
+
9
+ All template files: `reference/templates/`
10
+
11
+ ## The 10 Note Type Templates
12
+
13
+ | # | Template | Purpose |
14
+ |---|----------|---------|
15
+ | 1 | `base-note.md` | Foundation template -- minimal fields shared by all note types |
16
+ | 2 | `research-note.md` | Research claims, methodology citations, adapted_from tracking |
17
+ | 3 | `therapy-note.md` | Therapeutic journaling with mood, themes, and safety-aware structure |
18
+ | 4 | `learning-note.md` | Learning captures with confidence tracking and spaced review signals |
19
+ | 5 | `creative-note.md` | Creative work fragments with stage tracking and revision history |
20
+ | 6 | `relationship-note.md` | Relationship observations with interaction logging and patterns |
21
+ | 7 | `life-note.md` | Life management notes for goals, decisions, and personal systems |
22
+ | 8 | `companion-note.md` | Companion/conversational captures with emotional context |
23
+ | 9 | `moc.md` | Map of Content structure with synthesis, core ideas, tensions, gaps |
24
+ | 10 | `session-log.md` | Session boundary logging with orientation, work done, and handoff |
25
+
26
+ ## How Templates Are Used
27
+
28
+ During generation (/setup), the derivation engine selects which templates to include based on the derived configuration:
29
+
30
+ - **Domain determines primary template.** A therapy system gets `therapy-note.md` as its primary note template. A research system gets `research-note.md`.
31
+ - **Base template is always inherited.** Every note type builds on `base-note.md` fields.
32
+ - **MOC and session-log are always included.** These are structural templates needed by every system.
33
+ - **Multi-domain systems get multiple note templates.** A system with both research and creative domains gets both `research-note.md` and `creative-note.md`.
34
+
35
+ Templates are platform-agnostic. The same `therapy-note.md` template works whether the vault is operated by a Claude Code agent or an OpenClaw bot.
@@ -0,0 +1 @@
1
+ extraction_categories: [] # user-defined during init, guided by examples from research + personal presets
@@ -0,0 +1,38 @@
1
+ name: experimental
2
+ display_name: "Experimental / Build Your Own"
3
+ description: "In-depth onboarding with thinking notes surfaced for every design decision. The user co-designs the system."
4
+ dimensions:
5
+ atomicity: null # user-chosen
6
+ organization: null
7
+ linking: null
8
+ processing: null
9
+ session: null
10
+ maintenance: null
11
+ search: null
12
+ automation: null
13
+ blocks:
14
+ always:
15
+ - wiki-links
16
+ - processing-pipeline
17
+ - schema
18
+ - maintenance
19
+ - self-evolution
20
+ - session-rhythm
21
+ - templates
22
+ - ethical-guardrails
23
+ - helper-functions
24
+ - graph-analysis
25
+ conditional:
26
+ - atomic-notes
27
+ - mocs
28
+ - semantic-search
29
+ - personality
30
+ - self-space
31
+ - multi-domain
32
+ optional: []
33
+ disabled: []
34
+ self_space: "user_choice"
35
+ qmd: "user_choice"
36
+ personality: "derived_from_conversation"
37
+ processing_depth: "full quality gates by default, user can opt down"
38
+ starter_mocs: [] # user-chosen
@@ -0,0 +1,7 @@
1
+ # Experimental Preset Starter
2
+
3
+ This preset uses conversation-driven derivation. No starter MOCs are pre-defined.
4
+
5
+ During initialization, the onboarding conversation guides the user through design decisions for each dimension, surfacing relevant thinking notes to inform choices. The resulting configuration determines which starter MOCs to create, what vocabulary to use, and which blocks to activate.
6
+
7
+ The starter directory is intentionally empty. MOCs are generated based on the conversation outcome, not pre-built templates.
@@ -0,0 +1,7 @@
1
+ # Derived from conversation during init
2
+ domain_verb_process: null
3
+ domain_verb_connect: null
4
+ domain_verb_maintain: null
5
+ domain_verb_verify: null
6
+ domain_notes: null
7
+ domain_topic_map: null
@@ -0,0 +1,7 @@
1
+ extraction_categories:
2
+ - reflections
3
+ - relationship-dynamics
4
+ - goals
5
+ - habits
6
+ - gratitude
7
+ - lessons