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;…
Provides sem semantic-diff detection, install-on-first-use, and fallback patterns. Use when building skills that consume git diff output.
Claude Code
$ npx -y skills add athola/claude-night-market --skill sem-integration --agent claude-code
Codex
$ npx skills add athola/claude-night-market --skill sem-integration -a codex -y
Cursor
$ npx skills add athola/claude-night-market --skill sem-integration -a cursor -y
Gemini CLI
$ npx skills add athola/claude-night-market --skill sem-integration -a gemini-cli -y
GitHub Copilot
$ npx skills add athola/claude-night-market --skill sem-integration -a github-copilot -y
OpenCode
$ npx skills add athola/claude-night-market --skill sem-integration -a opencode -y
Windsurf
$ npx skills add athola/claude-night-market --skill sem-integration -a windsurf -y
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 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;…
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use…
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily…
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use…
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled…
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.