Matilha 初始化
- 作者仓库星标 0
- 作者仓库 skills-registry
When this fires
User is at the start of a project (no project-status.md) or wants to bootstrap Matilha into an existing codebase. The skill scaffolds the minimum artifacts for Matilha to work: project-status.md with initial phase 0 state, CLAUDE.md / AGENTS.md / GEMINI.md as context primers, and the directory scaffold (docs/matilha/, docs/superpowers/).
Preconditions
- Write access to cwd.
- No existing
project-status.mdunless user explicitly confirms overwrite.
Execution Workflow
- Verify preconditions via Bash
test -f project-status.md. If present and user didn't say "force", ask the user before overwriting. - Prompt the user for
archetype(one of:saas-b2b,saas-b2c,frontend-only,cli,library,ml-service,marketplace). - Compute ISO-UTC timestamp via Bash
date -u +%Y-%m-%dT%H:%M:%SZ. - Write
project-status.mdvia Write tool. Frontmatter shape:schema_version: 1,name,archetype,created: <iso>,last_update: <iso>,current_phase: 0,phase_status: not_started,next_action: "Run /matilha-scout to enter Phase 10 discovery.",tools_detected: [],companion_skills: {impeccable: not_installed, shadcn: not_installed, superpowers: not_installed, typeui: not_installed},active_waves: [],completed_waves: [],feature_artifacts: [],recent_decisions: [],pending_decisions: [],blockers: [],aesthetic_direction: null,design_locked: false. - Write
CLAUDE.md/AGENTS.md/GEMINI.mdif absent (copy from this repo's templates if available viamatilha pull, else from skeletons). - Create directories
docs/matilha/plans,docs/matilha/specs,docs/matilha/wavesvia Bashmkdir -p. - Emit final message: "Initialized Matilha — current_phase: 0. Next: /matilha-scout".
Rules: Do
- Respect explicit overwrite confirmation; do not silently clobber.
- Use ISO-UTC timestamps throughout.
- Create docs/ directories idempotently (skip if they exist).
Rules: Don't
- Overwrite existing
project-status.mdwithout explicit user confirmation. - Guess archetype from code (ask).
- Use local-time timestamps.
Expected Behavior
On success, user has a Matilha-initialized project with the 3 context files + project-status.md. Next skill the user invokes is typically matilha-scout (Phase 10) or matilha-plan (Phase 20-30) if they already have research.
Quality Gates
project-status.mdexists with valid frontmatter (conforms toprojectStatusSchema).docs/matilha/directory tree exists.- Context files (CLAUDE.md / AGENTS.md / GEMINI.md) exist.
- User can run
matilha-howlnext and see phase 0 state.
Companion Integration
No companion integrations in Wave 4a. Future packs may extend this skill.
Output Artifacts
project-status.mdCLAUDE.md(if absent)AGENTS.md(if absent)GEMINI.md(if absent)docs/matilha/plans/docs/matilha/specs/docs/matilha/waves/
Example Constraint Language
- Use "must" for: project-status.md conforms to
projectStatusSchema; ISO-UTC timestamps. - Use "should" for: prompt interactively for archetype; skip overwrite of existing context files.
- Use "may" for: scaffold additional directories beyond the required ones if user requests.
Troubleshooting
- "project-status.md already exists": User confirms overwrite explicitly, or chooses a different directory.
- "archetype not recognized": Must be one of
saas-b2b,saas-b2c,frontend-only,cli,library,ml-service,marketplace; ask user to pick from the list.
CLI shortcut (optional)
If matilha CLI is installed (
matilha --versionsucceeds), you can runmatilha initto execute this deterministically. The plugin path above works without any CLI installation.
<!-- tomevault:4.0:skill_md:2026-05-23 -->Source: danilods/matilha-skills — distributed by TomeVault.
- 流狐分类
- AI 智能
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 User is at the start of a project (no project-status.md) or wants to bootstrap Matilha into an existing codebase. The skill scaffolds the minimum artifacts for Matilha to work: project-status.md with initial phase 0 state, CLAUDE.md / AGENTS.md / GEMINI.md as…
Write access to cwd. No existing project-status.md unless user explicitly confirms overwrite.
Verify preconditions via Bash test -f project-status.md. If present and user didn't say "force", ask the user before overwriting. Prompt the user for archetype (one of: saas-b2b, saas-b2c, frontend-only, cli, library, ml-service, marketplace).
Respect explicit overwrite confirmation; do not silently clobber. Use ISO-UTC timestamps throughout. Create docs/ directories idempotently (skip if they exist).
Overwrite existing project-status.md without explicit user confirmation. Guess archetype from code (ask). Use local-time timestamps.
On success, user has a Matilha-initialized project with the 3 context files + project-status.md. Next skill the user invokes is typically matilha-scout (Phase 10) or matilha-plan (Phase 20-30) if they already have research.
## When this fires
User is at the start of a project (no `project-status.md`) or wants to bootstrap Matilha into an existing codebase. The skill scaffolds the minimum artifacts for Matilha to work: `project-status.md` with initial phase 0 state, `CLAUDE.md` / `AGENTS.md` / `GEMINI.md` as context primers, and the directory scaffold (`docs/matilha/`, `docs/superpowers/`).
## Preconditions
- Write access to cwd.
- No existing `project-status.md` unless user explicitly confirms overwrite.
## Execution Workflow
1. Verify preconditions via Bash `test -f project-status.md`. If present and user didn't say "force", ask the user before overwriting.
2. Prompt the user for `archetype` (one of: `saas-b2b`, `saas-b2c`, `frontend-only`, `cli`, `library`, `ml-service`, `marketplace`).
3. Compute ISO-UTC timestamp via Bash `date -u +%Y-%m-%dT%H:%M:%SZ`.
4. Write `project-status.md` via Write tool. Frontmatter shape: `schema_version: 1`, `name`, `archetype`, `created: <iso>`, `last_update: <iso>`, `current_phase: 0`, `phase_status: not_started`, `next_action: "Run /matilha-scout to enter Phase 10 discovery."`, `tools_detected: []`, `companion_skills: {impeccable: not_installed, shadcn: not_installed, superpowers: not_installed, typeui: not_installed}`, `active_waves: []`, `completed_waves: []`, `feature_artifacts: []`, `recent_decisions: []`, `pending_decisions: []`, `blockers: []`, `aesthetic_direction: null`, `design_locked: false`.
5. Write `CLAUDE.md` / `AGENTS.md` / `GEMINI.md` if absent (copy from this repo's templates if available via `matilha pull`, else from skeletons).
6. Create directories `docs/matilha/plans`, `docs/matilha/specs`, `docs/matilha/waves` via Bash `mkdir -p`.
7. Emit final message: "Initialized Matilha — current_phase: 0. Next: /matilha-scout".
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> When this fires → Preconditions → Execution Workflow → Rules: Do → Rules: Don't → Expected Behavior
要点 -> "project-status.md already exists" · "archetype not recognized" · User is at the start of a project (no project-status.md) or wants to bootstrap Matilha into an existing codebase. · - Write access to cwd. · 1. Verify preconditions via Bash test -f project-status.md. · - Respect explicit overwrite confirmation; do not silently clobber. · - Overwrite existing project-status.md without explicit user confirmation. · On success, user has a Matilha-initialized project with the 3 context files + project-status.md.
文件/命令 -> project-status.md · CLAUDE.md · AGENTS.md · GEMINI.md · docs/matilha/ · docs/superpowers/ · test -f project-status.md · archetype
内容 SHA-256 -> 08e45be42786
方法与流程
适用与边界
原文中的明确线索
project-status.md、CLAUDE.md、AGENTS.md、GEMINI.md、docs/matilha/、docs/superpowers/、test -f project-status.md、archetype