QualityPython

Performant Code

by vstorm-co

Performant Code is a Quality skill for Claude Code, published by vstorm-co in pydantic-deepagents.

1K stars126 forkson vstorm-co/pydantic-deepagentsAdded 2026/08/21Repository updated 2026/08/20
agent-frameworkai-agentsanthropicclaude-codeclicoding-agentdeep-researchdocker-sandboxllmsmcpplaywrightpydanticpydantic-aipythonsubagentstuivstorm
Install in seconds
Install Performant Code
Copy Performant Code into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/vstorm-co/pydantic-deepagents/tree/main/pydantic_deep/bundled_skills/performant-code ~/.claude/skills/performant-code

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/vstorm-co/pydantic-deepagents.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
pydantic_deep/bundled_skills/performant-code/SKILL.md in vstorm-co/pydantic-deepagents
Installs to
~/.claude/skills/performant-code
Collection
One of 14 skills cataloged from this repository
Category
Quality1354 skills

What Performant Code does

Performant Code helps you write efficient code for large inputs and tight limits. Use it when you need to avoid timeouts, reduce memory use, or choose faster data access and algorithm patterns.

Performant Code is cataloged under Quality on DirSkills. Performant Code comes from a repository tagged agent-framework, ai-agents, anthropic, claude-code and cli.

Documentation

README

Performant Code

How to write code that won't timeout on large inputs.

Think About Scale First

Before writing code, ask: how big is the data?

Data size Approach
< 1 MB Load into memory, any approach works
1-100 MB Load into memory, but use efficient algorithms
100 MB - 1 GB Stream/mmap, avoid loading entirely into memory
> 1 GB Streaming only, chunk-based processing

I/O Optimization

Large files

  • mmap (C: mmap(), Python: mmap.mmap()) — map file into memory, OS handles paging
  • Buffered binary readsfread() in C, open(f, 'rb').read(chunk) in Python
  • NEVER read a 500MB file line-by-line with fgets() when you need random access

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Performant Code

  • What else does vstorm-co publish alongside Performant Code?

    Performant Code is one of 14 skills that DirSkills catalogs from vstorm-co/pydantic-deepagents, the repository it ships in. Its siblings there include Build And Compile, Code Review and Code Review. Each one is a separate skill with its own page in this directory, installs the same way Performant Code does, and is maintained by vstorm-co in that same repository. The rest of the collection is listed on the vstorm-co/pydantic-deepagents page.

  • How does Performant Code compare to other Quality skills?

    Performant Code ranks #823 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Performant Code against them. Open each page to compare what they document and how they install.