data-structure-selector
Select optimal data structure based on operation requirements
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
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/data-structure-selector/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How data-structure-selector Compares
| Feature / Agent | data-structure-selector | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/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
JSON-LD schema markup and validation.
CVE/CWE Database Skill
CVE and CWE database querying and management
test-data-generation
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)
Specialized skill for iOS local data persistence solutions
Room Database
Expert skill for Android Room persistence library
metadata-standards-implementation
Apply Dublin Core, METS, MODS, and other metadata schemas for digital collections and archival materials
health-data-integration
Facilitate interoperability between health IT systems including EHR, HIE, and clinical decision support through HL7, FHIR, and other healthcare data standards
statistical-test-selector
Skill for selecting appropriate statistical tests for analyses
data-versioning-manager
Skill for managing data versions and provenance
data-encoder
Classical data encoding skill for quantum machine learning applications
backend-selector
Multi-backend comparison and selection skill for optimal hardware choice
root-data-analyzer
ROOT/CERN data analysis skill for high-energy physics data processing, histogramming, and statistical analysis