用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/richfrem/Project_Sanctuary --skill spec-kitty-plan命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
ADR management skill. Auto-invoked for generating architecture decisions, documenting design rationale, and maintaining the decision record log. Uses native read/write tools to scaffold and update ADR markdown files.
(Industry standard: Parallel Agent) Primary Use Case: Work that can be partitioned into independent sub-tasks running concurrently across multiple agents. Parallel multi-agent execution pattern. Use when: work can be partitioned into independent tasks that N agents can execute simultaneously across worktrees. Includes routing (sequential vs parallel), merge verification, and correction loops.
Systematically analyze agent plugins and skills to extract design patterns, architectural decisions, and reusable techniques. Trigger with "analyze this plugin", "mine patterns from", "review plugin structure", "extract learnings from", "what patterns does this plugin use", or when examining any plugin or skill collection to understand its design.
基于 SOC 职业分类
正在显示 SKILL.md
| name | spec-kitty-plan |
| description | Execute the implementation planning workflow using the plan template to generate design artifacts. |
Version: 0.11.0+
IMPORTANT: Plan works in the planning repository. NO worktrees created.
# Run from project root (same directory as /spec-kitty.specify):
# You should already be here if you just ran /spec-kitty.specify
# Creates:
# - kitty-specs/###-feature/plan.md → In planning repository
# - Commits to target branch
# - NO worktrees created
Do NOT cd anywhere. Stay in the planning repository root.
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
This command runs in the planning repository, not in a worktree.
kitty-specs/###-feature/Path reference rule: When you mention directories or files, provide either the absolute path or a path relative to the project root (for example, kitty-specs/<feature>/tasks/). Never refer to a folder by name alone.
Before executing any scripts or generating artifacts you must interrogate the specification and stakeholders.
Scope proportionality (CRITICAL): FIRST, assess the feature's complexity from the spec:
User signals to reduce questioning: If the user says "use defaults", "just make it simple", "skip to implementation", "vanilla HTML/CSS/JS" - recognize these as signals to minimize planning questions and use standard approaches.
First response rule:
WAITING_FOR_PLANNING_INPUTIf the user has not provided plan context, keep interrogating with one question at a time.
Conversational cadence: After each reply, assess if you have SUFFICIENT context for this feature's scope. For trivial features, knowing the basic stack is enough. Only continue if critical unknowns remain.
Planning requirements (scale to complexity):
#, Question, Why it matters, and Current insight. Do not render this table to the user.Check planning discovery status:
WAITING_FOR_PLANNING_INPUT. Do not surface the table. Do not run the setup command yet.Detect feature context (CRITICAL - prevents wrong feature selection):
Before running any commands, detect which feature you're working on:
a. Check git branch name:
git rev-parse --abbrev-ref HEAD###-feature-name or ###-feature-name-WP##, extract the feature slug (strip -WP## suffix if present)020-my-feature or 020-my-feature-WP01 → Feature 020-my-featureb. Check current directory:
###-feature-name pattern in the current pathkitty-specs/020-my-feature/ → Feature 020-my-feature.worktrees/020-my-feature-WP01/ → Feature 020-my-featurec. Prioritize features without plan.md (if multiple exist):
kitty-specs/plan.md yet (unplanned features)d. Extract feature slug:
###-feature-name (e.g., 020-my-feature)--feature flagExtract unknowns from Technical Context above:
Generate and dispatch research agents:
For each unknown in Technical Context:
Task: "Research {unknown} for {feature context}"
For each technology choice:
Task: "Find best practices for {tech} in {domain}"
Consolidate findings in research.md using format:
Output: research.md with all NEEDS CLARIFICATION resolved
Prerequisites: research.md complete
Extract entities from feature spec → data-model.md:
Generate API contracts from functional requirements:
/contracts/Agent context update:
Output: data-model.md, /contracts/*, quickstart.md, agent-specific file
This command is COMPLETE after generating planning artifacts.
After reporting:
plan.md pathresearch.md path (if generated)data-model.md path (if generated)contracts/ contents (if generated)YOU MUST STOP HERE.
Do NOT:
tasks.mdtasks/ subdirectoriesThe user will run /spec-kitty.tasks when they are ready to generate work packages.
Next suggested command: /spec-kitty.tasks (user must invoke this explicitly)
Setup: Run spec-kitty agent feature setup-plan --feature <feature-slug> --json from the repository root and parse JSON for:
result: "success" or error messageplan_file: Absolute path to the created plan.mdfeature_dir: Absolute path to the feature directoryExample:
# If detected feature is 020-my-feature:
spec-kitty agent feature setup-plan --feature 020-my-feature --json
Error handling: If the command fails with "Cannot detect feature" or "Multiple features found", verify your feature detection logic in step 2 and ensure you're passing the correct feature slug.
Load context: Read FEATURE_SPEC and .kittify/memory/constitution.md if it exists. If the constitution file is missing, skip Constitution Check and note that it is absent. Load IMPL_PLAN template (already copied).
Execute plan workflow: Follow the structure in IMPL_PLAN template, using the validated planning answers as ground truth:
[NEEDS CLARIFICATION: …] only when the user deliberately postpones a decisionSTOP and report: This command ends after Phase 1 planning. Report branch, IMPL_PLAN path, and generated artifacts.
⚠️ CRITICAL: DO NOT proceed to task generation! The user must explicitly run /spec-kitty.tasks to generate work packages. Your job is COMPLETE after reporting the planning artifacts.