affaan-m/ECC

content-hash-cache-pattern

Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.

4.0K installs 282K stars

Before you install

Last update
Files in folder
1
Scripts
No script files found
SKILL.md size
5.5 KB (about 1,401 tokens of context each time it loads)
License
MIT
Source on GitHub
affaan-m/ECC

Skills are plain text instructions the agent follows, sometimes with scripts. Check the source, prefer repositories with many installs and stars, and read any script it ships.

Install

npx skills add affaan-m/ECC@content-hash-cache-pattern

Runs in a terminal with Node.js 18 or newer. Add -y to skip the prompts and -g to install for every project instead of this one.

Install for your agent

npx skills add affaan-m/ECC@content-hash-cache-pattern --agent claude-code -y
Project install writes to
.claude/skills/content-hash-cache-pattern
Global install writes to
~/.claude/skills/content-hash-cache-pattern

Start a new session afterwards so the agent picks the skill up. In Claude Code you can also call it directly with /content-hash-cache-pattern.

What it does

Content-Hash File Cache Pattern Cache expensive file processing results (PDF parsing, text extraction, image analysis) using SHA-256 content hashes as cache keys. Unlike path-based caching, this approach survives file moves/renames and auto-invalidates when content changes. When to Activate - Building file processing pipelines (PDF, images, text extraction) - Processing cost is high and same files are processed repeatedly - Need a --cache/--no-cache CLI option - Want to add caching to existing pure functions without modifying them Core Pattern 1. Content-Hash-Based Cache Key Use file content…

Excerpt from the skill's own SKILL.md. Read the full file on GitHub before installing: skills run with your agent's permissions.

Categories

Related skills

  • docker-patterns

    affaan-m/ECC

    Docker and Docker Compose patterns for local development, container security, networking, volume strategies, and multi-service orchestration. Use when setting up containerized development environments or reviewing Docker configurations.

  • video-editing

    affaan-m/ECC

    AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

  • security-review

    affaan-m/ECC

    Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provides comprehensive security checklist and patterns.

    5.5K installs 282KSecurityDataCode review
  • backend-patterns

    affaan-m/ECC

    Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes. Use when building or reviewing Node.js, Express, or Next.js API routes and their data access.

  • backend-patterns

    affaan-m/ECC

    Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.

  • frontend-patterns

    affaan-m/ECC

    Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices. Use when building or reviewing React or Next.js components, state, or render performance.

← Search skills

/skills/affaan-m/ECC/content-hash-cache-pattern/