Configuration & Settings
Relevant source files
The following files were used as context for generating this wiki page:
- cli-tool/templates/javascript-typescript/CLAUDE.md
- cli-tool/components/agents/documentation/docusaurus-expert.md
- cli-tool/components/skills/document-processing/documentation-templates/SKILL.md
- cli-tool/components/skills/development/agent-md-refactor/SKILL.md
- cli-tool/templates/common/CLAUDE.md
- cli-tool/components/agents/expert-advisors/modernization.md
Configuration and settings within the Claude Code Templates project encompass the environment-specific variables, tool-specific parameters, and metadata structures required to govern the behavior of CLI tools, agents, and documentation systems. The system prioritizes the separation of sensitive data from source code, utilizing environment variables and centralized configuration files to maintain project portability and security.
The scope of configuration includes standard development environment settings (e.g., Node.js versions, package managers), AI agent instructions (via CLAUDE.md and related refactor patterns), and documentation site parameters (via Docusaurus or static site generators).
Sources: cli-tool/templates/common/CLAUDE.md, cli-tool/templates/javascript-typescript/CLAUDE.md:6-21, cli-tool/components/agents/documentation/docusaurus-expert.md:12-18
Core Configuration Architecture
The project employs a tiered configuration architecture where universal rules reside in root files while specific operational logic is distributed into specialized directories. This approach follows the principle of "progressive disclosure" to prevent configuration bloat.
Configuration Storage Patterns
Configuration is distributed across several key files and directories:
- Root Configuration: Centralized files like
CLAUDE.mdorpackage.jsondefine universal development guidelines and build scripts. - Environment Variables:
.envfiles (and their.env.exampletemplates) store sensitive or environment-specific data such as API keys and database URLs. - Agent Instructions: The
.claude/directory contains specialized instruction sets for AI agents, organized by topic (e.g., testing, architecture). - MCP Integration:
.mcp.jsonmanages the Model Context Protocol server configurations for seamless tool interaction.
Sources: cli-tool/templates/javascript-typescript/CLAUDE.md:151-155, cli-tool/components/skills/development/agent-md-refactor/SKILL.md:83-93, cli-tool/components/skills/document-processing/documentation-templates/SKILL.md:23-31
Configuration Data Flow
The following diagram illustrates how configuration is parsed and applied during project operations:
The config loader aggregates settings from static files and the runtime environment to provide a unified context for agents and build tools.
Sources: cli-tool/templates/javascript-typescript/CLAUDE.md:144-155, cli-tool/components/skills/development/agent-md-refactor/SKILL.md:112-124
Environment Management
Environment management ensures that the application behaves correctly across development, staging, and production environments. This is primarily handled through standardized variable injection and runtime checks.
Environment Variable Standards
The project defines specific requirements for managing sensitive settings:
| Variable | Description | Security Requirement |
|---|---|---|
DATABASE_URL | Connection string for persistent storage | Never commit to Git |
API_KEY | Credentials for external service access | Use .env.example as template |
PORT | Local server port assignment | Default to 3000 if absent |
Sources: cli-tool/components/skills/document-processing/documentation-templates/SKILL.md:33-35, cli-tool/templates/common/CLAUDE.md:46-50
JavaScript/TypeScript Specifics
For JS/TS environments, configuration is further governed by tool-specific files:
- TypeScript:
tsconfig.jsonenforces strict mode and type safety. - Linting/Formatting:
eslint.config.jsand.prettierrcdefine code quality standards. - Lock Files:
package-lock.jsonoryarn.lockensure deterministic dependency resolution across environments.
Sources: cli-tool/templates/javascript-typescript/CLAUDE.md:86-93, 110-120
AI Agent Configuration (Progressive Disclosure)
The project utilizes a specific "Agent MD Refactor" pattern to manage the configuration of AI instructions. This system prevents CLAUDE.md from becoming monolithic by splitting instructions into logical modules.
Refactoring Workflow
When the main instruction file exceeds manageable limits, it is refactored into a hierarchical structure:
Instruction Categories
Instructions are categorized into topic-specific files under .claude/:
typescript.md: Strict mode rules and type patterns.testing.md: Coverage thresholds and framework preferences.code-style.md: Naming conventions and formatting rules.git-workflow.md: Commit formats and branch strategies.
Sources: cli-tool/components/skills/development/agent-md-refactor/SKILL.md:65-76
Documentation Site Configuration
For projects utilizing Docusaurus, configuration is managed through specific site parameters that control content hierarchy and build performance.
Docusaurus Config Parameters
Key configuration files include:
docusaurus.config.ts: Manages site metadata, plugins, and theme configurations.sidebars.js: Defines the navigation structure and documentation hierarchy.
Performance Targets
Configuration should be optimized to meet the following benchmarks:
- Build Time: Under 30 seconds for standard sites.
- Page Load: Under 3 seconds per page.
- Compliance: WCAG 2.1 AA accessibility standards.
Sources: cli-tool/components/agents/documentation/docusaurus-expert.md:64-70, 78-83
Project Modernization Configuration
The "Modernization Agent" follows a structured 9-step workflow to analyze and configure new project structures. This process begins with Technology Stack Identification, where project manifests (e.g., .csproj, package.json, requirements.txt) are scanned to determine framework versions and dependencies.
Analysis Checkpoints
Configuration analysis is validated at specific checkpoints:
- Step 7: Validation of business logic and architectural analysis.
- Step 8: Selection of recommended tech stacks (e.g., .NET 8+, React, FastAPI).
Sources: cli-tool/components/agents/expert-advisors/modernization.md:120-135, 175-185
Summary
The Configuration & Settings system provides a robust framework for managing project metadata and AI instructions. By utilizing environment variables for security, progressive disclosure for agent instructions, and standardized manifest files for tool configuration, the project maintains a clear separation between logic and parameters. This structure ensures that systems remain scalable, secure, and easy to modernize as project requirements evolve.
Sources: cli-tool/templates/common/CLAUDE.md, cli-tool/components/skills/development/agent-md-refactor/SKILL.md