Token导航 LogoToken导航TokenDH.com
研究检索external-serviceclawhub未标认证来源可访问clear审计提醒

solo-scaffold单独脚手架

Agent Skill

solo-scaffold 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

21,567

周安装

881

GitHub Stars

公开资料未说明

下载量

6,907
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:solo-scaffold(单独脚手架)
来源仓库:https://github.com/fortunto2/solo-scaffold
安装命令:
openclaw skills install solo-scaffold
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install solo-scaffold

简介

基于 PRD 与堆栈模板生成完整项目目录结构与配置文件。

  • 自动初始化 Git 仓库并推送至指定 GitHub 组织。
  • 内置 CLAUDE.md 指导后续开发行为规范。
  • 支持多种前端/后端技术栈快速启动样板工程。solo-scaffold 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 首次运行可能较慢因需下载基础镜像与依赖包。

SKILL.md

name
solo-scaffold
description
Generate complete project from PRD + stack template — directory structure, configs, CLAUDE.md, git repo, and GitHub push. Use when user says "scaffold project", "create new project", "start new app", "bootstrap project", or "set up from PRD". Uses SoloGraph for patterns and Context7 for latest versions. Do NOT use for planning features (use /plan) or PRD generation (use /validate).
license
MIT
metadata
author
fortunto2
version
1.5.1
openclaw
emoji
🏗️
allowed-tools
Read, Grep, Bash, Glob, Write, Edit, AskUserQuestion, mcp__context7__resolve-library-id, mcp__context7__query-docs, mcp__solograph__kb_search, mcp__solograph__project_info, mcp__solograph__project_code_search, mcp__solograph__codegraph_query, mcp__solograph__codegraph_explain, mcp__solograph__project_code_reindex
argument-hint
[project-name] [stack-name]

/scaffold

Scaffold a complete project from PRD + stack template. Creates directory structure, configs, CLAUDE.md, git repo, and pushes to GitHub. Studies existing projects via SoloGraph for consistent patterns, uses Context7 for latest library versions.

Steps

  1. Parse arguments from $ARGUMENTS — extract <project-name> and <stack-name>.

- If not provided or incomplete, use AskUserQuestion to ask for missing values. - Show available stacks from templates/stacks/*.yaml (source of truth). If MCP project_info available, also show detected stacks from active projects. List stack names with one-line descriptions from each YAML's description field. - Project name should be kebab-case.

  1. Load org defaults from ~/.solo-factory/defaults.yaml:

- Read org_domain (e.g. com.mycompany), apple_dev_team, github_org, projects_dir - If file doesn't exist, ask via AskUserQuestion: - "What is your reverse-domain prefix for bundle IDs?" (e.g. com.mycompany) - "Apple Developer Team ID?" (optional, leave empty if no iOS) - Create ~/.solo-factory/defaults.yaml with answers for future runs - Replace <org_domain>, <apple_dev_team>, <github_org> placeholders in all generated files

  1. Load stack + PRD + principles:

- Look for stack YAML: search for stacks/<stack>.yaml in plugin templates (via kb_search or Glob). - If stack YAML not found, use built-in knowledge of the stack (packages, structure, deploy). - Check if PRD exists: docs/prd.md or search current directory for prd.md - If not: generate a basic PRD template - Look for dev principles: search for dev-principles.md or use built-in SOLID/DRY/KISS/TDD principles.

  1. Study existing projects via SoloGraph (learn from your own codebase — critically):

Before generating code, study active projects with the same stack. Don't blindly copy — existing projects may have legacy patterns or mistakes. Evaluate what's actually useful.

a. Find sibling projects — use project_info() to list active projects, filter by matching stack. Example: for ios-swift, find existing projects with matching stack.

b. Architecture overviewcodegraph_explain(project="<sibling>") for each sibling. Gives: directory layers, key patterns (base classes, protocols, CRUD), top dependencies, hub files.

c. Search for reusable patternsproject_code_search(query="<pattern>", project="<sibling>"): - Search for stack-specific patterns: "MVVM ViewModel", "SwiftData model", "AVFoundation recording" - Search for shared infrastructure: "Makefile", "project.yml", ".swiftlint.yml" - Search for services: "Service protocol", "actor service"

d. Check shared packagescodegraph_query("MATCH (p:Project)-[:DEPENDS_ON]->(pkg:Package) WHERE p.name = '<sibling>' RETURN pkg.name"). Collect package versions for reference (but verify with Context7 for latest).

e. Critically evaluate what to adopt vs skip: - Adopt: consistent directory structure, Makefile targets, config patterns (.swiftlint.yml, project.yml) - Adopt: proven infrastructure patterns (actor services, protocol-based DIP) - Skip if outdated: old API patterns (ObservableObject → @Observable), deprecated deps - Skip if overcomplicated: unnecessary abstractions, patterns that don't fit the new project's needs - Always prefer: Context7 latest best practices over old project patterns when they conflict

Goal: Generated code should feel consistent with your portfolio but use the best available patterns, not just the same old ones. Limit to 2-3 sibling projects to keep research focused.

  1. Context7 research (latest library versions and best practices):

- For each key package from the stack: - mcp__context7__resolve-library-id — find the Context7 library ID - mcp__context7__query-docs — query "latest version, project setup, recommended file structure, best practices" - Collect: current versions, recommended directory structure, configuration patterns, setup commands - Limit to the 3-4 most important packages to keep research focused

  1. Show plan + get confirmation via AskUserQuestion:

- Project path: <projects_dir>/<name> (from defaults.yaml or current directory) - Stack name and key packages with versions from Context7 - Proposed directory structure - Confirm or adjust before creating files

  1. Create project directory:
   mkdir -p <projects_dir>/<name>
  1. Create file structure based on the stack. SGR-first: always start with domain schemas/models before any logic or views. Every project gets these common files:
   <projects_dir>/<name>/
   ├── CLAUDE.md          # AI-friendly project docs (map, not manual — see Harness Engineering)
   ├── Makefile           # Common commands (run, test, build, lint, deploy, integration)
   ├── README.md          # Human-friendly project docs
   ├── docs/
   │   ├── prd.md         # Copy of PRD
   │   ├── QUALITY_SCORE.md  # Domain quality grades (harness: garbage collection)
   │   └── ARCHITECTURE.md   # Module boundaries and dependency rules
   ├── cli/               # CLI utility — mirrors core business logic (CLI-First Testing principle)
   │   └── main.ts|py     # Deterministic pipeline entry point (no LLM required)
   ├── .claude/
   │   └── skills/        # Product-specific workflow skills
   │       └── dev/
   │           └── SKILL.md  # Dev workflow skill (run, test, deploy)
   └── .gitignore         # Stack-specific ignores

CLI-First Testing: generate a cli/ directory with a stub that imports core business logic from lib/ (or equivalent). The CLI should run the main pipeline deterministically without requiring LLM, network, or UI. This enables make integration for pipeline verification. See dev-principles.md → "CLI-First Testing".

### .claude/skills/dev/SKILL.md — product dev workflow skill

Generate a skill that teaches Claude how to work with THIS specific project. Structure:

   ---
   name: <name>-dev
   description: Dev workflow for <Name> — run, test, build, deploy. Use when working on <Name> features, fixing bugs, or deploying changes. Do NOT use for other projects.
   license: MIT
   metadata:
     author: <github_org>
     version: "1.0.0"
   allowed-tools: Read, Grep, Glob, Bash, Write, Edit
   ---

Body should include: - Stack: key packages, versions, where configs live - Commands: make dev, make test, make build, make deploy (from Makefile) - Architecture: directory structure, naming conventions, key patterns - Testing: how to run tests, where test files live, testing conventions - Common tasks: add a new page/screen, add an API endpoint, add a model

This makes every scaffolded project immediately Claude-friendly — new sessions get project context via the skill.

MCP server (optional): If PRD indicates a data/AI/developer product, also generate MCP server stub. See templates/mcp-skills-bundle.md for the full "MCP + Skills bundle" pattern and rules for when to generate MCP.

Then add stack-specific files. See references/stack-structures.md for per-stack file listings (8 stacks: nextjs, ios, kotlin, cloudflare, astro-static, astro-hybrid, python-api, python-ml).

  1. Generate Makefile — stack-adapted with: help, dev, test, lint, format, build, clean, deploy targets.

- Add integration target if the project has a CLI or deterministic pipeline (stub with a comment if not yet implemented) - ios-swift must also include: generate (xcodegen), archive (xcodebuild archive), open (open .xcarchive for Distribute) - The Makefile is the canonical command interface/build and /review use make targets instead of raw commands

  1. Generate CLAUDE.md for the new project:

- Project overview (problem/solution from PRD) - Tech stack (packages + versions from Context7) - Skills section: list available .claude/skills/ with descriptions - Directory structure - Common commands (reference make help) - SGR / Domain-First section - Architecture principles (from dev-principles) - Harness Engineering section (from templates/principles/harness-engineering.md): - CLAUDE.md philosophy: "this file is a map, not a manual — keep ~100 lines, point to docs/" - Harness health checklist (subset relevant to this project) - Architectural constraints: module boundaries, data validation at boundaries - Agent legibility: lint errors must include remediation instructions - Anti-patterns: don't put knowledge in Slack/Docs, don't micromanage implementation - Do/Don't sections - MCP Integration section (optional, if MCP tools available): Lists available MCP tools: project_code_search, kb_search, session_search, codegraph_query, project_info, web_search

  1. Generate README.md — project name, description, prerequisites, setup, run/test/deploy.
  1. Generate .gitignore — stack-specific patterns.
  1. Copy PRD to docs/: Copy from knowledge base or generate in place.
  1. Git init + first commit:
    cd <projects_dir>/<name>
    git init && git add . && git commit -m "Initial project scaffold

    Stack: <stack-name>
    Generated by /scaffold"
  1. Create GitHub private repo + push:
    cd <projects_dir>/<name>
    gh repo create <name> --private --source=. --push
  1. Register project + index code (optional, if MCP tools available):

- If project_code_reindex MCP tool is available, index the new project for code search:

      mcp__solograph__project_code_reindex(project="<name>")
  1. Output summary:
    Project scaffolded!

      Path:   <projects_dir>/<name>
      GitHub: https://github.com/<user>/<name>
      Stack:  <stack-name>
      PRD:    docs/prd.md
      CLAUDE: configured
      Skills: .claude/skills/dev/ (project workflow)

    Next steps:
      cd <projects_dir>/<name>
      <install command>    # pnpm install / uv sync / etc.
      <run command>        # pnpm dev / uv run ... / etc.

    Then: /setup → /plan "First feature" → /build

Verification

Before reporting "project scaffolded":

  1. Verify all generated files exist (ls the directory tree).
  2. Run the install command (pnpm install, uv sync, etc.) — must succeed.
  3. Run the dev/build command if applicable — must not error.
  4. Verify git init + first commit succeeded (git log --oneline -1).
  5. Verify GitHub repo creation (gh repo view or check URL).

Never say "scaffold complete" without running the install and verifying it works.

Common Issues

Stack YAML not found

Cause: Stack template missing from templates/stacks/ or not symlinked. Fix: Skill uses built-in knowledge if template not found. To fix: ensure solo-factory/templates/stacks/<stack>.yaml exists.

GitHub repo creation fails

Cause: gh CLI not authenticated or repo name already taken. Fix: Run gh auth login first. If name taken, choose a different project name.

Context7 queries fail

Cause: MCP server not running or Context7 rate limited. Fix: Skill proceeds with stack YAML versions as fallback. Context7 enhances but is not required.

org defaults missing

Cause: ~/.solo-factory/defaults.yaml not created. Fix: Run /init first for one-time setup, or skill will ask for bundle ID and team ID interactively.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

73.06%
按下载量换算5,046

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills