naksha-init

naksha-init is a command for Claude Code from Adityaraj0421/naksha-studio. It costs 21 tokens per session (2,060 once invoked), scanned A, original, MIT.

A setup wizard that creates or updates Naksha's local project memory. It collects details such as brand settings, framework, and design-token format for other Naksha commands to reuse.

In plain words
What is it for?
Use it when beginning a Naksha project or changing its shared brand, framework, typography, voice, or token settings.
Why use it?
It prevents each command from starting without the project's basic design context and gives later work a consistent starting point.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the naksha plugin — 1 skill, 70 commands, 7 agents, 9 hooks shipped together

Good fit Use it when beginning a Naksha project or changing its shared brand, framework, typography, voice, or token settings.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/adityaraj0421/naksha-studio/naksha-init
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Adityaraj0421/naksha-studio

Made for: Claude Code.

Or install naksha, the plugin that ships this one along with the rest of its 1 skill, 70 commands, 7 agents, 9 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for naksha-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/adityaraj0421/naksha-studio/naksha-init/github.svg)](https://agentmods.dev/commands/adityaraj0421/naksha-studio/naksha-init)
Your own site
<a href="https://agentmods.dev/commands/adityaraj0421/naksha-studio/naksha-init"><img src="https://agentmods.dev/badge/commands/adityaraj0421/naksha-studio/naksha-init/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for naksha-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/adityaraj0421/naksha-studio/naksha-init"><img src="https://agentmods.dev/badge/commands/adityaraj0421/naksha-studio/naksha-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,060 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.02060
Opus 5.5 $0.00008 $0.00824
Sonnet 5.5 $0.00004 $0.00412
Haiku 4.5 $0.00002 $0.00206

Measured 8d ago against content hash 550b638b9ae7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

naksha-init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/naksha-init.md · 205 lines

How it starts

The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/naksha-init $ARGUMENTS

You are the Naksha project setup wizard. Your job is to collect project context interactively and write it to .naksha/project.json so that all other Naksha commands can read it automatically.

IMPORTANT: Run this command from your project root directory. The .naksha/ directory will be created there.

Step 1: Check for Existing Config

Use Bash to check whether .naksha/project.json already exists:

test -f .naksha/project.json && cat .naksha/project.json || echo "NOT_FOUND"
  • If the file exists: display the current values in a readable summary, then ask:

    "A Naksha project is already initialized here. Do you want to update it? (yes/no)"

    • If the user says no: stop and remind them they can run /naksha-status to view context.
    • If the user says yes: continue with the wizard, pre-filling each prompt with the current value so they can keep or change it.
  • If the file does not exist: proceed directly to the wizard.

Capture the existing values (if any) as:

  • existing_name, existing_primary, existing_secondary, existing_font, existing_voice, existing_framework, existing_token_format, existing_created_at
  • existing_schema_version, existing_constraints, existing_component_patterns, existing_browser_findings (v5 fields — will be absent on v4 projects; default to "5", {}, [], [] respectively)

Step 2: Ask 7 Questions (One at a Time)

Ask each question, wait for the answer, then move to the next. If updating, show the current value in brackets so the user can press Enter to keep it.

Q1 — Project Name

"What is your project name? (e.g. Lumina SaaS)[current: {existing_name}]"

Collect as project_name. Required — do not accept empty.

Q2 — Primary Brand Color

"What is your primary brand color? (hex, e.g. #6366F1)[current: {existing_primary}]"

Collect as brand_primary. Required. Must start with # and be 6 or 8 characters including # prefix (e.g. #6366F1 or #6366F1FF).

Read the full file on GitHub · 205 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 205 lines · 21 tokens per session scan A 550b638b9ae7

Subscribe to this mod's changes

naksha-init is a command published in the GitHub repository Adityaraj0421/naksha-studio (349 stars, last pushed 9d ago), licensed MIT. It adds 21 tokens to every session and 2,060 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-19.