Skip to content
Back to skills

Startup

ASecurity

Orchestrate full Stage 0 project bootstrap — concept through first phase. Use when initializing a new Pipekit project. Use when adopting Pipekit into a brownfield repo. Auto-detects greenfield/brownfield/inherited mode.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 24, 2026
developmenttypescriptgoshellbashreactnextjsnodeexpresstestinggit

Works with

  • claude code
  • terminal
  • cli
  • api
  • mcp

Security analysis

A96/100
  • mediumUses curl or wget to download content

Pro shows the line behind each finding and how to fix it

Scanned November 24, 2026

npx -y skills add withpiper/pipekit --skill startup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Startup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Startup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/withpiper-startup/badge)](https://www.skillsdirectory.com/skills/withpiper-startup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: startup
description: Orchestrate full Stage 0 project bootstrap — concept through first phase. Use when initializing a new Pipekit project. Use when adopting Pipekit into a brownfield repo. Auto-detects greenfield/brownfield/inherited mode.
---

# Startup Skill

You are a project bootstrap orchestrator. Your job is to chain pre-pipeline skills with infrastructure setup, creating a complete project from idea to first phase ready for speccing.

## Triggers

- `/startup`
- `/startup --mode=greenfield` (explicit greenfield)
- `/startup --mode=brownfield` (existing codebase adopting Pipekit)
- `/startup --mode=inherited` (joining an existing Pipekit project — runs the Foundation Check only)
- "start the project setup"
- "bootstrap this project"

## Startup Tracker

The first thing `/startup` does is create (or read) a **`{folder-name}-startup.md`** file in the project root. This file persists across sessions — it's how `/startup` knows where you left off, what decisions were made, and what's still open.

**On first run:** Create the file using the template below. Derive `{folder-name}` from the project directory name (e.g., `~/Projects/the-vault/` → `the-vault-startup.md`).

**On subsequent runs:** Read the file first. Use it to restore context — current step, decisions made, blockers, project summary. Skip re-asking questions that are already answered in the tracker.

**After every step:** Update the tracker immediately — mark the step complete, record any decisions or notes, update the "Current step" field. Do not batch updates.

### Tracker Template

```markdown
# {Project Name} — Startup Tracker

**Started:** {date}
**Last updated:** {date}
**Current step:** {step number — name}

## Progress

| # | Step | Status | Completed |
|---|------|--------|-----------|
| 1 | Concept | ⬜ Not started | — |
| 2 | Define | ⬜ Not started | — |
| 3 | Tech Stack | ⬜ Not started | — |
| 4 | Infrastructure | ⬜ Not started | — |
| 5 | Strategy Docs | ⬜ Not started | — |
| 5.5 | Design Direction | ⬜ Not started | — |
| 6 | Method Sync | ⬜ Not started | — |
| 7 | Roadmap | ⬜ Not started | — |
| 8 | Project Skills | ⬜ Not started | — |
| 9 | CLAUDE.md & Rules | ⬜ Not started | — |
| 10 | Validate | ⬜ Not started | — |
| 11 | Phase Plan | ⬜ Not started | — |

## Project Summary

{Filled in after Step 1 — brief description of the project}

## Decisions

### Tech Stack (Step 3)
| Decision | Choice |
|----------|--------|
| Framework | |
| Language | |
| Database | |
| Auth | |
| Deployment | |
| CSS/UI | |
| Testing | |
| Git model | |

### Linear (Step 4)
| Key | Value |
|-----|-------|
| Workspace | |
| Team | |
| States configured | No |
| State IDs populated | No |

### Infrastructure (Step 4)
| Key | Value |
|-----|-------|
| Repo | |
| Database | |
| Deployment | |

## Step Notes

{After each step, record what happened — context, decisions, anything
the next session needs to know. This is the "memory" that makes
/startup resumable across sessions.}

## Blockers & Open Questions

{Anything unresolved that needs attention before proceeding.}
```

### Status Values

Use these in the Progress table:
- `⬜ Not started` — hasn't begun
- `🔄 In progress` — started but not complete (session ended mid-step)
- `⏭️ Skipped` — output already existed, user chose to skip
- `✅ Done` — complete, with date

---

## Foundation Check (Inherited-Mode Subroutine)

This subroutine is called by `--mode=inherited` (see [Mode Routing](#mode-routing) below) and can be invoked standalone whenever you want to confirm a project's foundation contract is intact. It does **not** create or modify artifacts — it inspects state and reports.

### What it checks

For each artifact in the foundation contract (see `method.md` § Foundation Contract), verify presence on disk. The check is presence-only — `[TBD]` content is fine; missing files are not.

| Artifact | Path | If missing — retrofit suggestion |
|---|---|---|
| Concept brief | `concept-brief.md` | Run `/concept` to retrofit (or document the existing project's concept manually) |
| Project definition | `project-definition.md` | Run `/define` to retrofit |
| Strategy docs | `Strategy/*.md` (matching `method.config.md` manifest) | Run `/strategy-create` to retrofit, or wait for `/strategy-from-code` in v1.4.0 |
| Project config | `method.config.md` | Run `/startup --mode=brownfield` (it populates config from existing project state) |
| Initiative hierarchy | Linear `i{N}.` initiatives with `I{N}.P{N}.` projects | Run `/roadmap-create` (authors the `i{N}.`/`I{N}.P{N}.` hierarchy directly in Linear) |
| Phase plan | Current phase derivable live from Linear (`pk next` / `pk status`) | Run `/phase-plan` |

For the Strategy docs check, read `method.config.md` § Strategy Docs to get the manifest, then verify each listed file exists. If `method.config.md` itself is missing, treat the manifest check as deferred — flag the config gap as the blocker.

### Output

**If everything exists:**

```
Foundation OK.

  Current initiative: {initiative name derived live from Linear}
  Issues in flight: {N in the current initiative's projects}

➜ Next: pk next  (initiative-aware: groups Linear by status with per-group hints)
   or:   /light-spec PROJ-XXX  (begin speccing an issue from the current initiative)
```

Derive the current initiative live from Linear (`i{N}.` initiative → `P{N}.` project, ordered by the integer in each name prefix) — e.g. via `pk next` — to extract the current initiative name and issue list. If multiple issues are in flight (status In Progress / Building), recommend `pk status` instead so the user sees the full board.

**If anything is missing:**

```
Foundation incomplete — {N} artifact(s) missing:

  ✗ {path} — {retrofit suggestion}
  ✗ {path} — {retrofit suggestion}

Resolve the missing artifacts before entering the dev pipeline.
Run /pipekit-help for a state-aware next-step recommendation.
```

List every missing artifact with its retrofit suggestion. Do **not** auto-run any retrofit skill — present options and let the user choose.

### Emit inline `➜ Next:`

Whether the check passes or fails, emit an inline `➜ Next:` line in your terminal output with the recommended next command and a one-line reason. Do **not** write a `NEXT.md` file — v2 retired the mirror; `pk next` reads "what's next?" live from Linear once the foundation contract is satisfied.

---

## Mode Routing

`/startup` accepts a `--mode={greenfield,brownfield,inherited}` flag. If absent, auto-detect by inspecting project state, then **always confirm with the user** before proceeding (same pattern as tier resolution in `/work` — never auto-pick).

### Auto-detection rules

Evaluate top-down; first match wins:

| Detected state | Mode |
|---|---|
| All foundation-contract artifacts present (see Foundation Check above) | **inherited** |
| Source tree present (`package.json` or `src/` with files) AND no `Strategy/` directory | **brownfield** |
| No `concept-brief.md` AND no source tree | **greenfield** |
| Mixed / ambiguous state (some artifacts present, some not) | **fallback to greenfield** with explicit warning that the detection was ambiguous |

### Confirmation prompt

Mirror the wording from `skills/work/SKILL.md` Step 1.5:

```
Auto-detected entry mode: {mode}
  ({short reason — e.g., "no concept-brief, no source tree → fresh project"})

Proceed with {mode}?  (y / change-to {alt} / abort)
```

`{alt}` is the most plausible alternative based on detection (e.g., a brownfield detection's `{alt}` is `inherited`; a greenfield detection's `{alt}` is `brownfield`). If the user picks `change-to <other>`, accept it without re-validating — they know their project better than the heuristic does.

When `--mode=` is passed explicitly, skip auto-detection entirely. Do **not** confirm — the explicit flag is the confirmation.

### Mode behavior

| Mode | What runs |
|---|---|
| **greenfield** | The full step flow in [Execution](#execution) below. No behavioral change from prior versions. |
| **brownfield** | Skip Step 1 (Concept) and Step 2 (Define). Prompt for project metadata (name, one-liner, audience) and write a minimal `project-definition.md` from the answers — enough for `/strategy-create` to consume. Route to Step 5 (Strategy Docs) via `/strategy-create` with this banner: _"The generated strategy docs reflect the project definition you just provided, not the existing code. You'll likely want to edit them against reality before the first `/light-spec`. Auto-audit via `/strategy-from-code` is planned for v1.4.0."_ Then continue with Step 7 (Roadmap) → Step 8 → 9 → 10 → 11 (Phase Plan). Skip Steps 3, 4 (Tech Stack, Infrastructure) since the codebase already has these — instead, populate the relevant `method.config.md` sections (Stack, Environments, Pre-Deploy Gate) by inspecting the existing project (`package.json`, deployment config, CI files). |
| **inherited** | Run the [Foundation Check](#foundation-check-inherited-mode-subroutine) subroutine above. Do not run any of the 11 steps. Exit with the next-step recommendation from the check's output. |

### Tracker handling

The startup tracker (`{folder-name}-startup.md`) records the mode under a new line in the header:

```
**Mode:** greenfield | brownfield | inherited
```

For **inherited** mode, the tracker is read-only — the foundation check produces a report but does not modify tracker state, and `/startup --mode=inherited` does not create a tracker file if one doesn't exist. For **brownfield**, create the tracker as usual but mark skipped Stage 0 steps as `⏭️ Skipped (brownfield)` in the Progress table.

---

## Execution

The steps below describe the **greenfield** flow in full. Brownfield skips Steps 1-2 (and Steps 3-4, since the codebase already exists) and adapts the others as noted in [Mode Routing](#mode-routing) above. Inherited mode does not execute these steps — it runs the Foundation Check and exits.

Stage 0 chain (greenfield): `/concept → /define → /strategy-create → /startup → /roadmap-create → /phase-plan`. The Linear `i{N}.`/`P{N}.` hierarchy that `/roadmap-create` authors is the initiative surface; there is no scaffold step.

Each step checks if its output already exists and offers to skip — making `/startup` resumable. If you stop after Step 4, re-running picks up at Step 5.

**Before any step:** Read `{folder-name}-startup.md` to restore context.
**After every step:** Update `{folder-name}-startup.md` with status, decisions, and notes.

### Step 1 — Concept

**Check:** Does `concept-brief.md` exist?
- If yes: _"Concept brief exists. Review it, skip, or redo?"_
- If no: Run `/concept` (or `/concept --docs <path>` if the user has existing documents)

**Output:** `concept-brief.md` — validated project concept

### Step 2 — Define

**Check:** Does `project-definition.md` exist?
- If yes: _"Project definition exists. Review it, skip, or redo?"_
- If no: Run `/define`

**After this step, populate the Project section of `method.config.md`:**

```
| **Project name** | `{folder-name}` |
| **Project display name** | `{from project definition}` |
| **Worktree prefix** | `~/Projects/{folder-name}-` |
| **Session logs path** | `Logs/Sessions/` |
| **Strategy docs path** | `Strategy/` |
```

These values are now known from the concept brief and project definition. Write them immediately.

**Output:** `project-definition.md` — phases, roles, workflows, success criteria

### Step 3 — Tech Stack

**Check:** Does `CLAUDE.md` have a Stack section? Does the project have a `package.json` or equivalent?
- If yes: _"Tech stack appears configured. Skip or review?"_
- If no: Present the decision matrix interactively

Walk through tech stack decisions from `STARTUP.md` Step 2:
- Framework, language, database, auth, deployment, CSS/UI, testing
- Make recommendations based on project definition (from Step 2)
- **Do not decide for the user** — present options with trade-offs, wait for their call
- Record decisions for CLAUDE.md and `method.config.md`

**Git architecture decision** — present the branching model options:

| Model | When to Use |
|-------|-------------|
| **Two-tier** (`dev` → `main`) | Solo dev, small teams, preview URLs suffice for UAT |
| **Three-tier** (`dev` → `beta` → `main`) | Teams with QA, need stable UAT environment, regulated industries |

**Update `method.config.md` immediately:**
- Set `## Git Architecture` → **Model** to `two-tier` or `three-tier`
- Fill in the Environments table with the branches (URLs come in Step 4)

This decision determines:
- Which environments to configure in Step 4
- Which `Ship environments` value to set in `method.config.md` (`dev,main` for two-tier; `dev,beta,main` for three-tier — `pk promote` walks the chain)
- How Linear status transitions work on merge (see `sop/Git_and_Deployment.md`)

**Output:** Tech stack + git architecture decisions recorded in `method.config.md`

### Step 4 — Infrastructure Setup

Walk through setup checklist from `STARTUP.md` Step 3, in order. Skip steps already done.

1. **Repository** — create GitHub repo, initialize framework in `src/`, TypeScript strict, .gitignore, .env.example
2. **Monorepo** (if applicable) — Turborepo, workspaces, shared config
3. **Database** — create project(s), initial schema, auth setup
4. **Deployment** — link to Vercel/equivalent, env vars, custom domains, preview deploys. Update the Environments table in `method.config.md` with URLs once deployed.
5. **Tooling** — ESLint, Vitest, Playwright, pre-deploy gate. Update the `## Pre-Deploy Gate` section of `method.config.md` with the actual commands for this project's stack.
6. **MCP Servers** — configure `.mcp.json` (GitHub, DB, browser, etc.; a Linear MCP server only if the project sets `Linear transport: mcp` — the default route is `pk`'s API path, verified in 4a)

**Tool and integration wiring:**

For **every service chosen in the tech stack** (database, deployment, auth, etc.), don't just set up the service — wire up the full development toolchain around it. For each service:

1. **Look up current setup instructions.** Use Context7 (`/mcp__Context7__resolve-library-id` → `/mcp__Context7__get-library-docs`) to check for the service's CLI, SDK, and MCP server documentation. If Context7 doesn't have it, check the service's official documentation via web search/fetch.

2. **Install the CLI** if one exists. Examples:
   - Supabase → `npx supabase init`, `supabase login`, `supabase link`
   - Vercel → `npx vercel link`
   - Stripe → `stripe login`
   - Prisma → `npx prisma init`

3. **Connect an MCP server** if one exists. Check:
   - The official MCP registry (`mcp__mcp-registry__search_mcp_registry` if available)
   - The service's own docs (many now ship MCP servers — Supabase, GitHub, Stripe, etc.)
   - For each MCP server found, install it:
     ```
     claude mcp add --transport {type} --scope {user|project} {server-name} {url-or-command}
     ```
   - Use `--scope user` for services shared across projects (GitHub, Supabase account-level)
   - Use `--scope project` for project-specific connections (project-specific DB, etc.)
   - Verify the connection works by calling a basic tool from the server

4. **Install SDK packages** the project will need:
   - Database client libraries (`@supabase/supabase-js`, `@prisma/client`, etc.)
   - Auth libraries (`@supabase/auth-helpers-nextjs`, `next-auth`, etc.)
   - Deployment SDKs if needed

5. **Configure environment variables:**
   - Add required env vars to `.env` (with actual values)
   - Add placeholder versions to `.env.example` (no secrets)
   - Document them in CLAUDE.md

6. **Verify the connection works** — run a basic test (fetch a table list, ping the API, etc.)

Record everything in the startup tracker under Step Notes — which CLIs were installed, which MCP servers were connected, which packages were added. This is the context a future session needs to understand the tooling landscape.

**Linear workspace setup:**

This is the most important infrastructure step — every downstream skill depends on Linear being correctly configured. Walk through it carefully.

**4a. Verify the Linear route**

Every Pipekit skill reaches Linear through the route `method.config.md` names — `Linear transport`, `api` by default (verb table: `sop/Linear_SOP.md § Linear transport`; the `mcp` route's equivalent of each operation is listed there). Verify it before anything else in this step.

On `api` (the default): run `pk doctor` — it must show `Linear API key set` and `Linear API reachable (viewer: …)` — then one real read, `pk issue search "<any word>" --limit 1` (or `pk project list`). If `pk doctor` reports the key missing, follow the recipe `pk` prints: on a 1Password-backed project `op run --env-file=<op:// reference file> -- pk …`, where `pk` fills in the file it finds (`secrets.op` or `op-references.conf`), or `direnv allow` so the shell loads it, otherwise `export <Linear API key env var>=lin_api_…`. Falling back to an MCP is not the fix.

If `pk config "Linear transport" api` is `mcp`: the project registers its Linear MCP server as `linear-server` in the committed `.mcp.json` (so it is visible inside `pk branch` worktrees — `pipekit-tooling.md § MCP Server Configuration`); verify by calling any list tool on it. If it fails:
- _"Linear MCP isn't connected. Register it and restart Claude Code:"_
  ```
  claude mcp add --transport {type} --scope project linear-server {url-or-command}
  ```
  (`--scope project` writes the committed `.mcp.json`; the server is the one the verb table's `mcp` column names — not the first-party `mcp.linear.app` remote, whose snake_case, leaner surface needs remapping per `sop/Linear_SOP.md § Linear transport`.)
- Then run `/mcp` in Claude Code to complete authorization.

**4b. Workspace and Team**

Ask: _"Do you already have a Linear workspace, or should we start fresh?"_

- **Existing workspace:** Ask for the workspace slug and team name. Verify by fetching issues.
- **New workspace:** Direct the user to [linear.app](https://linear.app/) to create one (free tier is fine). Then:
  - Ask them to create a team (e.g., the project name). Linear creates one by default during onboarding.
  - Record the workspace slug, team name, and team ID.

Fetch team details (`pk gql '{ teams { nodes { id name key } } }'` — `key` is the issue prefix) and populate `method.config.md`:
```
| **Workspace slug** | `{slug}` |
| **Team name** | `{team}` |
| **Team ID** | `{uuid}` |
| **Issue prefix** | `{PREFIX}` |
| **Linear API key env var** | `LINEAR_API_KEY` (or the project's name for it) |
| **Linear transport** | `api` (default) — `mcp` only if the project runs a Linear MCP server (4a) |
```

**4c. Workflow States**

Pipekit requires 12 workflow states plus Triage enabled. Linear workspaces start with defaults (Backlog, Todo, In Progress, Done, Canceled) that need to be replaced.

**Important:** Triage is NOT a workflow state — it's a setting. It must be enabled separately in Linear's team settings. The 12 workflow states below are what you create/configure in the Workflow section.

Colors are yours to choose. Pipekit defines the required state names and types — pick whatever colors work for your team.

Present the target configuration:

```
Pipekit requires Triage enabled + these 12 workflow states:

  ENABLE TRIAGE (Settings → Team → General):
    • Turn on "Triage" — this adds a Triage inbox, not a workflow state

  Backlog states:
    • Ideas                     (type: backlog)
    • Future Phases             (type: backlog)
    • On Deck                   (type: backlog)
    • Needs Spec                (type: backlog)

  Unstarted states:
    • Specced                   (type: unstarted)
    • Approved                  (type: unstarted)

  Started states:
    • In Progress               (type: started)
    • Building                  (type: started)
    • UAT                       (type: started)   ← PR open on preview branch
    • In <FirstEnv>             (type: started)   ← merged to first env (e.g. "In Dev")
    • In <Env>                  (type: started)   ← one per non-final env (e.g. "In Beta")

  Completed states:
    • Done                      (type: completed) ← merged to final env

  Canceled states:
    • Canceled                  (type: canceled)
    • Duplicate                 (type: canceled)
```

**Attempt to configure via the Linear route first.** Try creating the states programmatically — one guarded `pk gql` mutation per state (`color` is required by the schema; any value works):

```bash
pk gql 'mutation($in: WorkflowStateCreateInput!) { workflowStateCreate(input: $in) { success workflowState { id name type } } }' \
       '{"in":{"teamId":"<TEAM>","name":"Needs Spec","type":"backlog","color":"#95a2b3"}}'
```

If the API accepts them, automate the full setup (Triage is a team setting, not a state — it stays manual). If it refuses — permissions, plan tier, or a default state that can't be removed while it holds issues — give the user step-by-step manual instructions:

_"Linear's workflow states need to be configured in the UI. Here's exactly what to do:"_

```
1. Enable Triage:
   Open Linear → Settings → Team Settings → {Team} → General
   Turn on "Triage" (this adds a Triage inbox for incoming issues)

2. Configure Issue Statuses:
   Open Linear → Settings → Team Settings → {Team} → Workflow → Issue Statuses

3. Remove default states that Pipekit doesn't use:
   - Remove "Backlog" (Pipekit uses Ideas/Future Phases/On Deck/Needs Spec instead)
   - Remove "Todo" (Pipekit uses Specced/Approved instead)
   - You can't delete states with issues — move any existing issues first

4. Create these states (in order, with these types):
   Choose whatever colors you like for each.

   BACKLOG section:
     + Ideas
     + Future Phases
     + On Deck
     + Needs Spec

   UNSTARTED section:
     + Specced
     + Approved

   STARTED section:
     + In Progress (usually exists by default)
     + Building
     + UAT                                    (PR open on preview)
     + In <FirstEnv>  (e.g. "In Dev")         (merged to first env in Ship environments)
     + In <Env>       (e.g. "In Beta")        (one per non-final env, position-ordered)

   COMPLETED section:
     ✓ Done (usually exists by default)       (merged to final env)

   CANCELED section:
     ✓ Canceled (usually exists by default)
     + Duplicate

5. Drag to reorder so they appear in the order listed above.
```

Ask the user to confirm when done: _"Let me know when the workflow states are configured and I'll fetch the IDs."_

**4d. Fetch State IDs**

After states are configured, fetch all workflow state IDs — `pk gql '{ team(id:"<TEAM>") { states { nodes { id name type } } } }'` (team id from `pk config "Team ID"`) — or guide the user to get them from Settings → Workflow (each state has a UUID visible in the URL when clicked).

Populate the Workflow State IDs table in `method.config.md`:

```
| State | ID |
|-------|-----|
| Triage | `{uuid}` |
| Ideas | `{uuid}` |
| Future Phases | `{uuid}` |
| On Deck | `{uuid}` |
| Needs Spec | `{uuid}` |
| Specced | `{uuid}` |
| Approved | `{uuid}` |
| Building | `{uuid}` |
| In Progress | `{uuid}` |
| UAT | `{uuid}` |
| In `<FirstEnv>` (e.g. In Dev) | `{uuid}` |
| In `<Env>` (e.g. In Beta) — one per non-final env | `{uuid}` |
| Done | `{uuid}` |
| Canceled | `{uuid}` |
| Duplicate | `{uuid}` |
```

**Do not proceed past this step with empty state IDs.** Every downstream skill depends on these values.

**4e. Standard Labels**

Create the standard label taxonomy — one guarded `pk gql` mutation per label (`parentId` only when the label sits in a group: create the group first with the same mutation and reuse its `id`):

```bash
pk gql 'mutation($in: IssueLabelCreateInput!) { issueLabelCreate(input: $in) { success issueLabel { id name } } }' \
       '{"in":{"teamId":"<TEAM>","name":"Feature","parentId":"<GROUP-ID>","color":"#4ea7fc"}}'
```

If the API refuses label creation, instruct manually:

```
Create these labels in Linear (Settings → Labels):

Type labels:
  Feature, Improvement, Bug, Research, Tech Debt, Chore

Flag labels:
  Quick Win, Blocked, Hotfix, Breaking Change

Audience labels:
  Client Request
```

Domain and Tier labels are project-specific — these get created during `/roadmap-create` based on the project's feature clusters and stages.

**4f. Verify Linear Setup**

Run a quick verification:
1. Fetch issues for the team (`pk issue search "<any word>" --limit 1`, or `pk project list`) — confirms the Linear route and team ID
2. Count workflow states (the 4d `pk gql` states query) — should be exactly 13
3. List labels (`pk gql '{ team(id:"<TEAM>") { labels { nodes { id name parent { name } } } } }'`) — should include all Type and Flag labels
4. Confirm `method.config.md` has no empty state IDs

If anything is missing, loop back to the specific sub-step that produces it: missing state IDs → 4d, missing labels → 4e, Linear route failing (`pk doctor` red) → 4a, missing team info → 4b, incorrect workflow states → 4c.

**Output:** Working infrastructure — repo builds, deploys, pre-deploy gate passes, Linear workspace fully configured

### Step 5 — Strategy Docs

**Check:** Does `Strategy/` directory exist with docs?
- If yes: _"Strategy docs exist. Skip or review?"_
- If no: Run `/strategy-create`

**Output:** `Strategy/` directory with docs, `method.config.md` updated with doc manifest

### Step 5.5 — Design Direction

**Check:** Does `Strategy/DesignDirection.md` exist?
- If yes: _"Design direction exists. Skip or review?"_
- If no and project has a UI: walk through design preferences interactively

If the project has a user interface (web, mobile, desktop), capture design intent now — before any features are built. This ensures consistent aesthetics from the first UI work.

Walk through the template at `templates/strategy/design-direction.md`:

1. **Aesthetic direction** — ask: _"What feeling should this product convey? (e.g., clean and professional, playful and bold, minimal and refined)"_
2. **Inspiration** — ask: _"Any sites, apps, or screenshots that capture the look you want? Even rough direction helps."_
3. **Typography** — ask: _"Any font preferences? Or adjectives — geometric, rounded, editorial?"_
4. **Color & theme** — ask: _"Any colors in mind? Light or dark theme? Both?"_
5. **Motion** — ask: _"How much animation? Subtle transitions, or more expressive?"_
6. **Anti-patterns** — ask: _"Anything you specifically don't want? Generic dashboards, specific styles to avoid?"_
7. **Explicit counter to AI defaults** — ask directly: _"Current Claude models default to a warm cream/serif/terracotta aesthetic with Space Grotesk typography. If that's not what you want (for dashboards, dev tools, fintech, healthcare, enterprise), we need to specify a concrete alternative — generic 'not that' instructions just produce a different fixed palette. Is your aesthetic warm/editorial, or do you need cool/technical/monochrome/other?"_ Record the answer in the Anti-Patterns section explicitly.

Write `Strategy/DesignDirection.md` with their answers. This doc is read by development agents and the `/frontend-design` skill during execution.

**If the project has no UI** (CLI tool, API-only, library): skip this step.

**Output:** `Strategy/DesignDirection.md` — design intent captured for build agents

### Step 6 — Method Sync

**Check:** Does `pipekit/` directory exist? Are skills in `.claude/skills/`?
- If yes: _"Method already synced. Re-sync or skip?"_
- If no: Copy and run sync script

```bash
# Fetch sync script if it doesn't exist
if [ ! -f scripts/sync-method.sh ]; then
  mkdir -p scripts
  curl -fsSL https://raw.githubusercontent.com/withpiper/pipekit/main/scripts/sync-method.sh -o scripts/sync-method.sh
  chmod +x scripts/sync-method.sh
fi
./scripts/sync-method.sh
```

Fill in `method.config.md` with any remaining project-specific values.

**Output:** Method synced, config complete

### Step 7 — Roadmap

**Check:** Does the Linear board already have an `i{N}.`/`P{N}.` initiative hierarchy?

Two possible states:
1. **No initiative hierarchy yet** (most common — fresh project) → Run `/roadmap-create`. It authors the Linear `i{N}.` initiative / `I{N}.P{N}.` project hierarchy directly from the strategy docs and seeds the issues underneath. This is the expected flow for new projects.
2. **Already populated by `/roadmap-create`** (re-running `/startup`) → Ask: _"Roadmap appears fully populated. Skip, or redo?"_

To tell empty vs. populated: check whether the Linear board has any `i{N}.` initiatives with `P{N}.` projects and Linear-traced issues underneath. An optional narrative `ROADMAP.md` may exist, but the Linear hierarchy is the authoritative initiative surface.

The Pipekit flow is:

```
/roadmap-create (authors the Linear i{N}./P{N}. hierarchy + seeds issues) → /phase-plan → /light-spec → pk branch → /work (native-on-Workflow)
```

**Output:** Linear board seeded with the `i{N}.` initiative / `P{N}.` project hierarchy and the issues underneath. The initiative order lives in Linear (the integer prefix in each `i{N}.`/`P{N}.` name) — `pk next` / `pk status` derive the current initiative live from it.

### Step 8 — Project-Specific Skills

Based on the tech stack chosen in Step 3, identify which project-specific skills are needed (see `STARTUP.md` Step 4 for the mapping).

| If you use... | You need... |
|---------------|-------------|
| Vercel | `g-test-vercel` |
| Supabase/Postgres | `migrate` |
| Any DB | `reset-user` or equivalent |
| Monorepo with shared UI | `component` |
| Multiple environments | `g-promote-dev`, `g-promote-beta`, `g-promote-main` |

Create each skill with the user's input. Test after creation.

**Output:** Project-specific skills created and working

### Step 9 — CLAUDE.md & Rules

#### Step 9a — Scaffold from templates

`sync-method.sh` should have already copied Pipekit's canonical rule templates into `.claude/rules/`. Canonical files use a `pipekit-` prefix so they never collide with project-specific rule filenames:

- `pipekit-discipline.md` — Red Flags, Ad-hoc Plan Gate, scope hygiene (portable AI-coding discipline)
- `pipekit-tooling.md` — Verify Library API, package manager pinning, pre-deploy gate (portable tooling discipline)
- `pipekit-security.md` — secrets, boundary validation, OWASP Top 10 baseline (portable security discipline)
- `README.md` — what the session must know about the directory (canonical files are sync-owned; full guide in `pipekit/sop/Rules_SOP.md`)

Verify these exist. If missing, re-run `bash scripts/sync-method.sh` or copy from `templates/rules/` manually.

If `CLAUDE.md` does not exist at the project root, copy it from `templates/CLAUDE.md.template` and fill in placeholders with values from `method.config.md`:

```bash
cp pipekit/templates/CLAUDE.md.template CLAUDE.md
```

Then fill in:

- `{PROJECT_DISPLAY_NAME}`, `{ONE_LINE_TAGLINE}`, description — from `concept-brief.md` and `project-definition.md`
- **Stack** — from Step 3 tracker entries
- **Repo Structure** — from actual repo tree (run `tree -L 2` for reference)
- **Environments & Branch Strategy** — from `method.config.md` → `## Git Architecture`
- **Working Style** step 3 — project-specific reference reading (e.g., "Read POC in `src_poc/`") or delete the bullet if not applicable
- **Decision-Making Protocol** — start with the two baseline rules; add project-specific rules here as feedback patterns emerge
- **Routing Pointers table** — keep the three canonical rules rows; add rows for project-specific rules as they're created in Step 9b

#### Step 9b — Project-specific rules

Based on the stack and domain, create project-specific `.claude/rules/*.md` files as needed. These sit alongside the canonical files and cover what the portable rules cannot:

| Topic | File | Triggered by |
|-------|------|--------------|
| Naming conventions | `naming.md` | Any project with file-naming conventions (kebab-case, camelCase decisions) |
| Data layer patterns | `patterns.md` | React Query / SWR / tRPC / ORM conventions |
| File structure | `file-structure.md` | Monorepos or non-trivial directory layouts |
| DB migration patterns | `patterns.md` or `migrations.md` | Projects using migrations |
| Hooks & realtime | `hooks-realtime.md` | WebSocket / Supabase Realtime / SSE |
| Library pitfalls | `{library}-pitfalls.md` | Counter-intuitive APIs that bit you in production |

Keep each file under ~100 lines. Add a row to CLAUDE.md's Routing Pointers table for every new rule file so it's discoverable.

**Do not duplicate what's in the canonical files.** If the canonical `security.md` already covers RLS baseline, extend it with project-specific RLS patterns in a dedicated `security-rls.md` or append to the canonical (the sync script won't clobber additions; it only overwrites lines it knows about — verify this behavior per your sync tooling).

#### Step 9c — Final review

Read `method.config.md` back to the user, confirm all fields populated, flag TBD values.

**Output:** CLAUDE.md filled in from template; `.claude/rules/` contains the three canonical files plus any project-specific additions; Routing Pointers table reflects all rules.

### Step 10 — Validate

Before selecting an execution phase, validate the full setup. Catching gaps here prevents starting execution on a broken foundation.

Run `/roadmap-review` to validate:
- Concept brief exists
- Project definition exists
- Strategy docs match config
- Linear `i{N}.`/`P{N}.` initiative hierarchy populated
- Linear board seeded (initiatives, projects, milestones, issues)
- Dependencies correctly set
- All method.config.md fields populated (no TBDs)
- Linear route verified (`pk doctor`) and workflow states configured

If any check fails, diagnose and fix before proceeding to Step 11. Do not move issues into "Needs Spec" (Step 11's job) until validation passes.

**Output:** All validation checks pass — pipeline is ready for execution

### Step 11 — Phase Plan

**Check:** Is a current initiative already derivable live from Linear (`pk next` / `pk status` resolve an initiative)?
- If yes: _"Phase already planned. Skip or replan?"_
- If no: Run `/phase-plan`

`/phase-plan` selects 3-8 issues for the first execution initiative and promotes them from "On Deck" → "Needs Spec" in Linear. It derives/advances phase state via Linear (`i{N}.` initiative → `P{N}.` project). This is the point where execution begins — the first issues become actionable.

**Output:** First phase defined, issues in "Needs Spec", ready for `/light-spec`

```
## Setup Complete

All steps passed. Your project is ready for the development pipeline.

Next steps:
  - /light-spec {PREFIX}-1 — start speccing the first issue
  - /phase-plan --status — check phase progress
  - /roadmap-review — full health check anytime
```

## Rules

- **Tracker first.** Create or read `{folder-name}-startup.md` before doing anything else. Update it after every step. This file IS the state of the startup process.
- **Documents, not terminal walls.** When a step produces a document (concept brief, project definition, strategy docs, etc.):
  1. **Write the file to disk first.** Don't dump the full content in the terminal.
  2. **Tell the user where it is:** _"Written to `concept-brief.md` — open it in your editor and review. Let me know what to change, or say 'approved' to continue."_
  3. **Give a brief summary** in the terminal (3-5 bullet points of what the document covers — enough to orient, not enough to substitute for reading it).
  4. **Wait for feedback.** The user may edit the file directly, give verbal instructions, or approve as-is.
  5. **If the user requests changes:** read the file, apply the edits, write it back, and point them to it again.
  This applies to every document-producing step. The terminal is for conversation and status updates. Documents live in files.
- **One step at a time.** Don't rush ahead. Confirm the user is ready before moving to the next step.
- **Show progress.** At each step transition, show what's been completed and what's next.
- **Decisions are the user's.** Present analysis, make recommendations, but never lock in a choice without explicit approval.
- **Skip what's done.** If a step's output already exists, acknowledge and offer to skip. Mark it `⏭️ Skipped` in the tracker.
- **Save as you go.** Update CLAUDE.md, method.config.md, Strategy docs, AND the tracker as decisions are made — don't batch to the end.
- **Spawn subagents for bounded exploration, not orchestration.** The `/startup` flow itself is orchestration — it stays in the main session and manages state via the tracker file. But when a sub-step needs to ingest many documents (e.g., Step 1 with `/concept --docs`), do spawn an Explore subagent rather than reading files inline. Rule of thumb: will I need these tool outputs again, or just the conclusion? If just the conclusion, subagent. If the outputs inform the next orchestration step (tracker updates, decisions to confirm), stay in the main session.
- **Clean up after decisions.** When the user chooses between alternatives (two-tier vs. three-tier, framework A vs. B, etc.), **remove or collapse the unchosen option** from the document. The chosen path should be clean and unambiguous. Specifically:
  1. Keep the chosen option's full detail in place.
  2. Remove the unchosen option's configuration blocks (environment tables, promotion skills, workflow details, etc.) so they don't look active.
  3. If the unchosen option has reference value, move it to a collapsed section at the bottom: `<!-- Not chosen: three-tier --> ... <!-- /Not chosen -->` — but only if it adds value. When in doubt, remove it entirely.
  This applies to `method.config.md`, `CLAUDE.md`, strategy docs, and any file where alternatives were presented. A document should never look like two conflicting decisions are both active.
- **App code lives in `src/`.** All application code (framework, components, API routes, etc.) goes in a `src/` subdirectory. The project root is reserved for Pipekit files (`method.config.md`, `concept-brief.md`, `project-definition.md`, `Strategy/`, `.pk-work/`, `pipekit/`, `.claude/`), config files (`.gitignore`, `.env`, `package.json`, `tsconfig.json`), and scripts. This keeps Pipekit's methodology layer cleanly separated from the application. When initializing a framework (Next.js, Remix, etc.), configure it to use `src/` as the source directory.
- **Resumable.** The tracker + artifact checks make `/startup` fully resumable across sessions. A new session reads the tracker and picks up exactly where the last one stopped.
- **Emit inline `➜ Next:` after every step.** When completing any step (including mid-`/startup` step transitions), emit an inline `➜ Next:` line in your terminal output with the next command the user should run and why. Do **not** write a `NEXT.md` file — v2 retired the mirror; `pk next` reads "what's next?" live from Linear once the foundation contract is satisfied.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.