Get the FREE Ultimate OpenClaw Setup Guide →

workflow

npx machina-cli add skill thomasindrias/issue-dev/workflow --openclaw
Files (1)
SKILL.md
4.7 KB

Issue First Development Workflow

This skill documents the philosophy and standards behind Issue First Development (IFD) - a structured approach to implementing features from issue tracker tickets.

RFC 2119 Keywords

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Core Philosophy

Issue First Development means:

  1. You MUST always start with a tracked issue (JIRA, Linear, etc.)
  2. You MUST understand requirements fully before writing code
  3. You MUST plan thoroughly with multiple iterations
  4. You MUST validate the plan before implementation
  5. You MUST follow a consistent workflow for quality and traceability

Planning Protocol

Every implementation task MUST follow this planning protocol:

Three-Pass Planning

  1. First Pass: Exploration

    • You MUST read the issue thoroughly
    • You MUST explore the codebase to understand context
    • You MUST identify affected files and components
    • You SHOULD note dependencies and potential impacts
  2. Second Pass: Refinement

    • You MUST draft an implementation approach
    • You MUST identify gaps in understanding
    • You SHOULD research patterns used in the codebase
    • You MUST refine the approach based on findings
  3. Third Pass: Validation

    • You MUST run /superpowers:code-review on the plan
    • You MUST address any concerns raised
    • You MUST finalize the implementation strategy
    • You MUST NOT proceed until plan is solid

Why Three Passes?

  • First pass often reveals unknown unknowns
  • Second pass connects the dots
  • Third pass catches issues before they become bugs
  • This prevents the "I didn't realize..." problem mid-implementation

Workflow Standards

Pre-Implementation

You MUST complete these steps before writing code:

> You MUST pull latest main before starting
> You MUST clear the context before starting implementation
> You MUST create a separate worktree and branch to work in

Worktree isolation prevents:

  • Conflicts with ongoing work
  • Accidental commits to wrong branch
  • Context pollution between tasks

Task Type Guidance

Frontend Tasks:

  • You MUST use frontend-design skill for UI work
  • You MUST use playwright for verification
  • You SHOULD check storybook if available
  • You SHOULD verify responsive behavior

Backend Tasks:

  • You MUST verify via endpoint testing
  • You SHOULD check existing tests for patterns
  • You SHOULD consider API contract implications
  • You MUST validate error handling

Quality Gates

Before completion, you MUST:

  1. Run /superpowers:code-review
  2. Fix all identified issues
  3. Run typecheck, lint, and build
  4. Verify changes match acceptance criteria

You MUST NOT mark a task as complete if any quality gate fails.

Database Changes

If the task involves schema changes:

  • You MUST NOT assume migration strategy
  • You MUST ask the user how to handle migrations
  • You SHOULD consider: local-only, staging, production
  • You SHOULD document migration steps

Criteria Framework

Every task SHOULD have:

Positive Criteria (What Success Looks Like)

  • Specific, measurable outcomes
  • User-facing behavior changes
  • Technical requirements met
  • Tests passing

Negative Criteria (What to Avoid)

  • Anti-patterns for this codebase
  • Breaking changes to avoid
  • Performance regressions
  • Security concerns

Completion Protocol

You MUST complete these steps:

> You MUST commit and push as a PR remotely
> You MUST remove worktree after PR is created
> You MUST run /issue-done when complete

This ensures:

  • Work is saved and shared
  • Clean workspace after completion
  • Issue tracker stays in sync

When to Use This Workflow

You SHOULD use this workflow for:

  • Any feature implementation from an issue
  • Bug fixes with tracked tickets
  • Refactoring tasks
  • Technical debt cleanup

When NOT to Use This Workflow

You MAY skip this workflow for:

  • Quick hotfixes (but you MUST still commit properly)
  • Exploration without implementation intent
  • Documentation-only changes
  • Trivial typo fixes

Integration with Other Skills

IFD works best with:

  • superpowers:write-plan - For planning iterations
  • superpowers:code-review - For plan validation
  • superpowers:brainstorm - For design exploration
  • issue-dev - For issue status management
  • ralph-loop - For complex iterative work
  • frontend-design - For UI implementation

Source

git clone https://github.com/thomasindrias/issue-dev/blob/main/.claude-plugin/skills/workflow/SKILL.mdView on GitHub

Overview

IFD is a structured approach to implementing features from issue tracker tickets. It emphasizes starting from a tracked issue, fully understanding requirements, planning with multiple iterations, and validating the plan before coding to ensure quality and traceability.

How This Skill Works

Begin with an issue and follow a three-pass planning cycle (Exploration, Refinement, Validation) to draft and validate an implementation approach. Before coding, complete pre-implementation steps such as pulling the latest main, clearing context, and creating a separate worktree and branch. Enforce quality gates (code review, typecheck, lint, build) and rely on RFC 2119 keywords to guide requirements and expectations.

When to Use It

  • When a user asks about ifd workflow or planning iterations
  • When starting issue-first development from an issue tracker like JIRA or Linear
  • When drafting an implementation plan and identifying gaps
  • When preparing pre-implementation steps (pull latest main, clear context, create worktree/branch)
  • When ensuring quality gates and traceability before completion

Quick Start

  1. Step 1: Identify the issue and capture requirements from the ticket
  2. Step 2: Perform Three-Pass Planning and draft your implementation approach
  3. Step 3: Do pre-implementation setup (pull main, clear context, create worktree/branch) and start work; run code-review when ready

Best Practices

  • Always start from a tracked issue and capture clear requirements
  • Execute the Three-Pass Planning: Exploration, Refinement, Validation
  • Perform pre-implementation steps before coding: pull main, clear context, create a separate worktree and branch
  • Follow role-based task guidance for frontend or backend tasks and verify with appropriate tests
  • Run quality gates (code-review, typecheck, lint, build) and address acceptance criteria and migrations

Example Use Cases

  • Starting a feature from a JIRA ticket and mapping it to an iterative plan
  • Applying a three-pass planning cycle to refine a bug fix before coding
  • Creating a separate worktree and branch to isolate work from ongoing tasks
  • Using /superpowers:code-review to validate the plan before implementation
  • Verifying changes with tests, typechecks, lint, and build before marking completion

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers