Setup

From fortunto2/solo-factory · View interactive version

Setup is an AI agent skill from the GitHub repository fortunto2/solo-factory. Use when "set up workflow", "configure TDD", "wire up dev workflow", or after /scaffold before /plan to generate workflow config. Do NOT use for founder setup (/init) or scaffolding (/scaffold).

How to use this skill

Skill file

/setup

Auto-generate project workflow config from existing PRD and CLAUDE.md. Zero interactive questions — all answers extracted from project data that already exists after /scaffold.

When to use

After /scaffold creates a project, before /plan. Creates docs/workflow.md so /plan and /build can work.

MCP Tools (use if available)

If MCP tools are not available, fall back to reading local files only.

Steps

  1. Detect project root:
  1. Check if already initialized:
  1. Read project data (parallel — all reads at once):
  1. Read ecosystem sources (optional — enhances quality):
  1. Detect languages from package manifest:
  1. Create docs directory if needed:

```bash

mkdir -p docs

```

  1. Generate docs/workflow.md:

Based on dev-principles (from MCP/KB or built-in defaults):

```markdown

# Workflow — {ProjectName}

## TDD Policy

Moderate — design first (data model, edge cases, contracts), then code and tests

together at agreed seams. No agent-run red-green ritual. Write tests for:

Tests optional for: UI components, one-off scripts, prototypes.

Regression check: the stack's mutation tool (mutmut / Stryker / cargo-mutants) on changed

business logic at the end of a phase, where installed.

Switch to Strict only if a human writes or reviews each failing test before the

implementation.

## Test Framework

{from package manifest devDeps: vitest/jest/pytest/xctest}

## Commit Strategy

Conventional Commits

Format: <type>(<scope>): <description>

Types: feat, fix, refactor, test, docs, chore, perf, style

## Verification Checkpoints

After each phase completion:

1. Run tests — all pass

2. Run linter — no errors

3. Run build — successful (if applicable)

4. Manual smoke test

## Branch Strategy

```

  1. Update CLAUDE.md — add workflow reference to Key Documents section if not present.
  1. Show summary and suggest next step:

```

Setup complete for {ProjectName}!

Created:

docs/workflow.md — TDD moderate, conventional commits

Next: /plan "Your first feature"

```

Common Issues

CLAUDE.md not found

Cause: Project not scaffolded or running from wrong directory.

Fix: Run /scaffold first, or ensure you're in the project root with CLAUDE.md.

workflow.md already exists

Cause: Previously set up.

Fix: Skill warns and asks whether to regenerate. Existing file is preserved unless you confirm overwrite.

Wrong test framework detected

Cause: Multiple test frameworks in devDependencies.

Fix: Skill picks the first found. Edit docs/workflow.md manually to specify the correct framework.

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.