LLMs · in Ship code with AI

Claude for Ship code with AI

Scope + plan + fix in the Ship code with AI stack. Use the chat surface for the parts that need human judgment: scoping, debating tradeoffs, turning a CodeRabbit comment into a sharp patch. Long context holds the whole plan + relevant files.

· 1 weeks ago
Where Claude fits in the workflow
  1. 1
    Scope the change with Claude

    Drop the ticket or 1-paragraph problem statement into Claude. Get back a plan: files to touch, edge cases, the smallest viable diff.

    Prompt · Scope a change from a ticket
    I need a plan, not code yet, for the following change.
    
    Ticket / problem statement:
    """
    {{paste ticket or 1-paragraph description}}
    """
    
    Repo context:
    - Language / framework: {{e.g. TypeScript + Next.js 16 App Router}}
    - Where the change probably lives: {{e.g. lib/auth, app/api/billing}}
    - Constraints I care about: {{e.g. no schema migration this week, must stay backwards compatible with v1 clients}}
    
    Output, in this order:
    1. **Restated problem** in 2 sentences (so I can confirm we're solving the right thing).
    2. **Files to touch** as a bulleted list with a 1-line "why" each.
    3. **Smallest viable diff** in 5 to 8 bullets describing the change.
    4. **Edge cases** the diff has to handle (3 to 5 specific ones).
    5. **What I should NOT change** to keep the PR small.
    
    If the request is ambiguous, ask 1 to 2 specific clarifying questions before the plan.
  2. 5
    Apply fixes with Claude

    For each non-trivial finding, paste the CodeRabbit comment plus the file region into Claude. Get the patch back, test it locally, push.

    Prompt · Turn a CodeRabbit finding into a patch
    You are fixing a code review finding.
    
    CodeRabbit comment:
    """
    {{paste the inline comment, including the line number and severity}}
    """
    
    The file the comment is on (full file or the relevant 80-line region):
    """
    {{paste file region}}
    """
    
    Repo context:
    - Language / framework: {{e.g. TypeScript + Next.js 16 App Router}}
    - Test framework: {{e.g. Vitest, Jest, none}}
    - Style conventions worth preserving: {{e.g. server components default, no class components}}
    
    Output, in this order:
    1. **Diagnosis** — one sentence. What is actually wrong, and why CodeRabbit flagged it.
    2. **Patch** — a unified diff against the file region above. Minimal change. No drive-by refactors.
    3. **Test** — if the change is non-trivial, the test that would have caught it (in the project's test framework). Skip if the project has no test setup.
    4. **Reply for the PR** — 1 to 2 sentences I can paste under the CodeRabbit comment to resolve it.
    
    Do not modify code outside the diff. Do not invent imports.
Cost in this stack
Free tier
Of the $0/mo solo oss maintainer budget
Tool pricing
$20/mo Pro · Sonnet API $3/$15 per M tokens (input/output)
Alternatives to Claude at this step
Other tools in the Ship code with AI stack
Other stacks using Claude
See the full Ship code with AI stack
Workflow, costs at three usage tiers, prompts, pitfalls.
Spotted something off?
Wrong price, dead link, stale tool — anything. We review every fix.
Suggest a fix to this tool