Project Scaffolding
Commands
- •
/newproject— Interactive project setup - •
/newproject <name> --stack <stack>— Quick setup with specified stack
Procedure
Phase 1: Gather Requirements
Ask the user:
- •Project name
- •Stack/language (Python, TypeScript, React, Next.js, FastAPI, etc.)
- •Purpose (API, CLI, web app, library, agent, data pipeline)
- •Package manager preference (pip/uv, npm/pnpm)
- •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
- •
git init - •Create .gitignore appropriate for the stack
- •Stage all files
- •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