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.
Traces execution paths through the code graph with criticality scoring and Mermaid charts. Use when understanding how a function propagates through the system.
$ npx -y skills add athola/claude-night-market --skill call-chain --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/call-chainContext preview
The summary Claude sees to decide when to auto-load this skill.
Traces execution paths through the code graph with criticality scoring and Mermaid charts. Use when understanding how a function propagates through the system.
name: call-chain role: entrypoint description: Traces execution paths through the code graph with criticality scoring and Mermaid charts. Use when understanding how a function propagates through the system.
Trace execution flows through the codebase using the code knowledge graph.
This skill requires the **gauntlet** plugin for graph data. Discover it:
GRAPH_QUERY=$(find ~/.claude/plugins -name "graph_query.py" -path "*/gauntlet/*" 2>/dev/null | head -1)
**If gauntlet is not installed**: Fall back to static analysis. Use `grep` to trace function calls and build a Mermaid diagram manually from import/call patterns. Skip graph-specific steps.
**If installed but no graph.db**: Tell the user to run `/gauntlet-graph build`.
1. **Accept target**: Get a function name or entry point from the user (or trace all entry points).
2. **Run flow tracing** (requires gauntlet):
python3 "$GRAPH_QUERY" --action flows --depth 15
To filter by entry point:
python3 "$GRAPH_QUERY" --action flows --entry "main"
**Fallback (no gauntlet)**: Trace calls with rg (or grep):
# Prefer rg (ripgrep) for speed; fall back to grep
if command -v rg &>/dev/null; then
rg -n "function_name\(" --type py . | head -20
else
grep -rn "function_name(" --include="*.py" . | head -20
fiBuild the call tree manually from search results.
3. **Display as indented tree**:
main() [criticality: 0.72]
-> validate_input()
-> parse_config()
-> process_data()
-> db.execute_query()
-> cache.store()
-> send_response()4. **Generate Mermaid flowchart**:
flowchart LR
main --> validate_input
main --> process_data
main --> send_response
validate_input --> parse_config
process_data --> db.execute_query
process_data --> cache.store5. **Show criticality breakdown**:
| Factor | Weight | Meaning | |--------|--------|---------| | File spread | 0.30 | Touches many files | | Security | 0.25 | Contains auth/crypto code | | External calls | 0.20 | Unresolved dependencies | | Test gap | 0.15 | Untested nodes in flow | | Depth | 0.10 | Deep call chains |
criticality scores in the form `[criticality: N.NN]`
each caller-to-callee relationship in the traced path
security sensitivity, external calls, test gap, and depth
analysis is used and the absence of graph data is noted
told to run `/gauntlet-graph build` before the skill halts
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.