CtrlK
BlogDocsLog inGet started
Tessl Logo

idempotency-handling

Idempotent API operations with idempotency keys, Redis caching, DB constraints. Use for payment systems, webhook retries, safe retries, or encountering duplicate processing, race conditions, key expiry errors.

65

Quality

77%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Fix and improve this skill with Tessl

tessl review fix ./plugins/idempotency-handling/skills/idempotency-handling/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

64%

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The skill provides strong, executable code examples for both Redis and database-backed idempotency patterns, making it highly actionable. However, it suffers from verbosity in the cleanup section (three redundant language variants) and includes obvious best practices that Claude already knows. The workflow for critical payment operations would benefit from explicit step-by-step sequencing with validation checkpoints.

Suggestions

Remove the 'When to Apply' section entirely—Claude already knows when idempotency matters, and this is stated in the skill description.

Consolidate the cleanup section to a single implementation (e.g., SQL only) instead of three language variants, or move cleanup details to a separate reference file.

Add an explicit numbered workflow for implementing idempotency in a new endpoint, with validation checkpoints (e.g., 'Verify key storage before executing payment', 'Confirm response was cached before returning').

Trim the 'Best Practices' bullets to only non-obvious guidance—'Require idempotency keys for mutations' and 'Use atomic database operations' are self-evident from the code examples.

DimensionReasoningScore

Conciseness

The core patterns (Redis middleware, DB-backed idempotency) are well-presented, but the cleanup section is overly verbose with three language variants (SQL, Node.js, Python) that are largely redundant. The 'When to Apply' list and 'Best Practices' bullet points are things Claude already knows. The cleanup best practices section adds further padding.

2 / 3

Actionability

The skill provides fully executable, copy-paste ready code for both Redis-based and database-backed idempotency patterns, including the SQL schema, JavaScript middleware, and the complete processPayment function with proper error handling and conflict resolution.

3 / 3

Workflow Clarity

The code examples implicitly show the workflow (insert → process → update status), but there's no explicit step-by-step sequence or validation checkpoints. For payment processing—a destructive/critical operation—the skill lacks explicit verification steps (e.g., 'verify the idempotency key was stored before proceeding') and no feedback loop for error recovery beyond the try/catch.

2 / 3

Progressive Disclosure

The content is reasonably structured with clear section headers, but it's a monolithic file with no references to external files. The cleanup section with three language variants could be split into a separate reference file. For a skill of this length (~150 lines of content), some separation would improve navigability.

2 / 3

Total

9

/

12

Passed

Description

89%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

This is a strong skill description with excellent trigger term coverage and a clear 'Use for' clause that explicitly lists when the skill should be selected. The main weakness is that the 'what' portion describes concepts and technologies rather than concrete actions (e.g., 'implement idempotent endpoints', 'add retry-safe logic'). Overall it would perform well in skill selection among many candidates.

Suggestions

Rephrase the opening to list concrete actions rather than just concepts, e.g., 'Implements idempotent API endpoints using idempotency keys, configures Redis-based caching, and sets up DB uniqueness constraints.'

DimensionReasoningScore

Specificity

Names the domain (idempotent API operations) and mentions specific technologies (Redis caching, DB constraints, idempotency keys), but doesn't list concrete actions like 'implement', 'configure', or 'generate'. It describes concepts more than actions.

2 / 3

Completeness

Clearly answers both 'what' (idempotent API operations with idempotency keys, Redis caching, DB constraints) and 'when' (explicit 'Use for' clause listing payment systems, webhook retries, safe retries, duplicate processing, race conditions, key expiry errors).

3 / 3

Trigger Term Quality

Excellent coverage of natural trigger terms users would say: 'payment systems', 'webhook retries', 'safe retries', 'duplicate processing', 'race conditions', 'key expiry errors', 'idempotency keys', 'Redis caching'. These are terms developers naturally use when facing these problems.

3 / 3

Distinctiveness Conflict Risk

Highly distinctive niche combining idempotency, Redis caching, and DB constraints for specific scenarios like payment systems and webhook retries. Unlikely to conflict with general API or database skills due to the specific focus on idempotency patterns.

3 / 3

Total

11

/

12

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation11 / 11 Passed

Validation for skill structure

No warnings or errors.

Repository
secondsky/claude-skills
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.