with one click
mags-init
Initialize MAGS for the current 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 the current 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 an existing (brownfield/legacy) 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-init |
| description | Initialize MAGS for the current 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_update_doc","mcp__mags_mags__mags_search_docs","mcp__mags_mags__mags_detect_stack","mcp__mags_mags__mags_generate_claude_md","mcp__mags_mags__mags_project_summary","mcp__mags_mags__mags_remember","Bash","Read","Glob","Write"] |
Initialize the Memory And Guidance System for this project.
Check if a docs/ directory already exists in the project root. Also check for .mags/ directory and any existing CLAUDE.md.
Use Glob to scan for docs/**/*.md and check for .mags/config.yaml.
Report what was found:
Call mags_list_docs to see if MAGS already has indexed documents. If not, read each markdown file in docs/ and call mags_create_doc to index them into MAGS.
Tell the user: "Found existing docs/ directory with N documents. Indexed into MAGS."
Ask the user these questions (all at once, not one by one):
Call mags_detect_stack to auto-detect the project's tech stack. Use this information to enrich the docs.
Then create the docs/ directory structure using mags_create_doc with these templates. Pass the user's chosen locale (from question 5) as the locale parameter to each mags_create_doc call:
docs/architecture/overview.md — Project overview from user answersdocs/architecture/tech-stack.md — Tech stack detailsdocs/rules/coding-standards.md — Basic coding standards for the stackdocs/changelog/changes.md — Empty changelogStop here and wait for user answers before creating docs.
Create the following structure:
.mags/
config.yaml — MAGS configuration
config.yaml content:
version: 1
project_root: .
docs_path: docs/
locale: <user's chosen locale from question 5, e.g. "en" or "tr">
initialized_at: <current ISO date>
Use the locale code the user selected in question 5 (en, tr, etc.) as the locale value.
Ask the user: "Would you like me to generate a CLAUDE.md file based on your project docs?"
If yes, call mags_generate_claude_md and write the result to the project root.
Call mags_remember with:
project_initializedcontext["init"]This ensures the memory system has at least one entry from the start.
Print a summary:
MAGS initialized successfully.
Project: <name>
Docs: <N> documents indexed
CLAUDE.md: <generated / skipped>
Next steps:
→ /mags-help — See all available commands
→ /mags-status — View project dashboard
→ /mags-setup — Get Claude Code configuration recommendations