Token导航 LogoToken导航

Agent Skill · 研究检索

knowledge-base-builder(知识库建设者)

用于搭建或维护带检索增强的 RAG 工作流,适合让 Agent 处理知识库问答、向量检索、来源引用和事实核查。它可以辅助整理数据接入、Embedding、向量库、召回参数和回答生成流程。使用时需要确认数据来源、更新频率、召回阈值和引用展示方式,避免把未命中的资料或过期内容包装成确定事实。

knowledge-base-builder 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 27,701。

总安装 3,351周安装 147GitHub Stars 3下载 1,742核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:knowledge-base-builder(知识库建设者)
来源仓库:https://github.com/jmsktm/claude-settings
仓库路径:skills/knowledge-base-builder
安装命令:
npx skills add https://github.com/jmsktm/claude-settings --skill 'Knowledge Base Builder'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jmsktm/claude-settings --skill 'Knowledge Base Builder'

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

knowledge-base-builder 用于搭建或维护带检索增强的 RAG 工作流,适合处理知识库问答与事实核查。适用于企业内部 FAQ 系统或智能客服的知识库建设与维护场景。通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和联网行为。

建议结合原始 README 核验具体用法,注意维护状态与潜在的文件读写操作。使用时需确认数据来源与更新频率,避免将未命中内容包装为确定事实。

来源仓库内路径:skills/knowledge-base-builder

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/jmsktm/claude-settings --skill 'Knowledge Base…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

knowledge-base-builder 怎么安装?

在终端执行 npx skills add https://github.com/jmsktm/claude-settings --skill 'Knowledge Base Builder'。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

knowledge-base-builder 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

knowledge-base-builder 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

knowledge-base-builder 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

knowledge-base-builder 用的人多吗?

公开数据是累计安装 3,351 次,近一周安装 147 次,下载 1,742 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

knowledge-base-builder 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
knowledge-base-builder

知识库建设者 · 本页

3,3513调用外部服务未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Knowledge Base Builder

The Knowledge Base Builder skill helps you create, structure, and maintain knowledge bases that AI agents can effectively query and utilize. It transforms scattered information—from project documentation to tribal knowledge—into organized, accessible knowledge that improves AI performance and team productivity.

This skill guides you through knowledge extraction, organization, structuring, and maintenance. It understands different knowledge formats (documentation, code comments, decision logs, schemas), helps you choose appropriate storage (markdown files, knowledge graphs, databases), and ensures knowledge remains current and useful.

Use this skill when starting new projects, onboarding AI to complex systems, preserving institutional knowledge, or improving AI agent effectiveness through better context.

Core Workflows

Workflow 1: Build Knowledge Base from Scratch

  1. Define knowledge base purpose:

- Who will use it? (AI agents, developers, both) - What problems does it solve? - What scope/boundaries?

  1. Identify knowledge sources:

- Existing documentation - Code repositories - Team conversations - Decision records - Tribal knowledge

  1. Extract relevant information:

- Key concepts and relationships - Architectural decisions - Domain terminology - Common patterns - Troubleshooting knowledge

  1. Structure the knowledge:

- Choose organization (hierarchical, graph, hybrid) - Define categories/taxonomies - Establish relationships - Create metadata schema

  1. Format for consumption:

- Markdown for documentation - Knowledge graph for relationships - Schema files for structure - Code comments for implementation

  1. Populate the knowledge base:

- Create initial content - Link related concepts - Add examples - Include references

  1. Validate accessibility:

- Can AI find information? - Is context sufficient? - Are relationships clear?

  1. Establish maintenance process

Workflow 2: Extract Knowledge from Codebase

  1. Analyze codebase structure:

- Architecture patterns - Module organization - Key abstractions - Data flow

  1. Identify extractable knowledge:

- Design decisions - API contracts - Data models - Business logic - Edge cases

  1. Generate documentation:

- Architecture overview - Component descriptions - API reference - Data dictionary - Integration guides

  1. Create knowledge graph:

- Entities (modules, services, models) - Relationships (depends on, implements, extends) - Observations (purpose, constraints, patterns)

  1. Link to code:

- File paths for reference - Function signatures - Configuration locations

  1. Maintain synchronization:

- Update on code changes - Version knowledge with code - Automate where possible

Workflow 3: Organize Project Knowledge

  1. Audit existing knowledge:

- What documentation exists? - What's missing? - What's outdated? - What's scattered?

  1. Define structure:

- Documentation hierarchy - File organization - Naming conventions - Cross-referencing approach

  1. Create core documents:

- README.md (overview, getting started) - ARCHITECTURE.md (system design) - DECISIONS.md (ADRs) - PIPELINE_STATUS.md (project state) - CONTRIBUTING.md (development guide)

  1. Establish conventions:

- Document templates - Metadata standards - Update procedures - Review processes

  1. Populate with content:

- Migrate existing docs - Fill gaps with new content - Link related documents - Add navigation

  1. Integrate with AI:

- Add to context - Create knowledge graph entries - Enable discovery - Test accessibility

Workflow 4: Build Knowledge Graph

  1. Identify entities:

- What are the key concepts? - What needs to be remembered? - What has relationships?

  1. Define entity types:

- Project (repos, services, apps) - Component (modules, features, functions) - Person (team members, stakeholders) - Decision (architectural choices) - Process (workflows, procedures) - Resource (docs, tools, dependencies)

  1. Extract observations:

- Facts about each entity - Properties and attributes - Context and purpose - Status and state

  1. Map relationships:

- How entities connect - Relationship types - Directionality - Strength/importance

  1. Store in knowledge graph:

- Use Memory MCP - Create entities - Create relations - Add observations

  1. Query to validate:

- Can you find entities? - Do relationships make sense? - Is information complete?

  1. Maintain over time:

- Add new entities - Update observations - Add new relationships - Prune obsolete information

Workflow 5: Maintain Knowledge Base

  1. Monitor knowledge health:

- Usage frequency - Outdated content - Gaps in coverage - User feedback

  1. Update regularly:

- Reflect code changes - Document new decisions - Add new patterns - Remove deprecated info

  1. Review periodically:

- Quarterly knowledge audit - Validate accuracy - Check completeness - Improve clarity

  1. Optimize for consumption:

- Improve searchability - Add missing links - Consolidate redundancy - Enhance examples

  1. Gather feedback:

- What's confusing? - What's missing? - What's most useful?

  1. Iterate on structure:

- Reorganize if needed - Add new categories - Improve navigation - Refine metadata

Quick Reference

ActionCommand/Trigger
Build new knowledge base"Build knowledge base for [project]"
Extract from codebase"Extract knowledge from codebase"
Organize project docs"Organize project knowledge"
Create knowledge graph"Create knowledge graph for [domain]"
Update knowledge base"Update knowledge base with [new info]"
Audit knowledge"Audit knowledge base health"
Structure documentation"Structure documentation for [project]"

Best Practices

  • Start with Purpose: Define what the knowledge base should accomplish

- Enable AI to understand codebase - Help new developers onboard - Preserve architectural decisions - Document domain knowledge

  • Structure for Discovery: Make information findable

- Clear hierarchy - Consistent naming - Comprehensive indexing - Rich cross-linking - Metadata tagging

  • Write for AI and Humans: Both will consume this

- Clear, concise language - Structured formats (tables, lists) - Explicit relationships - Contextual information - Code examples

  • Keep It Current: Stale knowledge is worse than no knowledge

- Update with code changes - Review regularly - Remove obsolete info - Version alongside code

  • Make It Accessible: Knowledge must be reachable

- Link from README - Reference in code comments - Add to AI context - Create in knowledge graph

  • Use Multiple Formats: Different knowledge needs different formats

- Markdown for prose documentation - Knowledge graphs for relationships - Schema files for structure - Code comments for implementation details - Diagrams for architecture

  • Preserve Context: Don't just document "what", document "why"

- Why this architecture? - Why not alternative approaches? - What constraints influenced decisions? - What trade-offs were made?

  • Link Generously: Connect related concepts

- Cross-reference documents - Link code to docs - Connect related decisions - Reference external resources

Knowledge Base Structure

Recommended File Organization

/docs
  /README.md                 # Project overview
  /ARCHITECTURE.md           # System design
  /DECISIONS.md              # ADRs (Architecture Decision Records)
  /PIPELINE_STATUS.md        # Current project state
  /CONTRIBUTING.md           # Development guide
  /API.md                    # API reference
  /DATABASE.md               # Schema documentation
  /DEPLOYMENT.md             # Deployment guide
  /TROUBLESHOOTING.md        # Common issues
  /guides/                   # How-to guides
    /getting-started.md
    /development-workflow.md
    /testing.md
  /reference/                # Technical reference
    /components.md
    /utilities.md
    /configurations.md
  /decisions/                # Detailed ADRs
    /001-framework-choice.md
    /002-state-management.md

Documentation Templates

ARCHITECTURE.md Template
# Architecture

## Overview
[High-level system description]

## System Components
- **Component 1**: [Purpose and responsibility]
- **Component 2**: [Purpose and responsibility]

## Data Flow
[How data moves through the system]

## Key Design Decisions
1. **[Decision]**: [Rationale]
2. **[Decision]**: [Rationale]

## Technology Stack
- Frontend: [Technologies]
- Backend: [Technologies]
- Database: [Technologies]
- Infrastructure: [Technologies]

## Integration Points
- [External service 1]: [How we integrate]
- [External service 2]: [How we integrate]

## Security Considerations
[Security architecture and patterns]

## Scalability & Performance
[How system scales, performance characteristics]
DECISIONS.md Template (ADR Log)
# Architecture Decision Records

## ADR-001: [Decision Title]
**Date**: YYYY-MM-DD
**Status**: Accepted | Proposed | Deprecated

**Context**:
[What is the issue we're trying to solve?]

**Decision**:
[What we decided to do]

**Consequences**:
- Positive: [Benefits]
- Negative: [Trade-offs]
- Neutral: [Other impacts]

**Alternatives Considered**:
1. [Alternative 1]: [Why rejected]
2. [Alternative 2]: [Why rejected]

---

## ADR-002: [Next Decision]
[...]
Component Documentation Template
# [Component Name]

## Purpose
[What this component does and why it exists]

## Location
`/path/to/component`

## Dependencies
- [Dependency 1]: [Why needed]
- [Dependency 2]: [Why needed]

## API
### Functions
- `functionName(params)`: [Description]

### Types
\`\`\`typescript
interface ComponentProps {
  // ...
}
\`\`\`

## Usage
\`\`\`typescript
// Example usage
\`\`\`

## Related Components
- [Component A]: [Relationship]
- [Component B]: [Relationship]

## Known Issues
- [Issue 1]: [Workaround]

Knowledge Graph Patterns

Entity Types for Software Projects

Project
  - name
  - description
  - status (active, maintenance, deprecated)
  - tech_stack

Component
  - name
  - type (service, module, function)
  - location (file path)
  - purpose
  - status

Person
  - name
  - role
  - expertise_areas
  - current_focus

Decision
  - title
  - date
  - status
  - context
  - choice
  - rationale

Process
  - name
  - type (workflow, procedure, standard)
  - steps
  - triggers
  - outputs

Dependency
  - name
  - version
  - purpose
  - critical (boolean)

Relationship Types

Project --depends_on--> Dependency
Project --contains--> Component
Component --uses--> Component
Component --implements--> Decision
Person --owns--> Component
Person --made--> Decision
Decision --supersedes--> Decision
Component --documented_in--> Document
Process --governs--> Component

Example Knowledge Graph Creation

// Create entities
await memory.create_entities({
  entities: [
    {
      name: "id8labs-app",
      entityType: "Project",
      observations: [
        "Next.js 14+ application",
        "Uses Supabase for backend",
        "Deployed on Vercel",
        "Monorepo structure"
      ]
    },
    {
      name: "authentication-module",
      entityType: "Component",
      observations: [
        "Located in /src/features/auth",
        "Handles user authentication via Supabase Auth",
        "Supports magic link and OAuth",
        "Implements RLS policies"
      ]
    }
  ]
});

// Create relationships
await memory.create_relations({
  relations: [
    {
      from: "id8labs-app",
      to: "authentication-module",
      relationType: "contains"
    },
    {
      from: "authentication-module",
      to: "Supabase Auth",
      relationType: "uses"
    }
  ]
});

Knowledge Extraction Techniques

From Code

  • Function/Class documentation: Purpose, parameters, returns
  • Module organization: Structure and relationships
  • Design patterns: Implementation approaches
  • Error handling: Known failure modes
  • Performance considerations: Optimization notes

From Conversations

  • Decisions made: Choices and rationale
  • Problems solved: Issues and solutions
  • Lessons learned: What worked, what didn't
  • Open questions: Unresolved issues
  • Action items: Tasks and owners

From External Sources

  • API documentation: Integration guides
  • Research papers: Technical approaches
  • Stack Overflow: Common solutions
  • Blog posts: Best practices
  • Conference talks: Industry patterns

Knowledge Quality Checklist

Good knowledge base entries should:

  • Have clear, descriptive titles
  • Explain the "why" not just the "what"
  • Include concrete examples
  • Link to related concepts
  • Specify when created/updated
  • Indicate status (current, deprecated)
  • Use consistent formatting
  • Be discoverable through search
  • Provide sufficient context
  • Reference original sources

Maintenance Schedule

Daily

  • Document new decisions as they're made
  • Update PIPELINE_STATUS.md with progress
  • Add code comments for complex logic

Weekly

  • Review open questions and update
  • Check for outdated information
  • Update API docs if endpoints changed
  • Sync knowledge graph with changes

Monthly

  • Audit knowledge base completeness
  • Review and improve unclear docs
  • Update architecture diagrams
  • Clean up obsolete content

Quarterly

  • Major knowledge base review
  • Reorganize structure if needed
  • Gather user feedback
  • Plan improvements

Tools & Technologies

Storage Options

ToolBest ForFormat
Markdown filesHuman-readable docs.md files in repo
Memory MCPAI-accessible relationshipsKnowledge graph
Code commentsImplementation contextJSDoc, inline comments
OpenAPI/GraphQLAPI contractsYAML/JSON schemas
MermaidVisual diagramsDiagram-as-code
NotionCollaborative docsRich text, databases

Generation Tools

  • TypeDoc: Generate docs from TypeScript
  • JSDoc: Generate docs from JavaScript
  • Swagger/OpenAPI: Generate API docs
  • Mermaid: Generate diagrams
  • Supabase CLI: Generate DB types

Common Pitfalls

  • Over-documentation: Don't document the obvious
  • Under-documentation: Don't assume knowledge
  • Outdated docs: Worse than no docs
  • Scattered information: Consolidate related knowledge
  • Missing context: Always explain the "why"
  • Poor organization: Make it findable
  • No maintenance: Knowledge bases decay
  • One format only: Use appropriate formats for different needs

平台分布

Codex

35.47%
按下载量换算618

Claude

29.38%
按下载量换算512

Cursor

17.23%
按下载量换算300

Gemini CLI

8.95%
按下载量换算156

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills