data-structure-selector

Select optimal data structure based on operation requirements

509 stars

Best use case

data-structure-selector is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Select optimal data structure based on operation requirements

Teams using data-structure-selector should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/data-structure-selector/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/algorithms-optimization/skills/data-structure-selector/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/data-structure-selector/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How data-structure-selector Compares

Feature / Agentdata-structure-selectorStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Select optimal data structure based on operation requirements

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Data Structure Selector Skill

## Purpose

Select the optimal data structure based on required operations, their frequencies, and time/space constraints.

## Capabilities

- Analyze required operations (insert, delete, query, update)
- Match to optimal data structure
- Consider time/space trade-offs
- Suggest augmentations for custom requirements
- Compare alternatives with complexity analysis

## Target Processes

- data-structure-implementation
- algorithm-implementation
- complexity-optimization

## Selection Framework

### Operation Analysis
1. What operations are needed?
2. What are the frequency/priority of each operation?
3. What are the constraints (N, Q, time limit)?
4. Is persistence needed?
5. Are range operations required?

### Common Selection Patterns

| Operations | Best Choice |
|------------|-------------|
| Insert, Delete, Search | BST / Hash Map |
| Range sum, Point update | Fenwick Tree |
| Range query, Range update | Segment Tree + Lazy |
| Union, Find | DSU |
| Min/Max with add/remove | Multiset / Heap |
| Predecessor/Successor | Ordered Set / BST |

## Input Schema

```json
{
  "type": "object",
  "properties": {
    "operations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": { "type": "string" },
          "frequency": { "type": "string" },
          "constraints": { "type": "string" }
        }
      }
    },
    "constraints": { "type": "object" },
    "preferences": { "type": "array" }
  },
  "required": ["operations"]
}
```

## Output Schema

```json
{
  "type": "object",
  "properties": {
    "success": { "type": "boolean" },
    "recommended": { "type": "string" },
    "complexities": { "type": "object" },
    "alternatives": { "type": "array" },
    "augmentations": { "type": "array" },
    "reasoning": { "type": "string" }
  },
  "required": ["success", "recommended"]
}
```

Related Skills

structured-data

509
from a5c-ai/babysitter

JSON-LD schema markup and validation.

CVE/CWE Database Skill

509
from a5c-ai/babysitter

CVE and CWE database querying and management

test-data-generation

509
from a5c-ai/babysitter

Synthetic test data generation and management using Faker.js and similar tools. Generate realistic test data, create data factories, implement database seeding, and manage test data anonymization.

iOS Persistence (Core Data/Realm)

509
from a5c-ai/babysitter

Specialized skill for iOS local data persistence solutions

Room Database

509
from a5c-ai/babysitter

Expert skill for Android Room persistence library

metadata-standards-implementation

509
from a5c-ai/babysitter

Apply Dublin Core, METS, MODS, and other metadata schemas for digital collections and archival materials

health-data-integration

509
from a5c-ai/babysitter

Facilitate interoperability between health IT systems including EHR, HIE, and clinical decision support through HL7, FHIR, and other healthcare data standards

statistical-test-selector

509
from a5c-ai/babysitter

Skill for selecting appropriate statistical tests for analyses

data-versioning-manager

509
from a5c-ai/babysitter

Skill for managing data versions and provenance

data-encoder

509
from a5c-ai/babysitter

Classical data encoding skill for quantum machine learning applications

backend-selector

509
from a5c-ai/babysitter

Multi-backend comparison and selection skill for optimal hardware choice

root-data-analyzer

509
from a5c-ai/babysitter

ROOT/CERN data analysis skill for high-energy physics data processing, histogramming, and statistical analysis