Angular Philosophies
How I write Angular apps, as instructions an AI coding tool can follow, a guide you can read, and templates you can copy. It
covers Angular 22 with TypeScript 6.0, zoneless and signals, NgRx SignalStore with its toolkit, and an Nx workspace divided by
business domain.
The idea is simple: the advice I would give you while you work, available to your AI tool while it works.
Read it as a website, with an animated explanation for every chapter, in English and in Arabic: tomavic.github.io/angular-philosophies.
Use it with AI
Pick the line for your tool. Each one installs the same rules.
# Claude Code: the skill and an MCP server in one install
/plugin marketplace add tomavic/angular-philosophies
/plugin install angular-philosophies@angular-philosophies
# Any agent (Codex, Copilot, Gemini CLI, and more): a drop-in AGENTS.md at your project root
curl -o AGENTS.md https://raw.githubusercontent.com/tomavic/angular-philosophies/main/ai/AGENTS.md
# Cursor: run from your project root
mkdir -p .cursor/rules && curl -sSL https://github.com/tomavic/angular-philosophies/archive/refs/heads/main.tar.gz | tar -xz --strip-components=3 -C .cursor/rules angular-philosophies-main/ai/cursor
No file access, such as a chat window? Give it llms-full.txt, the whole guide in one file.
Chapter 11 covers every option, including the Claude skill on its own and the MCP server.
If your project has its own rules, write them above the generated ones. The project wins over the guide.
What is in this repository
| Path | What it is |
|---|
docs/ | The 12 chapters. This is the only part written by hand, and the source of everything else. |
templates/ | Working code to copy: stores, a test toolkit, config files. See Copy it. |
site/ | The website: plain HTML, CSS and JavaScript, deployed to GitHub Pages by a workflow. All of it is generated from docs/ and templates/, so it is never edited by hand. |
ai/ | Everything for AI tools: the AGENTS.md file, the Cursor rules, the Claude skill, llms-full.txt (the whole guide in one file) and a small MCP server that serves one chapter at a time. |
.claude-plugin/, .mcp.json | The manifests that make the repo installable as a Claude Code plugin. They have to sit at the root. |
llms.txt | An index of the chapters, for tools that read a URL. |
Everything except docs/ and templates/ is generated from them: each chapter ends with a short list of rules, and those
lists become the AI files. That is why they never disagree with the text.
Last verified against Angular 22.2, @ngrx/signals 22.0 and @ngrx-toolkit/core 22.0 (November 2026). The code in
templates/ compiles under strict TypeScript, its component templates compile with strictTemplates, and its
specs pass on Jest 30. Snippets inside the chapters are excerpts of those files.
The short version
- A signal store is the facade for its page. Components read signals and call methods. They never inject
HttpClient,
never subscribe, and never call load() after a filter changes.
- Reads are resources derived from state. Writes are mutations. Every resource has a default value, so a template never
needs
?..
- One store per view, provided by the component, so state resets when the user leaves.
- Libraries are split by domain and type, and a lint rule decides who may import whom.
- Code stays in the app until a second consumer appears. Then it becomes a library.
- Write an abstraction the third time, not the first.
- Fakes, not stubs. A spec renders the real file and fakes everything it injects, and each test starts from a fresh world.
- Accessibility and right-to-left are part of done: measured contrast, keyboard, logical CSS properties.
Read it