typescript-backend-project-setup
БесплатноЗапускает вложенные скриптыНе проверенSets up NX monorepo for TypeScript backend projects optimized for AI-assisted development. Delegates to NX commands where possible, patches configs as last…
Об этом скилле
NX Monorepo TypeScript Backend Project Setup
🚨 DO NOT USE PLAN MODE. This skill IS the plan. Follow the steps exactly as written.
⚠️ Check NX docs for latest conventions: https://nx.dev/docs/getting-started/start-new-project NX evolves quickly. Verify these instructions against current NX best practices before use.
Set up NX monorepo for TypeScript backend projects with maximum type safety, strict linting, 100% test coverage, and AI-optimized project structure.
Contents
- Phase 1: Define Project Context - Gather requirements
- Phase 2: Create NX Workspace - Run NX generator
- Phase 3: Install Dependencies - Add plugins and tools
- Phase 4: Create Initial Projects - Generate packages and apps
- Phase 5: Add Claude Code Integration - Copy AI guardrails and docs
- Phase 6: Enforce Strict Standards - Patch configs
- Phase 7: Establish Coding Conventions - Add skill content
- Phase 8: Activate Git Hooks - Enable pre-commit checks
- Phase 9: Verify Setup - Confirm everything works
- Phase 10: Document Architecture - Optional interview
When This Activates
- User requests: "set up typescript backend project", "create backend project", "initialize typescript backend", "create monorepo"
- Working in an empty or near-empty project folder
- User asks for backend project scaffolding or boilerplate
Template Location
This skill uses a template located at: typescript-backend-project-setup/template/
The template contains only files NX cannot create: Claude Code integration, documentation structure, and git hooks.
Before starting, ask the user for the full path to the claude-skillz repository so you can locate the template.
Setup Procedure
Phase 1: Define Project Context
Ask the user:
- Workspace name - What should this monorepo be called? (lowercase, hyphens ok)
- Domain description - Brief description of what this project does
- Claude-skillz path - What is the full path to the claude-skillz repository on your system?
- Target directory - Where should the project be created? (defaults to current directory)
- Initial packages - List any publishable packages to create (e.g., "query, builder, cli")
- Initial apps - List any applications to create (e.g., "api, docs")
Phase 2: Create NX Workspace
Priority: Commands > Installs > Patch files (last resort)
Run the NX workspace generator:
npx create-nx-workspace@latest [workspace-name] --preset=ts --pm=pnpm --nxCloud=skip --interactive=false
This creates:
nx.json- NX configurationtsconfig.base.json- Base TypeScript configpackage.json- Root package with NX scriptspnpm-workspace.yaml- Workspace definition.gitignore- Standard ignores
Patch .gitignore - Add test-output:
Add test-output to .gitignore (vitest coverage output):
test-output
Checkpoint: Verify nx report shows NX version.
Phase 3: Install Dependencies
Add testing and code quality tools:
# Add NX plugins
nx add @nx/vitest
nx add @nx/eslint
nx add @nx/node # Required for creating applications
# Install testing dependencies
pnpm add -D vitest @vitest/coverage-v8
# Install ESLint dependencies (required for strict config)
pnpm add -D typescript-eslint @nx/eslint-plugin eslint-plugin-functional
# Install git hooks
pnpm add -D husky lint-staged
Adding @nx/vitest. Provides integrated test runner with coverage reporting.
Adding @nx/eslint. Provides consistent linting across all projects.
Adding @nx/node. Required for creating Node.js applications.
Adding husky and lint-staged. Provides pre-commit verification gate.
Phase 4: Create Initial Projects
If user specified packages in Phase 1, create them:
# For each package (publishable library with vitest)
nx g @nx/js:library packages/[pkg-name] --publishable --importPath=@[workspace-name]/[pkg-name] --bundler=tsc --unitTestRunner=vitest
If user specified apps in Phase 1, create them:
# For each app (node application - vitest NOT supported, use none)
nx g @nx/node:application apps/[app-name] --unitTestRunner=none
🚨 IMPORTANT:
@nx/js:librarysupports--unitTestRunner=vitest@nx/node:applicationonly supports--unitTestRunner=jest|none(NOT vitest)
After creating projects, run nx sync to update TypeScript project references.
Phase 5: Add Claude Code Integration
Copy template files (only what NX can't create):
Claude Code Integration:
cp -r [claude-skillz-path]/typescript-backend-project-setup/template/CLAUDE.md [target-directory]/
cp -r [claude-skillz-path]/typ
Установить typescript-backend-project-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл typescript-backend-project-setup?
Sets up NX monorepo for TypeScript backend projects optimized for AI-assisted development. Delegates to NX commands where possible, patches configs as last resort. Triggers on: 'set up typescript backend project', 'create backend project', 'initialize typescript backend', 'create monorepo', or when working in an empty project folder.
Как установить скилл typescript-backend-project-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл typescript-backend-project-setup запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic