pilastdigit/trip-workflow/trip-1-plan
Claude Code and agent skill by pilastdigit/trip-workflow
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Plan a new feature following project standards
Install
npx vskill@latest install pilastdigit/trip-workflow/trip-1-planSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Planning Mode
You are now in planning mode for [PROJECT_NAME].
Prerequisites - Read First
Before creating any plan, you MUST read ALL THE LINES of:
- @docs/ARCHI.md - Understand current system architecture
- [ADAPT_TO_PROJECT: optional — list additional living docs a plan must respect (e.g. an operations manual, a public API contract), each with the condition under which it must be read ("only if the feature touches X"). Remove this line if the project has none.]
Your Task
Plan the following feature: $ARGUMENTS
Default — plan, then implement. Once Codex returns APPROVED, the plan chains straight into TRIP-2-implement with no approval question. Discovery (Step 1) is where the user and you align; it runs in every mode.
--review: strip the flag from the feature description and stop at Step 4 for the user's approval instead of chaining.- A Codex
NEEDS_REWORKalways stops and asks, whatever the flags. --yolo(the pre-2.9 opt-in for chaining) is accepted and ignored — chaining is now the default.
Step 1: Discovery & Clarification (Interactive)
Do NOT start writing a plan immediately. First, engage in a discovery conversation to fully understand the user's intent.
1.1 Initial Understanding
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:
- Scope: What's included vs excluded?
- Behavior: How should it work from the user's perspective?
- Constraints: Any technical limitations, deadlines, or dependencies?
- Priority: What's most important if trade-offs are needed?
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.
Every question ships a recommendation. For each question, pick the option you'd choose and mark it — put it first in the options list with (Recommended) appended to its label. If you genuinely have no lean, say so in the option descriptions rather than faking a recommendation.
1.2 Alignment: keep asking until aligned
The goal is a shared understanding of the feature, not a fixed number of questions. Batch up to 4 questions per AskUserQuestion call (one "round"), and keep asking follow-up rounds while genuine blocking ambiguities remain. Stop as soon as none do — do not manufacture questions to fill a quota.
A safety ceiling caps the questioning if you're still finding gaps, scaled by plan size:
| Plan size | Ceiling (rounds of up to 4 questions) | |
|---|---|---|
| patch | 1 | |
| minor | 3 | |
| major | 5 |
When a ceiling is hit, summarize what you know, note open assumptions explicitly, and proceed to Step 2. Don't over-question: the Codex plan review (Step 3) backstops anything discovery misses, so lean toward proceeding rather than squeezing out every edge case.
User escape hatch. From the second round onward, include a standing option worded like "Use your recommendations for everything remaining → write the plan" as one of the choices. If the user picks it, stop asking immediately, adopt your recommended answer for every still-open question, and proceed to Step 2. The user decides when alignment is enough — this option lets them, without waiting for the ceiling.
After discovery ends (aligned, ceiling hit, or escape hatch), proceed directly to writing the plan (Step 2).
Step 2: Plan Document Creation
Once understanding is confirmed, create the plan document.
File Naming
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
Required Sections
Quality Standards
- Zero Ambiguity: Every step must be clear and actionable
- File-Level Specificity: List exact files and functions to modify
- Architecture Alignment: Must conform to existing patterns in ARCHI.md
- Risk Assessment: Highlight potential failure points
Step 3: Codex Second-Opinion Review
Run the Codex plan review loop on every plan. Always run it — no confirmation question. It is the plan's only gate in the default flow, so the plan must converge here before any code is written.
Loop
- Start:
bash .claude/skills/codex-plan-review/scripts/start.sh --prompt-file .claude/skills/codex-plan-review/prompts/start.tpl <plan-path> - Parse trailing tag:
APPROVED-> Step 4.NEEDS_REWORK-> surface to user.REQUEST_CHANGES-> continue. - Address findings critically — quote each P1/P2, push back on incorrect ones, fix legitimate ones by editing the plan in place.
- Write implementer notes (1-3 sentences): which findings you fixed, which you pushed back on and why, any user decisions that override existing docs or environment limitations that can't be resolved in the plan.
- Resume with notes:
``bash 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.
- No cap — keep iterating until Codex returns
APPROVED.
Surface Codex reviews verbatim. Keep edits scoped to findings. Reset thread (reset.sh <plan-path>) only if context is genuinely confused.
Step 4: Hand-off to Implementation
After the Codex review converges, present a summary — it is the record of what is about to be built:
- Feature: [name]
- Approach: [1-2 sentences]
- Plan:
docs/1-plans/F_x.y.z_feature-name.plan.md - Files affected: [count] files ([list key ones])
- Estimated complexity: [simple/moderate/complex]
- Codex status: [APPROVED after N rounds / NEEDS_REWORK surfaced to you]
Default: proceed directly into implementation — read .claude/skills/TRIP-2-implement/SKILL.md and follow it in this session, passing the plan path.
With `--review`, or when Codex returned `NEEDS_REWORK`: one AskUserQuestion instead:
- Question: "Review the plan at
docs/1-plans/F_x.y.z_feature-name.plan.md. How to proceed?" - Options:
- "Approved — implement now" → continue into
TRIP-2-implementas in the default flow - "Approved — stop here" → plan saved, no implementation (run
/TRIP-2-implement <plan>later, e.g. in another session or with another model) - "Rework" → the user provides feedback as text
Handle the answer:
- Rework: update the plan from the user's feedback, then re-present. Run another Codex pass if the changes are substantive.
- Other (custom input): handle accordingly.
IMPORTANT: No Code Implementation
DO NOT write code snippets or implement anything during planning.
This is a high-level planning phase only. Your plan should describe:
- WHAT needs to be done (features, changes, structures)
- WHERE changes will happen (files, modules, functions)
- WHY certain approaches are chosen (trade-offs, rationale)
But NOT:
- Actual code implementations
- Detailed algorithm code
Keep it architectural and descriptive. Code comes in the TRIP-2-implement phase, which starts only after Step 4.
[ADAPT_TO_PROJECT: Guidance Sections]
<!-- During Init, replace this section with project-specific guidance. Examples:
For Web Frontend:
For New UI Components
For Service Layer Additions
For Custom Hooks
For Embedded:
For New Peripheral Drivers
For New Communication Protocols
For CLI:
For New Commands
For Configuration Changes
For Backend:
For New API Endpoints
For Database Changes
-->
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/TRIP-1-plan/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pilastdigit/trip-workflow/trip-1-plan)