with one click
mags-setup
Analyze project and recommend setup (skills, hooks, CLAUDE.md)
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
Analyze project and recommend setup (skills, hooks, CLAUDE.md)
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.
Show all available MAGS commands, skills, agents, and hooks at a glance
Initialize MAGS for the current project
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
Based on SOC occupation classification
| name | mags-setup |
| description | Analyze project and recommend setup (skills, hooks, CLAUDE.md) |
| version | 1.0.0 |
| user-invocable | true |
| allowed-tools | ["mcp__mags_mags__mags_project_summary","mcp__mags_mags__mags_module_context","mcp__mags_mags__mags_search_docs","mcp__mags_mags__mags_generate_claude_md","mcp__mags_mags__mags_audit_claude_md","mcp__mags_mags__mags_scaffold_module","Bash","Read","Glob","Write"] |
Analyze the current project and recommend an optimal setup for Claude Code workflows.
Gather project signals in parallel:
.mags/config.yaml to check for a locale field. If present, use this locale value when calling mags_create_doc and mags_scaffold_module throughout this flow.mags_project_summary for overall context.Glob to detect project type:
package.json — Node/JS projectCargo.toml — Rust projectgo.mod — Go projectpyproject.toml or requirements.txt — Python projectpom.xml or build.gradle — Java project*.sln or *.csproj — .NET projectGlob to detect frameworks and tools:
next.config.* — Next.jsnest-cli.json or src/main.ts with NestJS imports — NestJSprisma/schema.prisma — Prisma ORMdocker-compose.* — Docker.github/workflows/ — GitHub Actions CItailwind.config.* — Tailwind CSSpackage.json or equivalent manifest for dependencies.Based on the detected stack, recommend Claude Code slash commands and workflows. Present as a checklist:
== Recommended Setup for <project name> ==
Detected: <framework> + <language> + <key tools>
SKILLS (slash commands to install)
[x] /commit — You have this (from MAGS)
[ ] /review-pr — PR review automation
[ ] /test — Test generation for <framework>
[ ] /deploy — Deploy workflow for <detected CI>
HOOKS (automation triggers)
[ ] pre-commit — Lint + typecheck before commit
[ ] post-save — Auto-format on save
[ ] pre-push — Run tests before push
MCP SERVERS
[ ] mags — Already active
[ ] <db tool> — Database introspection for <detected DB>
[ ] <api tool> — API testing for <detected framework>
Mark items already present with [x]. Only recommend what makes sense for the detected stack.
Call mags_audit_claude_md to check the current CLAUDE.md (if it exists) against the project's actual state.
Display findings:
CLAUDE.md AUDIT
Status: <exists / missing / outdated>
Coverage: <what's covered vs what's missing>
Issues:
- <specific issue>
- <specific issue>
Present actionable next steps:
"I can help with any of these:"
Wait for user to pick an action. Do not proceed automatically.
If the user picks option 1, call mags_generate_claude_md and write the result to the project root.
If the user picks option 2, ask for the module name, then call mags_scaffold_module (pass the locale from config.yaml if available).
If the user picks option 3, create the appropriate hook scripts in .githooks/ or configure via the project's tooling (husky for Node, pre-commit for Python, etc.).
Related commands:
| Command | Description |
|---|---|
/mags-init | Initialize MAGS for a new project |
/mags-legacy | Initialize MAGS for a legacy project |
/mags-help | See all available commands |