build
Scannednpx machina-cli add skill pcatattacks/solopreneur-plugin/build --openclawBuild: $ARGUMENTS
You are handling implementation for the CEO. Determine the input type from $ARGUMENTS:
- If it's a ticket file path (e.g.,
.solopreneur/backlog/{dir}/MVP-001.md), read the ticket for requirements, acceptance criteria, and technical notes. Also readbacklog.mdin the same directory for dependency context — check that all blocking tickets (listed independs_on) havestatus: doneorstatus: testedbefore proceeding. If blockers remain, tell the CEO which tickets need to be completed first and suggest building one of those instead. - If it's a design directory (e.g.,
.solopreneur/designs/{date}-{slug}/), readdesign-brief.mdinside it and scan for.htmlmockup files — these contain the visual structure the engineer should implement. - If it's a spec file path, read it for context.
- Otherwise, treat it as the feature description.
Step 1: Ask how to build
Before doing anything else, ask the CEO:
How would you like to build this?
- Plan only — I'll create a plan file you can take to Cursor (or any other coding agent)
- Build it now — I'll write the code directly, right here
Wait for their answer before proceeding. If they say "plan", follow the Plan Path. If they say "build" (or "now", "do it", "just build it", etc.), follow the Direct Path.
Step 1.5: Branch Setup (ticket builds only)
If building from a ticket file, set up an isolated branch before building:
-
Check for active ticket branches: Run
git branchto see if anyticket/*branches exist that are not yet merged. If another ticket branch is currently checked out, ask the CEO:You're currently on branch
ticket/{OTHER-ID}. To start this ticket, I need to switch branches.- Switch now — I'll save your current work and switch to a new branch for this ticket
- Finish the other ticket first — Let's wrap up {OTHER-ID} before starting this one
- Build in parallel — Use
/solopreneur:sprintto build multiple tickets simultaneously
If the CEO chooses to switch: commit or stash any uncommitted changes on the current branch, then proceed.
-
Create the ticket branch:
git checkout -b ticket/{ID} -
Update the ticket file: Set
status: in-progressandbranch: ticket/{ID}in the YAML frontmatter. -
Adapt explanation to user's technical level: If
.solopreneur/preferences.yamlexists, read it for the CEO's git comfort level. Explain accordingly:- Technical: "Creating branch
ticket/MVP-001" - Basic: "I'm creating a separate branch for this ticket"
- Non-technical: "I'm saving your work in a separate space so it doesn't interfere with other work"
If preferences don't exist yet, ask the CEO: "Quick question — how comfortable are you with git? (I use it daily / I know the basics / What's git?)" and save their answer to
.solopreneur/preferences.yaml. - Technical: "Creating branch
Step 1.75: Deployment Strategy (first build only)
Check if .solopreneur/preferences.yaml has a deployment key. If yes, skip this step entirely.
If no deployment strategy exists yet, ask the CEO:
Where should this run when it's ready? The engineer will set up deployment based on your tech stack. Common options:
- Vercel — Best for Next.js, React, static sites (free tier available)
- Netlify — Similar to Vercel, good for static sites and serverless
- GitHub Pages — Free, simple, static sites only
- I'll figure it out later — Skip for now, we'll set it up when you're ready to ship
Not sure? The engineer can recommend one based on what we're building.
If the CEO picks a platform or asks for a recommendation:
- Delegate to
@engineerto configure the project for that platform:- Install the platform CLI if needed (e.g.,
npm i -g vercel) - Create platform config files (e.g.,
vercel.json,netlify.toml) - If an MCP server exists for the platform (e.g., Vercel), add it to
.mcp.json - Link the project to the platform (
vercel link, etc.)
- Install the platform CLI if needed (e.g.,
- Save the deployment strategy to
.solopreneur/preferences.yaml:deployment: platform: vercel # or netlify, github-pages, fly, railway, custom, none configured: true notes: "Next.js app on Vercel, linked via CLI" rollback: "Run `vercel rollback` or go to vercel.com/[project]/deployments and promote the previous deployment"
If the CEO picks "I'll figure it out later", save:
deployment:
platform: none
configured: false
This step only runs once. Subsequent /build calls skip it because the preference exists.
Plan Path
-
Delegate to the
@engineersubagent to create a plan file following the standard plan format (from conventions). The engineer should break the work into 3-8 sequential steps with instructions specific enough that another agent can execute without additional context. Build-specific additions to the plan:- Include
**Branch**: \ticket/{ID}`` in the Context section (ticket builds only) - Add a
## Deployment Notessection if deployment was just configured (platform, config files created, setup status)
- Include
-
Save the plan:
- If building from a ticket: save co-located as
.solopreneur/backlog/{dir}/{ID}-plan.md - Otherwise: save to
.solopreneur/plans/build-{feature-slug}.md(create the directory if needed)
- If building from a ticket: save co-located as
-
Present a summary of the plan to the CEO:
- Number of steps
- Files that will be created/modified
- Any decisions that need CEO input
- Estimated complexity (Simple / Moderate / Complex)
-
End with the handoff prompt (adapt for ticket builds):
For ticket builds:
-> Next: Take this plan to your coding agent (Cursor, Windsurf, etc.) for execution: Make sure you're on branch `ticket/{ID}`, then open: .solopreneur/backlog/{date}-{slug}/{ID}-plan.md Tell it: "Execute this plan step by step" When the code is written, come back for review and merge: /solopreneur:review .solopreneur/backlog/{date}-{slug}/{ID}.mdFor non-ticket builds:
-> Next: Take this plan to your coding agent (Cursor, Windsurf, etc.) for execution: Open .solopreneur/plans/{filename} and tell it: "Execute this plan step by step" When done, come back and run: /solopreneur:review
Direct Path
-
Delegate to the
@engineersubagent to plan and execute the implementation directly. The engineer should:- First, create a plan following the standard plan format (from conventions), with the same build-specific additions as the Plan Path
- Save the plan: if building from a ticket, co-locate as
.solopreneur/backlog/{dir}/{ID}-plan.md; otherwise save to.solopreneur/plans/build-{feature-slug}.md - Then execute each step: create/modify files, install dependencies, write the actual code
- After each step, briefly report progress to the CEO
-
Once the engineer finishes, present a summary:
- What was built (files created/modified)
- Any decisions that were made along the way
- Anything that needs CEO input or attention
-
If building from a ticket: Update the ticket YAML — set
status: built, populate the## Filessection with files created/modified. Then suggest review:-> Ticket {ID} is built on branch `ticket/{ID}`. Let's review it: /solopreneur:review .solopreneur/backlog/{dir}/{ID}.md -
If not a ticket build: End with the review prompt:
-> Next: Let's review what was built: /solopreneur:review
Source
git clone https://github.com/pcatattacks/solopreneur-plugin/blob/main/skills/build/SKILL.mdView on GitHub Overview
The Build skill translates a feature input (ticket, design, or spec) into actionable implementation steps or code. It can generate a plan file for Cursor or build directly with Claude, while handling blockers, branch setup for tickets, and deployment considerations to streamline coding work.
How This Skill Works
The skill determines the input type from ARGUMENTS: a ticket file path (e.g., .solopreneur/backlog/{dir}/MVP-001.md), a design directory (e.g., .solopreneur/designs/{date}-{slug}/), a spec file path, or a plain feature description. For tickets, it reads the ticket and backlog.md to identify requirements, acceptance criteria, and blockers; it will only proceed if all blocking tickets have status done or tested, otherwise it reports blockers. If it's a design directory, it reads design-brief.md and scans for .html mockups to guide implementation. If it's a spec, it reads the spec for context. After evaluating input, it asks the CEO how to proceed: Plan only (generate a plan file for Cursor or another agent) or Build it now (write code directly here). For ticket builds, it includes Step 1.5: branch setup (creating a ticket/{ID} branch and updating YAML frontmatter) and adapts explanations to the user’s git comfort level from preferences.yaml, or asks about git familiarity if preferences are missing. For first builds without a deployment plan, it includes Step 1.75: deployment strategy by asking where the code should run (Vercel, Netlify, GitHub Pages, or decide later).
When to Use It
- You have a feature ticket file in backlog and need to verify blockers before starting.
- You have a design directory with a design-brief.md and HTML mocks to implement a UI/UX feature.
- You have a spec file path and want context-driven implementation steps.
- You want a plan file to hand to Cursor or another coding agent before coding.
- You’re ready to write code now and want an isolated ticket branch and deployment considerations set up.
Quick Start
- Step 1: How would you like to build this? Plan only or Build it now.
- Step 2: If Plan, generate a plan file for Cursor (or your preferred coding agent); if Build, start coding here.
- Step 3: If building from a ticket, set up a branch ticket/{ID}, update status: in-progress, and check blockers in backlog.md before proceeding.
Best Practices
- Always verify blockers in backlog.md before proceeding with a ticket build.
- Choose Plan-only when the feature is complex or requires coordination before coding.
- Create and name a ticket branch as ticket/{ID} for isolated work.
- Keep design-brief.md and backlog.md up to date with requirements and statuses.
- Store deployment preferences in .solopreneur/preferences.yaml and reference them during initial setup.
Example Use Cases
- MVP-001 ticket from backlog: determines blockers, creates ticket branch, and generates a Cursor plan file for implementation.
- New login feature described in a spec file: reads context, outlines implementation steps, and optionally builds directly.
- Design-driven feature: reads design-brief.md and HTML mocks to guide UI implementation and structure.
- Cursor plan generation: user selects Plan-only to produce a reusable plan file for the team.
- Ticket-based parallel work: builds multiple tickets by suggesting parallel execution routes using /solopreneur:sprint.