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.
Selects optimal sources for tool calls, balancing accuracy with token cost. Use before research tasks or when deciding whether a claim needs verification.
$ npx -y skills add athola/claude-night-market --skill smart-sourcing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/smart-sourcingContext preview
The summary Claude sees to decide when to auto-load this skill.
Selects optimal sources for tool calls, balancing accuracy with token cost. Use before research tasks or when deciding whether a claim needs verification.
name: smart-sourcing description: Selects optimal sources for tool calls, balancing accuracy with token cost. Use before research tasks or when deciding whether a claim needs verification. alwaysApply: false usage_patterns: - "research" - "source" - "citation" - "verify claim" - "web search" - "fetch" category: optimization tags: - sourcing - citations - accuracy - efficiency tools: [] complexity: low model_hint: fast estimated_tokens: 400
Intelligent sourcing that requires citations only when the cost is justified by the value of verification.
**Full sourcing is prohibitively expensive** (10-16x token increase). Smart sourcing targets high-value claims where verification materially improves accuracy.
| Claim Type | Example | Why Source | |------------|---------|------------| | **Version numbers** | "Python 3.12 added..." | Versions change, easy to verify | | **Performance claims** | "30% faster than..." | Quantitative claims need evidence | | **Security recommendations** | "Use bcrypt for..." | Security advice must be current | | **API specifications** | "The function accepts..." | APIs change between versions | | **Release dates** | "Released in Q4 2025" | Factual, verifiable | | **Pricing/limits** | "Free tier allows 1000 requests" | Business terms change | | **Deprecated features** | "X was removed in version Y" | Breaking changes need verification |
| Claim Type | Example | Why No Source | |------------|---------|---------------| | **General concepts** | "Async improves concurrency" | Foundational knowledge | | **Code examples** | Demonstrative snippets | Illustrative, not factual claims | | **Opinion/preference** | "Consider using..." | Clearly framed as suggestion | | **Common knowledge** | "Git tracks changes" | Universal understanding | | **Logical derivations** | "Therefore, X implies Y" | Reasoning, not factual claim | | **Syntax** | "Use `def` for functions" | Language documentation is stable |
Is this a factual claim?
├── No → No source needed
└── Yes → Would being wrong cause harm?
├── No (minor inconvenience) → No source needed
└── Yes → Is verification cost-effective?
├── No (>5k tokens for low-value claim) → State uncertainty
└── Yes → Perform web search, cite sourceWhen sourcing is warranted:
Python 3.12 introduced `type` statement for type aliases[1]. Sources: 1. [PEP 695](https://peps.python.org/pep-0695/)
When sourcing isn't cost-effective but uncertainty exists:
Python 3.12 introduced the `type` statement (verify in release notes for your version).
| Confidence | Action | |------------|--------| | High (stable facts) | State directly | | Medium (may have changed) | Add verification note | | Low (uncertain) | Source or acknowledge uncertainty |
| Approach | Token Cost | Use Case | |----------|------------|----------| | No sourcing | Baseline | General knowledge | | Uncertainty marker | +5-10 tokens | Medium confidence | | Single source | +2-5k tokens | High-value claim | | Multiple sources | +10-20k tokens | Research tasks |
User: What's new in FastAPI 0.109? Response: FastAPI 0.109 added Pydantic v2 support as default[1] and improved OpenAPI schema generation[2]. Sources: 1. [FastAPI Release Notes](https://fastapi.tiangolo.com/release-notes/) 2. [GitHub Release 0.109.0](https://github.com/tiangolo/fastapi/releases/tag/0.109.0)
User: How does async/await work? Response: Async/await enables non-blocking I/O by allowing coroutines to yield control while waiting for operations. The event loop manages execution, resuming coroutines when their awaited operations complete.
The connection pool default is typically 10 connections (verify in your database driver documentation as this varies by library and version).
Works with:
Escalate to full sourcing (accept high token cost) for:
For these cases, use `memory-palace:knowledge-intake` workflow which is designed for thorough sourcing.
performance claims, security recommendations, API specs, release dates, pricing/limits, deprecated features) has an inline citation or a verification note
concepts, code examples, opinions, common knowledge, logical derivations, or stable syntax
marker (e.g., "verify in release notes for your version") rather than being stated as fact or sourced at high token cost
verification cost-effective → source; each branch followed explicitly for claims exceeding medium confidence
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.