| name | code-template-manager |
| description | Manage and generate competitive programming templates |
| allowed-tools | ["Bash","Read","Write","Grep","Glob","Edit"] |
| graph | {"domains":["domain:computer-science"],"specializations":["specialization:algorithms-optimization"],"skillAreas":["skill-area:dynamic-programming","skill-area:graph-algorithms","skill-area:polyglot-development"],"roles":["role:backend-engineer","role:computational-scientist"],"workflows":["workflow:competitive-analysis"]} |
Code Template Manager Skill
Purpose
Manage and generate competitive programming code templates for various algorithms, data structures, and common patterns across multiple languages.
Capabilities
- Store and retrieve algorithm templates (C++, Python, Java)
- Fast I/O templates for different languages
- Data structure templates (segment tree, DSU, etc.)
- Template customization and versioning
- Generate problem-specific boilerplate
- Maintain personal template library
Target Processes
- cp-library-creation
- codeforces-contest
- algorithm-implementation
- atcoder-contest
Template Categories
- I/O Templates: Fast input/output for each language
- Data Structures: Segment tree, Fenwick tree, DSU, Treap, etc.
- Graph Algorithms: DFS, BFS, Dijkstra, Bellman-Ford, etc.
- Number Theory: Modular arithmetic, prime sieve, FFT/NTT
- String Algorithms: KMP, Z-function, Suffix array, Hashing
- Geometry: Point, Line, Polygon primitives
Input Schema
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": ["get", "list", "create", "update", "generateBoilerplate"]
},
"templateName": { "type": "string" },
"language": { "type": "string", "enum": ["cpp", "python", "java"] },
"category": {
Output Schema
{
"type": "object",
"properties": {
"success": { "type": "boolean" },
"template": { "type": "string" },
"templates": { "type": "array" },
"error": { "type": "string" }
},
"required": ["success"]
}