incremental-cache-cli-modes
Use when implementing incremental caches, cache invalidation, cache stats, cache summary, list/import/export/prune/clear cache CLI modes, or CLI…
Skill by Calvin-Corbett
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/calvin-corbett-incremental-cache-cli-modes
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/incremental-cache-cli-modes
What's inside
- Skill name
incremental-cache-cli-modes- Description
- Use when implementing incremental caches, cache invalidation, cache stats, cache summary, list/import/export/prune/clear cache CLI modes, or CLI side-effect/reporting paths where normal analysis output and diagnostic output must not interfere.
- License
- MIT
- Instructions
- 45 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Incremental Cache And CLI Modes Use this for tools that add incremental analysis, persistent file caches, cache hit/miss metrics, or cache-management CLI flags. ## Core Workflow 1. Map every CLI flag into one of these categories before coding: - **analysis modes**: run normal analysis and optionally use/update the cache. - **side-effect-only modes**: clear, prune, import, export, stats, summary, list cached files. - **hybrid modes**: warm cache, force rescan, analysis with cache metrics. 2. Side-effect-only modes must not accidentally run the normal analysis/report pipeline unless the spec explicitly requires it. 3. Keep report output ownership separate from diagnostics. If formatters or output-file code may close or replace `stdout`, print cache stats/summary/list output through a live stream that you own, or return before the formatter path closes it. 4. Cache entries must be keyed by both file content and effective analysis configuration, not by path alone. 5. Preserve user-visible result semantics when serving from cache: issue severity, confidence, CWE, line number/range, filename, code snippets when applicable, skipped files, and exit codes. ## Required Edge Checks Run or create focused checks for: - first run misses, second run hits; - modified file rescans and updates cached results; - deleted file does not appear as a stale cached issue; - severity/confidence/test/profile/config changes invalidate cache entries; - `--force-rescan` bypasses reads but still writes fresh entries; - `--warm-cache` populates cache without reporting issues and exits successfully; - stats/summary/list/clear/prune/import/export work with and without positional targets; - cache corruption, incompatible format versions, and partial files are ignored without crashing; - cache size limits are enforced after writes and stats still report `cache_file_size_bytes`. ## Output Rules - Cache stats and summaries are operational output, not scan findings. Do not route them through a formatter that may close the output file or suppress stdout. - When a flag is meant to answer a cache question, print the answer before returning from the CLI command path. - If the CLI accepts targets with a stats/list flag, treat targets as optional context for locating config/cache, not as a reason to run a full scan unless the contract says so. - If normal analysis output and cache diagnostics can both be requested, make their ordering deterministic and test the combined path. ## Implementation Pattern - Centralize cache serialization/deserialization in a small module. - Store `format_version`, file content hash, effective config hash, timestamp, and serialized issue records. - Keep invalidation reasons explicit: `not_cached`, `file_changed`, `config_changed`, `expired`, `corrupt`, or equivalent. - Keep cache metrics on the manager/session object and expose them to JSON or machine-readable formatters under a stable `cache_info` object. - Test the CLI as a subprocess for stream ownership, because direct function tests often miss closed-stdout bugs.
From Calvin-Corbett/thomas, MIT.
More from Calvin-Corbett/thomas
- 0.569score
line-suppression-directives
Calvin-Corbett
Use when implementing analyzer or linter suppression directives such as nosec, nosec-begin/nosec-end, nosec-next-line, noqa, ignore-next-line, disable/enable…
SkillBFreshness: B★ 4Claude Code +9 - 0.566score
async-lifecycle-initialization
Calvin-Corbett
Implement async service initialization, lifecycle startup, dependency graph ordering, concurrency-limited initializers, rollback/disposal on failure…
SkillBFreshness: B★ 4Claude Code +9 - 0.566score
multipart-http-response-parser
Calvin-Corbett
Implement multipart HTTP response parsing APIs with Content-Type boundary validation, MIME delimiter framing, CRLF/LF/CR streaming chunks, part headers…
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
gh-fix-ci
Calvin-Corbett
Diagnose failing GitHub checks, isolate the concrete breakage, and land the smallest defensible fix with targeted verification.
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
notion-knowledge-capture
Calvin-Corbett
Capture conversations and decisions into structured Notion knowledge artifacts with useful titles, summaries, and links.
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
capcut-video-editor
Calvin-Corbett
Plan and execute CapCut-oriented edits for short-form marketing, promo, explainer, and caption-heavy videos with fast iteration in mind.
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
cloudflare-deploy
Calvin-Corbett
Deploy applications and infrastructure to Cloudflare Workers, Pages, and related services with environment and routing checks.
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
auto-skillify
Calvin-Corbett
Detect repeated multi-step workflows and turn them into reusable Thomas-native skill bundles with validation and maintenance notes.
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
figma-implement-design
Calvin-Corbett
Translate specific Figma nodes into production-ready UI with close visual fidelity and project-aware implementation decisions.
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
jupyter-notebook
Calvin-Corbett
Scaffold and refine Jupyter notebooks for experiments, tutorials, and exploratory workflows with clear narrative structure.
SkillBFreshness: B★ 4Claude Code +9 - 0.558score
develop-web-game
Calvin-Corbett
Iterate on HTML or JavaScript web games with a tight browser-test loop, focused interactions, and visual verification.
SkillBFreshness: B★ 4Claude Code +9 - 0.558score
figma
Calvin-Corbett
Pull design context from Figma and translate it into Thomas-native implementation or analysis steps.
SkillBFreshness: B★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 9, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Calvin-Corbett/thomas
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Calvin-Corbett
- 0.569score
line-suppression-directives
Calvin-Corbett
Use when implementing analyzer or linter suppression directives such as nosec, nosec-begin/nosec-end, nosec-next-line, noqa, ignore-next-line, disable/enable…
SkillBFreshness: B★ 4Claude Code +9 - 0.566score
multipart-http-response-parser
Calvin-Corbett
Implement multipart HTTP response parsing APIs with Content-Type boundary validation, MIME delimiter framing, CRLF/LF/CR streaming chunks, part headers…
SkillBFreshness: B★ 4Claude Code +9 - 0.566score
async-lifecycle-initialization
Calvin-Corbett
Implement async service initialization, lifecycle startup, dependency graph ordering, concurrency-limited initializers, rollback/disposal on failure…
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
cloudflare-deploy
Calvin-Corbett
Deploy applications and infrastructure to Cloudflare Workers, Pages, and related services with environment and routing checks.
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
gh-fix-ci
Calvin-Corbett
Diagnose failing GitHub checks, isolate the concrete breakage, and land the smallest defensible fix with targeted verification.
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
capcut-video-editor
Calvin-Corbett
Plan and execute CapCut-oriented edits for short-form marketing, promo, explainer, and caption-heavy videos with fast iteration in mind.
SkillBFreshness: B★ 4Claude Code +9
Cite this page
incremental-cache-cli-modes skill. Agent Mart. https://agentmart.dev/skills/calvin-corbett-incremental-cache-cli-modes (last updated 2026-10-24)