Token导航 LogoToken导航

Agent Skill · 研究检索

knowledge-base-manager(知识库管理器)

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

knowledge-base-manager 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证为 MIT,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 19,005。

总安装 5,811周安装 144GitHub Stars 25下载 1,502核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/daffy0208/ai-dev-standards --skill 'Knowledge Base Manager'

这个 Skill 是做什么的

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

用于搭建或维护带检索增强的 RAG 工作流,适合处理知识库问答和向量检索任务。适用于研究检索场景,支持来源引用和事实核查功能。需配置数据接入、Embedding 和召回参数以优化回答质量。使用时需确认数据来源和更新频率,避免误将过期内容作为确定事实输出。

knowledge-base-manager 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

knowledge-base-manager 怎么安装?

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

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

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

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

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

knowledge-base-manager 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

knowledge-base-manager 用的人多吗?

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

knowledge-base-manager 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 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-manager

知识库管理器 · 本页

5,81125调用外部服务MIT有提醒

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

SKILL.md 原文

Knowledge Base Manager

Build and maintain high-quality knowledge bases for AI systems and human consumption.

Core Principle

Knowledge Base = Structured Information + Quality Curation + Accessibility

A knowledge base is not just a data dump—it's curated, validated, versioned information designed to answer questions and enable reasoning.


When to Use Knowledge Bases

Use Knowledge Bases When:

  • ✅ Need to answer factual questions consistently
  • ✅ Information changes frequently and needs version control
  • ✅ Multiple sources need to be unified and reconciled
  • ✅ Provenance and citation tracking is critical
  • ✅ Building AI systems that need grounded, verifiable information
  • ✅ Organizational knowledge needs to be preserved and searchable
  • ✅ Complex domain with interconnected concepts

Don't Use Knowledge Bases When:

  • ❌ Static documentation is sufficient (use docs + search)
  • ❌ No one will maintain/update it (knowledge rot guaranteed)
  • ❌ Simple FAQ covers all questions (<50 items)
  • ❌ Information doesn't change (static site faster/cheaper)
  • ❌ Team lacks resources for curation

Knowledge Base Types: Decision Framework

1. Document-Based Knowledge Base (RAG)

What it is: Collection of documents, chunked and embedded for semantic search

Best for:

  • Technical documentation
  • Support articles, FAQs
  • Policy documents
  • Research papers
  • Blog content
  • User manuals

Strengths:

  • Easy to add new documents
  • Preserves full context
  • Natural for text-heavy content

Weaknesses:

  • Hard to query relationships ("Who works where?")
  • Duplicate information across documents
  • Difficult to keep facts consistent

Use: rag-implementer skill + vector-database-mcp


2. Entity-Based Knowledge Base (Knowledge Graph)

What it is: Network of entities (people, places, things) connected by relationships

Best for:

  • Organizational charts
  • Product catalogs with relationships
  • Social networks
  • Recommendation systems
  • Fraud detection
  • Supply chain tracking

Strengths:

  • Excellent for "how are X and Y related?" queries
  • Consistent facts (one source of truth)
  • Powerful traversal ("friends of friends")

Weaknesses:

  • Upfront modeling required (ontology design)
  • Harder to add unstructured information
  • Learning curve for graph queries

Use: knowledge-graph-builder skill + graph-database-mcp


3. Hybrid Knowledge Base (RAG + Graph)

What it is: Documents for unstructured knowledge + Graph for structured entities/relationships

Best for:

  • Enterprise knowledge management
  • Research with citations and relationships
  • Medical systems (documents + patient/drug relationships)
  • Legal systems (cases + precedents + entities)
  • E-commerce (products + specs + relationships)

Strengths:

  • Best of both worlds
  • Flexible for different knowledge types
  • Rich querying capabilities

Weaknesses:

  • Most complex to build and maintain
  • Requires expertise in both RAG and graphs
  • Higher infrastructure costs

Use: Both rag-implementer + knowledge-graph-builder skills


Decision Tree: Which KB Type?

What kind of knowledge do you have?

├─ Mostly unstructured text (docs, articles, content)?
│  └─ Document-Based KB (RAG)
│     Use: rag-implementer skill
│
├─ Mostly structured entities with relationships?
│  └─ Entity-Based KB (Graph)
│     Use: knowledge-graph-builder skill
│
└─ Mix of both?
   └─ Hybrid KB (RAG + Graph)
      Use: Both skills + This skill for integration

6-Phase Knowledge Base Implementation

Phase 1: Knowledge Audit & Architecture

Goal: Understand what knowledge exists and how to structure it

Actions:

  1. Inventory existing knowledge sources

- Internal: databases, documents, wikis, Slack, emails - External: public data, APIs, third-party sources - Tribal: SME interviews, recorded conversations

  1. Classify knowledge types

- Factual: Verifiable facts ("Product X costs $50") - Procedural: How-to knowledge ("How to deploy") - Conceptual: Definitions and explanations - Relationship: Connections between entities

  1. Choose KB architecture

- Document-based? Entity-based? Hybrid? - Decision: Use framework above

  1. Define knowledge schema

- For documents: metadata fields (source, date, author, category) - For entities: ontology (entity types, relationship types, properties)

Validation:

  • All knowledge sources inventoried and prioritized
  • KB architecture chosen and justified
  • Schema defined and validated with users
  • Success metrics established

Phase 2: Knowledge Curation & Ingestion

Goal: Transform raw information into high-quality knowledge

Actions:

  1. Extract knowledge from sources

- Automated: scraping, API ingestion, file parsing - Manual: expert input, annotation, validation

  1. Clean and normalize

- Remove duplicates - Standardize formats - Fix inconsistencies - Enrich with metadata

  1. Structure knowledge

- For documents: chunk intelligently (semantic boundaries) - For entities: extract entities, relationships, properties

  1. Add provenance

- Source URL or reference - Last updated timestamp - Author/contributor - Confidence score (if applicable)

Curation Best Practices:

  • Single Source of Truth: One canonical answer per question
  • Deduplication: Merge similar knowledge entries
  • Conflict Resolution: When sources disagree, establish priority rules
  • Metadata Richness: More metadata = better filtering and search

Validation:

  • Knowledge extracted and structured
  • Quality metrics above threshold (accuracy >95%)
  • Provenance tracked for all entries
  • Sample queries return relevant results

Phase 3: Storage & Retrieval Setup

Goal: Implement technical infrastructure for knowledge access

Architecture Patterns:

For Document-Based KB:

// Vector database for semantic search
interface DocumentKB {
  store: 'Pinecone' | 'Weaviate' | 'pgvector'
  chunks: {
    content: string
    embedding: number[]
    metadata: {
      source: string
      title: string
      updated_at: string
      category: string
    }
  }[]
}

For Entity-Based KB:

// Graph database for relationship queries
interface EntityKB {
  store: 'Neo4j' | 'ArangoDB'
  nodes: {
    id: string
    type: 'Person' | 'Organization' | 'Product' | 'Concept'
    properties: Record<string, any>
  }[]
  relationships: {
    from: string
    to: string
    type: string
    properties: Record<string, any>
  }[]
}

For Hybrid KB:

// Both vector DB + graph DB
interface HybridKB {
  vectorDB: DocumentKB
  graphDB: EntityKB
  linker: {
    // Links documents to entities mentioned in them
    linkDocumentToEntities(docId: string): string[]
    // Links entities to documents that mention them
    linkEntityToDocuments(entityId: string): string[]
  }
}

Actions:

  1. Choose database(s)

- Document: Pinecone, Weaviate, pgvector - Entity: Neo4j, ArangoDB - Hybrid: Both + linking layer

  1. Implement search/query layer

- Vector similarity search (for documents) - Graph traversal (for entities) - Hybrid queries (combining both)

  1. Add caching and optimization

- Cache frequent queries - Optimize for common access patterns

Validation:

  • Database deployed and accessible
  • Search/query functionality working
  • Performance meets requirements (<100ms for most queries)

Phase 4: Quality Control & Validation

Goal: Ensure knowledge base accuracy and reliability

Quality Metrics:

  1. Accuracy: % of correct answers to test questions
  2. Coverage: % of user questions answerable
  3. Freshness: Average age of knowledge
  4. Consistency: % of conflicts/contradictions
  5. Source Quality: % from authoritative sources

Validation Strategies:

1. Test Question Sets Create 100+ test questions with known correct answers:

interface TestQuestion {
  question: string
  expected_answer: string
  category: string
  difficulty: 'easy' | 'medium' | 'hard'
}

2. Human Review

  • Sample random knowledge entries
  • Subject matter expert validation
  • User feedback loops

3. Automated Checks

  • Duplicate Detection: Find near-identical entries
  • Conflict Detection: Find contradictory facts
  • Staleness Detection: Flag outdated information
  • Citation Validation: Verify sources still exist

4. Continuous Monitoring

interface KBHealthMetrics {
  accuracy_score: number // 0-100
  coverage_score: number // % questions answered
  freshness_score: number // avg days since update
  consistency_score: number // % no conflicts
  user_satisfaction: number // feedback rating
}

Actions:

  1. Run test question validation (target: >90% accuracy)
  2. Conduct human review (sample 10% of entries)
  3. Fix detected issues (duplicates, conflicts, staleness)
  4. Establish monitoring dashboards

Validation:

  • Accuracy >90% on test questions
  • Coverage >80% of user questions
  • <5% conflicting information
  • Monitoring dashboard operational

Phase 5: Versioning & Evolution

Goal: Track knowledge changes over time and enable rollback

Why Versioning Matters:

  • Knowledge changes (facts update, policies change)
  • Need audit trail (who changed what when)
  • Rollback capability (undo bad updates)
  • Historical queries ("What was policy on X in 2023?")

Versioning Strategies:

1. Snapshot Versioning

interface KnowledgeEntry {
  id: string
  content: string
  version: number
  created_at: string
  updated_at: string
  updated_by: string
  changelog: string
  previous_version?: string // ID of prior version
}

2. Event Sourcing

interface KnowledgeEvent {
  event_id: string
  entity_id: string
  event_type: 'created' | 'updated' | 'deleted'
  timestamp: string
  changes: {
    field: string
    old_value: any
    new_value: any
  }[]
  author: string
}

3. Git-Style Versioning

  • Treat knowledge like code
  • Commit-based changes
  • Branch for experimental knowledge
  • Merge when validated

Actions:

  1. Implement version tracking
  2. Add changelog for all updates
  3. Create rollback mechanism
  4. Build version comparison tools

Validation:

  • All changes tracked with versions
  • Rollback tested and working
  • Historical queries supported
  • Audit trail complete

Phase 6: Maintenance & Governance

Goal: Keep knowledge base healthy long-term

Maintenance Tasks:

Daily:

  • Monitor for errors and failures
  • Review user feedback
  • Address urgent corrections

Weekly:

  • Review new content submissions
  • Update time-sensitive knowledge
  • Run automated quality checks

Monthly:

  • Audit knowledge freshness
  • Review and resolve conflicts
  • Analyze usage patterns
  • Update stale content

Quarterly:

  • Comprehensive quality audit
  • Schema/ontology review
  • Performance optimization
  • User satisfaction survey

Governance Framework:

1. Roles & Responsibilities

  • Knowledge Owners: Domain experts responsible for content
  • Curators: Review and approve changes
  • Contributors: Submit new knowledge
  • Consumers: Use knowledge and provide feedback

2. Change Process

Submit → Review → Approve → Publish → Monitor

3. Quality Standards

  • Minimum source quality requirements
  • Citation requirements
  • Update frequency requirements
  • Conflict resolution process

Actions:

  1. Establish maintenance schedule
  2. Assign roles and responsibilities
  3. Create governance documentation
  4. Train team on processes

Validation:

  • Maintenance schedule in place
  • Governance documented and communicated
  • Team trained on processes
  • Quality trending upward

Knowledge Base Anti-Patterns

❌ Anti-Pattern 1: Data Dump Without Curation

Problem: Ingesting everything without quality filtering

Impact: Low signal-to-noise ratio, poor search results, user frustration

Solution: Curate before ingesting. Quality > Quantity


❌ Anti-Pattern 2: No Version Control

Problem: Knowledge changes but no history tracked

Impact: Can't audit changes, can't rollback errors, no accountability

Solution: Implement versioning from Phase 5


❌ Anti-Pattern 3: Stale Knowledge

Problem: Knowledge base outdated but no one knows

Impact: AI systems hallucinate using old facts, users get wrong answers

Solution: Freshness monitoring + scheduled updates


❌ Anti-Pattern 4: Duplicate Information

Problem: Same fact in multiple places, becomes inconsistent

Impact: Conflicting answers, confused users

Solution: Deduplication + single source of truth


❌ Anti-Pattern 5: No Provenance

Problem: Knowledge without source citations

Impact: Can't verify accuracy, can't trace errors

Solution: Always track source + timestamp + author


Integration with Other Skills

With rag-implementer

  • Use for document-based portion of hybrid KB
  • Follow RAG implementation phases
  • Integrate vector search with KB queries

With knowledge-graph-builder

  • Use for entity-based portion of hybrid KB
  • Follow graph design patterns
  • Integrate graph traversal with KB queries

With data-engineer

  • For ETL pipelines (extract, transform, load knowledge)
  • For data quality monitoring
  • For performance optimization

With quality-auditor

  • For automated quality checks
  • For testing and validation
  • For continuous monitoring

With technical-writer

  • For knowledge documentation
  • For user guides on KB usage
  • For governance documentation

Tools & Technologies

Document-Based KB Stack

  • Vector DB: Pinecone, Weaviate, pgvector
  • Embeddings: OpenAI, Cohere, custom
  • Search: Semantic + keyword hybrid

Entity-Based KB Stack

  • Graph DB: Neo4j, ArangoDB
  • Query: Cypher, AQL
  • Visualization: Neo4j Bloom, Gephi

Curation Tools

  • Deduplication: Custom algorithms, fuzzy matching
  • Conflict Detection: Rule-based, ML-based
  • Validation: Test question sets, human review

Monitoring

  • Metrics: Custom dashboard (Grafana)
  • Logging: Structured logging of queries/updates
  • Alerts: Freshness, accuracy, error rate alerts

Success Metrics

Knowledge Quality

  • Accuracy: >90% on test questions
  • Coverage: >80% of user questions answered
  • Freshness: <30 days average age
  • Consistency: <5% conflicting information

User Satisfaction

  • Relevance: >85% query results rated relevant
  • Usefulness: >80% users find KB valuable
  • Speed: <100ms median query time

Operational Health

  • Uptime: >99.9%
  • Update frequency: Weekly minimum
  • Team engagement: Regular contributions

Common Pitfalls & Solutions

Pitfall 1: "Build it and they will come"

Problem: No user validation, KB doesn't meet needs

Solution: Start with user research, validate continuously

Pitfall 2: Perfectionism

Problem: Waiting to launch until KB is "perfect"

Solution: Launch with 80% coverage, iterate based on usage

Pitfall 3: Over-engineering

Problem: Building complex hybrid system when simple docs would work

Solution: Start simple, add complexity only when needed

Pitfall 4: Maintenance neglect

Problem: Build once, never update

Solution: Establish maintenance schedule from day 1


Quick Start Checklist

Before you start:

  • Read this entire skill
  • Review rag-implementer if using document KB
  • Review knowledge-graph-builder if using entity KB
  • Have clear use case and success metrics

Phase 1 - Architecture (Week 1):

  • Inventory knowledge sources
  • Choose KB type (document/entity/hybrid)
  • Define schema/ontology
  • Set up infrastructure

Phase 2 - Initial Build (Week 2-3):

  • Ingest and curate initial knowledge
  • Implement search/query functionality
  • Create test question set
  • Validate with users

Phase 3 - Iterate (Ongoing):

  • Add more knowledge based on usage
  • Monitor quality metrics
  • Fix issues as discovered
  • Establish maintenance cadence

Related Resources

  • Skills: rag-implementer, knowledge-graph-builder, data-engineer, quality-auditor
  • MCPs: vector-database-mcp, graph-database-mcp, knowledge-base-mcp, semantic-search-mcp
  • Patterns: STANDARDS/architecture-patterns/rag-pattern.md, knowledge-base-pattern.md (coming soon)
  • Integrations: INTEGRATIONS/pinecone/, INTEGRATIONS/graph-databases/neo4j/

Further Reading


Remember: A knowledge base is only as good as its curation. Invest in quality from day 1, establish maintenance processes, and iterate based on user feedback. The goal is not to have all knowledge—it's to have the *right* knowledge, well-organized, and easily accessible.

平台分布

OpenCode

27.7%
按下载量换算416

Claude Code

21.93%
按下载量换算329

Gemini CLI

16.98%
按下载量换算255

Antigravity

11.88%
按下载量换算178

Codex

6.72%
按下载量换算101

windsurf

3.44%
按下载量换算52

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

调用外部服务

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills