Files
dotfiles/.config/opencode/commands/sme.md
alex 204bbb4c84 feat: replace megamemory with markdown-based memory system
Remove the megamemory MCP knowledge graph and replace with plain
markdown files in .memory/ for tracking plans, research, knowledge,
and implementation state. This enables collaboration across people
and agentic coding tools (Claude Code, Copilot, Cursor, etc.).

Changes:
- Remove megamemory MCP from opencode.jsonc
- Delete tool/megamemory.ts and .megamemory/ database
- Rewrite all 25 config files to use .memory/ markdown files
- Add cross-tool instruction file awareness (AGENTS.md, CLAUDE.md,
  copilot-instructions.md, .cursorrules)
- Update save-memory, bootstrap-memory, status commands for md workflow
- Update all agent files, skills, and commands consistently
2026-03-08 18:43:46 +00:00

19 lines
812 B
Markdown

---
description: Invoke the SME (Subject Matter Expert) agent for deep domain consultation — guidance is cached in .memory/decisions.md
---
You are the lead agent. The user has invoked `/sme` to consult a domain expert.
## Steps
1. Check `.memory/decisions.md` for existing SME guidance on the requested domain. If found, return the cached guidance immediately with its section heading.
2. If not cached, delegate to the `sme` agent with:
- The user's specific question
- Relevant context (project stack, constraints, current approach)
- Any relevant file paths or code snippets
3. Once SME responds, record or update the guidance in `.memory/decisions.md`. Present the guidance to the user.
4. Add cross-references between the SME guidance section and any active plan file in `.memory/plans/`.