Implementation approach

From shinpr/codex-workflows · View interactive version

Implementation approach is an AI agent skill from the GitHub repository shinpr/codex-workflows. Selects the smallest sufficient implementation strategy and verification boundary from current requirements and repository evidence.

How to use this skill

Skill file

Implementation Approach

Strategy Selection

Use this sequence when a design or task needs an implementation approach:

  1. Current evidence — inspect the relevant responsibility, existing code that already holds it (coding-rules Repository-Local Choice), data/control path, representative repository pattern, and constraints that can change the choice.
  2. Direct MVP — identify the simplest complete path to the user's required result, including no change or removing unnecessary behavior when sufficient. A previously passed design is a revisable starting point.
  3. Necessity before detail — establish a concrete required result that this path cannot deliver before designing an extra mechanism. Discovery of a concern or a potential consumer supplies a candidate, not new requirements.
  4. Selection — consider subtraction and existing behavior first. A second implementation of a responsibility that already has an owner with the same contract and change reason, including one added earlier in the same change, is an addition; reusing, relocating, or reshaping that owner is existing behavior. So is revising an existing structure the path connects to when extending it as it stands would carry contradictory states, duplicated decisions, or parallel paths into the design. Adopt an addition only when those cannot satisfy the requirement and its supported benefit justifies total UX, runtime, implementation, testing, documentation, and maintenance cost. Evidence alone does not select it.
  5. Detail and stop — define contracts, states, error handling, and proof only for the selected mechanisms. Stop when the required result and sufficient verification are executable; further technically valid possibilities remain unadopted.

Possible future reuse, generic best practice, speculative edge cases, and optional hardening are not failed items. A path or file count is supporting evidence, not a scale or strategy rule.

Keep this analysis in the active execution context. In an existing design rationale or handoff, retain only the decision-changing reason a material addition is needed over the direct path. Evaluate its layers, states, outputs, and tests together as one mechanism. Ordinary local choices need no separate record or alternative inventory.

Slicing Choice

Choose the smallest slicing structure that preserves dependency order and yields observable progress:

Create phases from verified dependency order rather than architecture layers. Keep independently executable work separate when combining it would obscure ownership or verification.

Verification Level

Select the narrowest level that exercises the boundary named by the requirement:

Prefer evidence in this order when applicable: observable operation, test, then build/static evidence.

Completion Check

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.