Phase 0: Parse Arguments
argument-hint: "[milestone-name|current] [--review full|lean|solo]"
Phase 0:
Parse Arguments
What Is This?
Phase 0: Parse Arguments is the initial skill phase for the milestone-review skill on the Happycapy Skills platform. Its purpose is to extract, validate, and resolve user-provided arguments that specify which milestone to review and which review mode to apply. This phase ensures that downstream processes in the milestone review pipeline have precise configuration and context, sourced from command-line inputs, persistent configuration files, or sensible defaults.
The milestone-review skill itself generates a comprehensive progress review for a given project milestone, evaluating feature completeness, quality metrics, risk assessment, and providing a go/no-go recommendation. Phase 0 establishes the milestone target and the level of review detail (full, lean, or solo) before any data gathering or analysis occurs.
Why Use It?
Parsing arguments upfront is critical for several reasons:
- Consistency: Ensures that every review invocation begins with clear, reproducible inputs, reducing ambiguity and errors in milestone selection or review mode.
- Flexibility: Allows users to override defaults for specific runs, supporting both one-off reviews and persistent team preferences.
- Automation: Enables seamless integration with scripts, CI/CD tools, or Director Gates, as described in the
.claude/docs/director-gates.mddocumentation. - User Experience: Provides clear, immediate feedback if arguments are missing or invalid, minimizing confusion and manual troubleshooting.
Without this phase, subsequent review logic may operate on the wrong milestone or with inappropriate review criteria, compromising the accuracy and utility of the generated reports.
How to Use It
The argument parsing process follows a strict, layered resolution pattern:
-
User-Provided Arguments:
The user can explicitly specify both the milestone and the review mode.- Syntax:
milestone-review [milestone-name|current] [--review full|lean|solo]milestone-namecan be any valid milestone (e.g.,alpha,beta,v1.0) or the keywordcurrentto select the most recent.--reviewis an optional flag to set the review mode.
Example:
milestone-review current --review full - Syntax:
-
Fallback to Persistent Configuration:
If the--reviewflag is omitted, the skill attempts to read the default review mode from:production/review-mode.txtThe file should contain one of the allowed modes (
full,lean,solo). -
Default Behavior:
If neither the--reviewflag nor the configuration file is present, the review mode defaults tolean. -
Parsing Logic (Pseudocode):
import sys import os def parse_args(argv): milestone = 'current' review_mode = None # Parse positional and optional arguments for i, arg in enumerate(argv[1:]): if arg.startswith('--review'): if i + 2 < len(argv): review_mode = argv[i + 2] elif not arg.startswith('-'): milestone = arg # Fallback to config file if needed if not review_mode: try: with open('production/review-mode.txt', 'r') as f: review_mode = f.read().strip() except FileNotFoundError: review_mode = 'lean' return milestone, review_mode
This phase should only be run once per parent process, and its resolved arguments should be stored and reused for all subsequent gate spawns within that session.
When to Use It
- Milestone Checkpoints:
Run at each major milestone checkpoint to ensure the review context is accurate. - Milestone Deadline Evaluations:
Use when evaluating readiness for an upcoming milestone or release deadline. - Automated Review Pipelines:
Integrate into automated scripts or CI/CD workflows where milestone and review mode need to be set programmatically. - Director Gate Spawns:
Use in tandem with Director Gates to ensure all spawned reviews in a session use the same resolved parameters.
Important Notes
- Strict Argument Pattern:
Onlymilestone-name|currentand--review full|lean|soloare recognized. Extra or malformed arguments should trigger an error or prompt. - Resolution Order:
Always prioritize explicit command-line input, then persistent configuration, then defaults. This ensures user intent is respected. - Single-Run Scope:
The resolved values should be cached and reused for the entire run to avoid inconsistencies across parallel or batched reviews. - No Header Level 1 Usage:
All documentation and output should start with level 2 headers or lower for consistency and integration with Happycapy documentation standards. - Refer to Upstream Docs:
For detailed check patterns and integration with Director Gates, see.claude/docs/director-gates.mdin the skill repository.
By ensuring robust, predictable argument handling, Phase 0: Parse Arguments lays a solid foundation for all subsequent analysis and reporting performed by the milestone-review skill.
More Skills You Might Like
Explore similar skills to enhance your workflow
Internal Comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill
N8n Code Python
Write Python code in n8n Code nodes. Use when writing Python in n8n, using _input/_json/_node syntax, working with standard library, or need to
Geo Content Optimizer
Optimize content for AI citations in ChatGPT, Perplexity, AI Overviews, Gemini, Claude. AI
Gtm Motions
Identify the best GTM motions and tools across 7 motion types: Inbound, Outbound, Paid Digital, Community, Partners, ABM, and PLG. Use when
Technical Blog Writing
Automate and integrate technical blog writing for clear, expert-level content
Wwas
Create product backlog items in Why-What-Acceptance format — independent, valuable, testable items with strategic context. Use when writing