Back to list
lexicalninja

config-setup

by lexicalninja

A collection of Cursor subagents and Claude skills to help build things together

0🍴 0📅 Jan 16, 2026

SKILL.md


name: config-setup description: 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.

Config Setup Skill

Instructions

  1. Analyze configuration requirements from task
  2. Identify what needs to be configured (database, API keys, environment, etc.)
  3. Create configuration files
  4. Set up environment variable management
  5. Create .env.example file
  6. Document configuration
  7. 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

Score

Total Score

55/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon