getnao/nao

build-custom-charts

Create or update browser-rendered custom nao chart modules in agent/charts.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/getnao/nao --skill build-custom-charts

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

build-custom-charts

Use this skill when a project needs a visualization beyond nao's built-in chart types.

Create a chart

Add agent/charts/<type>.js, where <type> starts with a lowercase letter and may then contain lowercase letters, numbers, hyphens, or underscores. It must not collide with a built-in chart type (such as bar, line, pie) or table. Names that break these rules are silently ignored. The file must export a render function:

js
export function render(element, context) {
	const { data, config, colors, theme, libs } = context;

	element.textContent = `${data.length} rows`;
	return () => element.replaceChildren();
}

The context contains:

  • data: rows from the referenced execute_sql result
  • config: chartType, xAxisKey, xAxisType, series, and title
  • colors: nao's default chart palette
  • theme: light or dark
  • libs: the installed React, ReactDOM, and Recharts modules

Use plain JavaScript without JSX. Do not import bare package names; use the libraries from context.libs. A React chart must return a cleanup function that unmounts its root.

Optionally add agent/charts/<type>.json:

json
{
	"name": "Bubble chart",
	"description": "Shows two numeric axes while marker size represents a third measure."
}

The description tells the agent when to select the chart. Without metadata, nao derives a name from the file name.

Constraints

  • Custom charts render only in authenticated, interactive web chats.
  • Stories, PNG exports, automations, MCP embeds, and messaging channels use built-in charts.
  • Keep modules self-contained and treat them as trusted project code.
  • Return cleanup for event listeners, timers, React roots, and other resources.
  • Editing the module reloads active custom charts within a few seconds.
같은 저장소의 Skills

더 많은 Skills

모든 Skills
getnao
커뮤니티

add-semantic-layer

Wire a semantic layer into a nao agent so that metric queries are routed through a single source of truth. Supports dbt MetricFlow (dbt Cloud with Semantic Layer), Snowflake (views or semantic views via MCP), an in-house nao YAML semantic layer, or other tools (via MCP discovery). Installs the right MCP server, updates RULES.md to route metric queries through the semantic layer, and (for the nao YAML option) generates starter metric files. Use after a first round of tests has shown the agent str

설치 수
2
GitHub Stars
1.9천
업데이트
10월 20일
getnao
커뮤니티

audit-context

Diagnose the health of a nao context at any stage of its lifecycle. Use when the user wants a structured review of what's been synced, how RULES.md compares to the target structure, whether every table is documented, whether the data model is MECE, whether tests exist and what their failures reveal, and whether context files are bloated. Outputs a structured audit report with ranked recommendations. Do not use for first-time setup (setup-context) or routine rule writing (write-context-rules).

설치 수
2
GitHub Stars
1.9천
업데이트
10월 20일
getnao
커뮤니티

create-context-tests

Generate a test suite of natural-language → SQL pairs that becomes the quality benchmark for a nao agent, then run it via nao test. Use when the user wants to start measuring agent reliability, extend an existing test suite, or add tests for new metrics. Tests are the only honest answer to "is the context working?". Do not use for writing rules (write-context-rules) or diagnosing failures (audit-context).

설치 수
2
GitHub Stars
1.9천
업데이트
10월 20일
getnao
커뮤니티

deploy-context

Wire a nao project's context folder to a remote nao instance (Cloud or self-hosted) so every push to main automatically runs nao deploy via GitHub Actions. Use when the user has a working local nao project versioned in Git and wants their team's deployed instance to always reflect the latest committed context. Covers nao deploy usage, the GitHub Actions workflow, organization API keys, GitHub Secrets, .naoignore, environment-variable references in naoconfig.yaml, and create-vs-update behavior. D

설치 수
2
GitHub Stars
1.9천
업데이트
10월 20일