← Catalog

@nvidia-elements/pi

Native Pi extension for NVIDIA Elements tools, validation, API discovery, examples, and agent guidance.

Package

Install

Install with PiG

pig install npm:@nvidia-elements/pi

Install with Pi

pi install npm:@nvidia-elements/pi
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "skills": [
    "./dist/skills"
  ],
  "prompts": [
    "./dist/prompts"
  ],
  "extensions": [
    "./dist/index.js"
  ]
}

README

Written by the package's publisher, shown as published in version 1.0.6 (README.md). PiG does not review it.

@nvidia-elements/pi

Native Pi extension for the NVIDIA Elements Design System. It provides structured Elements API discovery, examples, design tokens, icons, package information, project checks, and template validation directly to Pi agents.

Install

Install globally for every Pi project:

pi install npm:@nvidia-elements/pi

Install for the current project:

pi install -l npm:@nvidia-elements/pi

The package declares its Pi-specific elements-pi skill and workflow prompts as native Pi package resources. The distinct name lets it coexist with a project or global elements skill.

Use the skill command to load the complete Elements workflow explicitly:

/skill:elements-pi

Workflow prompts

CommandWorkflow
/elements-artifactCreate a standalone Elements HTML artifact.
/elements-doctorCheck an Elements development setup.
/elements-create-projectCreate an Elements starter project.
/elements-migrateMigrate deprecated Elements packages and APIs.

Each command accepts an optional request, such as /elements-artifact create a settings page.

Tools

ToolDescription
nvidia_elements_api_listList Elements components and attribute APIs.
nvidia_elements_api_getGet component or attribute API documentation.
nvidia_elements_api_validateCheck HTML and JSON with Elements lint rules.
nvidia_elements_api_imports_getGet ESM imports for an Elements template.
nvidia_elements_api_tokens_listList semantic design tokens.
nvidia_elements_api_icons_listList icon names.
nvidia_elements_examples_listList known patterns and examples.
nvidia_elements_examples_getGet a complete example template.
nvidia_elements_packages_listList current Elements package versions.
nvidia_elements_packages_getGet package integration details.
nvidia_elements_packages_changelogs_getGet package changelog entries.
nvidia_elements_project_validateCheck Elements project configuration.

The nvidia_elements_ prefix identifies this package's tools and reduces naming conflicts with other Pi packages.

Pi exposes these tools directly and makes them available to codemode scripts. Direct calls return readable text. codemode calls receive { status, message, result }; use format: "json" on tools that support it when a script needs structured data.

Automatic validation

Automatic validation runs by default after Pi edits supported HTML files. Turn it off when starting Pi:

pi --no-elements-auto-validate

You can manage it for the current session:

/elements-auto-validate off
/elements-auto-validate on
/elements-auto-validate status

When enabled, the extension runs Elements validation after successful Pi edit and write calls for .html and .htm files. It appends the validation summary and diagnostics to the tool result. When codemode calls those tools, the extension also adds the validation result to the parent codemode result so the agent sees it even if the script omits the nested tool output.

Manage

pi update npm:@nvidia-elements/pi
pi remove npm:@nvidia-elements/pi
pi config

Pi extensions execute with the user's system permissions. Install packages only from trusted sources and use Pi project trust for project-local resources.

Use @nvidia-elements/cli for interactive shell commands, project creation, project setup, and MCP integrations. This package invokes the same internal Elements tools directly through Pi's extension API; it does not start the CLI or an MCP server.