Loading...
Loading...
Bootstrap a nao agent for a project — gather warehouse + scope + extra-context info in one round, look up the warehouse-specific config from nao docs, write nao_config.yaml, run nao init + nao sync, set up the LLM key, and generate the first RULES.md. Use when the user has just decided to use nao on a new project. Only for first-time setup; for editing rules, generating tests, or reviewing an existing context, use write-context-rules / create-context-tests / audit-context.
npx skill4agent add getnao/nao setup-contextpip install nao-coreRULES.mdgit@github.com:org/repo.gitnao_config.yamlnao initproject_iddataset_idaccount_idwarehouseschema_namehostportdatabaseschema_namenao_config.yamlnao initnao_config.yamlnao_config.yaml summary
• project: <name>
• warehouse: BigQuery (project=<id>, dataset=<id>, auth=service-account)
• scope: include=["analytics.fct_*", "analytics.dim_*"], exclude=[]
• templates: [columns, preview, description]
• repos: company-dbt (git@github.com:org/company-dbt.git)
• llm: anthropic / claude-sonnet-4-7 (key via ${ANTHROPIC_API_KEY})templatestemplates: [columns, preview, description]how_to_useprofilingai_summaryindexes[columns, preview, description]accessorstemplatesnao initnao_config.yamlRULES.md.naoignoredatabases/repos/docs/semantics/queries/tests/agent/{tools,mcps,skills}/nao synccd <project> # where nao_config.yaml lives — every nao command runs from here
nao syncrepos:RULES.mdwrite-context-rulesnao_config.yamlapi_key: ${ANTHROPIC_API_KEY}.gitignorenao debugAI_APICallError: Not Foundnao chatnao debugnao testhttps://api.anthropic.com/messages/v1/ANTHROPIC_BASE_URLunset ANTHROPIC_BASE_URL ANTHROPIC_API_KEY
nao chat # or debug / testnao chatRULES.mdwrite-context-rulescreate-context-testsaudit-contextadd-semantic-layercdnaonao inittemplates: [columns, preview, description]accessorsrepos:nao_config.yamlnao syncwrite-context-rulesnao_config.yamldatabases:project_name: <project>
databases:
- type: bigquery
name: <connection-name>
project_id: <gcp-project-id>
dataset_id: <dataset>
credentials_path: /path/to/service-account.json # or `sso: true`
include: ['<dataset_pattern>.<table_pattern>'] # e.g. "analytics.fct_*" - use '*' as multiple patterns
exclude: ['<pattern>']
templates: [columns, preview, description]
llm:
provider: anthropic # openai | bedrock | azure | gemini | mistral | ollama
api_key: ${ANTHROPIC_API_KEY}
repos:
- name: <repo-name>
url: git@github.com:<org>/<repo>.git # SSH only