Agent skill
template-based-generation-template
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/template-based-generation-template
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
<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
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?