用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tangle-network/agent-knowledge --skill build-with-agent-knowledge命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | build-with-agent-knowledge |
| description | Build, evaluate, and improve source-backed knowledge, retrieval, and memory systems. |
Use this when a product needs a knowledge base, retrieval system, RAG improvement process, or agent memory provider. Read the installed package README, exports, types, and nearest tests before choosing an API. Do not copy signatures from this skill.
| Product need | Package capability |
|---|---|
| Start a source-backed Markdown knowledge base | File knowledge base and source registry |
| Search an existing package knowledge base | File search provider or a product search adapter |
| Improve knowledge without editing live files | Isolated knowledge candidates |
| Tune retrieval on labeled questions | Retrieval improvement loop |
| Diagnose and repair retrieval, sources, pages, and answers together | RAG knowledge improvement loop |
| Compare memory systems | Memory adapter and experiment APIs |
| Run retrieval, answer, knowledge, or memory cases | Knowledge benchmark APIs |
| Let agents research or edit candidates | Runtime knowledge integration |
Use the narrowest capability that solves the product problem. Do not add an agent loop when deterministic ingestion or indexing is enough.
Record:
Use independent labels and source evidence. The agent's current answer is not a gold answer.
agent-knowledge owns source records, indexes, retrieval tests, memory contracts, isolated candidates, and exact promotion.
It does not own model choice, prompts, browsing, agent scheduling, product authorization, or product storage transactions.
Supply callbacks for research, retrieval, answer generation, and scoring.
Use @tangle-network/agent-runtime/knowledge when those callbacks should run agents.
Use existing vector, graph, search, and memory systems through adapters instead of rebuilding their databases here.
Use separate run IDs for parallel branches and the same run ID to resume interrupted work. Reject stale promotion rather than replacing newer knowledge.
| Layer | Minimum evidence |
|---|---|
| Retrieval | Labeled relevant items, ranking measures, misses, latency, and cost |
| Answer | Claim support, relevance, citation correctness, abstention, and final text |
| Knowledge base | Source coverage, provenance, freshness, structure, conflicts, and validation findings |
| Memory | Multi-turn task outcome, correct recall, harmful recall, isolation, writes, latency, and cost |
Report service and measurement failures separately from product failures. Keep candidate-generation cases separate from the final decision set. Bundled benchmark samples prove adapter wiring only; use complete external datasets for benchmark claims.
One customer-like path must prove:
source or memory event -> production retrieval -> observable answer or action
-> isolated candidate -> baseline comparison -> unseen comparison
-> approved promotion or correctly rejected change -> reproducible rerun
Report installed versions, exact imports, provider adapters, scope policy, case counts, baseline and candidate results, cost, latency, candidate identity, promotion result, and artifact paths.
eval-engineering when new production-derived cases are needed.build-with-agent-runtime when agents should research, edit, or compare candidates.agent-eval-adoption when the product needs shared comparison and release records.harden when changing tenant isolation, source trust, deletion, or promotion authority.