Manage persistent state directories for bash scripts
68
37%
Does it follow best practices?
Impact
89%
2.96xAverage score across 6 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/bash/state-directory-manager/SKILL.mdXDG-compliant directory structure and config management
XDG_CONFIG_HOME fallback
100%
100%
XDG_DATA_HOME fallback
100%
100%
XDG_CACHE_HOME fallback
100%
100%
XDG_STATE_HOME fallback
100%
100%
App subdirectory structure
100%
100%
chmod 700 on directories
0%
100%
Init function creates dirs
100%
100%
Config file key-value format
100%
100%
grep to read config
100%
100%
sed -i to update config
0%
100%
Associative array defaults
0%
100%
load_config defaults-then-file
0%
37%
ABOUTME comments
0%
100%
Reusable state manager module with state_ prefix conventions
STATE_APP_NAME variable
0%
100%
STATE_BASE_DIR pattern
0%
100%
STATE_ prefix settings
0%
100%
state_ prefix functions
0%
100%
state_init creates dirs with chmod 700
25%
100%
Auto-initialize at module end
0%
100%
JSON state file with jq
0%
0%
KV fallback without jq
0%
50%
JSON state fields
0%
0%
state_cleanup function
50%
100%
Correct sourcing pattern
50%
100%
ABOUTME comments
0%
100%
Cache TTL management and log rotation
md5sum cache key hashing
0%
100%
Default CACHE_TTL of 3600
0%
0%
TTL check via file mtime
0%
100%
stat cross-platform fallback
0%
100%
Log format with brackets
25%
100%
Log to app.log file
0%
100%
LOG_MAX_SIZE 10MB
0%
100%
LOG_MAX_FILES 5
100%
100%
Log rotation shift pattern
75%
100%
Cleanup temp files 1 day
50%
100%
Cleanup expired cache
37%
100%
Cleanup old logs 30 days
0%
100%
ABOUTME comments
0%
100%
632759f
Table of Contents
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.