Nacl init

From ITSalt/NaCl · View interactive version

Nacl init is an AI agent skill from the GitHub repository ITSalt/NaCl. Initialize or refresh a NaCl project for Codex by creating project configuration, graph infrastructure files, project registry entries, and optional Codex-readable guidance. Use when setting up a new or existing NaCl project, checking install discovery, or when the user says `/nacl-init`.

How to use this skill

Skill file

NaCl Init For Codex

Initialize a project without assuming a specific assistant runtime. Read

../references/migration-rules.md, ../references/verification-vocabulary.md,

../nacl-core/SKILL.md, and

CODE0

before executing this skill.

Packaged Gateway Binding

Use only the initialize sequence in the binding. All Desktop-visible actions

are MCP tools from the installed package: project resolution/migration,

nacl_graph_local_init, nacl_graph_local_start, lifecycle doctor, trusted

identity/bootstrap, health/schema/read evidence, and write-canary/read-back.

Never invoke a checkout-relative lifecycle script or guess the plugin cache

path. Preserve every returned status and structured code.

Invocation Semantics

Project-name input is not mutation approval.

registry writes for the listed project root.

and ask for confirmation again before writing.

Supported options:

nacl-init "Project Name"
nacl-init --dry-run
nacl-init --from=.
nacl init --install-agent-profiles

Use --dry-run for inspection only. Report planned actions as NOT_RUN and do

not call the runner without explicit non-dry-run confirmation.

Workflow

  1. Resolve the explicit absolute root with nacl_project_resolve. Never use a

last-active project. If stable identity is absent, present the generated UUID

and stop for MIGRATE_PROJECT_ID:<uuid> before

nacl_project_migrate_identity. Registry-only recovery uses confirmed

nacl_project_register_root.

  1. Present the exact local lifecycle plan and stop for

INIT_LOCAL_GRAPH:<project_id> before nacl_graph_local_init. Stop for

START_LOCAL_GRAPH:<project_id> before nacl_graph_local_start, then call

nacl_graph_local_doctor.

  1. Derive the trusted worker identity. Bootstrap only a genuinely empty project

after CONFIRM_INITIAL_PROJECT_ADMIN; otherwise require active membership.

  1. If stale, run only the exact fenced SchemaMigration/MIG-GATEWAY recovery

sequence from the binding. Then require verified health, schema status, and

packaged summary read.

  1. Present the canary plan and stop for APPROVE_PROJECT_WRITE and

WRITE_CANARY. Use one stable idempotency key, then perform a separate

read-back.

  1. For optional profiles, call nacl_agent_profiles_plan, display every path,

action, packaged hash, and current hash, then stop. Apply only its current

INSTALL_AGENT_PROFILES:<token>. A differing file is always

BLOCKED/AGENT_PROFILE_CONFLICT and the plugin never overwrites it. Ask the

user to move or back up that file, then replan; no unrelated file is removed

or replaced.

  1. Report VERIFIED only if project, lifecycle, membership, current schema,

read, write, and read-back evidence all verified. Preserve any non-success

status/code without aggregation.

Do not create repo-local skill wrappers. Plugin installation and discovery are

handled by Codex; the separate legacy distribution remains user-level symlinks.

Remote create/connect remains outside the local pilot. Never reinterpret a

remote project as local or provision remote infrastructure from this workflow.

Capabilities

May Do

confirmation.

Must Not Do

explicit confirmation.

Conditional Tools And Actions

confirmation.

Blocked Or Unverified Reporting

unavailable.

Source Comparison

Preserved Methodology

Removed Claude Mechanics

Codex Replacement Behavior

artifacts.

Desktop hosts.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.