claude/ai-resources-plugin/skills/knowledge-base-ingest/SKILL.md
This skill should be used when integrating source material into a knowledge base, including when the user asks to "integrate this document into the knowledge base", "add this transcript to the memory bank", "ingest this document", "update the knowledge base", "analyze a new source document", or "sync current-state docs with this source".
npx skillsauth add amhuppert/my-ai-resources knowledge-base-ingestInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Maintain a bounded knowledge base that separates immutable source material from derived analysis and current-state synthesis. A repository or workspace may contain multiple largely independent knowledge-base directories, each focused on a specific feature area, product area, project, or topic.
Use this skill to add new primary documents, integrate new information, reorganize knowledge docs, or keep index, changelog, open questions, and current-state synthesis documents in sync for the specific knowledge-base directory being maintained.
./kb/<knowledge-base-slug>/ relative to the repository or workspace root. Look for existing knowledge bases under ./kb/ first when discovering, and create new ones there by default.
<knowledge-base-slug> is a short kebab-case name describing the knowledge base's scope (feature area, product area, project, or topic). Derive it from the user's request when not specified.memory-bank/, docs/knowledge/, project-context/). Do not relocate an existing knowledge base unless explicitly asked../kb/<knowledge-base-slug>/
├── AGENTS.md
├── CLAUDE.md
├── index.md
├── changelog.md
├── open-questions.md
├── primary/
├── derived/
└── current/
When initializing a new knowledge base:
./kb/<knowledge-base-slug>/ unless the user specifies a different path or an existing knowledge base already lives elsewhere.references/AGENTS.md from this skill into <knowledge-base-root>/AGENTS.md.<knowledge-base-root>/CLAUDE.md that autoloads AGENTS.md via the @ import syntax. Use references/CLAUDE.md from this skill as the template.AGENTS.md or CLAUDE.md. If one exists, read it and merge only clearly missing knowledge-base maintenance rules when appropriate.Classify files before editing.
Primary documents:
Derived documents:
current/.Current-state documents:
Operating documents:
index.md links all knowledge-base docs with short descriptions.changelog.md records additions, decisions, clarifications, and changed understanding.open-questions.md tracks unresolved and resolved questions.AGENTS.md describes the structure and synchronization rules for future agents.CLAUDE.md imports AGENTS.md so Claude Code automatically loads the same rules when working inside the knowledge-base directory.Use current/ as a recursive synthesis tree.
Preferred pattern:
current/
├── <scope>-current-state.md
└── <scope>-current-state/
├── domain-a-current-state.md
├── domain-b-current-state.md
└── domain-c-current-state.md
When a leaf grows too broad, split it:
current/
├── <scope>-current-state.md
└── <scope>-current-state/
├── domain-a-current-state.md
└── domain-a-current-state/
├── focused-topic-1-current-state.md
└── focused-topic-2-current-state.md
Name child directories after the exact stem of their parent document.
Follow this sequence when adding or analyzing a new source document.
Preserve the source.
primary/ subdirectory.transcripts/, prds/, source-docs/, research/, design/.Extract and inspect.
Compare against current state.
Create a derived impact report when the source changes understanding.
derived/impact-reports/ unless local instructions specify another location.Update focused current-state leaves first.
Propagate upward.
Update open-questions.md.
Update changelog.md.
Update index.md.
Verify.
When asked to reorganize a knowledge base:
AGENTS.md, CLAUDE.md, index.md, changelog.md, and open-questions.md.
references/AGENTS.md and references/CLAUDE.md templates into the knowledge-base root.AGENTS.md / CLAUDE.md and only add missing synchronization guidance if needed. If AGENTS.md exists but CLAUDE.md does not, add a CLAUDE.md that imports AGENTS.md.If sources conflict:
End with a concise report:
references/AGENTS.md — Template for the knowledge-base root's AGENTS.md describing structure and synchronization rules for future agents.references/CLAUDE.md — Template that imports AGENTS.md via the @ syntax so Claude Code autoloads the same rules.tools
Use when picking or vetting a keyboard shortcut on macOS. Triggers include "what hotkey should I use for X", "is `<combo>` available", "does this shortcut conflict", "recommend a keybinding for…", "check `<combo>` against my setup", "pick a hotkey for…", or any mention of choosing/binding/changing a shortcut in WezTerm, tmux, Zed, Chrome, Claude Code, or macOS. Determines whether a proposed combo collides with OS-reserved bindings, app defaults, or the user's customizations, and recommends ergonomic alternatives when needed.
development
Detect and remove dead code with knip. Use when the user asks to "run knip", "find unused files", "find unused exports", "find unused dependencies", "clean up dead code", "remove dead code", "set up knip", "configure knip", "knip.json", "knip false positive", "knip CI", or mentions a `knip` config, dependency bloat, bundle bloat from unused imports, or tree-shaking unused exports. Covers the configuration-first workflow, confidence-gated deletion, framework-specific gotchas (Next.js 15+, Tailwind, Storybook, Jest, Bun's test runner and `bun build --compile`), monorepos, CI integration, and performance tuning.
tools
This skill should be used when the user asks to "set up react-scan", "install react-scan", "diagnose React re-renders", "find unnecessary renders", "find unstable props", "automate React render checks with Playwright", "react-scan + playwright", "measure component renders programmatically", "check why a React component is slow", or mentions React rendering issues, slow React interactions, render counts, or component-level perf attribution. Covers install across Next.js/Vite/Remix/script-tag/browser-extension, the lite headless API for CI, and the canonical render-attribution → fix → validate loop driven through Playwright.
tools
--- name: kb-ingest description: Delegate knowledge-base ingestion to the `knowledge-base-ingester` sub-agent so the source document, primary/current trees, and ingest workflow stay out of the main conversation's context window. Run this when the user explicitly invokes `/ai-resources:kb-ingest`; do not auto-trigger from natural-language ingestion requests (those should use the `knowledge-base-ingest` skill directly). disable-agent disable-model-invocation: true --- # kb-ingest Run a knowledge