en un clic
wiki-workflow
Use maina wiki for persistent codebase knowledge
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Use maina wiki for persistent codebase knowledge
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
Use maina cloud for team prompt sync, hosted verification, and feedback-driven learning.
Run maina's two-stage AI code review checking spec compliance then code quality.
Generate rich codebase context using maina's 4-layer retrieval with dynamic token budgets.
First-time maina setup and configuration in any AI coding tool.
Scaffold and validate feature plans using maina's spec-first planning workflow.
Follow maina's test-driven development cycle from generated stubs through red-green-refactor.
| name | wiki-workflow |
| description | Use maina wiki for persistent codebase knowledge |
| triggers | ["wiki","knowledge","documentation","explain"] |
maina wiki compile manually after large refactors.maina wiki init — First-time setup. Scans the codebase, extracts entities via tree-sitter, builds the knowledge graph, and generates initial articles.maina wiki compile — Recompile after changes. Runs incrementally by default (only changed files). Use --full for a complete rebuild.maina wiki query "question" — Ask a natural-language question about the codebase. Uses AI to synthesize an answer from relevant articles. Falls back to keyword search when AI is unavailable.maina wiki status — Health check showing article counts by type, coverage percentage, and last compile time.maina wiki lint — Find stale articles, orphaned entities, broken links, spec drift, and missing rationale.maina wiki ingest <file> — Add external documentation (RFCs, design docs, meeting notes) into the wiki as raw articles.maina wiki query "how does authentication work?"
maina wiki query "what patterns does the verify engine use?"
maina wiki compile
maina wiki lint
maina wiki query "explain the cache invalidation strategy" --save
# Persists the answer to wiki/raw/ for future reference
maina wiki query "why did we choose JWT over sessions?"
# Returns the decision article with full rationale
| Type | Directory | Content |
|---|---|---|
| Module | wiki/modules/ | Module overview, exports, dependencies |
| Entity | wiki/entities/ | Function/class/type with lifecycle context |
| Feature | wiki/features/ | Feature history, tasks, acceptance criteria |
| Decision | wiki/decisions/ | ADR with context, rationale, alternatives |
| Architecture | wiki/architecture/ | System structure, dependency graph, clusters |
| Raw | wiki/raw/ | Ingested docs, saved query results |
--save flag on queries persists useful answers for the whole team[[path]] notation for cross-referencesmaina <command> or npx @mainahq/cli <command>) and MCP tools (wikiQuery, wikiStatus) when running inside an AI coding tool