NaCl / analyst-tool
CLAUDE.md27 starsChanged 5 months agoMITView on GitHub
Status: Active development — distributed with the NaCl framework Project Name: NaCl Analyst Tool Description: Local web application that wraps Excalidraw and lets a business analyst browse .excalidraw board files, edit them in a full-featured canvas, and trigger NaCl skills (regenerate from Neo4j graph / sync back to graph). Replaces the legacy excalidraw and excalidraw-room Docker containers with a single integrated tool that understands the NaCl board lifecycle. Goal: Provide BA/SA practitioners with a single, deterministic interface for inspecting, editing,…
- Installs packages
In this repository60 other files it gives its agents.
- docs/agents.mdAGENTS.md
- nacl-ba-analyzeSkill
- nacl-ba-contextSkill
- nacl-ba-entitiesSkill
- nacl-ba-from-boardSkill
- nacl-ba-fullSkill
- nacl-ba-glossarySkill
- nacl-ba-handoffSkill
- nacl-ba-import-docSkill
- nacl-ba-processSkill
- nacl-ba-rolesSkill
- nacl-ba-rulesSkill
- nacl-ba-syncSkill
- nacl-ba-validateSkill
- nacl-ba-workflowSkill
- nacl-coreSkill
- nacl-goalSkill
- nacl-initSkill
- nacl-migrate-baSkill
- nacl-migrate-saSkill
- nacl-migrateSkill
- nacl-postmortemSkill
- nacl-publishSkill
- nacl-renderSkill
- nacl-sa-architectSkill
- nacl-sa-domainSkill
- nacl-sa-featureSkill
- nacl-sa-finalizeSkill
- nacl-sa-flagsSkill
- nacl-sa-fullSkill
- nacl-sa-rolesSkill
- nacl-sa-ucSkill
- nacl-sa-uiSkill
- nacl-sa-validateSkill
- nacl-tl-conductorSkill
- nacl-tl-deliverSkill
- nacl-tl-deploySkill
- nacl-tl-dev-beSkill
- nacl-tl-dev-feSkill
- nacl-tl-devSkill
- nacl-tl-diagnoseSkill
- nacl-tl-docsSkill
- nacl-tl-fixSkill
- nacl-tl-fullSkill
- nacl-tl-hotfixSkill
- nacl-tl-intakeSkill
- nacl-tl-nextSkill
- nacl-tl-planSkill
- nacl-tl-qaSkill
- nacl-tl-reconcileSkill
- nacl-tl-regression-testSkill
- nacl-tl-releaseSkill
- nacl-tl-reopenedSkill
- nacl-tl-reviewSkill
- nacl-tl-shipSkill
- nacl-tl-statusSkill
- nacl-tl-stubsSkill
- nacl-tl-syncSkill
- nacl-tl-verify-codeSkill
- nacl-tl-verifySkill
The file
We split this CLAUDE.md into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
All graph mutations route through deterministic renderers — never hand-written Excalidraw JSON in production paths.
- Very specific: line 46
Write failing test (server: Node's built-in test runner via node --test.
- Distinctive: line 52
Update affected docs/specs BEFORE touching code.
- Distinctive: line 53
Document root cause in commit.
- Very specific: line 61
Commit, push, open PR (or direct push per config.yaml).
- Distinctive: line 74
All bug fixes that touch documented behaviour must update specs/docs BEFORE touching code.
- Very specific: line 85
For all L1+: Run /nacl-tl-fix first. It auto-detects scope, classifies, updates docs.
- Very specific: line 119
Run a programmatic claude -p call without the itsalt-pinch Pacer wrapper.
- Distinctive: line 120
Commit code that bypasses deterministic renderers (no hand-written Excalidraw JSON in production paths).
- Distinctive: line 162
If anything is found, scrub before tagging.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
NaCl Analyst Tool
Status: Active development — distributed with the NaCl framework
Project Overview
Project Name: NaCl Analyst Tool
Description: Local web application that wraps Excalidraw and lets a business analyst browse .excalidraw board files, edit them in a full-featured canvas, and trigger NaCl skills (regenerate from Neo4j graph / sync back to graph). Replaces the legacy excalidraw and excalidraw-room Docker containers with a single integrated tool that understands the NaCl board lifecycle.
Goal: Provide BA/SA practitioners with a single, deterministic interface for inspecting, editing, and round-tripping board state with the underlying Neo4j graph — without depending on the public Excalidraw cloud.
Tech Stack:
- Runtime: Node.js 20+
- Backend (
server/): Fastify (TypeScript), invokes the localclaudeCLI via subprocess (peritsalt-pinchPacer) - Frontend (
web/): Vite + React + Excalidraw editor - Tests (
e2e/): Playwright end-to-end suite - Storage: Neo4j (read/write graph), local filesystem (boards on disk)
- Distribution: npm workspaces; published as
nacl-analyst-toolCLI binary - Project registry:
~/.nacl/projects.json— analyst picks the active project; tool resolves boards/graph fromconfig.yamlof that project
Modules:
server— Fastify API + WebSocket bridge; orchestrates renderers, skill invocations, project registryweb— Excalidraw-based UI; project picker, board navigator, editor canvase2e— Playwright suite covering board CRUD, skill triggers, project switching
Architecture invariants:
- The tool is invoked from the analyst's machine; it must not be containerised (it shells out to local
claude). - All graph mutations route through deterministic renderers — never hand-written Excalidraw JSON in production paths.
- Project registry (
~/.nacl/projects.json) is the single source of truth for project root + active project. - Graph infrastructure is per-project: each project has its own
graph-infra/and Neo4j container.
Primary Language: English (CLAUDE.md, code, docs), Russian (user-facing console output is allowed)
Development Workflow
This tool follows a deterministic, test-first lifecycle:
- Specification updates (
/nacl-sa-*)- Tool features that affect graph schema or skill contracts are specified before implementation.
- Renderers are built from explicit Cypher → Excalidraw transforms — never approximated.
- TDD development (
/nacl-tl-dev-be,/nacl-tl-dev-fe)- Write failing test (server: Node's built-in test runner via
node --test; web has no unit-test suite yet; e2e: Playwright). - Implement minimal code to pass.
- Refactor with tests green.
- Write failing test (server: Node's built-in test runner via
- Bug fixes (
/nacl-tl-fix)- Classify by scope (L0/L1/L2/L3).
- Update affected docs/specs BEFORE touching code.
- Document root cause in commit.
- Verification (
/nacl-tl-verify)- Static code analysis (
/nacl-tl-verify-code). - End-to-end testing (
/nacl-tl-qa) for UI changes. - Manual browser check for UI features (start
npm run dev, exercise the path).
- Static code analysis (
- Ship (
/nacl-tl-ship)- Commit, push, open PR (or direct push per
config.yaml). - Never auto-switch to main.
nacl-tl-shipstays on the current branch.
- Commit, push, open PR (or direct push per
- Release (
/nacl-tl-release)- Bundled with NaCl framework releases.
- Bump
package.jsonversion, tag, changelog entry underdocs/releases/<ver>-<slug>/.
Bug Fix Protocol
Rule: Spec First, Code Second
All bug fixes that touch documented behaviour must update specs/docs BEFORE touching code.
Classification
| Level | Scope | Owner | Before Code | Update Docs |
| L0 | Single line typo, lint fix | Dev | Review code | No |
| L1 | Single endpoint or single component | Dev | /nacl-tl-fix updates affected component/endpoint doc | Yes: component/endpoint |
| L2 | Cross-module (server ↔ web ↔ e2e) | Strategist | /nacl-tl-fix updates contract docs | Yes: API contract / shared types |
| L3 | Architecture (renderers, project registry, distribution) | Strategist + maintainer | /nacl-tl-fix updates architecture/ADR | Yes: architecture |
For all L1+: Run /nacl-tl-fix first. It auto-detects scope, classifies, updates docs. Then implement and test. Commit references the fix level and root cause.
Regression test ordering (TDD for bug fixes): /nacl-tl-fix writes the regression test BEFORE the fix is applied — the test is authored by /nacl-tl-regression-test (a separate sub-agent, by design — the fix author cannot honestly grade its own fix), runs RED against the broken code, then GREEN after the fix. The skill never claims FIX COMPLETE if no test transitioned RED→GREEN; it reports FIX APPLIED — UNVERIFIED instead and points the user at the right follow-up.
Skill Routing
Invoke skill based on situation:
| User Says | Skill | Why |
| "Initialize the project" | /nacl-init | Create CLAUDE.md, config.yaml, graph-infra, register in ~/.nacl/projects.json |
| "There's a bug: ..." | /nacl-tl-fix | Spec-first: classify level, update docs, then fix code (writes regression test via /nacl-tl-regression-test before applying the fix) |
| "Write a regression test for this bug" | /nacl-tl-regression-test | Independent test author. Writes a test against broken code, must be RED. Touches only test files. Used by /nacl-tl-fix Step 6d, but also callable directly |
| "Add a feature to the tool: ..." | /nacl-sa-feature | Incremental SA: impact analysis, spec change, update plan |
| "Implement this BE task" | /nacl-tl-dev-be | TDD backend (Fastify) work for a planned task |
| "Implement this FE task" | /nacl-tl-dev-fe | TDD frontend (Vite/React) work for a planned task |
| "Implement this TECH task" | /nacl-tl-dev | Infrastructure / build / CI / migration work |
| "Verify this task" | /nacl-tl-verify | Code analysis + E2E + report |
| "Ship the change" | /nacl-tl-ship | Commit, push, open PR — stays on current branch |
| "Cut a release" | /nacl-tl-release | Bump version, tag, changelog under docs/releases/ |
| "Hotfix to main" | /nacl-tl-hotfix | Stash, branch from main, fix, PR — explicit user invocation only |
| "Project health check" | /nacl-tl-diagnose | Analyze git, docs, code drift |
| "What's next?" | /nacl-tl-next | Recommend the next task |
| "Show status" | /nacl-tl-status | Report progress |
For existing features:
- Bug fix →
/nacl-tl-fix - Add feature →
/nacl-sa-feature - Refactor →
/nacl-tl-dev(TECH task)
Never:
- Auto-switch branches in
/nacl-tl-ship. Hotfix is a separate, user-initiated skill. - Run a programmatic
claude -pcall without theitsalt-pinchPacer wrapper. - Commit code that bypasses deterministic renderers (no hand-written Excalidraw JSON in production paths).
- Leak client project names, local paths, or operational anecdotes into this public repo. Run a canary grep before every release.
Documentation Rules
Rule 1: Releases Bundle Docs + Telegram Draft
Every release ships:
- Updated
docs/for any feature/bug-fix that affected behaviour - Telegram post draft + release notes under
docs/releases/<ver>-<slug>/ - Unshipped scope must NOT leak into the release notes
Rule 2: Release Drafts Directory
docs/releases/_drafts/ accumulates fragments between releases. The next release-notes step absorbs them and clears the directory. Convention: empty between releases.
Rule 3: Renderers Are Source of Truth for Boards
Excalidraw board content is generated by the deterministic renderer pipeline. Manual edits to .excalidraw files go out of sync immediately and must not be checked into the framework's reference artifacts. User-edited boards (in their own projects) are theirs to own.
Rule 4: Commit Messages
Conventional Commits:
feat(analyst-tool): brief summary
- What changed
- Why (root cause / design reason)
- Fixes: L<level> + which docs were updated
Co-Authored-By: Claude <noreply@anthropic.com>Rule 5: Public Repo Hygiene
This project ships in the public NaCl repo. Before every release run a canary grep for:
- Client project names (e.g., real customer names)
- Local absolute paths (
/Users/...) - Dump metadata, internal anecdotes, dump files
If anything is found, scrub before tagging.
Rule 6: Tests Are Article-Publishable
Benchmarks and tests for non-trivial changes must be reproducible, recordable, and publishable: dual-terminal, N iterations, stated hypotheses — not subjective checks.
Project Structure
bin/— CLI entry points (nacl-analyst-tool)server/— Fastify backend workspaceweb/— Vite + React frontend workspacee2e/— Playwright end-to-end testsbench/— Performance benchmarksscripts/— Maintenance scripts (e.g.,migrate-meta.ts)graph-infra/— Per-project Neo4j stack (created by/nacl-init)config.yaml— Project configuration.mcp.json— MCP server configuration (Neo4j)
References
- Neo4j Bolt:
bolt://localhost:3608(login:neo4j/neo4j_graph_dev) - Neo4j Browser: http://localhost:3595
- Dev backend: http://127.0.0.1:3583
- Dev frontend: http://127.0.0.1:3582
- Project registry:
~/.nacl/projects.json - Distribution: bundled with the NaCl framework, installable via
npm linkornpm install -g .
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

