AI-First Workflow
Give coding agents exact, versioned NeuralNg contracts before they generate Angular code—then verify the result in the same loop.
ONE SOURCE OF TRUTH
Context is part of the public API
NeuralNg publishes human documentation, compact agent rules and machine-readable contracts together. An agent does not need to guess a class name, selector, model, Forms adapter or package entry point.
README
Complete examples, behavior and accessibility guidance for humans.
llms.txt
Concise generation rules, canonical imports and forbidden assumptions.
MCP contract
Structured selectors, models, Forms support, resources and exports.
Connect the read-only MCP server
The MCP server runs over stdio and is separate from the Angular runtime. It cannot edit files, execute shell commands, access the network or read arbitrary paths; it only exposes committed NeuralNg contracts and theme tools.
MCP helps the agent reason about NeuralNg. It is a development tool and never becomes part of your browser bundle.
The reliable agent loop
Ask the agent to discover before generating. The returned contract is the boundary; project conventions and product requirements complete it.
- 01
Discover
Search by UI goal instead of guessing a component name.
- 02
Inspect
Resolve the exact selector, entry point, models and Forms support.
- 03
Generate
Compose only documented APIs with your application requirements.
- 04
Verify
Run formatting, typecheck, tests and accessibility checks.
Use the smallest useful context
Start with the package-level architecture, then load only the target component's context. Component llms.txt files are exported from the npm package beside their README files, so guidance stays aligned with the installed version.
Prefer MCP resources such as neural://components/button/llms when the client supports MCP. Use package files as the portable fallback.
Write prompts as acceptance criteria
Describe the user outcome, constraints and verification—not an imagined NeuralNg API. Let discovery provide the syntax.
A contract-grounded result
The Button contract yields the canonical class, granular entry point, native loading behavior and semantic clicked output.
Do not stop at valid-looking code
Generation is complete only when the application proves the result.
- Imports resolve from documented secondary entry points
- Angular strict typecheck passes without casts
- No deprecated aliases or invented APIs are present
- Keyboard, labels and focus behavior remain accessible
- SSR code avoids eager browser globals
- Relevant unit and browser tests pass