fleet-locking-down-claude

Enforce four-flag lockdown on Claude programmatic invocations in Node scripts.

125|42|Updated May 19, 2025
One-click install
npx skills add https://github.com/SocketDev/socket-mcp --skill fleet-locking-down-claude
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fleet-locking-down-claude
Source: https://github.com/SocketDev/socket-mcp/tree/main/.agents/skills/fleet-locking-down-claude
Command: npx skills add https://github.com/SocketDev/socket-mcp --skill fleet-locking-down-claude

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforce a four-flag lockdown for programmatic Claude invocations to prevent surface widening and unsafe tool usage.

Core Features & Use Cases

  • Enforces four critical flags: tools, allowedTools, disallowedTools, and permissionMode: dontAsk across Node scripts and workflow runs.
  • Guides developers to use the lib-stable helper spawnAiAgent to standardize behavior and reduce drift.
  • Helps teams audit Claude integrations in CI/CD, workflows, and automation pipelines.

Quick Start

Use the fleet-locking-down-claude skill to ensure all programmatic Claude calls include the four required flags and default to safe permission mode.

Frequently Asked Questions about fleet-locking-down-claude

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce safe permissions for programmatic Claude invocations in Node scripts?

To enforce safe Claude invocations in Node scripts, apply a four-flag lockdown using tools, allowedTools, disallowedTools, and permissionMode dontAsk to prevent surface widening and unauthorized tool usage across your automation pipelines.

What flags should I set to lock down Claude automation calls in CI/CD workflows?

Locking down Claude automation calls in CI/CD workflows requires setting four critical flags: tools, allowedTools, disallowedTools, and permissionMode set to dontAsk, ensuring standardized and safe agent behavior across pipeline runs.

Why does my Claude workflow integration have inconsistent tool permissions across different runs?

Inconsistent Claude tool permissions across workflow runs occur due to configuration drift when scripts omit the four required lockdown flags, which can be standardized by using the spawnAiAgent helper to enforce uniform permissions.

Does the spawnAiAgent helper support translating permission flags for different AI agent profiles?

Yes, the spawnAiAgent helper supports translating the four lockdown flags per agent using the AI_PROFILE ladder, ensuring that tools, allowedTools, disallowedTools, and permissionMode dontAsk are correctly applied across different programmatic invocations.

When do I need to audit Claude integrations for surface widening in automation pipelines?

You need to audit Claude integrations for surface widening whenever you add programmatic invocations to Node scripts or CI/CD workflows, ensuring no unauthorized tools are accessible and permissionMode defaults safely to dontAsk.