[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75NBTRRYMVD9Z9MMA24ZAVR":3,"skill-same:01M75NBTRRYMVD9Z9MMA24ZAVR":41},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":17,"linkOnly":18,"markdownContent":19,"markdownBody":19,"frontMatter":20,"refName":21,"commitSha":22,"skillDirectory":23,"forksCount":12,"repositoryHtmlUrl":24,"repositoryHomepageUrl":6,"ownerHtmlUrl":25,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":26,"install":27,"resources":40},"01M75NBTRRYMVD9Z9MMA24ZAVR","hive-memory.md",null,"TehutiRaEl\u002FTHEHIVE","TehutiRaEl","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F267495122?v=4","01M75N1QQQHT359S3XMYK7NPCB","01M75N1QRAW5P8P43HEHWMXCTE",0,"MIT","https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhive-memory.md\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"# Hive Memory Skill\n\n**Author:** Claude (System Architect & Backend Builder)\n**Skill ID:** hive-memory\n**Version:** 1.0.0\n**Last Updated:** 2026-07-14\n\n---\n\n## Purpose\n\nThe Hive Memory skill activates THEHIVE's full second-brain stack — HDC neocortex,\nObsidian-style vault, and PARA workspace — as a cohesive, repeatable workflow. It\nanswers: *\"How do I capture, connect, and retrieve knowledge in this system?\"*\n\nThis skill is the primary tool for knowledge management within the Sovereign Hive.\nIt replaces LangGraph's state machine, Obsidian Copilot, and Meta's worker-based\nsecond-brain with THEHIVE's own free infrastructure.\n\n---\n\n## Trigger Conditions\n\nInvoke this skill when:\n- Capturing a new architectural decision, concept, or event that should persist\n- Needing to trace how two concepts relate across the federation\n- Starting a new session and needing to orient quickly\n- Running `\u002Fupdate-nav` after significant backend changes\n- Answering \"what does the hive know about X?\" or \"how does X connect to Y?\"\n- Before a major architectural change (to understand existing concept graph first)\n\n---\n\n## The Memory Cycle\n\n```\nCAPTURE → LINK → QUERY → RECALL → EVOLVE\n```\n\n### Step 1 — CAPTURE\n*Add something new to the system's knowledge.*\n\n```bash\n# Via API (backend running)\ncurl -s -X POST \"http:\u002F\u002Flocalhost:8080\u002Fv11\u002Fbrain\u002Fremember\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"concept\": \"CONCEPT_NAME\", \"description\": \"what this is\"}'\n\n# Or via slash command\n\u002Fremember CONCEPT_NAME description of what this is\n```\n\nIf the description is substantive (>20 words), also create a dedicated Markdown note\nin the appropriate `memory\u002F` subfolder and add wiki-links to related notes.\n\nDo NOT hand-edit `memory\u002Fbackend\u002F*.md` — those are AST-generated and will be overwritten.\n\n---\n\n### Step 2 — LINK\n*Wire a new association between two concepts.*\n\n```bash\n# Via API\ncurl -s -X POST \"http:\u002F\u002Flocalhost:8080\u002Fv11\u002Fbrain\u002Fassociate\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"concept_a\": \"CONCEPT_A\", \"concept_b\": \"CONCEPT_B\"}'\n\n# Or via slash command\n\u002Flink-nodes CONCEPT_A CONCEPT_B\n```\n\nThe HDC `bind()` operation creates a vector equidistant from both parents — the\nassociation key `A:B` is stored in the in-process lexicon. Add a `[[wiki-link]]` in\nboth concepts' Markdown notes for the durable version.\n\n---\n\n### Step 3 — QUERY\n*Ask: what is nearest to this concept?*\n\n```bash\n# Via API (no auth required)\ncurl -s \"http:\u002F\u002Flocalhost:8080\u002Fv11\u002Fbrain\u002Fquery?q=SOUL&top_k=10\"\n\n# Or via slash command\n\u002Fbrain-query SOUL\n```\n\nThe response is ranked by HDC cosine similarity (bipolar vectors). Cross-reference\nwith `memory\u002F_graph.json` (key: `\"links\"`, not `\"edges\"`) to distinguish HDC-inferred\nassociations from explicitly confirmed graph edges.\n\n---\n\n### Step 4 — RECALL\n*Trace the full context chain from a concept.*\n\n```bash\n# Via API\ncurl -s \"http:\u002F\u002Flocalhost:8080\u002Fv11\u002Fbrain\u002Frecall\u002FSOUL?depth=2\"\n```\n\nReturns the top `10 * depth` nearest concepts. Use depth=1 for quick orientation,\ndepth=3 for deep context mapping before a major architectural decision.\n\n---\n\n### Step 5 — EVOLVE\n*After significant changes, regenerate the vault.*\n\n```bash\n# Rebuild _graph.json + memory\u002Fbackend\u002F*.md from AST scan\npython3 scripts\u002Fgenerate_memory_vault.py\n\n# Or via slash command\n\u002Fupdate-nav\n```\n\nRun after: adding new backend modules, refactoring core\u002F, adding new colony endpoints.\nThe auto-update workflow (`.github\u002Fworkflows\u002Fmemory-vault-update.yml`) runs this on\nevery push to `main` — so manual evolution is only needed within a session.\n\n---\n\n## Tool Selection Guide\n\n| Situation | Use |\n|---|---|\n| Need to capture a concept permanently | `\u002Fremember` → vault Markdown note |\n| Need to query concept relationships live | `\u002Fbrain-query` → HDC API |\n| Need to understand the full concept graph | `GET \u002Fv11\u002Fbrain\u002Fmap` → all nodes + edges |\n| Need to trace one concept's context | `GET \u002Fv11\u002Fbrain\u002Frecall\u002F{concept}` |\n| Need to wire two concepts together | `\u002Flink-nodes` → `hdc.bind()` |\n| Need to rebuild the knowledge graph | `\u002Fupdate-nav` → `generate_memory_vault.py` |\n| Need to navigate the vault structure | Read `memory\u002FCLAUDE.md` + `memory\u002F_index.md` |\n| Need federation-wide knowledge scan | Invoke `knowledge-cartographer` sub-agent |\n\n---\n\n## Output Format\n\n```markdown\n### Memory Operation: \u003Coperation type>\n\n**Concept(s):** \u003Cconcept name(s)>\n**Action taken:** \u003Cwhat was done>\n**HDC result:** \u003Csimilarity scores or association key>\n**Vault update:** \u003Cwhat Markdown was created\u002Fupdated, or \"none\">\n**Next associations to explore:** \u003Ctop 2-3 nearest concepts worth following>\n```\n\n---\n\n## Example Applications\n\n### Example 1 — Capturing a New Architecture Decision\n\nA new `consensus_engine.py` module was added to `backend\u002Fcore\u002F`. It needs to exist\nin the memory system.\n\n**CAPTURE:**\n```bash\ncurl -X POST \"http:\u002F\u002Flocalhost:8080\u002Fv11\u002Fbrain\u002Fremember\" \\\n  -d '{\"concept\":\"CONSENSUS\",\"description\":\"Multi-colony vote aggregation for governance decisions\"}'\n```\nCreate `memory\u002Fbackend\u002Fcore\u002Fconsensus_engine.md` with the module description and\nwiki-links: `[[CONSTITUTION]]`, `[[GOVERNANCE]]`, `[[COLONY]]`.\n\n**LINK:**\n```bash\ncurl -X POST \"http:\u002F\u002Flocalhost:8080\u002Fv11\u002Fbrain\u002Fassociate\" \\\n  -d '{\"concept_a\":\"CONSENSUS\",\"concept_b\":\"CONSTITUTION\"}'\n# → {\"association\":\"CONSENSUS:CONSTITUTION\",\"similarity_to_a\":0.39,\"similarity_to_b\":0.41}\n```\n\n**OUTPUT:**\n```\nMemory Operation: capture + link\nConcept(s): CONSENSUS, CONSTITUTION\nAction taken: encoded CONSENSUS into HDC lexicon; bound to CONSTITUTION\nHDC result: association key \"CONSENSUS:CONSTITUTION\" (sim 0.39\u002F0.41)\nVault update: memory\u002Fbackend\u002Fcore\u002Fconsensus_engine.md created with wiki-links\nNext associations to explore: GOVERNANCE (0.44), LAW (0.38), COLONY (0.35)\n```\n\n---\n\n### Example 2 — Session Start Orientation\n\nNew session, need to understand what the hive knows about the ARENA system.\n\n**RECALL:**\n```bash\ncurl -s \"http:\u002F\u002Flocalhost:8080\u002Fv11\u002Fbrain\u002Frecall\u002FARENA?depth=2\"\n```\n\n**QUERY cross-reference:**\n```python\nimport json\ng = json.load(open('memory\u002F_graph.json'))\n# NOTE: key is \"links\" not \"edges\"\narena_links = [l for l in g['links'] if 'arena' in l.get('source','').lower() or 'arena' in l.get('target','').lower()]\n```\n\n**OUTPUT:**\n```\nMemory Operation: recall + graph cross-reference\nConcept: ARENA\nHDC nearest (top 10): CHALLENGE (0.47), VOXEL (0.44), BATTLE (0.41), ELO (0.39),\n  CONFLICT (0.37), FREQUENCY (0.34), SCHUMANN (0.33), RESOLUTION (0.31)...\nGraph links (explicit): arena_renderer.py ↔ backend\u002Ftier3\u002F, arena.py ↔ backend\u002Fcore\u002F\nVault docs: memory\u002Fguilds\u002Farena.md, memory\u002Fbackend\u002Fcore\u002Farena.md\nNext associations to explore: DREAM (cross-guild), FREQUENCY (Schumann modulation)\n```\n\n---\n\n## Constitutional Check\n\n**F-001 (Data Sovereignty):** All knowledge stays in the hive — vault in git, HDC in-process,\nno calls to external embedding APIs. ✅\n\n**F-004 (Explainability):** Every brain API call returns explicit similarity scores and\noperation records. ✅\n\n**Cardinal Law (HDC\u002FVSA):** This skill exclusively uses `backend\u002Fcore\u002Fhdc.py` for\nagent-to-agent concept representation. ✅\n\n---\n\n## Constraints\n\n- Never hand-edit `memory\u002Fbackend\u002F*.md` — AST-generated, overwritten on vault regeneration\n- Never commit `soul.md` changes directly — requires 2\u002F3 guild vote + 30-day review\n- HDC lexicon bindings (`hdc.lexicon`) are **in-process ephemeral** — the Markdown wiki-links\n  in `memory\u002F` are the durable record; both should be updated together\n- `_graph.json` uses `\"links\"` as the edge key (D3 convention), NOT `\"edges\"`\n- The memory vault auto-update workflow (`memory-vault-update.yml`) skips `memory\u002F` changes\n  to prevent infinite loops — manual trigger required if vault itself needs updating\n- Maximum `top_k` for brain\u002Fquery is bounded by `concept_count()` (~150 at boot)\n\n---\n\n## Relationship to Other Skills \u002F Agents\n\n| System | Relationship |\n|---|---|\n| `memory-librarian` sub-agent | Executes the Evolve step; this skill defines when\u002Fwhy to invoke it |\n| `knowledge-cartographer` sub-agent | Executes deep Query + Recall chains; use for complex concept mapping |\n| `visionary-recommender` skill | Consumes memory output as input to strategic recommendations |\n| `\u002Fsoul-check` command | Run after capturing a concept that touches economy, agency, or governance |\n| `generate_memory_vault.py` | The underlying engine for the Evolve step |\n\n---\n\n*Skill maintained by Claude (Backend). HDC operations only. No paid embedding APIs.*\n",{},"main","b4ebd6d8c3b36347a5d435bcb343a5fc1c6f08d1",".claude\u002Fskills\u002Fhive-memory.md","https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE","https:\u002F\u002Fgithub.com\u002FTehutiRaEl","2026-11-15 04:00:21",{"source":7,"skillName":5,"commands":28,"prompt":38,"zipAvailable":39},[29,32,35],{"tool":30,"command":31},"npx","npx skills add TehutiRaEl\u002FTHEHIVE --skill hive-memory.md",{"tool":33,"command":34},"bunx","bunx skills add TehutiRaEl\u002FTHEHIVE --skill hive-memory.md",{"tool":36,"command":37},"pnpm","pnpm dlx skills add TehutiRaEl\u002FTHEHIVE --skill hive-memory.md","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhive-memory.md\u002FSKILL.md",true,[],[42,49,55,62,69,76],{"skillNo":43,"name":44,"nameZh":6,"description":45,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":46,"categories":47,"keywords":48,"publishedAt":17},"01M76XP63XDM4PFPX8MMVYN9JX","preamble-gate","Use BEFORE doing any work in this repo — before the first file edit, commit, push, PR, branch operation, workflow dispatch, scheduled trigger or timer, agent\u002Fsubagent spawn, dependency install, or message sent to an outside service. Forces a plain-language preamble to the founder first: WHAT you are about to do, WHY, HOW, why it is NECESSARY, the PROJECTED IMPROVEMENT, and the COST and RISK — then, for consequential work (governance, security, money, CI\u002Ftriggers, rewriting history, multi-agent fan-out), waits for an explicit go-ahead. Read-only investigation (reading files, grep, git log\u002Fdiff, answering questions) is exempt. Applies to every AI that works in this repo, not just Claude. Founder rule, 2026-11-10, written after an unattended automation ran up cost and froze the hive. Not a substitute for wired-or-not (which governs how completion is CLAIMED); this governs what happens BEFORE work starts.","https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpreamble-gate\u002FSKILL.md",[],[],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":17},"01M75RAYXC1W361YR9NBXD59AM","visionary-recommender","https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE\u002Fblob\u002Fmain\u002Fskills\u002Fvisionary-recommender\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":17},"01M75RAQN9Q450RD57J2S6FSR4","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE\u002Fblob\u002Fmain\u002Fskills-library\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":17},"01M75RAG1XMCJMF30HFV5S79AK","research","Default entry point for any research request — a hybrid router that classifies the question deterministically and either delegates to a specialist research skill (pulse for trends\u002Fsentiment, grants for NIH funding, litreview for academic literature, syllabus for course reading, patent for prior-art + IP landscape, dossier for entity research) or runs its own plan-decompose-multi-source-search-synthesize-cite fallback workflow when no specialist matches. Always surfaces the routing decision so users can override. Use when the user makes any research request that doesn't obviously match a more-specific specialist skill (e.g., \"research [topic]\", \"look into [topic]\", \"what do we know about [topic]\", \"investigate [topic]\", \"find me information on [topic]\", \"do some research on [topic]\", \"I need to understand [topic]\"). Output is a markdown briefing (default) or .docx document (on request) with full citations and an audit log.","https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE\u002Fblob\u002Fmain\u002Fskills-library\u002Fresearch\u002Fresearch\u002Fskills\u002Fresearch\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":17},"01M75RA8RK2JVWB8MYGRB65V75","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE\u002Fblob\u002Fmain\u002Fskills-library\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":17},"01M75RA08RXYRFSTNC6EEEX4ZD","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE\u002Fblob\u002Fmain\u002Fskills-library\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[]]