Skip to content

docs: add Claude Code skill for the LitData codebase#847

Merged
tchaton merged 2 commits into
mainfrom
docs/claude-skills
Jul 24, 2026
Merged

docs: add Claude Code skill for the LitData codebase#847
tchaton merged 2 commits into
mainfrom
docs/claude-skills

Conversation

@tchaton

@tchaton tchaton commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a Claude Code skill for the LitData codebase under .claude/skills/litdata, to help contributors (and coding agents) get up to speed and work effectively: understand the architecture, contribute, write/run tests, and debug/profile.

Docs only — no source or runtime changes.

Layout

A lean SKILL.md acts as a router (a task → file table + public-API map + quick commands) so only a small file loads by default; the depth lives in reference/ files read on demand:

File Covers
SKILL.md Overview, package map, public API, "which reference for which task", quick commands
reference/streaming.md Read pipeline: StreamingDataset/StreamingDataLoader/BinaryReader, chunk format, shuffling, resume, item loaders
reference/cache-and-chunk-lifecycle.md Cache ↔ Writer/Reader, PrepareChunksThread, distributed sampling, and the shared-chunk deletion / reference-counting machinery
reference/processing.md Write pipeline: optimize/map, DataProcessor worker model, raw indexer
reference/contributing.md Dev setup, coding style, branch/PR flow, lint/type/CI gates
reference/testing.md pytest commands, fixtures, cloud mocking, test gating
reference/debugging.md enable_tracer / Litracer, env-var knobs, common failure modes + triage

All line/file references were derived by reading the current tree; the content is grounded in src/litdata/**, tests/**, pyproject.toml, .pre-commit-config.yaml, and the CI workflows.

Note: the skill markdown may be auto-formatted by pre-commit.ci on this PR (mdformat) — the local hooks couldn't rewrite files under .claude/ in this environment.

🤖 Generated with Claude Code

Adds a `.claude/skills/litdata` skill that helps contributors and agents work on
the codebase: understand the architecture, contribute, write/run tests, and
debug/profile. A lean SKILL.md acts as a router into on-demand reference files so
it loads fast:

- reference/streaming.md          — read pipeline (dataset/dataloader/reader, chunk format, shuffling, resume, item loaders)
- reference/cache-and-chunk-lifecycle.md — Cache <-> Writer/Reader, PrepareChunksThread, distributed sampling, shared-chunk deletion & refcounting
- reference/processing.md          — write pipeline (optimize/map), worker model, raw indexer
- reference/contributing.md        — dev setup, style, PR flow, lint/type/CI gates
- reference/testing.md             — pytest commands, fixtures, mocking cloud, gating
- reference/debugging.md           — tracing (enable_tracer/Litracer), env knobs, failure modes

Docs only; no source or runtime changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tchaton
tchaton requested a review from justusschock as a code owner July 24, 2026 11:40
@codecov-commenter

codecov-commenter commented Jul 24, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81%. Comparing base (ac1b064) to head (44031a1).
⚠️ Report is 1 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@         Coverage Diff         @@
##           main   #847   +/-   ##
===================================
- Coverage    81%    81%   -0%     
===================================
  Files        54     54           
  Lines      7683   7683           
===================================
- Hits       6210   6209    -1     
- Misses     1473   1474    +1     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tchaton
tchaton merged commit a17d45f into main Jul 24, 2026
35 checks passed
@tchaton
tchaton deleted the docs/claude-skills branch July 24, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants