Agent skill
config-setup
Sets up configuration files, environment variables, and project configuration. Use when setting up project configuration, environment setup, or configuration management. Creates config files, .env examples, and configuration documentation.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/config-setup
SKILL.md
Config Setup Skill
Instructions
- Analyze configuration requirements from task
- Identify what needs to be configured (database, API keys, environment, etc.)
- Create configuration files
- Set up environment variable management
- Create .env.example file
- Document configuration
- Return implementation with:
- Configuration files
- Environment variable setup
- .env.example file
- Configuration documentation
Examples
Input: "Set up environment configuration" Output:
// config/index.js
require('dotenv').config();
module.exports = {
port: process.env.PORT || 3000,
database: {
host: process.env.DB_HOST || 'localhost',
port: process.env.DB_PORT || 5432,
name: process.env.DB_NAME,
user: process.env.DB_USER,
password: process.env.DB_PASSWORD
},
jwt: {
secret: process.env.JWT_SECRET,
expiresIn: process.env.JWT_EXPIRES_IN || '24h'
},
nodeEnv: process.env.NODE_ENV || 'development'
};
# .env.example
PORT=3000
NODE_ENV=development
DB_HOST=localhost
DB_PORT=5432
DB_NAME=myapp
DB_USER=postgres
DB_PASSWORD=
JWT_SECRET=your-secret-key-here
JWT_EXPIRES_IN=24h
Configuration Areas
- Environment Variables: .env files, environment setup
- Application Config: App configuration, feature flags
- Database Config: Database connection, migration config
- API Config: External API keys, endpoints
- Build Config: Build tools, bundlers, compilers
- Deployment Config: Deployment-specific settings
- Development Config: Local development setup
Best Practices
- No Secrets in Code: Use environment variables for secrets
- .env.example: Provide example file with all required variables
- Documentation: Document all configuration options
- Validation: Validate configuration on startup
- Defaults: Provide sensible defaults where appropriate
- Environment-Specific: Different configs for dev/staging/prod
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?