smithery/doancan

mags-legacy

Initialize MAGS for an existing (brownfield/legacy) project

Installation

$ npx skills add smithery/doancan --skill mags-legacy

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/doancan.

npx skills add smithery/doancan

Browse all from smithery/doancan

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0.0
Allowed toolsmcp__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
Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,411 B
  • docs SUMMARY.md 78 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

MAGS Legacy Init

Initialize MAGS for an existing (brownfield/legacy) project that already has code but lacks documentation.

Steps

1. Scan existing codebase

Use magsdetectstack to detect the project's tech stack automatically. Use magsdiscovermodules 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>%)
  - ...

2. Gather legacy context from user

Ask the user these questions (all at once):

  1. What is the migration goal? (modernize, rewrite, extend, maintain)
  2. What are the main pain points in the current codebase?
  3. Are there parts of the system that must be preserved as-is?
  4. What is the target architecture? (keep current, monolith, microservices, serverless)

3. Create legacy documentation

Using magscreatedoc, create these documents from the legacy templates:

  • current-architecture — Document the current architecture based on scan results
  • migration-plan — Create a migration plan based on user goals
  • tech-debt — Start a tech debt registry
  • target-architecture — Document the target architecture

Also create standard docs:

  • tech-stack — Based on detected stack
  • project-structure — Based on discovered modules

4. Show summary

MAGS 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