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.

6.9K installs 317K 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

  • 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

    Security review checklist and patterns for adding authentication, handling user input, managing secrets, creating API endpoints, or implementing payment and sensitive features.

    9.7K installs 317KSecurityDataCode review
  • 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.

  • market-research

    affaan-m/ECC

    Conduct market research, competitive analysis, investor due diligence, and industry intelligence with source attribution and decision-oriented summaries. Use when the user wants market sizing, competitor comparisons, fund research, technology scans, or research that informs business decisions.

    9.4K installs 317KTestingResearchData
  • market-research

    affaan-m/ECC

    Conduct market research, competitive analysis, investor due diligence, and industry intelligence with source attribution and decision-oriented summaries. Use when the user wants market sizing, competitor comparisons, fund research, technology scans, or research that informs business decisions.

    9.3K installs 317KTestingResearchData
  • 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.

← Search skills

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