Skip to content

a5c-ai/babysitter / library/specializations/algorithms-optimization/skills/code-template-manager

code-template-manager

Verified

Manage and generate competitive programming templates

FileKindSize
README.mdmarkdown758 B
SKILL.mdskill md2.1 KB
---
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

1. **I/O Templates**: Fast input/output for each language
2. **Data Structures**: Segment tree, Fenwick tree, DSU, Treap, etc.
3. **Graph Algorithms**: DFS, BFS, Dijkstra, Bellman-Ford, etc.
4. **Number Theory**: Modular arithmetic, prime sieve, FFT/NTT
5. **String Algorithms**: KMP, Z-function, Suffix array, Hashing
6. **Geometry**: Point, Line, Polygon primitives

## Input Schema

```json
{
  "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

```json
{
  "type": "object",
  "properties": {
    "success": { "type": "boolean" },
    "template": { "type": "string" },
    "templates": { "type": "array" },
    "error": { "type": "string" }
  },
  "required": ["success"]
}
```
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall