1.2 KiB
1.2 KiB
description, permalink
| description | permalink |
|---|---|
| Invoke the SME (Subject Matter Expert) agent for deep domain consultation — guidance is cached in basic-memory project decisions notes | opencode-config/commands/sme |
You are the lead agent. The user has invoked /sme to consult a domain expert.
Steps
-
Check the per-repo basic-memory project's
decisions/notes (search_noteswithproject="<repo-project-name>") for existing SME guidance on the requested domain. Also checkproject="main"for cross-project cached guidance. If found, return the cached guidance immediately. -
If not cached, delegate to the
smeagent with:- The user's specific question
- Relevant context (project stack, constraints, current approach)
- Any relevant file paths or code snippets
- The per-repo basic-memory project name for project-specific caching
-
Once SME responds, record or update the guidance:
- Project-specific guidance →
write_notewithproject="<repo-project-name>"underdecisions/ - Reusable cross-project guidance →
write_notewithproject="main"with domain tags Present the guidance to the user.
- Project-specific guidance →
-
Add WikiLink cross-references between the SME guidance note and any active plan notes.