Agent skill

template-based-generation-template-djankies-claude-configs

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/testing/template-based-generation-template-djankies-claude-configs

SKILL.md

Template-Based Generation Template

Purpose

This template demonstrates structured content generation from templates with placeholder filling and validation.

Use this template when:

  • Generating configuration files
  • Creating boilerplate code
  • Producing structured documents
  • Output follows predictable patterns

Workflow

Phase 1: Gather Requirements

Phase 2: Select Template

Phase 3: Fill Template

Phase 4: Validate Output

Template Selection Logic

Production Configuration:

  • High security requirements
  • Performance optimization
  • Monitoring and logging
  • Secrets management

Development Configuration:

  • Debug mode enabled
  • Verbose logging
  • Local service URLs
  • Mock credentials

Testing Configuration:

  • Test database
  • Reduced timeouts
  • Isolated environment
  • Deterministic behavior

Progressive Disclosure

Core workflow (this file):

  • Requirement gathering
  • Template selection logic
  • Validation rules

Templates (references/):

  • @references/production-config-template.md - Production config example
  • Domain-specific templates loaded when needed

Example Usage

xml
<gather-requirements>
Environment: production
Database: PostgreSQL
Features: [caching, monitoring, rate-limiting]
Region: us-east-1
</gather-requirements>

<select-template>
Selected: Production configuration template
Security level: High
Monitoring: Enabled
</select-template>

<fill-template>
Generating config/production.json:
- Database URL: [REDACTED - from environment]
- Redis URL: [REDACTED - from environment]
- Rate limit: 1000 req/min
- Monitoring: DataDog integration
- Log level: info
</fill-template>

<validate-output>
✓ No plaintext secrets
✓ All required fields present
✓ Valid JSON syntax
✓ Security headers configured
✓ CORS settings appropriate
Configuration ready!
</validate-output>

See Also

  • @references/production-config-template.md - Complete config generation example

Didn't find tool you were looking for?

Be as detailed as possible for better results