CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

sleep-analyzer

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

Quality

64%

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-claude/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

50%Weight 40%Scale 1-5

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

The body is rich in domain-specific, actionable detail — data sources, scoring algorithms, thresholds, and a complete report template — and the analysis workflow is clearly sequenced. However, it is a monolithic ~775-line document with substantial duplication and padding, no validation checkpoints, and no use of progressive disclosure to split the report template and algorithms into reference files.

Suggestions

Move the full sample report and algorithm implementations into reference files (e.g. references/report-template.md, references/algorithms.md) and keep SKILL.md as a concise overview with clearly signaled one-level-deep links — this addresses both conciseness and progressive disclosure.

Remove duplicated content: the '触发条件' section repeats the frontmatter description, and medical-safety advice appears both inside the sample report and as the standalone '医学安全声明' section.

Add validation checkpoints to the execution steps, e.g. verify 'data-example/sleep-tracker.json' exists and covers the requested 时间范围 before analysis, and require a minimum record count before computing correlations.

Make the code executable by defining or removing helper functions ('time_to_minutes_std', 'align_data_with_lag', 'is_weekday', 'avg') and aligning field access (e.g. 'record[\"awakenings\"][\"count\"]', 'r[\"bedtime\"]') with the documented JSON structure.

DimensionReasoningScore

Conciseness

The body runs ~775 lines with a ~330-line fully-populated sample report inlined in '输出格式' and ~155 lines of algorithms in '算法说明'; the '触发条件' section duplicates the frontmatter description, and medical-safety advice appears both inside the sample report ('医学安全提醒') and again as a standalone '医学安全声明' section. This is noticeably verbose with several padded/duplicated sections — matching anchor 2 — though not level 1 since it never explains concepts Claude already knows like 'what a PDF is'.

2 / 5

Actionability

Concrete guidance throughout: exact data paths ('data-example/sleep-tracker.json'), executable analysis with 'from scipy import stats... stats.pearsonr', specific thresholds ('sleep latency >30分钟', '18-22℃'), and a complete report template. Falls short of level 5 because helper functions ('time_to_minutes_std', 'align_data_with_lag', 'is_weekday', 'avg') are undefined and the code accesses fields (e.g. 'record[\"awakenings\"][\"count\"]') absent from the documented data structure.

4 / 5

Workflow Clarity

A clear four-step sequence exists ('步骤 1: 确定分析范围' → '步骤 2: 读取数据' → '步骤 3: 数据分析' → '步骤 4: 生成报告') but validation checkpoints are entirely missing — no verification that data files exist, that the requested date range is covered, or that record counts suffice for correlation significance. This matches anchor 3 (steps listed but checkpoints missing); the destructive/batch cap does not apply since this is a read-analyze-report skill.

3 / 5

Progressive Disclosure

Section headers are well-organized (功能, 使用说明, 输出格式, 数据结构, 算法说明, 医学安全声明), but the ~330-line report template and ~155 lines of algorithms clearly belong in separate reference files and are fully inlined, with no bundle files or references at all. This matches anchor 3 ('content that should be separate is inline') rather than 2, since structure is present and navigable.

3 / 5

Total

12

/

20

Passed

Description

66%Weight 40%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 clearly communicates what the skill does through four-plus concrete, sleep-specific actions with good natural trigger terms. Its main weakness is the complete absence of a 'Use when...' or equivalent explicit trigger clause, which caps completeness and limits its discoverability guidance.

Suggestions

Add an explicit trigger clause, e.g. '当用户提到睡眠质量、失眠、睡眠趋势、作息调整,或要求将睡眠与运动/情绪/饮食数据做关联分析时使用本技能。'

Include commonly used trigger words like '失眠' (insomnia), '睡眠报告' (sleep report), and '作息' (sleep schedule) to broaden natural-term coverage.

DimensionReasoningScore

Specificity

Lists several concrete actions — '识别睡眠模式', '评估睡眠质量', '提供个性化睡眠改善建议', plus '支持与其他健康数据的关联分析' — though the opening '分析睡眠数据' is generic and the body's problem-identification capabilities (失眠、呼吸暂停) are not surfaced. This matches 'lists several specific actions; minor gaps in coverage' rather than the comprehensive level 5 or the 1-2-action level 3.

4 / 5

Completeness

The 'what' is clear and multi-part ('分析睡眠数据、识别睡眠模式、评估睡眠质量,并提供个性化睡眠改善建议'), but there is no 'Use when...' clause or any equivalent explicit trigger guidance, capping completeness at 3 per the judging guidelines.

3 / 5

Trigger Term Quality

Natural phrases a user would say are present ('睡眠数据', '睡眠质量', '睡眠改善建议', '关联分析'), giving good keyword coverage. It falls short of level 5 because common variations such as '失眠', '睡眠报告', or '睡不好' are missing, but exceeds level 3 since coverage goes well beyond a couple of generic terms.

4 / 5

Distinctiveness Conflict Risk

Sleep analysis is a distinct niche with sleep-specific triggers ('睡眠模式', '睡眠质量'), but '支持与其他健康数据的关联分析' broadens it into general health-data territory, creating minor overlap risk with fitness/mood/diet analysis skills. Mostly distinct rather than a clear isolated niche (5) or overlapping with many similar skills (3).

4 / 5

Total

15

/

20

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.

Validation — 13 / 16 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

13

/

16

Passed

Repository

administrakt0r/AI-Agents-Safe-Coding-Skills

Path

plugins/AI-Agents-Safe-Coding-Skills-claude/skills/sleep-analyzer/SKILL.md

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.