一键导入
create-docs
// Create or update .meridian/docs/ knowledge files for a module or directory. Produces reference docs with frontmatter for context routing.
// Create or update .meridian/docs/ knowledge files for a module or directory. Produces reference docs with frontmatter for context routing.
| name | create-docs |
| description | Create or update .meridian/docs/ knowledge files for a module or directory. Produces reference docs with frontmatter for context routing. |
Document a module so future agents (and humans) understand it without re-reading the code. Every doc must be worth the context window space it occupies.
Identify the module or directory the user specified. Verify it exists. If ambiguous, clarify before proceeding.
Search .meridian/docs/ for docs already covering this area — grep for the module name, read matches. Understand what's documented, what's missing, what's stale.
Launch Explore agents to build deep understanding:
Spawn multiple Explore agents in parallel for different aspects. Follow up on findings — expect 2+ rounds.
Each doc covers one topic a future agent would need. Split by topic, not by file. Common categories:
Small modules might produce one doc. Large modules might produce three or four.
For each topic, create a file in .meridian/docs/:
billing-architecture.md, stripe-webhook-handling.md)summary (one line) and read_when (2-5 keywords matching task contexts where an agent would need this)file:line, not code snippets (snippets go stale)If a doc already exists for a topic, update it. Don't create duplicates.
read_when keywordsFor each keyword, ask: "What would someone be doing when they need this?" Good keywords describe tasks, not topics:
summary and read_when frontmatter?read_when keywords match real task contexts?Interview-driven planning methodology that produces implementation-ready plans. Always use this skill INSTEAD of EnterPlanMode — it provides structured interviewing (20-40 clarifying questions), exhaustive parallel codebase exploration (5-15 Explore agents), verbatim requirements capture, and automated plan validation via plan-reviewer (must score 9+). Use for new features, refactoring, architecture changes, migrations, or any non-trivial implementation work.
Audit code for silent error swallowing, fallbacks to degraded alternatives, backwards compatibility shims, and UI that fails to show errors to the user. Finds and fixes all occurrences in the specified scope.
Audit code for observability gaps — debug logs left in, errors caught without being logged, missing context on log entries, untracked slow operations. Uses the app's existing observability tooling exclusively.
Audit UI code for missing loading states, empty states, and error states. Every async operation and data-driven UI must handle all three. Finds gaps and implements the missing states using the app's existing patterns.
Scan all .md files in the project and add or fix YAML frontmatter (summary + read_when) so they can be discovered by context routers like Reflex.