claude-code-best-practices
Verified Safeby roberto-delfiore
Overview
This repository provides a comprehensive guide and configuration examples for leveraging Claude Code's advanced features, including Model Context Protocol (MCP) servers, sub-agents, hooks, and CI/CD integration, specifically tailored for professional use in enterprise environments.
Installation
npx -y @modelcontextprotocol/server-postgresEnvironment Variables
- ANTHROPIC_API_KEY
- DATABASE_URL
- GITHUB_TOKEN
- SLACK_BOT_TOKEN
- BRAVE_API_KEY
- SLACK_WEBHOOK
- INTERNAL_API_URL
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_REGION
- GCP_PROJECT_ID
- GCP_REGION
- GCP_CREDENTIALS
Security Notes
The provided source code is primarily documentation for Claude Code best practices, which heavily emphasizes a layered security model including user approval, sandboxing (filesystem and network isolation), and a robust permission system (allow/deny lists). It explicitly warns against hardcoded secrets, dangerous shell commands (e.g., `rm -rf`, `curl | bash`), and unauthorized file access, and suggests strict containerization for maximum security. There is no `eval`, obfuscation, or direct malicious code in the provided documentation snippets; rather, the documentation outlines how to configure for secure operation. The strong emphasis on security in the documentation is a significant positive.
Similar Servers
claude-code-subagents-collection
The repository serves as a comprehensive marketplace and registry for Claude Code, offering a wide array of specialized AI agents, commands, hooks, and a catalog of external Model Context Protocol (MCP) servers to enhance development workflows.
claude-code-mcp
Acts as an MCP server to enable LLMs to run Claude Code CLI in one-shot mode, bypassing permissions for complex coding, file system, Git, and terminal operations.
claude-codex-settings
A comprehensive toolkit and configuration for developing Claude Code plugins, integrating various external services and APIs, and enhancing AI-assisted coding workflows.
consult-llm-mcp
An MCP server that allows AI agents like Claude Code to consult stronger, more capable AI models (e.g., GPT-5.2, Gemini 3.0 Pro) for complex code analysis, debugging, and architectural advice.