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,

and ../nacl-core/SKILL.md before executing this skill.

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=.

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 project root, project name, tech stack, description, and dry-run

state. If the project name is missing, use the current directory basename.

  1. Inspect existing project guidance, config.yaml, graph-infra/, .mcp.json

and user-level NaCl project registry entries.

  1. Inspect user-level skill discovery through $HOME/.agents/skills. Do not

create repo-local skill wrappers.

  1. Present a mutation plan before modifying files. The plan must list whether it

will create or update config.yaml, graph-infra/, and the user-level

registry.

  1. Stop and ask for explicit confirmation. The confirmation must approve

mutation, not only project metadata.

  1. After confirmation, execute the deterministic runner from the NaCl checkout

that contains this skill:

```sh

sh <NaCl checkout>/skills-for-codex/scripts/nacl-init-project.sh \

--project-root "<absolute project root>" \

--project-name "<project name>" \

--stack "<project stack or unspecified>" \

--description "<project description or empty>" \

--with-graph

```

For dry runs, append --dry-run and do not treat the output as a mutation.

If graph infrastructure is not wanted, omit --with-graph.

  1. Re-check the created artifacts and report every checked artifact with the

closed verification vocabulary.

Do not create repo-local skill wrappers. Skill installation and discovery live

at the user level through symlinks to skills-for-codex/.

Intake scoring seeding (source Migration check G parity): new config.yaml

files inherit the intake: self-diagnosis scoring block from the template

(route_threshold, high_confidence, scores.* — semantics in

../nacl-tl-core/references/intake-scoring.md); on an existing project the

runner appends the block with built-in defaults ONLY when no intake:

section exists — user-tuned values are never overwritten. Report in the final

summary whether intake scoring was seeded or already present.

Graph Mode (local | create | connect)

A project's graph is either LOCAL (a per-project Docker Neo4j) or REMOTE (a shared Neo4j on a

VPS used by several developers). Resolve the mode deterministically before touching graph infra:

node <NaCl checkout>/nacl-tl-core/scripts/resolve-graph-mode.mjs --project-root "<root>" [--scale create|connect]
# → NACL_GRAPH_MODE: mode=local|create|connect

(graph-infra/vps/provision-vps.sh); runs nacl-tl-core/scripts/create-remote.sh

(idempotent (:Project) marker seed, NO local Docker).

(read-only verify gate, NO Docker, NO schema, NO graph writes). A committed graph.mode: remote

auto-routes a teammate here — they must NOT re-initialise from scratch.

Remote access uses a personal mTLS client certificate (the revocable "API key") via a local

tunnel (graph-infra/scripts/install-sidecar.sh); .mcp.json stays on bolt://localhost:<port>.

The registry merge is the tested nacl-tl-core/scripts/register-project.mjs tool. See

../../docs/runbooks/provision-shared-graph-vps.md and connect-to-existing-remote-project.md.

Capabilities

May Do

available.

guidance.

path instead of hand-writing scaffold files from memory.

Must Not Do

explicit confirmation.

Conditional Tools And Actions

merging.

confirmation.

Blocked Or Unverified Reporting

unavailable.

Source Comparison

Preserved Methodology

Removed Claude Mechanics

Codex Replacement Behavior

artifacts.

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.