supply-chain-defence:setup
This skill should be used when the user asks to "set up supply chain protection", "install security tools", "configure Socket", "install lockfile-lint", "set up supply chain defence", "fix supply chain issues", or when invoked by the doctor command to remediate missing tools. Handles installation and configuration of Socket.dev CLI, lockfile-lint, LavaMoat (optional), CycloneDX (optional), and project state file initialisation.
What this skill does
# Supply Chain Defence Setup
Install and configure the tools required by the supply-chain-defence plugin.
## Prerequisites
- Node.js 18+ installed
- A package manager (pnpm preferred, npm/yarn supported)
## Detect Package Manager
Check for lockfiles in the project root to determine the active package manager:
| Lock file | Package manager | Install command |
|---|---|---|
| `pnpm-lock.yaml` | pnpm | `pnpm add -g` |
| `package-lock.json` | npm | `npm install -g` |
| `yarn.lock` | yarn | `yarn global add` |
| None | pnpm (default) | `pnpm add -g` |
## Setup Steps
### 1. Socket.dev CLI
Check if `socket` is available:
```bash
socket --version
```
If not installed:
```bash
npm install -g @socketsecurity/cli
```
After installation, verify the wrapper is active:
```bash
socket --version
```
Note: Socket.dev requires an API key for full functionality. Guide the user to https://socket.dev to create an account and configure their key.
### 2. lockfile-lint
Check if available:
```bash
npx lockfile-lint --version
```
If not installed:
```bash
npm install -g lockfile-lint
```
### 3. State File
Create `.claude/agent-foundry/supply-chain-defence.local.json` if it doesn't exist. Read `${CLAUDE_SKILL_DIR}/examples/supply-chain-defence.local.json` for the expected structure. The initial state should be:
```json
{
"detectedPackageManager": "<detected-pm>",
"lastDeepAudit": null,
"blocked": {}
}
```
Ensure `.claude/agent-foundry/` is in `.gitignore`.
### 4. LavaMoat (Optional)
Ask the user if they want to set up LavaMoat for runtime dependency sandboxing. If yes:
```bash
pnpm add -D @lavamoat/allow-scripts
```
Then configure `@lavamoat/allow-scripts` in `package.json` to control which packages can run lifecycle scripts.
### 5. CycloneDX (Optional)
Ask the user if they want SBOM generation capability. If yes:
```bash
npm install -g @cyclonedx/cyclonedx-npm
```
### 6. Gitignore Entries
Ensure these entries exist in `.gitignore`:
```
.claude/agent-foundry/
.claude/*.local.md
.claude/*.local.json
```
## After Setup
Remind the user to:
1. Run `/supply-chain-defence:harden` to configure `.npmrc` and project scripts
2. Restart Claude Code for hooks to activate with the new tools
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.