.claude/skills/aget-check-sessions/SKILL.md
Monitor sessions/ directory health. Detects date subdirectories (anomaly), counts files, validates naming conventions, and tracks disk usage. Returns health status.
npx skillsauth add aget-framework/template-advisor-aget aget-check-sessionsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Monitor the health of the sessions/ directory by checking file organization, naming conventions, and disk usage.
Provide self-diagnostic capability for AGET agents to assess their sessions directory health. Detects organizational anomalies like date-based subdirectories which indicate non-standard structure.
When invoked, perform these checks:
# Check for date subdirectories (anomaly indicator)
find sessions -type d -name "20[0-9][0-9]-*" 2>/dev/null | wc -l
# Check for checkpoints subdirectory (expected)
test -d sessions/checkpoints && echo "yes" || echo "no"
# Count session files (excluding checkpoints)
find sessions -maxdepth 1 -type f -name "*.md" | wc -l
# Count checkpoint files
find sessions/checkpoints -type f -name "*.yaml" 2>/dev/null | wc -l
Valid session pattern: session_YYYY-MM-DD_*.md
# Count valid session names
find sessions -maxdepth 1 -type f -name "session_20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]_*.md" | wc -l
# Find non-conforming files
find sessions -maxdepth 1 -type f -name "*.md" ! -name "session_20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]_*.md"
du -sh sessions
| Metric | OK | WARN | CRITICAL | |--------|-----|------|----------| | Total files | <200 | 200-500 | >500 | | Date subdirectories | 0 | 1+ (anomaly) | - | | Disk size | <50MB | 50-100MB | >100MB |
Note: Thresholds inherited from supervisor defaults. Research AGET baseline (2026-02-08): 77 files, 544K.
=== /aget-check-sessions ===
Directory: sessions/
Structure:
Date subdirectories: [count] (0 = OK, >0 = anomaly)
Checkpoints dir: [yes/no]
File Counts:
Session files: [count]
Checkpoints: [count]
Non-conforming: [count]
Disk Usage: [size]
Non-Conforming Files:
[list any files not matching expected patterns]
Health Status: [OK | WARN | CRITICAL]
Alerts:
[list any threshold violations or anomalies]
IF total_files > 500 OR disk > 100MB:
CRITICAL
ELIF total_files > 200 OR disk > 50MB OR date_subdirs > 0:
WARN
ELSE:
OK
/aget-check-evolution - Evolution directory health/aget-check-kb - Knowledge base health/aget-save-state - Create checkpoints| Link | Reference | |------|-----------| | POC | POC-017 | | Project | PROJECT_PLAN_AGET_UNIVERSAL_SKILLS.md | | Source | Fleet Skill Deployment Report (supervisor) | | Baseline | 77 files, 544K (2026-02-08) |
aget-check-sessions v1.0.0 Category: Monitoring POC-017 Phase 1
testing
End AGET session with state capture and sanity checks
tools
Initialize AGET session with status briefing
development
Research a topic across the knowledge base before implementation. Searches L-docs, patterns, PROJECT_PLANs, SOPs, and governance for relevant context.
development
Save workflow state for resume/recovery. Use at natural breakpoints before context-intensive operations, major refactors, or session interruptions.