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.
Probe memory/summary clarity via dual anchor questions: task progress, info gaps. Use when verifying session state or summary before handoff or compression.
$ npx -y skills add athola/claude-night-market --skill memory-clarity-probe --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/memory-clarity-probeContext preview
The summary Claude sees to decide when to auto-load this skill.
Probe memory/summary clarity via dual anchor questions: task progress, info gaps. Use when verifying session state or summary before handoff or compression.
name: memory-clarity-probe description: > Probe memory/summary clarity via dual anchor questions: task progress, info gaps. Use when verifying session state or summary before handoff or compression. alwaysApply: false category: quality-assessment tags: - memory-quality - anchor-questions - session-management - context-clarity dependencies: - memory-palace:session-palace-builder scripts: [] usage_patterns: - pre-handoff-verification - session-checkpoint - summary-quality-gate - best-of-n-selection complexity: simple model_hint: standard estimated_tokens: 600
Assess whether a memory, summary, or session state retains enough task information to guide future reasoning.
A quality gate for any memory or summary, based on the dual-probe pattern from MMPO (arXiv:2605.30159, Liu et al. 2026). The probe asks two anchor questions against the current memory and evaluates whether the answers are confident and complete:
1. **Progress probe**: "Based on current memory, what is the current task progress?" 2. **Gap probe**: "Based on current memory, what information is still needed?"
A clear memory answers the progress probe with specific, verifiable state (not vague placeholders) and enumerates bounded, concrete unknowns on the gap probe. An ambiguous memory produces hedging on the progress probe and open-ended uncertainty on the gap probe.
The two probes target different failure modes:
about task state. The gap probe alone misses this. The model claims it has enough. The progress probe catches it: if the stated progress contradicts known facts, the memory has drifted.
task stands. Both probes surface this: the progress answer hedges and the gap answer lists open-ended unknowns.
The MMPO paper's ablation (Table 4) shows `progress+gap` outperforms `gap-only` across all context lengths. Use both probes.
This skill implements a **qualitative** clarity assessment. It does not compute the token-level predictive entropy (Belief Entropy, Eq. 5 in MMPO) that the paper uses for RL training. Night-market has no access to the model's internal log-probabilities.
The paper's Table 6 shows that qualitative probing (labeled "direct-answer entropy", r=0.54) is weaker than true entropy (r=0.68), and can encourage premature confidence. Use this probe as a necessary quality check, not a sufficient one.
`memory-palace:knowledge-intake`
Accept the memory or summary as input. Sources:
Evaluate the memory against:
Based on the memory below, what is the current task progress?
Describe specifically what has been completed and what state
the task is in right now.
<memory>
{memory_content}
</memory>Score the answer:
no hedging ("I think", "probably", "it seems")
Evaluate the memory against:
Based on the memory below, what information is still needed
to complete the task? List specific open questions or missing
facts, not generic categories.
<memory>
{memory_content}
</memory>Score the answer:
(signals the memory does not constrain what's missing)
incomplete (premature confidence, the failure mode the progress probe guards against)
| Progress | Gap | Composite | Action | |----------|-----|-----------|--------| | Clear | Bounded | **Clear** | Proceed | | Clear | Expanding | **Ambiguous** | Consider expanding memory | | Clear | Overconfident | **Suspect** | Re-read task requirements | | Ambiguous | Bounded | **Ambiguous** | Expand memory or ask user | | Ambiguous | Expanding | **Unclear** | Regenerate or expand memory | | Unclear | Any | **Unclear** | Memory must be regenerated |
Produce the output in the format below and take the recommended action if invoked as an autonomous gate.
When evaluating N candidate summaries (e.g., from multiple summarization attempts):
1. Apply the dual probe to each candidate. 2. Rank by: (a) composite score, (b) specificity of gap enumeration, (c) absence of hedging in progress answer. 3. Recommend the top-ranked candidate. 4. Report all scores so the caller can verify.
To generate N candidates, invoke a summarization skill N times with varied prompts or temperatures, then pas
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.