| Crates.io | mucm |
| lib.rs | mucm |
| version | 0.3.1 |
| created_at | 2025-11-27 19:58:56.861885+00 |
| updated_at | 2025-12-10 08:59:44.979911+00 |
| description | A lightweight CLI tool for managing use cases in markdown format, designed to keep your documentation close to your code. |
| homepage | https://github.com/Guillaumecoi/MUCM |
| repository | https://github.com/Guillaumecoi/MUCM |
| max_upload_size | |
| id | 1954345 |
| size | 1,823,146 |
Documentation that travels with your code. MUCM is a documentation compiler that turns structured data (TOML or SQLite) into beautifully formatted markdown documentation. Write once, generate multiple perspectives for developers, testers, business analysts, and product managers.
git clone https://github.com/Guillaumecoi/MUCM cd MUCM
โ E-Commerce Demo - Complete authentication system with use cases, personas, tests, and Mermaid diagrams. Built in 10 minutes. Zero manual markdown.
๐ง Extend Everything
Create custom methodologies for your industry. Add support for new test languages. Build your own template fields. MUCM adapts to your workflow, not the other way around.
๐จ Customize Templates Without Coding
Edit Handlebars templates to format your documentation exactly how you want. Change headings, reorder sections, add custom fields - no programming experience required. Copy the templates to your project, tweak them in any text editor, and regenerate. Your documentation, your style.
๐ Smart Cross-References That Never Break
Type ||UC:UC-AUTH-001:depend in any precondition - MUCM automatically generates clickable markdown links to the right use case. Rename a file? Move a category? All references update automatically. No more hunting for broken links.
๐งช Test Scaffolding That Survives Regeneration
Generate test files in Python, Rust, Java or JavaScript (and soon many more) with protected "safe zones" for your code. Write your test logic once between the markers - regenerate docs 100 times and your implementation stays intact. Only the scaffolding updates.
๐ Interactive Diagrams Built From Your Scenarios
Describe your workflow in scenario steps - MUCM generates Mermaid sequence diagrams automatically. Actors, interactions, all visualized. Change a step, regenerate, diagram updates. No drawing tools needed.
๐ฅ Rich Actor Profiles
Create realistic personas (background, motivations, technical skills) and system actors (APIs, databases, external services). Every actor gets an emoji, a full profile page, and appears consistently across all scenarios.
๐ฏ Four Methodology Views (Or Mix Them)
Generate documentation tailored for different audiences from the same source:
โก Two Ways to Work
mucm -i) - Guided menus, perfect for getting started or complex edits๐พ Choose Your Storage
TOML (Recommended) - Human-readable files, beautiful diffs, perfect for code review and version control
SQLite (Experimental) - Database backend for projects with 100+ use cases, complex queries, and better performance
cargo install mucm
git clone https://github.com/Guillaumecoi/markdown-use-case-manager
cd markdown-use-case-manager
cargo install --path .
Option 1: Interactive Mode (Recommended)
mucm # or mucm -i or mucm --interactive
Than follow the prompts to set up your project, choose a methodology, and create your first use case, etc...

Option 2: CLI Mode
Or use direct commands (Better for automation)
# Initialize project
mucm init --methodology developer
# Create a use case
mucm create "User Authentication" --category security
...
Configuration & Templates:
After initialization, MUCM creates configuration files and copies template assets into your project:
All these files live in .config/.mucm/ and can be customized as needed.
.config/.mucm/
โโโ mucm.toml # Project configuration
โโโ template-assets/ # Customizable templates (copied from source-templates)
โโโ methodologies/ # Settings and templates per methodology
โ โโโ developer/
โ โโโ feature/
โ โโโ ...
โโโ languages/ # Settings and templates per programming language
โโโ rust/
โโโ python/
โโโ ...
Input (Your Data):
Your single source of truth for use cases is stored in structured toml files (or SQLite). That way, your data is always version controlled and easy to edit.
use-cases-data/
โโโ actors/
โ โโโ admin-user.toml # Persona definitions
โ โโโ auth-service.toml # System actor definitions
โโโ security/
โโโ UC-SEC-001.toml # Use case source data
Or if you use SQLite backend:
โโโ mucm.db # SQLite database file with all data
Output (Generated Documentation):
MUCM generates clean, organized markdown files for your use cases.
docs/
โโโ use-cases/
โ โโโ README.md # Auto-generated overview
โ โโโ security/
โ โโโ README.md # Category overview (auto-generated)
โ โโโ UC-SEC-001/ # Each use case has its own folder
โ โโโ README.md # Main documentation (single view)
โ โโโ UC-SEC-001-feature-normal.md # Or multiple methodology views
โ โโโ UC-SEC-001-developer-normal.md
โโโ personas/
โ โโโ admin-user.md # Persona documentation
โ โโโ auth-service.md # System actor documentation
tests/use-cases/
โโโ security/
โโโ uc_sec_001.rs # Test scaffolding (optional)
Start Here:
Guides:
Deep Dive:
Questions? Join the discussions
Found a bug? Open an issue
Want to contribute? See our Contributing Guide
We especially encourage:
MIT License - see LICENSE for details.