claude/ai-resources-plugin/skills/kb-ingest/SKILL.md
--- 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
npx skillsauth add amhuppert/my-ai-resources claude/ai-resources-plugin/skills/kb-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.
Run a knowledge-base ingestion in an isolated agent context.
This skill exists for one reason: ingesting a source document into a knowledge base loads a lot — the source itself, the primary/derived/current trees, the knowledge-base-ingest skill, and its references. When the parent agent runs it inline, that all lands in the main conversation's context window. This skill pushes the entire workflow into the knowledge-base-ingester sub-agent and brings back a compact report.
Only when the user runs /ai-resources:kb-ingest (with or without arguments). Do not auto-trigger on phrases like "ingest this document" or "add to the knowledge base" — those should run the knowledge-base-ingest skill directly in the main conversation. This skill is the explicit, user-chosen path for the delegated workflow.
knowledge-base-ingester sub-agent via the Agent tool.From the user's /ai-resources:kb-ingest invocation, gather:
kb/api-redesign/) if given; otherwise leave it to the agent's discovery rules.If the user supplied a path that does not exist, or supplied nothing at all, ask them for the source path before delegating. Do not invent a path.
If the user gave instructions but no source path, ask which document they want ingested. Do not guess.
Invoke the knowledge-base-ingester sub-agent via the Agent tool with subagent_type: "knowledge-base-ingester". The prompt to the agent must be self-contained (the agent does not see the parent conversation) and must include:
knowledge-base-ingest skill and return the report in the format defined by the agent.Minimal prompt template:
Ingest the following source into a knowledge base, following the `knowledge-base-ingest` skill end-to-end. Return the compact report defined in your agent definition — do not paste source content.
Source: <absolute or repo-relative path>
Knowledge base: <explicit path, OR "infer per the skill's discovery rules">
Extra instructions: <anything the user said beyond "ingest this", or "none">
Run the agent in the foreground. The parent needs the report before it can respond to the user.
When the agent returns, relay its report to the user with minimal added commentary. The agent's report already names file paths, the impact summary, and validation steps performed — do not paraphrase it into something longer.
Two things to do on top of the report:
Do not re-run the ingestion inline to "double-check." Do not re-read the primary documents the agent wrote. Do not summarize the source. The whole point of this skill is to keep that work out of the main context window — duplicating it in the parent defeats the purpose.
If the user follows up with edits, refinements, or a second source, invoke the sub-agent again rather than handling the work directly.
knowledge-base-ingest skill directly in those cases. This skill is the explicit delegated path.development
Debug a running web app via the web-debugger SDK: app logs, application state, runtime snapshots, React state, query cache.
development
Thoroughly understand a software development objective before implementation: research, identify ambiguities, ask clarifying questions. Use before starting implementation of a non-trivial or ambiguously specified feature, or when requirements leave open design decisions.
development
Locate the on-disk Claude Code transcript file (.jsonl under ~/.claude/projects/) for the current or a specified conversation.
development
Reflect on codebase navigation effectiveness at end of conversation. Surfaces dead ends, inefficiencies, missing context. Does not write files — pair with /kiro:steering-custom to persist.