Agent skill

segment-tree-builder

Generate customized segment tree implementations

a5c-ai1,642★ · 1 repos on radarProfile →
claude-codecodexcan modify filesMIT
Install
npx skills add a5c-ai/babysitter --skill segment-tree-builder --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 2 KB
Bundled scripts: none
Allowed tools: -Read-Write-Grep-Glob-Edit
Path: library/specializations/algorithms-optimization/skills/segment-tree-builder/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,642
Language: JavaScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Segment Tree Builder Skill ## Purpose Generate customized segment tree implementations for various merge functions, with support for lazy propagation and advanced variants. ## Capabilities - Generate segment tree for custom merge functions - Lazy propagation template generation - Persistent segment tree variants - 2D segment tree generation - Segment tree beats for complex updates - Iterative vs recursive implementations ## Target Processes - segment-tree-implementation - range-query-optimization - data-structure-implementation ## Segment Tree Variants 1. **Basic**: Point update, range query 2. **Lazy Propagation**: Range update, range query 3. **Persistent**: Version history preservation 4. **2D Segment Tree**: 2D range queries 5. **Segment Tree Beats**: Complex range updates (chmin, chmax) 6. **Merge Sort Tree**: Range order statistics ## Input Schema ```json { "type": "object", "properties": { "mergeFunction": { "type": "string" }, "identity": { "type": "string" }, "updateType": { "type": "string", "enum": ["point", "range", "both"] }, "lazyPropagation": { "type": "boolean" }, "variant": { "type": "string", "enum": ["basic", "lazy", "persistent", "2d", "beats"] }, "language":

What's inside
Steps it walks through
  1. Purpose
  2. Capabilities
  3. Target Processes
  4. Segment Tree Variants
  5. Input Schema
  6. Output Schema
Ships with 1 file
  • README.md
More from babysitter
All skills →
About this skill
What does the segment-tree-builder skill do?

Generate customized segment tree implementations

How do I install it?

Run `npx skills add a5c-ai/babysitter --skill segment-tree-builder --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going