AgentSkillsCN

initializing-projects

从零开始,以框架、最佳实践与代理体系初始化新项目。当您需要为新项目打下基础,或搭建开发环境时,可使用此技能。

SKILL.md
--- frontmatter
name: initializing-projects
description: Initializes a new project with framework, best practices, and agent system from scratch. Use when bootstrapping a new project or setting up development environment.

Initializing Projects

Bootstrap a new project with modern best practices and agent system.

Process

1. Requirements Gathering

First ask Project Type, then ask relevant questions based on type.

Project Types → Questions

Project TypeQuestions to Ask
Frontend SPALanguage, Framework, UI Library, Styling, State Management, Package Manager, Testing, Linting
Full-stack AppAbove + ORM/Database, Validation, API Style, Auth Strategy
API ServiceLanguage, Framework, ORM, Validation, API Style, Auth, Testing
CLI Tool / LibraryLanguage, Validation, Package Manager, Testing, Linting
Static Blog / DocsLanguage, Framework, Styling, Static Site Generator

Ask questions iteratively. Skip if already answered or not applicable.

2. Research Best Practices

Use web search to find:

  • Latest stable version of chosen framework
  • Official CLI tool and initialization commands
  • Current best practices and recommended project structure

3. Write Blueprint

Create /docs/blueprint.md with:

markdown
# Project Blueprint

## Stack
- Language: [version]
- Framework: [version]
- Package manager: [choice]

## Project Structure
[Recommended directory layout]

## Initialization Command
[Official CLI command, e.g., `npx create-next-app@latest`]

## Key Dependencies
[Core packages with versions]

Ask user to confirm the blueprint before proceeding.

4. Bootstrap Project

After user confirmation:

  1. Run the official CLI tool to create project
  2. Install additional dependencies if needed
  3. Apply any post-init configurations

5. Setup Agent System

CRITICAL: Invoke the migrating-agent-systems skill.

This handles:

  • Create CLAUDE.md with project-specific constitution
  • Setup skills as needed
  • Configure hooks for static checks
  • Create rules based on discovered conventions

6. Final Confirmation

Ask user if they want to proceed with bootstrapping according to the blueprint.