/sdlc-knowledge-base:kb-audit-query [--since <ISO-date>] [--until <ISO-date>] [--event-type <type>] [--source <handle>] [--summary]from sdlc-knowledge-base
Filters and summarizes cross-library KB audit log events including attribution drops, synthesis aborts, dispatcher failures, and promotions by date range, event type, or source handle.
Ships in sdlc-knowledge-base. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Lightweight: This skill reads only index metadata (timestamps / audit log entries). Inline execution is acceptable.
Filter and summarise events from library/audit.log for the current project. The audit log is project-scope (lives in the project's library directory) and append-only; this skill is read-only.
All optional:
--since <ISO-date> — events at or after this timestamp (e.g., 2026-01-01T00:00:00Z)--until <ISO-date> — events at or before this timestamp--event-type <type> — one of: attribution_drop_retrieval, synthesis_aborted_attribution, synthesis_aborted_dispatcher_error, source_dispatch_failed, no_evidence_marker, cross_library_promotion--source <handle> — events for this library handle only--summary — emit count-by-type summary instead of detailed event listpython3 -c "
import sys, os, importlib.util
PLUGIN_ROOT = os.environ.get('CLAUDE_PLUGIN_ROOT', '')
SCRIPTS = os.path.join(PLUGIN_ROOT, 'scripts')
INIT = os.path.join(SCRIPTS, '__init__.py')
if os.path.isfile(INIT) and 'sdlc_knowledge_base_scripts' not in sys.modules:
spec = importlib.util.spec_from_file_location(
'sdlc_knowledge_base_scripts',
INIT,
submodule_search_locations=[SCRIPTS],
)
if spec and spec.loader:
module = importlib.util.module_from_spec(spec)
sys.modules['sdlc_knowledge_base_scripts'] = module
spec.loader.exec_module(module)
try:
import sdlc_knowledge_base_scripts.audit # noqa: F401
print('OK')
except ImportError:
print('MISSING')
"
If output is MISSING, see kb-query for the install fallback. Otherwise prepend the importlib preamble to subsequent snippets.
python3 -c "
import sys, os, importlib.util, json
PLUGIN_ROOT = os.environ.get('CLAUDE_PLUGIN_ROOT', '')
SCRIPTS = os.path.join(PLUGIN_ROOT, 'scripts')
INIT = os.path.join(SCRIPTS, '__init__.py')
if os.path.isfile(INIT) and 'sdlc_knowledge_base_scripts' not in sys.modules:
spec = importlib.util.spec_from_file_location(
'sdlc_knowledge_base_scripts',
INIT,
submodule_search_locations=[SCRIPTS],
)
if spec and spec.loader:
module = importlib.util.module_from_spec(spec)
sys.modules['sdlc_knowledge_base_scripts'] = module
spec.loader.exec_module(module)
from pathlib import Path
from sdlc_knowledge_base_scripts.audit import read_log
events = read_log(
Path('library/audit.log'),
event_type=<event-type or None>,
source_handle=<source or None>,
since=<since or None>,
until=<until or None>,
)
print(json.dumps([e.__dict__ for e in events], indent=2))
"
Substitute the actual argument values into the read_log call. Quote string args; use Python None literal for unspecified ones.
If --summary was specified, group results by event_type and count:
from collections import Counter
counts = Counter(e.event_type for e in events)
for event_type, count in counts.most_common():
print(f"{event_type}: {count}")
Render either:
--summary): count by type, then "see kb-audit-query --event-type X for details"Show all events in the last 90 days:
/sdlc-knowledge-base:kb-audit-query --since 2026-01-26T00:00:00Z
Count events by type for the last quarter:
/sdlc-knowledge-base:kb-audit-query --since 2026-01-01T00:00:00Z --summary
Investigate attribution drops on a specific source:
/sdlc-knowledge-base:kb-audit-query --event-type attribution_drop_retrieval --source corp-semi
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub stevegjones/ai-first-sdlc-practices --plugin sdlc-knowledge-base16 skills in this plugin
/kb-ingestIntegrate a new source into the project knowledge base. Wraps the agent-knowledge-updater agent. Source can be a local file path, a URL, or pasted content. The updater reads the source, classifies it, identifies which existing library files it touches, makes surgical updates or creates new files, rebuilds the shelf-index, and appends to log.md./kb-ingest-batchDrive agent-knowledge-updater over a batch of staged files in library/raw/. Tracks progress in .batch-progress.json for resume support. Sequential by default; --parallel <N> opt-in (max 5). Single shelf-index rebuild and one consolidated log.md entry at the end./kb-ingest-bulkParallel map-reduce bulk ingest for large source sets. Map phase dispatches read-only knowledge-extractor agents (≤N-wide, default Haiku) emitting per-source JSON extracts; Python routes extracts by target library file (fuzzy-merging new topics, pre-allocating new files, flagging oversized topics); reduce phase dispatches one agent-knowledge-updater per file (parallel, one writer per file); single shelf-index rebuild + one log.md entry. Resumable. Supersedes kb-ingest-batch./kb-initInitialise a project for knowledge base use. Appends the [Knowledge Base] section to the project's CLAUDE.md, creates the library/ directory structure, optionally seeds with three example library files from the Agentic SDLC research, and reports next steps. Run once after installing sdlc-knowledge-base./kb-layersManage the project's layer vocabulary — list allowed layers with file counts, add new layers, or safely remove unused layers. Reads the shelf-index for usage data; writes CLAUDE.md atomically. No agent dispatch./kb-lintHealth-check the project knowledge base. Looks for contradictions between files, stale claims that newer sources have superseded, orphan files with no inbound cross-references, important concepts mentioned but lacking their own page, missing cross-references, and data gaps. Returns a structured report; does not auto-fix.Other plugins' skills for the same job