with one click
mags-legacy
Initialize MAGS for an existing (brownfield/legacy) project
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Initialize MAGS for an existing (brownfield/legacy) project
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Show all available MAGS commands, skills, agents, and hooks at a glance
Initialize MAGS for the current project
Show project status dashboard with progress, docs health, and next steps
Generate changelog from git history and project docs
List all project documents
Validate project documentation
| name | mags-legacy |
| description | Initialize MAGS for an existing (brownfield/legacy) project |
| version | 1.0.0 |
| user-invocable | true |
| allowed-tools | ["mcp__mags_mags__mags_list_docs","mcp__mags_mags__mags_create_doc","mcp__mags_mags__mags_detect_stack","mcp__mags_mags__mags_discover_modules","mcp__mags_mags__mags_remember","mcp__mags_mags__mags_generate_claude_md","Bash","Read","Glob","Write"] |
Initialize MAGS for an existing (brownfield/legacy) project that already has code but lacks documentation.
Use mags_detect_stack to detect the project's tech stack automatically.
Use mags_discover_modules to find existing modules in the code.
Report findings:
Detected Stack:
Languages: <detected>
Frameworks: <detected>
Databases: <detected>
API Style: <detected>
Discovered Modules:
- <module> (confidence: <score>%)
- ...
Ask the user these questions (all at once):
Using mags_create_doc, create these documents from the legacy templates:
current-architecture — Document the current architecture based on scan resultsmigration-plan — Create a migration plan based on user goalstech-debt — Start a tech debt registrytarget-architecture — Document the target architectureAlso create standard docs:
tech-stack — Based on detected stackproject-structure — Based on discovered modulesMAGS Legacy Init Complete
Stack: <detected stack summary>
Modules: <N> modules discovered
Documents Created:
- current-architecture.md
- migration-plan.md
- tech-debt.md
- target-architecture.md
- tech-stack.md
- project-structure.md
Run /mags-status to see your project dashboard.
Related commands:
| Command | Description |
|---|---|
/mags-init | Initialize MAGS for a new project |
/mags-status | View project progress dashboard |
/mags-setup | Get Claude Code configuration recommendations |