harisjavaid85/ai-agent-skills

kb-ingest

Ingest sources into a named file-based knowledge base: normalize each to Markdown and register it under a stable key.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/harisjavaid85/ai-agent-skills --skill kb-ingest

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

KB Ingest

Take sources into a file-based knowledge base: normalize → register. Stops at sources/index.md and writes nothing to knowledge/, which is kb-integrate's job.

1. Resolve the KB

Resolve which KB to operate on per registry.md. Done when you have its absolute root path.

2. Normalize and register each argument

An argument is either a source (URL, path, pasted text) or an already-registered key, since a caller re-running over what it ingested earlier holds keys rather than URLs. Resolve each against sources/index.md first, by key or by origin. ingestion.md's Idempotency rule governs the three cases:

  • Unknown. Convert and register it.
  • Known, status candidate or integrated. Refresh its metadata only; nothing is re-converted.
  • Known, status `declined`. A reopen, which re-converts. Confirm with the user first, per that rule. A confirmation passed in with the key counts; where no user can answer, skip it and report it as awaiting confirmation.

Run the pipeline in ingestion.md on each new or reopened source: convert, keep the originals, register the key. Done when every ingestible source has a normalized .md and an entry carrying every field the citation contract's registry schema lists, and every source left out is noted with its reason.

3. Report

List the ingested keys, each now a candidate; the known keys that were only refreshed; and the sources left out with their reasons, both those the fidelity guard skipped and each reopen refused or awaiting confirmation, with its prior decline and reason. Done when the user can see what entered sources/, what didn't, and that nothing has been integrated yet.

按任务相关推荐

来自同一仓库

更多 Skills

全部 Skills