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-manager3description: Manage and generate competitive programming templates4---5
6# Code Template Manager Skill
7
8## Purpose
9
10Manage and generate competitive programming code templates for various algorithms, data structures, and common patterns across multiple languages.
11
12## Capabilities
13
14- Store and retrieve algorithm templates (C++, Python, Java)
15- Fast I/O templates for different languages
16- Data structure templates (segment tree, DSU, etc.)
17- Template customization and versioning
18- Generate problem-specific boilerplate
19- Maintain personal template library
20
21## Target Processes
22
23- cp-library-creation
24- codeforces-contest
25- algorithm-implementation
26- atcoder-contest
27
28## Template Categories
29
301. **I/O Templates**: Fast input/output for each language
312. **Data Structures**: Segment tree, Fenwick tree, DSU, Treap, etc.
323. **Graph Algorithms**: DFS, BFS, Dijkstra, Bellman-Ford, etc.
334. **Number Theory**: Modular arithmetic, prime sieve, FFT/NTT
345. **String Algorithms**: KMP, Z-function, Suffix array, Hashing
356. **Geometry**: Point, Line, Polygon primitives
36
37## Input Schema
38
39```json
40{
41 "type": "object",
42 "properties": {
43 "action": {
44 "type": "string",
45 "enum": ["get", "list", "create", "update", "generateBoilerplate"]
46 },
47 "templateName": { "type": "string" },
48 "language": { "type": "string", "enum": ["cpp", "python", "java"] },
49 "category": { "type": "string" },
50 "code": { "type": "string" }
51 },
52 "required": ["action"]
53}
54```
55
56## Output Schema
57
58```json
59{
60 "type": "object",
61 "properties": {
62 "success": { "type": "boolean" },
63 "template": { "type": "string" },
64 "templates": { "type": "array" },
65 "error": { "type": "string" }
66 },
67 "required": ["success"]
68}
69```