ansh-saran-sharma

Codestory — Data skill for Claude Code

Data community

Turns Python code into an animated story of how it works: what it imports, the settings it reads, the data it loads, every transformation, the decisions it makes, and what it writes.

How to install Codestory

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ansh-saran-sharma/codestory and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Codestory does

Turns Python code into an animated story of how it works: what it imports, the settings it reads, the data it loads, every transformation, the decisions it makes, and what it writes. The result is one HTML file that plays like a video, steps like a slideshow, and opens in any browser, offline.

Alternatives in Data

  • Private GPT — Complete API layer for private AI applications on local models: RAG, skills, tools, MCP, text-to-sql, and more 57.5k ★
  • HTML Anything — ✨ The agentic HTML editor — your local AI agent writes the HTML, you ship it 8.5k ★
  • 12 Services Layer — Prompt 12: Wire Up Services Layer (Analytics, Policy, Settings, Sessions) 2.3k ★

README

codestory

Turns a Python program into an animated story of how it works: what it imports, the settings it reads, the data it loads, every transformation, the decisions it makes, and what it writes. The result is one HTML file that plays like a video, steps like a slideshow, and opens in any browser, offline.

It works in two modes:

  • scan explains the code: every path it can take, without running anything. Use it to walk a colleague or stakeholder through a codebase.
  • run shows what actually happened in one real run: which branches were taken and how many rows were read, filtered, transformed and written. Use it when the data or the outcome changes from day to day.

![A codestory scene: 601 rows flow into drop_invalid() and 576 come out](docs/demo.gif)

Watch a demo

Two finished stories, playable in your browser:

  • Daily weather pipeline, a run: 601 sensor readings are cleaned, summarized per station, saved to a report and a database, and trigger an alert, all held in safe mode.
  • Nightly web error check, a scan: every path through a log checker that emails on-call when too many requests fail, without running it.

Press space to play or pause, use the arrow keys to move between scenes, and click any card to see its code and data. The source projects, bundles and storyboards are in [`examples/`](examples/).

Contents

  1. Install
  2. Use it from your AI assistant
  3. Use it from the command line
  4. scan or run?
  5. Safe mode
  6. What the bundle contains
  7. Troubleshooting
  8. Files
  9. Contributing
  10. License

1. Install

The folder is an [Agent Skill](https://agentskills.io): `SKILL.md` plus the files it uses. Keep the folder name `codestory`.

Assistant Where to put the folder
Claude Code ~/.claude/skills/codestory/ (all projects)