Ship pipeline

From tinh2/skills-hub-registry · View interactive version

Ship pipeline is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Full-stack app pipeline — build, test, review, and deploy across one or ALL repos. Scans CLAUDE.md, MEMORY.md, TODOs, open PRs, and issues for shippable work. Supports 'ship all' for multi-repo. Use when: 'build and ship', 'ship it', 'ship all', 'deploy everything', 'full pipeline', 'what needs ship

How to use this skill

Skill file

Ship Pipeline

Full-stack app development pipeline — frontend (Flutter/Next.js), backend (Node/Fastify/Cloud Functions),

database (Firestore/PostgreSQL/Supabase), infrastructure (CI/CD, deploy, monitoring).

Builds fast, then the safety net catches everything before production.

Run the entire pipeline autonomously.

INPUT

$ARGUMENTS — what to build or ship. Can be:

If no arguments provided, check for uncommitted changes and ship those.

============================================================

PHASE 0: CONTEXT & DISCOVERY

============================================================

0.1 Multi-Repo Detection

If the user said "ship all" or "all", or if the current directory contains multiple git repos:

  1. Scan for all git repos: find . -maxdepth 2 -name ".git" -type d
  2. For each repo, gather:
  1. Present the ship manifest:
SHIP MANIFEST
====================================
pet-sitter:       3 uncommitted files, 0 unpushed
recipe-ai:        clean, 2 unpushed commits
confidence-coach:  clean, clean
skills-hub:       1 uncommitted, 0 unpushed, CI failing
deal-worthy:      clean, clean
====================================
Repos to ship: 3 (pet-sitter, recipe-ai, skills-hub)
Repos clean: 2 (confidence-coach, deal-worthy)
  1. For each repo with something to ship, run Phases 0.2 through 4 sequentially.

Use subagents for repos that are independent (no shared state).

0.2 Project Discovery (per repo, 30 seconds max)

  1. Read CLAUDE.md for project conventions, stack, and architecture.
  2. Read MEMORY.md for debt items, open issues, or pending work from last /recall.
  3. Scan for shippable items:
  1. Identify the tech stack:
  1. Summarize in 3 bullets: what exists, what's shippable, what's the priority.

DO NOT spend more than 30 seconds per repo on this phase.

============================================================

PHASE 1: ARCH REVIEW (if new feature)

============================================================

Skip this phase if the user said "deploy" or "ship" (feature already exists).

Run a quick architectural review of the proposed changes:

  1. COMPONENT REUSE CHECK: Search for existing screens/widgets that do similar things.

If 50%+ overlap exists, extend the existing component — do NOT create a new one.

  1. SERVICE ARCHITECTURE CHECK: If adding new data operations, verify they go in the

right domain service (not a god-object service file).

  1. FIRESTORE/DB RULES CHECK (if Firebase): Design security rules upfront for any

new collections. Write rules in the SAME commit as the feature.

  1. FILE SIZE CHECK: No new file should exceed 300 lines on creation. Plan the

decomposition before writing.

Output: One paragraph summary of the plan. Then move immediately to Phase 2.

============================================================

PHASE 2: BUILD IT (60% of time budget)

============================================================

Build the feature with maximum velocity.

RULES:

FOR FLUTTER FRONTEND:

FOR BACKEND (Node/Fastify/Express/Cloud Functions):

FOR DATABASE (Firestore/PostgreSQL/Supabase):

FOR WEB FRONTEND (Next.js/React):

FOR CI/CD & INFRASTRUCTURE:

COMMIT AFTER EACH LOGICAL UNIT:

============================================================

PHASE 3: SAFETY NET — VERIFY EVERYTHING (30% of time budget)

============================================================

The build is done. Now make sure it doesn't blow up in production.

Run these checks IN ORDER. Fix issues as you find them — don't just report them.

3.1 Tests

flutter test          # or: npm test, pnpm test
flutter analyze       # or: tsc --noEmit
dart format --set-exit-if-changed .

If tests fail: fix the test or the code. Re-run until green.

If analyzer has issues: fix them. Zero issues required.

If formatting fails: run dart format . and commit.

3.2 Security Review (quick pass)

Check for:

3.3 Accessibility Check

3.4 Performance Check

3.5 Design Consistency

Fix EVERY issue found. Commit fixes separately: fix: resolve analyzer warnings

============================================================

PHASE 4: PREFLIGHT & SHIP (10% of time budget)

============================================================

4.1 Preflight

4.2 Push

4.3 Deploy (if deploy workflows exist)

4.4 If deploying to App Stores:

============================================================

OUTPUT

============================================================

After the pipeline completes, print:

## Ship Pipeline Complete

**Feature:** {what was built}
**Commits:** {N} commits
**Tests:** {pass count} passing, {fail count} failing
**Analyzer:** {issue count} issues (should be 0)

### What shipped
- {bullet summary of each commit}

### Safety checks
- Tests: PASS
- Security: PASS (or: {issues found and fixed})
- A11y: PASS (or: {issues found and fixed})
- Performance: PASS
- Design consistency: PASS

### Deploy
- CI: {status}
- TestFlight: {status or N/A}
- Play Store: {status or N/A}

### Time
- Build: {X} min
- Safety net: {X} min
- Deploy: {X} min

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

/ship-pipeline -- {{YYYY-MM-DD}}

Only log if the memory directory exists. Skip silently if not found.

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.