Skip to content
Back to skills

Nexus Dev

ASecurity

Working in the nexus monorepo. Use when adding or changing code under packages/ or scripts/, running checks and tests, deciding where code belongs, writing tests, or adding a package. Covers layout, commands, conventions, the pre-commit routine and commits in a shared checkout.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 5, 2026
ai-agentstypescriptrustnodegitsecuritydocumentation

Works with

  • cli
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned December 5, 2026

npx -y skills add prasadm1022/hades-vault --skill nexus-dev --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nexus Dev?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nexus Dev
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/prasadm1022-nexus-dev/badge)](https://www.skillsdirectory.com/skills/prasadm1022-nexus-dev)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nexus-dev
description: Working in the nexus monorepo. Use when adding or changing code under packages/ or scripts/, running checks and tests, deciding where code belongs, writing tests, or adding a package. Covers layout, commands, conventions, the pre-commit routine and commits in a shared checkout.
license: MIT
version: 0.1.0
---

# Developing in nexus

`CLAUDE.md` is the source of truth. Read it first; this is the working checklist.

## Layout

| Path                                       | Holds                                                                           |
| ------------------------------------------ | ------------------------------------------------------------------------------- |
| `packages/schemas`                         | zod schemas and port interfaces (`src/ports.ts`); contracts for everything else |
| `packages/vault`, `packages/vaultd`        | Trust kernel: keys and storage; tokens, approvals, receipts, egress, gateway    |
| `packages/runtime`                         | Agent loop, providers, router, MCP pool, built-in tools                         |
| `packages/skills`, `packages/packs`        | SKILL.md codec, scanner, signing, registry; department packs                    |
| `packages/org`                             | Departments, employees, teams, charters, SOP engine, budgets                    |
| `packages/learning`, `packages/memory`     | Traces, lessons, graduation; memory                                             |
| `packages/finance`, `packages/trading`     | Double-entry ledger; paper trading (never live)                                 |
| `packages/connectors`, `packages/adapters` | Connector SDK; coding-agent adapters and intake server                          |
| `packages/cli`, `packages/console`         | `nexus` command; approval console                                               |
| `packages/evals`                           | Gate suites and the offline demo                                                |
| `scripts/`, `tickets/`, `knowledge/`       | Tooling, the build plan, documentation                                          |

## Commands

```
npm run check                       # format, lint, typecheck, test, license, tickets
npm run typecheck -- vault          # one package
npx vitest run packages/vault       # one package's tests
npx eslint packages/vault && npx prettier --check packages/vault
npm run tickets -- next --area packages/vault
```

## Conventions

- Node 26 LTS (24.11 or newer works), ESM only, TypeScript strict (including `noUncheckedIndexedAccess`).
- Import other packages only as `@nexus/<name>`. Lint rejects `@nexus/*/*` and paths into another package's `src`.
- Depend on port interfaces from `@nexus/schemas`, not on another package's implementation. The CLI wires real ones; tests use fakes.
- Validate every external input with zod: files, sockets, model output, tool output, CLI flags. Fail closed.
- Money is a decimal string of integer minor units. Never floats.
- Hash structured data with `canonicalJson`; bind receipts with `hashArgs(tool, args)`. Do not write another hasher.
- Relative imports have no extension. Prefer small modules. Comment the why, not the what.
- Errors are typed with stable codes. Messages never contain secrets, tokens or raw arguments.
- Tests live in `packages/<name>/test/*.test.ts`. They are deterministic, use no network, no real sleeps over 50 ms, remove their temp dirs, and cover failure and abuse cases. Use the scripted provider, fake clocks and fake ports.
- Every package has a `README.md`: what works, what is simulated, known gaps, how to run tests, a Decisions section.

## Before every commit

```
npm run typecheck -- <pkg>
npx vitest run packages/<pkg>
npx eslint packages/<pkg>
npx prettier --write packages/<pkg> <your ticket files>
```

Errors in other packages while others are mid-edit are not yours.

## Git in a shared checkout

- Commit only your own paths: `scripts/agent-commit.sh "feat(<pkg>): short message" packages/<pkg> tickets/HV-0xx-*.md`.
- One short line, conventional prefix (`feat`, `fix`, `docs`, `test`, `chore`), no body, no trailers. The script adds the trailers.
- Never `git add -A`, stash, checkout, reset or rebase. Do not push.

## Adding a package

1. Create `packages/<name>/` with `package.json` (copy a sibling: name `@nexus/<name>`, `private`, `type: module`, `license: MIT`, `exports: { ".": "./src/index.ts" }`), `tsconfig.json` (extends `../../tsconfig.base.json`, includes `src` and `test`), `src/index.ts`, `test/` and `README.md`.
2. Tooling finds it by itself: vitest aliases `@nexus/<name>` once `src/index.ts` exists, and the typecheck script picks up any package with a `tsconfig.json`.
3. Registering a workspace changes the root `package-lock.json`. In a shared checkout, ask the orchestrator.
4. New dependencies are MIT, Apache-2.0, BSD or ISC only: `flock /tmp/hv-npm.lock npm install <name> -w @nexus/<pkg>`. Avoid them where you can.
5. Add the package to the table in `CLAUDE.md` and `knowledge/architecture/overview.md`, and open a ticket for it.

## When something you need is not built yet

Code against the port in `packages/schemas/src/ports.ts` with a local fake, and note the gap in your report. Do not change `@nexus/schemas` from a work package: define a local type and report the need.

## Related skills

`nexus-tickets` for the ticket workflow, `nexus-security-invariants` before touching anything in the trust kernel, `nexus-license-policy` before reusing outside code.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.