Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides semantic diff detection, install-on-first-use, and fallback patterns for skills consuming git diff output via sem.
Use this skill ↓48% 96%+48 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 11 of 23 without it.
When checking for semantic diff availability in an interactive workflow and finding `0` in the cache, what user interaction step must occur before proceeding to fallback diff generation?
Presents an installation prompt or offer to the user when detection evaluates to false.
3 of 3 safety checks passed
Foundation patterns for using sem semantic diffs in night-market skills.
Consult this skill when building or modifying skills that consume git diff output. It provides the detection, installation, and fallback patterns.
sem diff yourself)Check sem availability once per session:
# Detection (cache per session)
_sem_check() {
local cache="${CLAUDE_CODE_TMPDIR:-/tmp}/sem-available"
if [ -f "$cache" ]; then
cat "$cache"
return
fi
if command -v sem &>/dev/null; then
echo "1" | tee "$cache"
else
echo "0" | tee "$cache"
fi
}
When _sem_check returns 0, offer installation.
See modules/detection.md for install-on-first-use
logic and platform-specific commands.
Next to this one in the catalogue, plus more from the same author.