Skip to content
Back to skills

Effect Collections Datastructs

ASecurity

Value-based data structures (Data.struct, tuple, array) and high-performance collections (Chunk, HashSet). Use for safe comparisons and pipelines.

  • 755 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added February 8, 2026
documentationbashapiperformancedocumentation

Works with

  • api

Security analysis

A100/100

Scanned February 10, 2026

npx -y skills add majiayu000/claude-skill-registry --skill effect-collections-datastructs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Effect Collections Datastructs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Effect Collections Datastructs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-effect-collections-datastructs/badge)](https://www.skillsdirectory.com/skills/majiayu000-effect-collections-datastructs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: effect-collections-datastructs
description: Value-based data structures (Data.struct, tuple, array) and high-performance collections (Chunk, HashSet). Use for safe comparisons and pipelines.
allowed-tools: Read, Grep, Glob, Edit, Write
---

# Data Structures & Collections

## Structural Equality
```ts
import { Data, Equal } from "effect"
const a = Data.struct({ id: 1, name: "A" })
const b = Data.struct({ id: 1, name: "A" })
Equal.equals(a, b) // true
```

## Tuples & Arrays
```ts
const t = Data.tuple(1, "x")
const arr = Data.array([1,2,3])
```

## Chunk
```ts
import { Chunk } from "effect"
const items = Chunk.fromIterable([1,2,3])
```

## HashSet
```ts
import { HashSet } from "effect"
const set = HashSet.fromIterable([1,2,3])
```

## Local Source Reference

**CRITICAL: Search local Effect source before implementing**

The full Effect source code is available at `docs/effect-source/`. Always search the actual implementation before writing Effect code.

### Key Source Files
- Data: `docs/effect-source/effect/src/Data.ts`
- Chunk: `docs/effect-source/effect/src/Chunk.ts`
- HashSet: `docs/effect-source/effect/src/HashSet.ts`
- Equal: `docs/effect-source/effect/src/Equal.ts`

### Example Searches
```bash
# Find Data.struct and equality patterns
grep -F "Data.struct" docs/effect-source/effect/src/Data.ts
grep -F "Data.tuple" docs/effect-source/effect/src/Data.ts

# Find Chunk operations
grep -F "export" docs/effect-source/effect/src/Chunk.ts | grep -F "function"

# Study HashSet API
grep -F "export" docs/effect-source/effect/src/HashSet.ts | grep -F "function"

# Find Equal implementation
grep -F "equals" docs/effect-source/effect/src/Equal.ts
```

### Workflow
1. Identify the collection API you need (e.g., Chunk, HashSet)
2. Search `docs/effect-source/effect/src/` for the implementation
3. Study the types and available operations
4. Look at test files for usage examples
5. Write your code based on real implementations

**Real source code > documentation > assumptions**

## References
- Agent Skills overview: https://www.anthropic.com/news/skills
- Skills guide: https://docs.claude.com/en/docs/claude-code/skills

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.