用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/PiLastDigit/TRIP-workflow --skill trip-1-plan命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | TRIP-1-plan |
| description | Plan a new feature following project standards |
| argument-hint | describe the feature you want to build |
You are now in planning mode for [PROJECT_NAME].
Before creating any plan, you MUST read ALL THE LINES of:
Plan the following feature: $ARGUMENTS
Do NOT start writing a plan immediately. First, engage in a discovery conversation to fully understand the user's intent.
After reading the feature request, summarize your understanding in 2-3 sentences, then use the AskUserQuestion tool to present clarifying questions with structured options.
Frame questions around:
For each question, provide 2-4 concrete options based on your analysis of the codebase and the feature request. Always let the user provide custom input via the built-in "Other" option.
After the user answers, proceed directly to writing the plan (Step 2) — no approach-confirmation question. Ask a follow-up round with AskUserQuestion only if a blocking ambiguity remains (maximum 3 rounds total; if still unclear, summarize what you know and proceed with noted assumptions).
Once understanding is confirmed, create the plan document.
Depending on the feature (major, minor, patch), propose a new version using SemVer (x.y.z) and create:
docs/1-plans/F_[version]_[feature-name].plan.md
# [Feature Name] Implementation Plan
## Overview
[2-4 sentences describing the feature and its purpose]
## Problem Statement (if applicable)
[Current limitations/issues this feature addresses]
## Solution Architecture
[High-level design approach]
## Implementation Details
### 1. [Component/Module/File Name]
**File**: `path/to/file`
[Detailed description of changes needed]
**Current state** (if modifying existing):
[Describe what currently exists]
**Modifications**:
- Specific change 1 (around line X)
- Specific change 2 (around line Y)
### 2. [Next Component/Module/File]
[Continue with same pattern]
## Technical Considerations
[ADAPT_TO_PROJECT: Replace with project-specific technical concerns during Init]
- **Pattern Usage**: Which existing patterns to follow (from ARCHI.md)
- **[Concern 1]**: [Description]
- **[Concern 2]**: [Description]
- **Edge Cases**: [Relevant edge cases for this feature]
## Files to Modify/Create
[Comprehensive numbered list with purposes]
1. `path/to/file1` (modify) - Purpose description
2. `path/to/file2` (new) - Purpose description
## Type Definitions (if applicable)
[New types, interfaces, structs, or modifications to existing ones]
## Performance & Cost Impact (if applicable)
[Expected performance implications]
## Backward Compatibility (if applicable)
[Migration strategy if needed]
## Test Impact
[2-5 bullets: which existing tests the change affects, what new logic will need tests, whether an integration/E2E check applies. No test code — the TRIP-2 testing gate consumes this section.]
## Documentation Impact
[Mandatory. List every document OUTSIDE the TRIP docs that this feature will leave outdated, with one line each on what becomes stale. If none are affected, write "None". The TRIP-3 Documentation Sync step consumes this section before the release commit. Always evaluate the candidates below.]
[ADAPTPROJECT: During Init, replace this block with the project's actual living docs — every non-TRIP document that code changes can leave stale. Typical candidates: (quick start, repo structure tree, command reference), module/subdirectory READMEs, operations or user manuals, reference specs living next to the code, contributor guides (, , ). One bullet per doc with when it's affected.]
[ ] Task description
[ ] Another task
[ ] Task description
[ ] Another task
: For simple plans, a single phase is sufficient. Split into multiple phases only for complex features requiring sequential implementation.
: Do NOT write test code during planning — the Test Impact section above only names what the TRIP-2 testing gate will run and author.
Before the user sees the plan, run the Codex plan review loop. Always run it — no confirmation question. The user gets exactly one decision point in this skill, and it comes after the plan is reviewed (Step 4).
bash .claude/skills/codex-plan-review/scripts/start.sh --prompt-file .claude/skills/codex-plan-review/prompts/start.tpl <plan-path>APPROVED -> Step 4. NEEDS_REWORK -> surface to user. REQUEST_CHANGES -> continue.bash .claude/skills/codex-plan-review/scripts/resume.sh \
--prompt-file .claude/skills/codex-plan-review/prompts/resume.tpl \
--notes "Fixed X. Pushed back on Y because Z. User decided W." \
<plan-path>
-> back to step 2.APPROVED.Surface Codex reviews verbatim. Keep edits scoped to findings. Reset thread (reset.sh <plan-path>) only if context is genuinely confused.
After the Codex review converges, present a summary:
Then one AskUserQuestion — the single decision point of this skill:
docs/1-plans/F_x.y.z_feature-name.plan.md. How to proceed?"TRIP-2-implement with this planHandle the answer:
Approval and the implement-now decision are one question on purpose — approving a plan and choosing when to build it is a single thought, and splitting it into two prompts buys nothing.
DO NOT write code snippets or implement anything during planning.
This is a high-level planning phase only. Your plan should describe:
But NOT:
Keep it architectural and descriptive. Code comes in the TRIP-2-implement phase.