AgentSkillsCN

project-scaffolding

在60秒内从零开始创建新项目。选择技术栈、生成样板代码、初始化Git、编写README文件、完成首次提交。可通过“/newproject”指令调用。

SKILL.md
--- frontmatter
name: project-scaffolding
description: >
  New project from scratch in 60 seconds.
  Stack selection, boilerplate generation, Git init, README, first commit.
  Invoke with /newproject.

Project Scaffolding

Commands

  • /newproject — Interactive project setup
  • /newproject <name> --stack <stack> — Quick setup with specified stack

Procedure

Phase 1: Gather Requirements

Ask the user:

  1. Project name
  2. Stack/language (Python, TypeScript, React, Next.js, FastAPI, etc.)
  3. Purpose (API, CLI, web app, library, agent, data pipeline)
  4. Package manager preference (pip/uv, npm/pnpm)
  5. Target directory (default: ~/Kessel-Digital/{project-name})

Phase 2: Generate Structure

Create the project directory with appropriate boilerplate:

Python project:

  • src/{package}/init.py, main.py
  • tests/init.py, test_main.py
  • requirements.txt or pyproject.toml
  • Makefile with common targets
  • .gitignore (Python template)

TypeScript/Node project:

  • src/index.ts
  • tests/index.test.ts
  • package.json with scripts
  • tsconfig.json
  • .gitignore (Node template)

Common to all:

  • README.md with project name, description, setup, usage sections
  • .env.example with placeholder values
  • .editorconfig
  • LICENSE (MIT default unless specified)

Phase 3: Initialize

  1. git init
  2. Create .gitignore appropriate for the stack
  3. Stage all files
  4. Create initial commit: "feat: scaffold {project-name}"

Phase 4: Report

Show the user:

  • Directory tree of what was created
  • How to get started (install deps, run, test)
  • Next steps suggestions

MCMAP-Specific Templates

For agent-related projects:

  • Include scripts/ directory with pac_client.py pattern
  • Include .claude/ with CLAUDE.md stub
  • Include memory/ directory structure
  • Add Makefile with validate/import targets