Common Code Review
ASecurity[BLOCKER] [PR diff/files not supplied] The caching implementation cannot be reviewed with evidence. Why: The changed code, cache configuration, invalidation behavior, and tests are required to assess logic, security, efficiency, and edge cases. Fix: Provide the PR diff or changed files, including cache keys, TTLs, fallback behavior, and tests. [MAJOR] [Cache read path — file unknown] Check whether cache keys include tenant/user/authorization scope. Why: Incorrect key isolation can return one ...
- 584 stars
- 0 votes
- 0 copies
- 4 views
- Added September 5, 2026
Security analysis
100/100Pro scans all 15 files and shows the line behind each finding
npx -y skills add HoangNguyen0403/agent-skills-standard --skill common-code-review --agent claude-codeAre you the author of Common Code Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-common-code-review-0d2896df)[BLOCKER] [PR diff/files not supplied] The caching implementation cannot be reviewed with evidence.
Why: The changed code, cache configuration, invalidation behavior, and tests are required to assess logic, security, efficiency, and edge cases.
Fix: Provide the PR diff or changed files, including cache keys, TTLs, fallback behavior, and tests.
[MAJOR] [Cache read path — file unknown] Check whether cache keys include tenant/user/authorization scope.
Why: Incorrect key isolation can return one user’s or tenant’s database data to another, creating a security leak.
Fix: Include every data-isolation dimension in the key and add cross-tenant authorization tests.
[MAJOR] [Invalidation/write path — file unknown] Check whether mutations invalidate or update affected entries.
Why: Missing invalidation produces stale reads and can violate application consistency requirements.
Fix: Define invalidation for create, update, delete, transaction rollback, and failure paths; test each edge case.
[MAJOR] [Cache miss path — file unknown] Check concurrent misses and cache failures.
Why: A cache stampede can increase database load, while treating cache outages as fatal can reduce availability.
Fix: Use request coalescing or bounded protection and define a safe database fallback with timeout behavior.
[MAJOR] [Tests — files not supplied] Check coverage for hit, miss, expiry, stale data, errors, authorization boundaries, and concurrent requests.
Why: CI status alone cannot prove the caching layer preserves correctness or actually reduces database calls.
Fix: Add focused tests that assert database-call counts and each listed edge case.
Files in this skill
- eval-1.baseline.md
- eval-1.with-skill.md
- eval-2.baseline.md
- eval-2.with-skill.md
- eval-3.baseline.md
- eval-3.with-skill.md
- pressure-1.baseline.md
- pressure-1.with-skill.md
- pressure-2.baseline.md
- pressure-2.with-skill.md
- trigger-1.md
- trigger-2.md
- trigger-3.md
- trigger-4.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.