Skip to main content
Neural UIv2.1.0Documentation
View v1

AI-assisted development

Use the neural-ui skill and optional MCP server to consult real APIs and check your Angular web code.

Choose a skill, then add MCP if useful

Neural AI helps coding agents work with Neural's published APIs. The neural-ui skill supplies task-specific guidance, references and examples. Install it on its own to get started.

The optional local MCP server lets a compatible agent discover components, inspect contracts, retrieve examples and check common usage errors. It serves separate Web and Native catalogues; the skill does not depend on this server.

Use the matching versions

This guide uses neural-ui 0.1.2 with @neural-ui/core 2.0.4 and Angular 22.2.2.

MCP 0.2.2 contains Web Core 2.0.4 and Native 0.1.0-beta.2. It requires Node 22.22.3 or later. Select library web and version 2.0.4 explicitly in tool calls.

Inspect package.json and the lockfile in your application first. For Core 2.0.1, keep Web skill 0.1.0 and MCP 0.2.0 until you intentionally upgrade the application. A version mismatch is reported, not silently converted.

Terminal
node --version
npm ls @neural-ui/core @angular/core

Install the skill in Codex

From your application directory, run the command below with Node and npm available. It installs the complete skill from a pinned GitHub release into .agents/skills/neural-ui; it does not install the Neural component package.

Keep the references and examples alongside SKILL.md. Start a new Codex session if the skill is not listed, then invoke $neural-ui. Review an existing installation before replacing it.

Terminal ยท Codex
npx --yes skills@1.7.2 add https://github.com/PedroMorenoTrujillo/neural-ai/tree/v0.1.2/skills/neural-ui --skill neural-ui --agent codex --copy --yes

Install the skill in Claude Code

For Claude Code, choose the command below instead. The skill is copied to .claude/skills/neural-ui. Invoke /neural-ui with your request. You can install for both agents if you use both.

The skills are MIT licensed and require no Neural account or API key. Your coding agent has its own installation, access and usage requirements.

Terminal ยท Claude Code
npx --yes skills@1.7.2 add https://github.com/PedroMorenoTrujillo/neural-ai/tree/v0.1.2/skills/neural-ui --skill neural-ui --agent claude-code --copy --yes

Give the agent a concrete task

Include the library, installed version, desired interaction and expected result. Ask the agent to consult the installed public contracts before writing bindings. The example below uses Codex; in Claude Code, replace $neural-ui with /neural-ui.

The skill guides the work but does not apply changes by itself. Review the agent's proposed changes and let it compile and test the application.

Prompt
Use $neural-ui with @neural-ui/core@2.0.4.
Create a standalone Angular component with a Save button and a signal
that shows confirmation after activation. Inspect NeuButtonComponent's
public import and output first. Use the public Button entrypoint and its documented output.
Compile the component and test the interaction.

Connect the optional MCP server

Choose the line for your agent. Codex's configuration is per user by default; Claude Code's command below explicitly uses project scope and creates or updates .mcp.json. Review the existing configuration before adding a server with the same name. Your client starts the local stdio process when it connects.

The first download needs npm access. During execution, this server uses bundled references, makes no network requests, does not read your project files and does not write them. A compatible MCP client is required; this is not an HTTP endpoint or a ChatGPT web connector.

Terminal ยท MCP
codex mcp add neural-ui -- npx --yes neural-ui-mcp@0.2.2
claude mcp add --transport stdio --scope project neural-ui -- npx --yes neural-ui-mcp@0.2.2

Inspect the actual Button contract

Ask your agent to call get_api with the arguments below. They are tool arguments, not a terminal command. The response contains the public selector, inputs and outputs of NeuButtonComponent.

Web Button uses the selector button[neu-button] and emits neuClick. Do not reuse Native Button's label input or pressed output. Use list_components to discover another component, search_documentation for guidance and get_example for a complete bundled example.

get_api ยท arguments.json
{
  "library": "web",
  "version": "2.0.4",
  "entrypoint": "@neural-ui/core/button",
  "symbol": "NeuButtonComponent"
}

Detect an incorrect binding

This example intentionally uses the wrong output. Ask your agent to send the complete source as source to validate_usage, with library web, version 2.0.4 and filename ai-example.ts. It should return valid: false and report the unknown output pressed.

The server does not change the code. Ask the agent to apply the documented output from get_api, then run validate_usage again.

ai-example.ts
import { Component, signal } from '@angular/core';
import { NeuButtonComponent } from '@neural-ui/core/button';

@Component({
  selector: 'app-ai-example',
  imports: [NeuButtonComponent],
  template: `
    <button neu-button type="button" (pressed)="save()">Save</button>
    <p aria-live="polite">{{ status() }}</p>
  `,
})
export class AiExample {
  readonly status = signal('No changes saved');

  save(): void {
    this.status.set('Changes saved in this example');
  }
}

Apply the correction and test it

The corrected standalone component below updates its confirmation signal when Save is activated. This example changes local state only. Validate its complete source again; valid: true means that the static validator found no errors within its supported scope.

Mount it in your Angular application, run npm run build and activate the button. Check that the confirmation is announced and that keyboard activation works.

ai-example.ts
import { Component, signal } from '@angular/core';
import { NeuButtonComponent } from '@neural-ui/core/button';

@Component({
  selector: 'app-ai-example',
  imports: [NeuButtonComponent],
  template: `
    <button neu-button type="button" (neuClick)="save()">Save</button>
    <p aria-live="polite">{{ status() }}</p>
  `,
})
export class AiExample {
  readonly status = signal('No changes saved');

  save(): void {
    this.status.set('Changes saved in this example');
  }
}

Understand what is checked

validate_usage checks imports, public symbols, literal inline templates, known inputs and outputs, required inputs and conflicting form ownership. It does not execute the source or resolve the full Angular application.

It does not type-check expression values, external templates or component scopes, and it does not verify layout, accessibility or device behavior. compilationChecked is always false. Keep Angular compilation, application tests and interaction checks in your workflow.

Resolve common setup issues

Skill not listed: check that the whole neural-ui folder is in your agent's skills directory, avoid duplicate installations and start a new session.

MCP does not start: check node --version, npm access on the first run and the client's MCP status. Running npx alone waits for protocol input; connect through the client instead.

Version mismatch: compare your installed package with this guide's baseline and choose the matching skill and MCP release. Do not change application dependencies just to suppress the error.