← 返回
效率工具 中文

Setup

Auto-generate project workflow config (docs/workflow.md) from existing PRD and CLAUDE.md with zero questions. Use when user says "set up workflow", "configur...
自动根据现有PRD和CLAUDE.md生成项目工作流配置(docs/workflow.md),无需提问。当用户说“设置工作流”、“配置工作流”等时使用。
fortunto2
效率工具 clawhub v2.1.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 856
下载
💾 5
安装
1
版本
#latest

概述

/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)

  • project_info(name) — get project details, detected stack
  • kb_search(query) — search for dev principles, manifest, stack templates
  • codegraph_query(query) — check project dependencies in code graph

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

Steps

  1. Detect project root:
    • If $ARGUMENTS is provided, look for a project with that name in the current directory or projects_dir from ~/.solo-factory/defaults.yaml.
    • Otherwise use current working directory.
    • Verify the directory exists and has CLAUDE.md.
    • If not found, ask via AskUserQuestion.
  1. Check if already initialized:
    • If docs/workflow.md exists, warn and ask whether to regenerate.
  1. Read project data (parallel — all reads at once):
    • CLAUDE.md — tech stack, architecture, commands, Do/Don't
    • docs/prd.md — problem, users, solution, features, metrics, pricing
    • package.json or pyproject.toml — exact dependency versions
    • Makefile — available commands
    • Linter configs (.eslintrc, eslint.config., .swiftlint.yml, ruff.toml, detekt.yml)
  1. Read ecosystem sources (optional — enhances quality):
    • Detect stack name from CLAUDE.md (look for "Stack:" or the stack name in tech section).
    • If MCP kb_search available: search for stack template and dev-principles.
    • Otherwise: look for stacks/.yaml and dev-principles.md in .solo/ or plugin templates directory (if accessible).
    • If neither available: derive all info from CLAUDE.md + package manifest (sufficient).
  1. Detect languages from package manifest:
    • package.json → TypeScript
    • pyproject.toml → Python
    • *.xcodeproj or Package.swift → Swift
    • build.gradle.kts → Kotlin
  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 — Tests encouraged but not blocking. Write tests for:

  • Business logic and validation
  • API route handlers
  • Complex algorithms

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

## Test Framework

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

## Commit Strategy

Conventional Commits

Format: ():

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

  • main — production-ready
  • feat/ — feature branches
  • fix/ — hotfixes

```

  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.

版本历史

共 1 个版本

  • v2.1.1 当前
    2026-03-29 11:47 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 446 📥 226,382
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 440 📥 147,888
data-analysis

Research

fortunto2
深度市场调研——竞品分析、用户痛点、SEO/ASO关键词、命名/域名可用性及TAM/SAM/SOM市场规模估算。当用户说“resea...”时使用。
★ 0 📥 2,035