claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
Provides sem semantic-diff detection, install-on-first-use, and fallback patterns. Use when building skills that consume git diff output.
$ npx -y skills add athola/claude-night-market --skill sem-integration --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/sem-integrationContext preview
The summary Claude sees to decide when to auto-load this skill.
Provides sem semantic-diff detection, install-on-first-use, and fallback patterns. Use when building skills that consume git diff output.
name: sem-integration description: Provides sem semantic-diff detection, install-on-first-use, and fallback patterns. Use when building skills that consume git diff output. alwaysApply: false category: infrastructure tags: - sem - semantic-diff - git - foundation provides: infrastructure: - sem-detection - sem-fallback patterns: - install-on-first-use - graceful-degradation estimated_tokens: 400 progressive_loading: true module_strategy: reference-based modules: - modules/detection.md - modules/fallback.md
Foundation patterns for using [sem](https://github.com/Ataraxy-Labs/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.
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.
Primary path (sem available):
sem diff --format json <baseline>
Fallback path (sem unavailable):
git diff --name-only --diff-filter=A <baseline> git diff --name-only --diff-filter=M <baseline> git diff --name-only --diff-filter=D <baseline> git diff --name-only --diff-filter=R <baseline>
See `modules/fallback.md` for output normalization that produces the same entity schema from both paths.
Primary path (sem available):
sem impact --json <file-or-entity>
Fallback path (sem unavailable): use rg/grep to trace callers by filename. See `modules/fallback.md`.
`${CLAUDE_CODE_TMPDIR:-/tmp}/sem-available`; detection command runs at most once per session regardless of how many skills invoke it
path used automatically (`git diff --name-only --diff-filter=` variants); no silent failure
JSON output per `modules/fallback.md`; consumers downstream see the same structure from both paths
`dependencies: [leyline:sem-integration]` in frontmatter rather than reimplementing the detection pattern
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use night-market-change-control.
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily commands; use night-market-operations.
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use night-market-debugging-playbook.
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled battles; see failure-archaeology.
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use night-market-validation-and-qa.