Agent skill
generate-boilerplate
Create starter code from templates. Use when setting up new modules or test files.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/generate-boilerplate
SKILL.md
Generate Boilerplate
Create standard starter code templates for new modules, test files, and configuration files to accelerate development.
When to Use
- Creating new modules or packages
- Setting up test file structure
- Initializing configuration files
- Standardizing code structure across project
Quick Reference
# Generate from templates
cat > new_module.py << 'EOF'
"""Module docstring describing purpose."""
def main():
"""Main function."""
pass
if __name__ == "__main__":
main()
EOF
# Or use template generator
python3 << 'PYSCRIPT'
import os
def generate_module_boilerplate(name):
return f'"""Module {name}."""\n\nclass {name.title()}:\n pass\n'
PYSCRIPT
Workflow
- Select template type: Module, test, config, etc.
- Customize parameters: Name, class structure, default content
- Generate file: Create from template with substitutions
- Add to project: Place in correct location
- Validate structure: Ensure imports and basic structure work
Output Format
Generated boilerplate:
- File(s) created with correct naming
- Standard header comments and docstrings
- Basic structure (class/function stubs)
- Import statements included
- Ready to compile/run (no syntax errors)
References
- See templates/ directories in skill folders for examples
- See
generate-docstringsskill for docstring templates - See CLAUDE.md > Code Standards for project conventions
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?