一键导入
mags-legacy
Initialize MAGS for an existing (brownfield/legacy) project
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Initialize MAGS for an existing (brownfield/legacy) project
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
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
基于 SOC 职业分类
| 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 |