GravionLabs/elysion / .agents/skills/ng-create-project
ng-create-project
VerifiedScaffold an Angular 21+ app or workspace with strict TypeScript, Vitest and ESLint/Prettier. Use when starting a new Angular project.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 2.4 KB |
| scripts/New-AngularProject.ps1 | script | 3.7 KB |
| templates/tsconfig.json | config | 656 B |
| templates/vitest.config.ts | script | 211 B |
| templates/vitest.setup.ts | script | 113 B |
SKILL.md
View on GitHub---
name: ng-create-project
description: 'Scaffold an Angular 21+ app or workspace with strict TypeScript, Vitest and ESLint/Prettier. Use when starting a new Angular project.'
disable-model-invocation: true
metadata:
opencode/autoinvoke: 'false'
---
Scaffold a new Angular 21+ project with a production-ready baseline. Paths to `scripts/` and `templates/` are relative to this skill's directory.
## Stack
- **`@angular/cli`** ≥ 21 (global or via `npx @angular/cli@latest`), Node 22 LTS
- **TypeScript** strict mode with Angular compiler options
- **Vitest** with jsdom (replaces Karma/Jest), on by default
- **ESLint + Prettier + Husky** via the `setup-prettier-eslint-husky` skill, on by default (Angular stays on Prettier, not Biome: no Angular template support, no SCSS)
## Steps
1. Ask: project name, selector prefix (default `app`), type **app** or **workspace**, whether to skip Vitest or ESLint
2. Run the scaffold script:
```powershell
pwsh scripts/New-AngularProject.ps1 -ProjectName <Name> [-SelectorPrefix app] [-ProjectType app|workspace] [-SkipVitest] [-SkipEslint] [-OutputDirectory .]
```
It runs `ng new --style scss --ssr false`, replaces `tsconfig.json` with the strict template, installs Vitest with the template config and patches the `test` scripts, then runs the code-quality setup.
3. Verify: `ng build`, `npm test`, `ng serve` (http://localhost:4200)
4. Next steps: components and signal stores via `ng-implementation` (`references/component.md`, `references/signal-store.md`)
## Templates
| File | Purpose |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------- |
| `templates/tsconfig.json` | Strict Angular compiler options: `noImplicitOverride`, `strictTemplates`, `module: preserve`, `target: ES2022` |
| `templates/vitest.config.ts` | jsdom environment, globals, setup file, `include: ['**/*.spec.ts']` |
| `templates/vitest.setup.ts` | Empty setup file, extend as needed |
## Constraints
- Standalone components only; `standalone: true` is the default, never add NgModules
- SCSS for styles; SSR off unless explicitly requested
- Angular 21+ only
Report: summary, project path, verify commands.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |