Skip to content
Back to skills

Cache Strategy Consistency

ASecurity

Detect undefined or inconsistent cache strategies (layers, consistency, invalidation, TTL, failure handling) in design documents.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
code-qualitygo

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add s977043/river-review --skill cache-strategy-consistency --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cache Strategy Consistency?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cache Strategy Consistency
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/s977043-cache-strategy-consistency/badge)](https://www.skillsdirectory.com/skills/s977043-cache-strategy-consistency)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: 'cache-strategy-consistency'
name: Cache Strategy Consistency Guard
description: Detect undefined or inconsistent cache strategies (layers, consistency, invalidation, TTL, failure handling) in design documents.
version: 0.1.0
category: upstream
phase: upstream
applyTo:
  - 'docs/**/*.md'
  - 'design/**/*.md'
  - 'specs/**/*.md'
  - 'rfc/**/*.md'
  - '**/*design*.md'
  - '**/*spec*.md'
  - '**/*architecture*.md'
tags:
  - cache
  - consistency
  - architecture
  - upstream
  - design-review
severity: minor
inputContext:
  - diff
outputKind:
  - findings
  - actions
modelHint: balanced
---

## Pattern declaration

Primary pattern: Reviewer
Secondary patterns: Inversion
Why: キャッシュ戦略の整合性・無効化・障害対策をチェックリスト型で評価し、設計段階での不整合を防ぐ

## Guidance

- Confirm cache layers (CDN/app/DB) and cache keys are specified with owners.
- Check consistency and invalidation strategy per layer, including TTL and refresh triggers.
- Ask for failure/backup behaviour when cache is stale or unavailable.
- Ensure the cache plan aligns with the source of truth and expected SLA.

## Non-goals

- キャッシュ実装の好み(ライブラリ選定など)を推測で押し付けない。

## Pre-execution Gate / 実行前ゲート

このスキルは以下の条件がすべて満たされない限り`NO_REVIEW`を返す。

- [ ] 差分に設計ドキュメント(設計書/spec/RFC)の変更がある
- [ ] 差分にキャッシュ戦略・キャッシュレイヤー・TTL・無効化に関わる記述の追加または変更がある
- [ ] inputContextにdiffが含まれている

ゲート不成立時の出力: `NO_REVIEW: cache-strategy-consistency — キャッシュ戦略に関わる変更が検出されない`

## False-positive guards

- 既に整合性・無効化・TTL が別ドキュメントで明示されている場合は重複指摘しない。

Files in this skill

  • README.md3.4 KB
  • SKILL.md1.9 KB
  • eval/promptfoo.yaml1.3 KB
  • fixtures/01-undefined-cache-layer-happy.md992 B
  • fixtures/02-well-defined-cache-strategy.md2.3 KB
  • golden/01-undefined-cache-layer-happy.md1.7 KB
  • golden/02-well-defined-cache-strategy.md444 B
  • prompt/system.md5.4 KB
  • prompt/user.md2.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…