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": { "type": "string" },
"code": { "type": "string" }
},
"required": ["action"]
}
Output Schema
{
"type": "object",
"properties": {
"success": { "type": "boolean" },
"template": { "type": "string" },
"templates": { "type": "array" },
"error": { "type": "string" }
},
"required": ["success"]
}
1---
2name: code-template-manager
3description: Manage and generate competitive programming templates
4allowed-tools:
5 - Bash
6 - Read
7 - Write
8 - Grep
9 - Glob
10 - Edit
11graph:
12 domains: [domain:computer-science]
13 specializations: [specialization:algorithms-optimization]
14 skillAreas: [skill-area:dynamic-programming, skill-area:graph-algorithms, skill-area:polyglot-development]
15 roles: [role:backend-engineer, role:computational-scientist]
16 workflows: [workflow:competitive-analysis]
17metadata:
18 source: https://skillmd.com/skills/a5c-ai/code-template-manager
19---
20
21# Code Template Manager Skill
22
23## Purpose
24
25Manage and generate competitive programming code templates for various algorithms, data structures, and common patterns across multiple languages.
26
27## Capabilities
28
29- Store and retrieve algorithm templates (C++, Python, Java)
30- Fast I/O templates for different languages
31- Data structure templates (segment tree, DSU, etc.)
32- Template customization and versioning
33- Generate problem-specific boilerplate
34- Maintain personal template library
35
36## Target Processes
37
38- cp-library-creation
39- codeforces-contest
40- algorithm-implementation
41- atcoder-contest
42
43## Template Categories
44
451. **I/O Templates**: Fast input/output for each language
462. **Data Structures**: Segment tree, Fenwick tree, DSU, Treap, etc.
473. **Graph Algorithms**: DFS, BFS, Dijkstra, Bellman-Ford, etc.
484. **Number Theory**: Modular arithmetic, prime sieve, FFT/NTT
495. **String Algorithms**: KMP, Z-function, Suffix array, Hashing
506. **Geometry**: Point, Line, Polygon primitives
51
52## Input Schema
53
54```json
55{
56 "type": "object",
57 "properties": {
58 "action": {
59 "type": "string",
60 "enum": ["get", "list", "create", "update", "generateBoilerplate"]
61 },
62 "templateName": { "type": "string" },
63 "language": { "type": "string", "enum": ["cpp", "python", "java"] },
64 "category": { "type": "string" },
65 "code": { "type": "string" }
66 },
67 "required": ["action"]
68}
69```
70
71## Output Schema
72
73```json
74{
75 "type": "object",
76 "properties": {
77 "success": { "type": "boolean" },
78 "template": { "type": "string" },
79 "templates": { "type": "array" },
80 "error": { "type": "string" }
81 },
82 "required": ["success"]
83}
84```