init
Skill3 starsChanged 7 months agoMITView on GitHub
One-time, idempotent project bootstrap. Detects which magi-workflow project files are missing (root CLAUDE/README/SPEC, magi/PRD/TECHSTACK/BACKLOG) and offers to scaffold them. Never overwrites existing files. Run once when adopting magi-workflow on a new or existing project. Safe to re-run.
89 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- cfgaudit/cfgaudittheir own version, first seen Oct 5, 2026
- RobStrayer/voice-agent-skillstheir own version, first seen Oct 1, 2026
- hodstack/hodstacktheir own version, first seen Oct 1, 2026
- sachingulati/claude-statuslinetheir own version, first seen Sep 30, 2026
- OpenPerfAgent/who-ate-my-flopstheir own version, first seen Sep 30, 2026
Used with
Projects with it also use migrate, survey and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
genomewalkerSkillmigrate
Import soul data from SQLite or shared chitta files
Also in 8 projects that use this
SNL-UCSBSkillsurvey
Literature survey assistant with four modes: /survey intent (capture student goals, expertise, and success criteria), /survey triage (landscape mapping via NotebookLM), /survey deepen (structured reading with craft and visualization extraction), /survey synthesize (cross-paper analysis for related work, area exams, gap identification). Also: /survey expand (corpus growth proposals). Use when students mention reading papers, literature review, related work, area exam prep, paper corpus, or any systematic reading task.
Also in 3 projects that use this
pvnarpSkillbug
Investigates and resolves bugs using structured diagnosis. Categorizes by system, traces root cause, proposes minimal fix, and suggests prevention. Use when debugging issues or investigating unexpected behavior.
Also in 3 projects that use this
AnthropicSkilluninstall
Uninstall a community skill that was installed via the hub. Confirms before deleting files, refuses to touch first-party plugin skills, and logs every action. Use when the user wants to fully remove a community skill ("uninstall [skill]", "remove this skill") rather than just disable it.
Also in 3 projects that use this
Eipi-TongSkilladopt
Onboard an existing codebase into the starter kit. Use when the user says "adopt this project", "add the kit to my existing repo", or "set up the kit on existing code".
Also in 3 projects that use this
mlz11Skillreset
Completely reset ClaudeNotifier installation, removing all components and permissions
Also in 3 projects that use this
Other versions89 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 89
- microsoft/vscode★ 196ksame name
- mcollina/skills★ 1.9ksame name
- skyllwt/AutoSci★ 1.7ksame name
- tmck-code/yet-another-statusline★ 242same name
- DeL-TaiseiOzaki/claude-code-orchestra★ 198same name
- mattgierhart/PRD-driven-context-engineering★ 179same name
- atelier-fashion/adlc-toolkit★ 171same name
- guhcostan/claude-mega-brain★ 126same name
- The01Geek/prflow★ 99same name
- duthaho/claudekit★ 97same name
79 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- references/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- commitSkill
- goSkill
- helpSkill
- planSkill
- review-codeSkill
- review-planSkill
- setupSkill
- statusSkill
- tasksSkill
- web-backend-specSkill
- web-ci-specSkill
- web-frontend-specSkill
- web-infra-planSkill
- yoloSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 3 are distinctive, and 14 are very specific to this project.
0
Common
Most of the 80 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
If $USER_CONFIG is missing, tell the user to run /magi:setup first (init needs output_language from there).
- Distinctive: line 29
Check existence of each well-known project file:
- Very specific: line 46
If missing is empty, tell the user "project is already bootstrapped" and suggest /magi:plan for next steps.
- Very specific: line 51
After scanning, check whether this is a greenfield project (no existing code files beyond what magi-workflow creates):
- Very specific: line 66
If code_files == 0 (empty/greenfield project), enter guided init mode:
- Very specific: line 68
Use AskUserQuestion to gather project context before generating templates.
- Very specific: line 69
Ask these questions in the user's output_language, consolidated into one prompt:
- Distinctive: line 78
Use the answers to populate the template placeholders in §3.
- Very specific: line 85
If code_files > 0 (existing codebase), proceed with the current behavior (LLM reads the codebase to infer context).
- Very specific: line 101
If --all flag was passed, mark everything missing for creation without prompting.
- Very specific: line 104
If --only <file1,file2> was passed, mark only those (intersected with the missing list).
- Very specific: line 107
If --dry-run was passed, list what would be created and exit without writing.
- Very specific: line 112
Use output_language from $USER_CONFIG (default zh-TW) for prose.
- Distinctive: line 259
Verify the file still doesn't exist (defense in depth).
- Very specific: line 260
Ensure parent directory exists (mkdir -p docs for Tier 2).
- Very specific: line 298
If magi/PRD.md was just scaffolded → suggest user fill it in before /magi:plan.
- Very specific: line 300
If everything (or most things) already existed → suggest /magi:plan to start a sprint.
“Common” is measured: kept by at least 6 in 10 of the 80 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/magi:init — project bootstrap
You are the coordinator. Detect which magi-workflow files are missing in this project and offer to scaffold the missing ones with minimal templates. Existing files are never overwritten. You do not write production code.
0. Preflight
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-}"
[[ -z "$PLUGIN_ROOT" ]] && PLUGIN_ROOT="$(cd "$(dirname "$BASH_SOURCE[0]")/../.." 2>/dev/null && pwd)"
USER_CONFIG="$HOME/.config/magi-workflow/config.json"If $USER_CONFIG is missing, tell the user to run /magi:setup first
(init needs output_language from there).
This skill does not require a git repo, but warns the user if not in one (a typical magi-workflow project will be).
1. Scan for missing files
Check existence of each well-known project file:
| Path | Tier | Role |
CLAUDE.md | 1 (root) | AI agent entry / instructions index |
README.md | 1 (root) | Human-readable project description |
SPEC.md | 1 (root) | Architecture & feature spec for AI agents |
magi/PRD.md | 2 (magi/) | Product requirements |
magi/TECHSTACK.md | 2 (magi/) | Tech stack constraints |
magi/BACKLOG.md | 2 (magi/) | Pending items promoted from sprint DRIFT.md |
Build two lists:
- missing — files that don't exist
- existing — files that do exist (will be skipped, never modified)
Show the user both lists clearly.
If missing is empty, tell the user "project is already bootstrapped" and
suggest /magi:plan for next steps. Exit.
1.5. Context gathering (empty/new project detection)
After scanning, check whether this is a greenfield project (no existing code files beyond what magi-workflow creates):
code_files=$(find . -maxdepth 3 -type f \
-not -path './.git/*' \
-not -path './magi/*' \
-not -name 'CLAUDE.md' \
-not -name 'README.md' \
-not -name 'SPEC.md' \
-not -name '.gitignore' \
-not -name 'LICENSE' \
| head -5 | wc -l)If code_files == 0 (empty/greenfield project), enter guided init mode:
Use AskUserQuestion to gather project context before generating templates.
Ask these questions in the user's output_language, consolidated into one
prompt:
- Project name — what is this project called?
- One-sentence description — what does it do?
- Tech stack — what language/framework/runtime will you use? (e.g., "TypeScript + Next.js", "Python + FastAPI", "Go net/http")
- Primary goal — what is the first thing you want to build?
Use the answers to populate the template placeholders in §3. Specifically:
- CLAUDE.md: fill
<one-sentence description>with answer 2 - README.md: fill
<Project Name>with answer 1, description with answer 2 - SPEC.md: fill architecture overview with answer 3 context
- magi/PRD.md: fill Problem and Goals with answers 2 and 4
- magi/TECHSTACK.md: fill Language and Framework with answer 3
If code_files > 0 (existing codebase), proceed with the current behavior
(LLM reads the codebase to infer context). Do NOT ask the interactive
questions — the code speaks for itself.
2. Confirm with the user (unless --all)
For each missing file, ask:
Create <path>? (y/n/skip-all)y→ mark for creationn→ skip just this oneskip-all→ skip everything remaining and stop asking
If --all flag was passed, mark everything missing for creation without
prompting.
If --only <file1,file2> was passed, mark only those (intersected with
the missing list).
If --dry-run was passed, list what would be created and exit
without writing.
3. Scaffold templates
Use output_language from $USER_CONFIG (default zh-TW) for prose; keep
structural headings in English. All templates are deliberately short — the
user fills in the substance themselves or via subsequent magi-workflow
commands.
CLAUDE.md (root, Tier 1)
# CLAUDE.md
Project-wide instructions for AI agents working in this repo.
## What this is
<one-sentence description>. Architecture and full feature spec live in
[SPEC.md](SPEC.md).
## Run / test commands
```bash
# Add the commands your project needs to build, run, and test here.Conventions
- <e.g., language version, indentation, naming>
<project-specific rules AI agents should follow>
Workflow rules
- Don't commit on the user's behalf without explicit confirmation.
- Use Conventional Commits.
- Use
/magi:committo commit (sprint mode for feature work, standalone mode for chore/docs/small fixes).
### `README.md` (root, Tier 1)
```markdown
# <Project Name>
<one-paragraph description of what this project does>.
## Installation
```bash
# Installation stepsUsage
# Quick-start exampleDocumentation
- SPEC.md — architecture and feature spec
magi/— PRD, TECHSTACK, BACKLOG, sprint folders
License
<license name>
```SPEC.md (root, Tier 1)
# SPEC
Architecture and feature spec, kept in sync with the codebase. Updated by
`/magi:commit` when project-level changes warrant it.
## Architecture overview
<3–5 sentences describing the high-level architecture>.
## Components
<list and briefly describe each component / module>.
## Public surface
- <commands / endpoints / public APIs>
## Conventions
- <e.g., file layout, naming>
## Status
<one paragraph: what's done, what's in progress>.magi/PRD.md (Tier 2)
# PRD — <Project Name>
## Problem
<what problem this project solves; who feels it>.
## Users
<primary users, secondary users, non-users>.
## Goals
- <measurable goal 1>
- <measurable goal 2>
## Non-goals
- <what this project explicitly will not do>
## Success metrics
<how we will know this project is succeeding>.magi/TECHSTACK.md (Tier 2)
# Tech stack
## Language(s)
- <e.g., TypeScript 5, Node 20+>
## Framework / runtime
- <e.g., Next.js 14, FastAPI, Go net/http>
## Database / storage
- <e.g., Postgres 16, Redis>
## Deployment
- <e.g., Cloud Run, Kubernetes, Vercel>
## Test framework
- <e.g., vitest, pytest, go test>
## Constraints
- <license / compliance / performance constraints AI agents should respect>magi/BACKLOG.md (Tier 2)
# Backlog
Items here are candidates for future sprints, typically promoted from
sprint DRIFT.md by `/magi:commit`. Use `/magi:plan` (no args) to promote
one into a new sprint.
## Pending
<!-- /magi:commit appends C-class drift items here -->
## Promoted to sprints
<!-- /magi:plan moves consumed items here -->4. Write files
For each marked-for-creation entry:
- Verify the file still doesn't exist (defense in depth).
- Ensure parent directory exists (
mkdir -p docsfor Tier 2). - Write the template.
- Report
created: <path>to the user.
5. Report and hand-off
Show a summary:
Created:
- CLAUDE.md
- README.md
- magi/PRD.md
...
Skipped (already existed):
- SPEC.md
...
Skipped (user declined):
- magi/TECHSTACK.md
...Recommend the next step in the user's output_language. After init, the
project is ready to start its first sprint:
✅ Bootstrap complete.
下一步:
/magi:plan "<功能描述>" (開始第一個 sprint)
/magi:plan (乾跑:從 magi/BACKLOG.md 挑既有項目)
Tip: 先把 magi/PRD.md 與 magi/TECHSTACK.md 補完,/magi:plan 會用得到。Suggestions by scenario:
- If
magi/PRD.mdwas just scaffolded → suggest user fill it in before/magi:plan. - If everything (or most things) already existed → suggest
/magi:planto start a sprint.
Argument parsing
--all— auto-create all missing files; skip per-file prompts. Useful in CI or when you want a one-shot bootstrap.--only <file1,file2>— restrict to a subset (e.g.,--only magi/BACKLOG.md). Comma-separated list of paths from the table in §1.--dry-run— print what would be created without writing anything.
Conventions
- Idempotent: re-running
/magi:initis always safe. Never overwrites. - No production code: this skill only creates project-meta documentation.
- Templates are minimal on purpose: the user (or follow-up magi-workflow commands) fills in the substance. init's job is to create the anchor for future work, not to author content.
- Per-feature files (PLAN/SPEC/TASKS/WORKS/DRIFT inside
magi/<num>-<slug>/) are NOT bootstrapped here — those are created by/magi:planper sprint.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

