bootstrap
Installation
SKILL.md
echo "Architecture docs: ${CLAUDE_SKILL_DIR}/architecture/"
echo "Version: $(cat "${CLAUDE_SKILL_DIR}/VERSION")"
TSEng Bootstrap
Scaffolds a new greenfield TypeScript client-server monorepo.
How It Works
- Greenfield check — List the target directory contents. If it contains existing source code,
package.json, or apackages/directory, stop immediately and tell the user this skill is for greenfield projects only. Suggest using thereviewskill instead to audit their existing project. Only allow proceeding if the directory is empty or contains only dotfiles (.git,.gitignore, etc.),README.md, orLICENSE. - Get version — The current tseng version is shown above (injected from the VERSION file). Embed this version in the review record.
- Read
architecture/index.mdfrom the architecture docs directory (shown above) — it describes the overall architecture and points to deeper dives on each topic. - Read the specific architecture files (in the same architecture docs directory) you need for the current step of bootstrapping. You will likely need all of them, but load them as you go rather than all at once.
- Ask the user for a project name (or infer from the directory name), server runtime (Hono or Express, default: Hono), and package manager preference (default: pnpm).
- Scaffold the full monorepo with working sample code in every layer, conforming to the architecture.
- Write
tseng/project-structure.mdwith the project metadata format described in the architecture docs. - Generate a review checklist from the architecture docs (same process as review/adopt: read all linked files, extract every concrete verifiable rule). Write it to
tseng/reviews/001.mdas the first review record, with all items marked[x](the scaffold conforms by construction) and immediately locked: