Phase 1: Parse Arguments

argument-hint: "[platform: pc|console|mobile|all]"

Phase 1:

Parse Arguments - Happycapy Skills Platform

What Is This

Phase 1: Parse Arguments is the initial step in the release-checklist skill for the Happycapy Skills platform. This phase is responsible for interpreting and validating user input when invoking the skill, specifically determining the intended target platform for a game or software release checklist. The argument can specify the platform as pc, console, mobile, or all. If the user does not specify a platform, the skill defaults to all. This phase ensures that all subsequent operations-such as context loading, code scanning, and checklist generation-are appropriately tailored to the requested platform.

The argument parsing mechanism is fundamental for providing a focused and relevant release checklist. By isolating this logic as a distinct phase, the skill maintains clarity and modularity, allowing for potential future extensions or modifications in argument handling.

Why Use It

Parsing arguments in a systematic, predictable way provides several crucial benefits:

  • Targeted Checklists: Only relevant requirements and checks are included, reducing noise and oversight. For example, certification steps or metadata fields may differ between PC and mobile platforms.
  • Consistency: Explicit argument parsing eliminates ambiguity in the skill’s operation, ensuring the user’s intent is always honored.
  • Extensibility: By centralizing argument parsing, new platforms or argument types can be supported in the future with minimal changes to other phases.
  • Reliability: Defaulting to all when no argument is provided guarantees that no required checks are skipped due to missing input, supporting robust release processes.

Robust argument parsing is foundational for automation in release management, especially in environments where multiple platforms are supported and distinct requirements exist for each.

How to Use It

The release-checklist skill is explicitly user-invocable. Users must trigger it via the /release-checklist command, optionally followed by a platform specifier. The argument-hint is [platform: pc|console|mobile|all], guiding users to supply the correct input.

Usage Examples:

  • For a PC-specific checklist:
    /release-checklist pc
  • For console platforms:
    /release-checklist console
  • For all platforms (or if unsure):
    /release-checklist all
    Or simply:
    /release-checklist
    (since the skill defaults to all if no argument is given)

Technical Implementation Example (Pseudocode):

def parse_platform_argument(args):
    valid_platforms = ['pc', 'console', 'mobile', 'all']
    if len(args) == 0:
        return 'all'
    platform = args[0].lower()
    if platform in valid_platforms:
        return platform
    else:
        raise ValueError(f"Unknown platform: {platform}")

This function ensures that the platform argument is always set and valid, falling back to all if omitted.

Integration in Skill Workflow:

  1. Receive Invocation: Wait for explicit /release-checklist command.
  2. Extract Argument: Parse the first argument as the target platform.
  3. Validate Argument: Check against the allowed set (pc, console, mobile, all).
  4. Default Handling: If missing or invalid, default to all or raise an error.
  5. Pass to Subsequent Phases: Downstream logic (context loading, code scanning) uses the parsed platform to tailor its behavior.

When to Use It

Phase 1: Parse Arguments is invoked every time the release-checklist skill is run. It is essential whenever a release checklist needs to be generated, regardless of the project’s complexity or target markets. Typical use cases include:

  • Preparing for a platform-specific release (e.g., a console certification milestone).
  • Cross-checking multi-platform readiness (using all).
  • Automation scripts or CI/CD pipelines that need to automate release validation.
  • Manual review by producers, QA, or release managers before launch.

It should never be auto-invoked based on context-only an explicit user command should trigger this phase, in accordance with the skill’s strict invocation policy.

Important Notes

  • Explicit Invocation Required: The skill must not auto-run; users must request it directly.
  • Strict Argument Validation: Only pc, console, mobile, and all are accepted. Invalid arguments should be rejected with a clear error.
  • Default Behavior: If no platform is specified, all is assumed. This ensures comprehensive coverage and reduces the risk of missing platform-specific requirements.
  • Scalability: The clear parsing structure makes it easy to add new platforms or argument types as the project evolves.
  • No Side Effects: Argument parsing should not trigger any file I/O or state changes beyond determining the platform.

By handling argument parsing in a dedicated, predictable manner, Phase 1 of the release-checklist skill lays the foundation for accurate, efficient, and context-aware release management workflows on the Happycapy Skills platform.