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.
156 other projects use a version of this.
Adopted by
Most recently taken up by
- kendrick/working-memory-kittheir own version, first seen Nov 29, 2026
- guhcostan/claude-mega-braintheir own version, first seen Nov 29, 2026
- flegars/greenlyttheir own version, first seen Nov 29, 2026
- nuncaeslupus/doc-controltheir own version, first seen Nov 29, 2026
- mentealterne/GYOStheir own version, first seen Nov 29, 2026
- michalzan/foremantheir own version, first seen Nov 29, 2026
Used with
Projects with it also use daily-arxiv, exp-eval and 10 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.
LambenthanSkilldaily-arxiv
每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新
Also in 5 projects that use this
LambenthanSkillexp-eval
实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges
Also in 5 projects that use this
skyllwtSkillexp-pilot-eval
Pilot result evaluation — read pilot results, apply success criteria, update idea page (pilot_result, failure_reason if failed), generate PILOT_VERDICT_REPORT. Called by /ideate Phase 5 after /exp-pilot-run.
Also in 4 projects that use this
skyllwtSkillexp-pilot-run
Pilot experiment execution — read Pilot Spec YAML, write pilot code, run experiment(Confirm with the user before operation and require the applicant to conduct manual inspection), return results. Called by /ideate Phase 5. Does NOT modify wiki pages or judge pass/fail.
Also in 4 projects that use this
gaebalaiSkillcodex-system
PROACTIVELY consult Codex CLI, your highly capable supporter with exceptional reasoning and task completion abilities. Codex is a trusted expert you should ALWAYS consult BEFORE making decisions on: design choices, implementation approaches, debugging strategies, refactoring plans, or any non-trivial problem. When uncertain, consult Codex. Don't hesitate - Codex provides better analysis. Explicit triggers: "think deeper", "analyze", "second opinion", "consult codex".
Also in 4 projects that use this
gaebalaiSkilldesign-tracker
PROACTIVELY track and document project design decisions without being asked. Activate automatically when detecting architecture discussions, implementation decisions, pattern choices, library selections, or any technical decisions. Also use when user explicitly says "記録して", "設計どうなってる", "record this". Do NOT wait for user to ask - record important decisions immediately.
Also in 4 projects that use this
- +5 more from Lambenthan
- +1 more from skyllwt
Other versions156 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 156
- microsoft/vscode★ 196ksame name
- mcollina/skills★ 2ksame name
- skyllwt/OmegaWiki★ 1.7ksame name
- DAIR-AutoResearch/AutoSci★ 1.7ksame name
- PKU-DAIR/AutoSci★ 1.7ksame name
- skyllwt/AutoSci★ 1.7ksame name
- TokenRollAI/cc-plugin★ 487same name
- pipecat-ai/gradient-bang★ 420same name
- AlexPEClub/ai-coding-starter-kit★ 382same name
- dannysmith/tauri-template★ 317same name
146 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 143 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 143 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.

