/sdlc-knowledge-base:kb-layers [--add <layer> | --remove <layer> [--force]]from sdlc-knowledge-base
Manages the project's layer vocabulary for the `layer:` frontmatter field in library files. Lists allowed layers with file counts, adds new layers, or removes unused layers.
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 and writes CLAUDE.md. Inline execution is acceptable — no agent dispatch needed.
Manage the project's allowed layer vocabulary for the layer: frontmatter field in library files.
| Form | Description |
|---|---|
| (none) | List allowed layers with file counts from shelf-index |
--add <layer> | Add a layer to the allowed set |
--remove <layer> | Remove a layer (refused if any file uses it) |
--remove <layer> --force | Remove a layer bypassing usage check |
Read CLAUDE.md and locate the [Knowledge Base] section. Extract library_path (default library/) and shelf_index_path (default library/_shelf-index.md).
Read CLAUDE.md [Knowledge Base] section to resolve library_path and shelf_index_path.
python3 -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:
mod = importlib.util.module_from_spec(spec)
sys.modules['sdlc_knowledge_base_scripts'] = mod
spec.loader.exec_module(mod)
from sdlc_knowledge_base_scripts.kb_layers import main
args = ['--project-dir', '<project_dir>', '--shelf-index-path', '<shelf_index_path>']
# Append --add <layer>, --remove <layer>, or --force as appropriate
sys.exit(main(args))
"
Replace <project_dir> with the project root and <shelf_index_path> with the resolved path.
Print the script output. For list mode:
# Project layer set
Mode: defaults
Allowed layers:
- methodology (15 files)
- evidence (22 files)
- domain ( 7 files)
- development ( 3 files)
layer: values in existing library files — do that manually and run kb-rebuild-indexes^[a-z][a-z0-9-]*$ (lowercase, hyphenated)--force to remove anyway (leaves dangling references; kb-lint --strict-layer will catch them)/sdlc-knowledge-base:kb-layers
/sdlc-knowledge-base:kb-layers --add regulatory
/sdlc-knowledge-base:kb-layers --remove clinical-evidence
/sdlc-knowledge-base:kb-layers --remove methodology --force
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-audit-queryFilter and summarise the cross-library KB audit log. Reports confidentiality events (attribution drops, synthesis aborts, dispatcher failures, no-evidence markers, cross-library promotions) over a date range, by event type, and by source handle./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-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