Back to Commands

ship

Create a new pull request with AI-generated code changes. Describe what you want, and Smart Workflow will write the code and open a PR for review.

Syntax

@Smart Workflow ship <repo> <description>

Examples

Add a new feature
@Smart Workflow ship landing-page add a contact form with validation
Implement API functionality
@Smart Workflow ship api-service implement rate limiting for /api/users
Add UI component
@Smart Workflow ship frontend add dark mode toggle to settings page
Cross-organization repo
@Smart Workflow ship other-org/repo add input validation
With scope constraint
@Smart Workflow ship my-app add form validation --only "src/components/*"

How it works

1

Analyzes repo

Understands your codebase structure

2

Generates code

Writes changes based on description

3

Creates branch

Pushes to a new feature branch

4

Opens PR

Creates PR for team review

5

Suggests tests

Identifies relevant test commands

Key Features

Pattern matching

Follows existing patterns and conventions in your codebase.

Test awareness

Detects your test framework and suggests commands to run.

Smart scoping

Use --only and --exclude flags to limit changes to specific paths.

Example Output

Pull request created!

PR #42: Add contact form component

3 files changed, 127 insertions

Files modified:

  • + src/components/ContactForm.tsx
  • + src/components/ContactForm.test.tsx
  • ~ src/pages/index.tsx

Suggested test command:

bun test src/components/ContactForm.test.tsx

💡 Pro Tips

  • Be specific about what you want—include field names, validation rules, component names
  • Use preview first for complex changes to verify the approach
  • Use --model opus for architectural changes or complex refactoring
  • Follow up with fix to make iterations based on review feedback