CtrlK
BlogDocsLog inGet started
Tessl Logo

state-directory-manager

Manage persistent state directories for bash scripts

68

2.96x
Quality

37%

Does it follow best practices?

Impact

89%

2.96x

Average score across 6 eval scenarios

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./skills/bash/state-directory-manager/SKILL.md
SKILL.md
Quality
Evals
Security

Evaluation results

95%

38%

CLI Tool Preferences Manager

XDG-compliant directory structure and config management

Criteria
Without context
With context

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%

80%

69%

Shared Bash State Module

Reusable state manager module with state_ prefix conventions

Criteria
Without context
With context

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%

92%

69%

API Response Caching and Audit Logging for a Bash Monitor Script

Cache TTL management and log rotation

Criteria
Without context
With context

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%

Repository
majiayu000/claude-skill-registry
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

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.