CtrlK
BlogDocsLog inGet started
Tessl Logo

sleep-analyzer

分析睡眠数据、识别睡眠模式、评估睡眠质量,并提供个性化睡眠改善建议。支持与其他健康数据的关联分析。

39

Quality

40%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./plugins/AI-Agents-Safe-Coding-Skills/skills/sleep-analyzer/SKILL.md

The canonical home for this skill is sleep-analyzer in administrakt0r/AI-Agents-Safe-Coding-Skills

SKILL.md
Quality
Evals
Security

Quality

Content

21%Scale 1-5

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

This skill is extremely verbose and poorly structured, reading more like a product specification document or medical reference guide than an actionable skill for Claude. The massive inline example report (~200 lines) dominates the file and should be a separate template. The actual workflow guidance is thin and lacks validation steps, while the content extensively explains sleep medicine concepts Claude already knows.

Suggestions

Extract the example report template, algorithm code, and data schemas into separate bundle files (e.g., REPORT_TEMPLATE.md, algorithms.py, DATA_SCHEMA.md) and reference them from a concise SKILL.md overview.

Remove explanations of sleep medicine concepts (PSQI, STOP-BANG, CBT-I, sleep stages) that Claude already knows—focus only on project-specific scoring thresholds and data mappings.

Add explicit validation checkpoints to the workflow: validate data completeness before analysis, verify statistical significance before making recommendations, and check for minimum sample sizes.

Make the algorithm code fully executable by implementing the helper functions (time_to_minutes_std, align_data_with_lag, is_weekday) or replace with complete, runnable code.

DimensionReasoningScore

Conciseness

Extremely verbose at ~500+ lines. The vast majority is an example report output that doesn't teach Claude how to perform the skill—it's a massive template that could be a separate file. Extensive explanations of sleep medicine concepts (PSQI, STOP-BANG, CBT-I) that Claude already knows. The skill describes what to analyze rather than how to do it concisely.

1 / 5

Actionability

Provides Python code for scoring algorithms and references specific data file paths, which is concrete. However, the code is semi-pseudocode (references undefined helper functions like `time_to_minutes_std`, `align_data_with_lag`, `is_weekday`). The massive example report is illustrative but not executable guidance—it shows desired output format rather than actionable steps for producing it.

3 / 5

Workflow Clarity

Steps 1-4 provide a rough sequence (determine scope → read data → analyze → generate report) but are vaguely defined with no validation checkpoints. There's no feedback loop for data quality issues, missing records, or error handling. For a skill involving statistical analysis and health-related recommendations, the absence of data validation steps is a significant gap.

2 / 5

Progressive Disclosure

Monolithic wall of text with everything inlined—the ~200-line example report, all algorithm code, data structures, medical disclaimers, and reference links are all in one file. No bundle files exist to offload content to. The example report template, algorithm implementations, and data schemas should clearly be in separate referenced files.

1 / 5

Total

7

/

20

Passed

Description

58%Scale 1-5

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 does a reasonable job listing specific sleep-related capabilities and is fairly distinctive in its niche. However, it lacks an explicit 'Use when...' clause, which is critical for skill selection, and could benefit from more natural trigger terms and synonyms that users would actually say when requesting sleep analysis.

Suggestions

Add an explicit 'Use when...' clause, e.g., '当用户提到睡眠追踪、失眠、睡眠质量评估、睡眠日志或可穿戴设备睡眠数据时使用'

Include more natural trigger terms and synonyms such as '失眠' (insomnia), '睡眠追踪' (sleep tracking), '睡眠日志' (sleep diary), '可穿戴设备' (wearable devices), and common file formats or data sources

DimensionReasoningScore

Specificity

Lists several specific actions: analyzing sleep data, identifying sleep patterns, evaluating sleep quality, providing personalized improvement suggestions, and correlating with other health data. Coverage is good but could be more granular about specific metrics or data formats.

4 / 5

Completeness

The 'what' is clearly stated with multiple concrete actions, but there is no explicit 'when' clause or trigger guidance. The description lacks a 'Use when...' statement, which per the rubric caps completeness at 3.

3 / 5

Trigger Term Quality

Contains relevant keywords like '睡眠数据' (sleep data), '睡眠模式' (sleep patterns), '睡眠质量' (sleep quality), and '健康数据' (health data), but misses natural user phrases like 'insomnia', 'sleep tracker', 'sleep score', 'wearable', or specific device/file format mentions.

3 / 5

Distinctiveness Conflict Risk

The focus on sleep data analysis is fairly distinct and unlikely to overlap with most other skills. However, the mention of '健康数据关联分析' (health data correlation) could create minor overlap with general health analytics skills.

4 / 5

Total

14

/

20

Passed

Validation

72%

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

Validation8 / 11 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (776 lines); consider splitting into references/ and linking

Warning

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

8

/

11

Passed

Repository
administrakt0r/AI-Agents-Safe-Coding-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.