CtrlK
BlogDocsLog inGet started
Tessl Logo

detecting-database-deadlocks

Process use when you need to work with deadlock detection. This skill provides deadlock detection and resolution with comprehensive guidance and automation. Trigger with phrases like "detect deadlocks", "resolve deadlocks", or "prevent deadlocks".

43

Quality

45%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./plugins/database/database-deadlock-detector/skills/detecting-database-deadlocks/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Discovery

40%

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

The description identifies a clear domain (deadlock detection/resolution) but fails to articulate specific concrete capabilities, relying instead on vague filler like 'comprehensive guidance and automation.' The opening sentence is grammatically broken ('Process use when you need to...'), and while trigger phrases are provided, they are narrow and miss common user vocabulary around concurrency issues.

Suggestions

Replace vague language like 'comprehensive guidance and automation' with specific concrete actions, e.g., 'Analyzes thread dumps to identify circular wait conditions, suggests lock ordering fixes, and generates deadlock prevention strategies.'

Expand trigger terms to include related natural language variations such as 'thread lock', 'circular dependency', 'lock contention', 'thread dump', 'resource starvation', or 'concurrent access issues'.

Fix the grammatically broken opening sentence and rewrite in proper third person voice, e.g., 'Detects, diagnoses, and resolves deadlocks in concurrent systems. Use when...'

DimensionReasoningScore

Specificity

The description says 'deadlock detection and resolution with comprehensive guidance and automation' but never lists concrete actions. What does 'comprehensive guidance and automation' actually mean? No specific capabilities like 'analyze thread dumps', 'identify circular wait conditions', or 'generate lock ordering graphs' are mentioned.

1 / 3

Completeness

It attempts to answer both 'what' (deadlock detection and resolution) and 'when' (trigger phrases are listed), but the 'what' is extremely vague and the 'when' triggers are narrow. The opening sentence 'Process use when you need to work with deadlock detection' is grammatically awkward and unclear. The trigger guidance exists but is limited.

2 / 3

Trigger Term Quality

It includes some relevant trigger phrases like 'detect deadlocks', 'resolve deadlocks', and 'prevent deadlocks', which are natural terms a user might say. However, it misses common variations like 'thread lock', 'circular dependency', 'lock contention', 'thread dump analysis', or 'resource starvation'.

2 / 3

Distinctiveness Conflict Risk

Deadlock detection is a reasonably specific niche, which helps distinctiveness. However, the vague language ('comprehensive guidance and automation') could overlap with general debugging or concurrency skills. The trigger terms are specific enough to reduce some conflict risk.

2 / 3

Total

7

/

12

Passed

Implementation

50%

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

This is a comprehensive deadlock detection skill that covers multiple databases and provides useful diagnostic queries, root cause patterns, and prevention strategies. Its main weaknesses are the lack of properly formatted executable code blocks (especially for retry logic and monitoring scripts), missing validation/feedback loops in the workflow, and a monolithic structure that could benefit from splitting database-specific content into separate files. The content is moderately concise but could be tightened by removing explanations Claude already knows.

Suggestions

Format SQL queries and diagnostic commands in proper code blocks with language tags, and provide complete executable retry logic code (Python/language-appropriate) rather than just describing it.

Add explicit validation checkpoints after fix implementation (e.g., 'Re-run the lock wait graph query from step 1 to confirm the deadlock pattern is resolved') to create feedback loops.

Split database-specific content (PostgreSQL vs MySQL vs MongoDB) into separate referenced files to improve progressive disclosure and reduce the monolithic nature of the document.

Remove explanatory prose that Claude already knows (e.g., what gap locks are, how foreign keys work) and replace with terse pattern descriptions focused on the specific fix actions.

DimensionReasoningScore

Conciseness

The content is reasonably efficient but includes some verbose explanations that Claude would already know (e.g., explaining what gap locks are, what foreign key lock escalation means). The inline SQL queries could be formatted more concisely, and some sections like the Examples repeat concepts already covered in the root cause patterns section.

2 / 3

Actionability

The skill provides specific SQL queries for diagnostics and names concrete error codes and configuration parameters, which is good. However, the queries are embedded inline in prose rather than in executable code blocks, there's no actual retry logic code provided (just a description), and the monitoring script mentioned in step 8 is described abstractly rather than given as executable code.

2 / 3

Workflow Clarity

The 10-step workflow is clearly sequenced from detection through analysis to prevention and monitoring. However, there are no explicit validation checkpoints or feedback loops — for instance, after implementing fixes in step 6, there's no step to verify the deadlock is resolved. The workflow also lacks decision points for when to branch (e.g., PostgreSQL vs MySQL paths diverge but aren't clearly separated).

2 / 3

Progressive Disclosure

The content is organized into clear sections (Overview, Instructions, Output, Error Handling, Examples, Resources), which is good structure. However, it's a monolithic document with no references to supporting files — the detailed examples, database-specific queries, and retry logic implementations could be split into separate files. The Resources section links to external docs but there are no bundle files for deeper content.

2 / 3

Total

8

/

12

Passed

Validation

81%

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

Validation9 / 11 Passed

Validation for skill structure

CriteriaDescriptionResult

allowed_tools_field

'allowed-tools' contains unusual tool name(s)

Warning

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

9

/

11

Passed

Repository
jeremylongshore/claude-code-plugins-plus-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.