用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/curtbushko/nixos-config --skill to-phases命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
Comprehensive Nix best practices for flakes, NixOS, home-manager, nix-darwin, devshells, package management, and system configuration. Use this skill when working with Nix flakes, NixOS configuration, home-manager dotfiles, nix-darwin macOS setup, development shells (nix develop/nix-shell), package searching, testing, overlays, or any Nix-related tasks including debugging derivations and garbage collection.
Implements phases defined in .phases/ directory. Reads current phase from index.yaml, breaks down into tasks, then executes Builder -> Reviewer for each task.
Implements phases defined in .phases/ directory for Node.js projects. Reads current phase from index.yaml, breaks down into tasks, then executes Builder -> Reviewer for each task.
正在显示 SKILL.md
| name | to-phases |
| description | To Phases - Implementation Phase Manager |
The To-Phases skill helps you create and manage implementation plans using a file-based structure that keeps orchestrator context lean. Plans are stored in .plans/ with an index file and separate phase files.
If a PRD exists (.plans/prd-*.md), this skill ensures phases cover all scenarios from the PRD.
Structure:
.plans/
├── prd-{feature-name}.md # PRD (optional, created by to-prd)
├── index.yaml # Lean summary (orchestrator reads ONLY this)
├── phase-01-project-setup.md
├── phase-02-core-domain.md
└── ...
When this skill is invoked via /to-phases:
Check if .plans/prd-*.md exists:
if exists:
Read the PRD
Note all user stories and implementation decisions
Use these to guide phase creation
else:
Continue with standard phase planning
IMPORTANT: If a PRD exists, phases MUST cover:
if file_exists(".plans/index.yaml"):
Read and display current state (Append/Update Mode)
else:
Create new plan (Create Mode)
Read .plans/index.yaml and display:
Project: {project_name}
PRD: {prd_file} (if exists)
Current Phase: {current_phase}
Phases:
1. {name} [{status}] {progress}
2. {name} [{status}] {progress}
...
Ask the user:
Question: "What would you like to do?"
Add new phase: Follow the same flow as Create Mode step 1b, but append to existing phases.
Update existing phase:
View phase details: Read and display the requested phase file.
Validate PRD coverage:
| Status | Meaning |
|---|---|
pending | No tasks started |
in_progress | At least one task completed, not all done |
completed | All tasks completed |
{completed}/{total} from the phase file0/N → pending1/N to N-1/N → in_progressN/N → completedcurrent_phase in index.yaml points to the active phaseproject: "structured-cli"
prd: "prd-structured-command-parser.md"
current_phase: 2
phases:
- id: 1
name: "Project Setup"
file: "phase-01-project-setup.md"
status: completed
progress: "4/4"
- id: 2
name: "Core Domain & Ports"
file: "phase-02-core-domain.md"
status: in_progress
progress: "5/8"
- id: 3
name: "Parser Implementation"
file: "phase-03-parsers.md"
status: pending
progress: "0/6"
# Phase 2: Core Domain & Ports
## PRD Reference
Covers user stories: #1-5, #8 from prd-structured-command-parser.md
Implements modules:
- Command domain model
- ParseResult type
- CommandRunner interface
## Tasks
- [x] Define `domain/command.go` (Command, CommandSpec types)
- [x] Define `domain/result.go` (ParseResult type)
- [x] Define `domain/schema.go` (Schema type)
- [x] Define `ports/runner.go` (CommandRunner interface)
- [x] Define `ports/parser.go` (Parser, ParserRegistry interfaces)
- [ ] Define `ports/writer.go` (OutputWriter interface)
- [ ] Define `ports/schema.go` (SchemaRepository interface)
- [ ] Add unit tests for domain types
## Notes
- Follow hexagonal architecture
- Domain types should have no external dependencies
- Use value objects where appropriate