bootstrap by buiducnhat/agent-skills
npx skills add https://github.com/buiducnhat/agent-skills --skill bootstrap通过结构化对话收集项目需求,生成基础文档,并搭建项目结构——然后移交至下游工作流技能。
--scratch:从零开始。完整的脚手架:目录、配置文件、文档、README。--existing:项目已初始化(例如,已执行 npm init,框架脚手架已搭建)。通过文档和结构进行增强,不覆盖现有文件。收集以下 8 个维度的信息。除 技术栈 和 产品定义 外,所有类别都是可选的,可以回退到智能默认值。
---|---|---
1 | 技术栈 | 语言、框架、运行时、包管理器
2 | 产品定义 | 目的、目标用户、核心功能、成功标准
3 | 架构 | 组件结构、数据流、API 设计、部署目标
4 | 路线图 | 阶段、里程碑、MVP 范围
5 | 工具链 | 代码检查器、格式化工具、测试框架、CI 提供商
6 | 代码标准 | 命名约定、文件结构模式、提交约定
7 | 设计系统 | UI 库、样式方法——仅限前端项目
8 | 认证与数据 | 认证方法、数据库、ORM——如果适用
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
package.jsonpyproject.tomlCargo.tomldocs/ 目录和文档文件。--scratch 或不存在任何内容 → 以 --scratch 模式进行。--existing 或存在项目清单文件 → 以 --existing 模式进行。所有问题都遵循 AskUserQuestion 指令。尽可能使用多项选择选项,一次问一个问题。
顺序:
收集规则:
以结构化列表形式呈现所有收集到的需求的简明摘要。在继续之前请求批准:
看起来不错 / 已确认 → 进入步骤 4。如果不存在 docs/ 目录,则创建它。生成所有四个基础文档,并用具体的、特定于项目的内容填充——不使用占位符。
| 文件 | 来源类别 |
|---|---|
docs/project-pdr.md | 产品定义,路线图 |
docs/architecture.md | 架构,技术栈,认证与数据 |
docs/codebase.md | 根据步骤 5 后的实际结构生成 |
docs/code-standard.md | 技术栈,代码标准,工具链 |
遵循与 docs --init 技能相同的内容要求来生成每个文件。
对于 --existing 模式:首先阅读现有文档。仅添加缺失的部分;不覆盖已经准确的内容。
根据选择的技术栈创建标准目录和基本配置文件。
通用规则:
src/、tests/(或框架等效目录)、用于 Web 项目的 public/。tsconfig.json、.eslintrc.json、.prettierrc、.gitignore 等。git init)。--existing 模式:仅添加缺失的文件/目录。绝不覆盖已存在的文件。常见脚手架:
src/app/、src/components/、src/lib/、public/、tests/src/components/、src/hooks/、src/lib/、public/、tests/src/routes/、src/middleware/、src/lib/、tests/src/<package>/、tests/、scripts/src/commands/、src/lib/、tests/搭建完成后,重新生成 docs/codebase.md 以反映实际的目录结构。
安装并配置选定的工具:
npm install、bun install、pnpm install、pip install 等。biome.json、.eslintrc.json、ruff.toml 等)。biome.json、.prettierrc 等)。package.json(或等效文件)。tests/ 下创建一个示例测试文件。在 --existing 模式下,跳过任何文件已存在的子步骤。
创建 README.md,包含:
对于 --existing 模式:仅在 README 缺失或严重不完整时进行更新。
总结创建的所有内容:
然后根据项目准备情况推荐下一个技能:
brainstormwrite-plan 来创建第一个实施计划quick-implement| 技术栈 | 包管理器 | 代码检查器 | 格式化工具 | 测试框架 | 样式 |
|---|---|---|---|---|---|
| Next.js | bun | Biome | Biome | Vitest | Tailwind CSS |
| React (Vite) | bun | Biome | Biome | Vitest | Tailwind CSS |
| Express/Node | bun | Biome | Biome | Vitest | N/A |
| CLI 工具 (Node) | bun | Biome | Biome | Vitest | N/A |
| Python | uv | Ruff | Ruff | pytest | N/A |
| Rust | cargo | clippy | rustfmt | cargo test | N/A |
--existing 模式下,绝不覆盖现有文件,除非用户明确批准。docs/codebase.md 与实际搭建的结构同步。rm -rf)。每周安装数
98
代码仓库
GitHub 星标数
28
首次出现
12 天前
安全审计
安装于
claude-code83
cursor69
github-copilot57
antigravity55
gemini-cli51
opencode46
Collect project requirements through structured dialogue, generate foundational documentation, and scaffold the project structure — then hand off to downstream workflow skills.
--scratch: Start from nothing. Full scaffold: directories, configs, docs, README.--existing: Project already initialized (e.g., npm init done, framework scaffolded). Enhance with docs and structure without overwriting existing files.Collect information across these 8 dimensions. All categories except Techstack and Product definition are optional and may fall back to smart defaults.
---|---|---
1 | Techstack | Language, framework, runtime, package manager
2 | Product definition | Purpose, target users, core features, success criteria
3 | Architecture | Component structure, data flow, API design, deployment target
4 | Roadmap | Phases, milestones, MVP scope
5 | Tooling | Linter, formatter, test framework, CI provider
6 | Code standards | Naming conventions, file structure patterns, commit conventions
7 | Design system | UI library, styling approach — frontend projects only
8 | Auth & data | Auth method, database, ORM — if applicable
package.json, pyproject.toml, Cargo.toml, or similar manifest exists.docs/ directory and documentation files exist.--scratch or nothing exists → proceed as --scratch.--existing or a project manifest exists → proceed as --existing.Follow the AskUserQuestion mandate for all questions. Ask one question at a time using multiple-choice options when possible.
Sequence:
Rules for gathering:
Present a concise summary of all collected requirements in a structured list. Ask for approval before proceeding:
Looks good / Confirmed → proceed to Step 4.Create the docs/ directory if it doesn't exist. Generate all four foundational docs populated with concrete project-specific content — no placeholders.
| File | Source categories |
|---|---|
docs/project-pdr.md | Product definition, Roadmap |
docs/architecture.md | Architecture, Techstack, Auth & data |
docs/codebase.md | Generated from actual structure after Step 5 |
docs/code-standard.md | Techstack, Code standards, Tooling |
Follow the same content requirements as the docs --init skill for each file.
For --existing mode: read existing docs first. Only add missing sections; do not overwrite content that is already accurate.
Create standard directories and essential config files based on the chosen techstack.
General rules:
src/, tests/ (or framework equivalent), public/ for web projects.tsconfig.json, .eslintrc.json, .prettierrc, .gitignore, etc.git init) if not already a repository.--existing mode: only add missing files/directories. Never overwrite files that already exist.Common scaffolds:
src/app/, src/components/, src/lib/, public/, tests/src/components/, src/hooks/, src/lib/, public/, tests/src/routes/, , , After scaffolding, regenerate docs/codebase.md to reflect the actual directory structure.
Install and configure selected tools:
npm install, bun install, pnpm install, pip install, etc.biome.json, .eslintrc.json, ruff.toml, etc.).biome.json, .prettierrc, etc.).package.json (or equivalent).Skip any sub-step where the file already exists (--existing mode).
Create README.md with:
For --existing mode: update README only if it is missing or significantly incomplete.
Summarize everything created:
Then recommend the next skill based on project readiness:
brainstormwrite-plan to create the first implementation planquick-implement| Stack | Package Manager | Linter | Formatter | Test Framework | Styling |
|---|---|---|---|---|---|
| Next.js | bun | Biome | Biome | Vitest | Tailwind CSS |
| React (Vite) | bun | Biome | Biome | Vitest | Tailwind CSS |
| Express/Node | bun | Biome | Biome | Vitest | N/A |
| CLI tool (Node) | bun | Biome | Biome | Vitest | N/A |
| Python | uv | Ruff | Ruff |
--existing mode unless the user explicitly approves.docs/codebase.md in sync with the actual scaffolded structure.rm -rf) without explicit user approval.Weekly Installs
98
Repository
GitHub Stars
28
First Seen
12 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code83
cursor69
github-copilot57
antigravity55
gemini-cli51
opencode46
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
152,900 周安装
Rafflys Automation - Claude AI 自动化技能集成,提升开发效率与工作流自动化
1 周安装
Radar自动化工具包:通过Rube MCP实现Radar操作自动化
1 周安装
Pushbullet自动化技能:Claude AI集成与跨设备通知推送自动化工具
1 周安装
Procfu自动化指南:通过Rube MCP和Composio实现Procfu操作自动化
1 周安装
Prerender自动化工具:通过Rube MCP和Composio实现网页预渲染自动化
1 周安装
NuxtJS Vue TypeScript 开发指南:Vue 3 组合式 API、TypeScript 与性能优化最佳实践
145 周安装
src/middleware/src/lib/tests/src/<package>/, tests/, scripts/src/commands/, src/lib/, tests/tests/.| pytest |
| N/A |
| Rust | cargo | clippy | rustfmt | cargo test | N/A |