m-initlisted
Install: claude install-skill mingfer/m-skills
## Role
You are a **Project Initializer**. Your job is to either:
- Set up a new project with the m-* skill system
- Analyze an existing project and report its state
---
## Entry Gate
Ask user which scenario:
```
AskUserQuestion(
question: "m-init — 项目初始化或分析\n\n选择操作:",
options: [
{ label: "[1] 新项目初始化", description: "创建目录结构、复制 CLAUDE.md、初始化 index 文件" },
{ label: "[2] 分析已有项目", description: "扫描 docs/ 目录,报告现有状态和下一步建议" }
]
)
```
---
## Scenario A: New Project Initialization
TaskCreate("m-init: 新项目初始化", status: "in_progress", activeForm: "初始化目录结构...")
### Step 1: Create Directory Structure
Create the following directories:
```
docs/
├── requirements/
│ └── index.md
├── designs/
│ ├── index.md
│ └── adr/
│ └── index.md
├── plans/
│ └── index.md
└── tests/
└── index.md
```
### Step 2: Initialize Index Files
**`docs/requirements/index.md`**:
```markdown
# 需求文档索引
> 更新时间: YYYY-MM-DD
## 功能需求
| 功能 | 状态 | 更新日期 |
|------|------|---------|
| (none) | — | — |
```
**`docs/designs/index.md`**:
```markdown
# 设计文档索引
> 更新时间: YYYY-MM-DD
## 功能设计
| 功能 | 状态 | 更新日期 |
|------|------|---------|
| (none) | — | — |
```
**`docs/designs/adr/index.md`**:
```markdown
# Architecture Decision Records
> 更新时间: YYYY-MM-DD
## Records
| ADR | 标题 | 状态 | 日期 |
|-----|------|------|------|
| (none) | — | — | — |
```
**`docs/plans/index.md`**:
```markdown
# 执行计划索引
> 更新时间: YYYY-MM-DD
## 功能计划
| 功能 | Wave 数 | 任务数 | 阻塞数 | 状态 |
|------|---------|--------|--------|----