mucm

Crates.iomucm
lib.rsmucm
version0.3.1
created_at2025-11-27 19:58:56.861885+00
updated_at2025-12-10 08:59:44.979911+00
descriptionA lightweight CLI tool for managing use cases in markdown format, designed to keep your documentation close to your code.
homepagehttps://github.com/Guillaumecoi/MUCM
repositoryhttps://github.com/Guillaumecoi/MUCM
max_upload_size
id1954345
size1,823,146
Guillaume Coigniez (Guillaumecoi)

documentation

https://github.com/Guillaumecoi/MUCM/tree/master/docs

README

CI Status Test Status Coverage
Security Crates.io License

Why MUCM?

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.

The Problem

  • Online tools create barriers - contributors need accounts, logins, permissions just to read/edit docs
  • Documentation lives separately from code - not in your repo, not in pull requests, not in your workflow
  • Keeping it structured manually is painful - consistent formatting across dozens of use cases is tedious
  • Vendor lock-in - your documentation is trapped in proprietary systems

git clone https://github.com/Guillaumecoi/MUCM cd MUCM

  • Customizable templates without coding - Handlebars templates you can edit to format output exactly how you want
  • Version-controlled source of truth in your repo, no servers, no online services, zero barriers
  • Auto-generated test scaffolding with safe zones so your code survives regeneration
  • Smart cross-references that automatically link use cases, actors, and preconditions
  • CI/CD ready - generate docs automatically in GitHub Actions, no installation needed for contributors.
  • Multi-view documentation tailored for different teams (same data, different perspectives)

See It In Action

โ†’ E-Commerce Demo - Complete authentication system with use cases, personas, tests, and Mermaid diagrams. Built in 10 minutes. Zero manual markdown.

Features

๐Ÿ”ง 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:

  • Developer - API specs, data models, security requirements, technical architecture
  • Tester - Test scenarios, coverage areas, automation status, quality gates
  • Business - ROI analysis, stakeholder requirements, business value, success metrics
  • Feature - User stories, acceptance criteria, agile workflows, sprint planning

โšก Two Ways to Work

  • Interactive Mode (mucm -i) - Guided menus, perfect for getting started or complex edits
  • CLI Mode - Lightning-fast commands for automation, scripting, and CI/CD pipelines

๐Ÿ’พ 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

Quick Start

Installation

Using Cargo (Recommended)

cargo install mucm

From Source

git clone https://github.com/Guillaumecoi/markdown-use-case-manager
cd markdown-use-case-manager
cargo install --path .

Create Your First Project

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...

interactive terminal screenshot

โ†’ Interactive Mode Guide

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

...

โ†’ Standard CLI guide

What You Get

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)

Documentation

Start Here:

Guides:

Deep Dive:

Community & Support

Questions? Join the discussions
Found a bug? Open an issue
Want to contribute? See our Contributing Guide

We especially encourage:

  • New methodology templates for different industries
  • Additional programming language support for test generation
  • Documentation improvements and examples
  • Feature requests and bug reports
  • Feature development, code contributions and bug fixes

License

MIT License - see LICENSE for details.

Commit count: 0

cargo fmt