moai-cc-settings-2

Configure Claude Code settings.json and security policies for tool permissions.

1|Updated Jul 28, 2025
One-click install
npx skills add https://github.com/kivo360/quickhooks --skill moai-cc-settings-2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-cc-settings-2
Source: https://github.com/kivo360/quickhooks/tree/main/.claude/skills/moai-cc-settings
Command: npx skills add https://github.com/kivo360/quickhooks --skill moai-cc-settings-2

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides config guidance for settings.json, tool permissions, and environment configuration for Claude Code.

Core Features & Use Cases

  • Permissions: Manage allowed/denied tools and modes.
  • Environment: Configure environment variables and hooks.

Quick Start

Update permissions to restrict dangerous tools and enable essential ones.

Frequently Asked Questions about moai-cc-settings-2

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

FAQPage Schema
How do I configure Claude Code permissions to restrict dangerous tools?

Configure permissions in settings.json by setting tool access modes to ask, allow, or deny for each tool. Restrict dangerous commands by denying them explicitly, enabling only essential tools your workflow requires. This prevents accidental data leakage and system compromise.

What's the best way to set up environment variables securely in Claude Code?

Store sensitive values as environment variable references in settings.json rather than hardcoding secrets directly. Claude Code reads these references at runtime, keeping credentials out of configuration files and reducing exposure risk.

How do I establish security policies for a new Claude Code project?

Create a settings.json file defining permission modes, environment variables, and pre/post-run hooks before initializing sessions. Set explicit tool permission patterns and configure denial rules for dangerous commands upfront to secure the project from the start.

Can I use pre and post-run hooks to enforce security checks in Claude Code?

Yes, configure pre-run and post-run hooks in settings.json to execute validation or logging logic around tool execution. Hooks enforce security policies at session initialization and command completion, preventing unauthorized operations.

What permissions should I deny to prevent data leakage in Claude Code sessions?

Deny broad file system access, unrestricted command execution, and any tools not explicitly required by your workflow. Review the full permission matrix in settings.json and apply deny mode to dangerous commands that could expose secrets or modify protected resources.

Does Claude Code configuration support different permission modes for different tools?

Yes, Claude Code supports granular permission modes—ask, allow, and deny—per tool in settings.json. Assign ask mode to tools requiring explicit approval, allow mode to trusted essential tools, and deny mode to dangerous or unused tools.