qmd-knowledge

使用 qmd 管理项目知识 — 记录学习成果、决策和约定。

仓库最近推送
GitHub Stars
130
Forks
13
Issues / PRs
15

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "qmd-knowledge":https://skillpi.com/zh/skills/deepskill-e4d3e10be096cbf92c7e32fdb051c53203754ce7ee46d960bc1c5b974c9d01e8。安装前核对上游来源和版本:https://github.com/jellydn/my-ai-tools。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

使用 qmd 管理项目知识 — 记录学习成果、决策和约定。

0 下载

介绍来源: third_party · jellydn · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
翻译待完成,请参阅来源文档。
输入和输出
来源文档未说明。
软件、账号及付费要求
翻译待完成,请参阅来源文档。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: qmd-knowledge
description: "Manage project knowledge with qmd — captures learnings, decisions, and conventions"
license: MIT
compatibility: cline, opencode, claude, amp, codex, gemini, cursor, pi
hint: Use when recording or retrieving project knowledge, learnings, and issue notes
user-invocable: true
metadata:
  audience: all
  workflow: knowledge-management

QMD Knowledge

What I do

  • Record and retrieve project learnings and insights
  • Capture issue-specific notes and resolutions
  • Build a growing, AI-searchable knowledge base
  • Provide context about project architecture and decisions

When to use me

Use this skill when you need to:

  • Record learnings: Capture new insights, patterns, or best practices discovered during development
  • Track issues: Add notes to ongoing or resolved issues
  • Query knowledge: Search for previous decisions, learnings, or solutions
  • Maintain context: Build institutional memory for the project

How it works

This skill provides a unified knowledge management system. You install the skill once, and it manages knowledge across all your projects using qmd collections:

# The qmd-knowledge skill (installed to your AI tool's skills directory)
# Location varies by tool: $HOME/.config/opencode/skills/, $HOME/.claude/skills/, or $HOME/.config/amp/skills/
├── SKILL.md              # This file - the skill definition
├── scripts/              # Executable scripts
│   └── record.sh         # Record learnings/issues/notes
└── references/           # Example structure and READMEs

# Project knowledge storage (managed by the skill)
~/.ai-knowledges/
├── <project-name>/       # Collection for your project
│   ├── learnings/
│   └── issues/
└── another-project/      # Collection for another project
    ├── learnings/
    └── issues/

The qmd MCP server provides AI-powered search across all stored knowledge, allowing your AI assistant to autonomously query and update the knowledge base.

Available scripts

Recording knowledge

Important: Before recording knowledge, ensure qmd is installed and your project collection is set up. Run a preflight check:

# Verify qmd is installed
command -v qmd || echo "Install qmd: bun install -g @tobilu/qmd"

# Verify your project collection exists (replace my-project with your actual project name)
qmd collection list | grep my-project
# Record a learning (use the skill's script)
$SKILL_PATH/scripts/record.sh learning "qmd MCP integration"

# Add a note to an issue
$SKILL_PATH/scripts/record.sh issue 123 "Fixed by updating dependencies"

# Record a general note
$SKILL_PATH/scripts/record.sh note "Consider using agent skills for extensibility"

After recording:

  • The record.sh script automatically runs qmd embed to re-index the knowledge base
  • This embedding step is required to make newly added content searchable for the next query
  • If auto-embedding fails or you manually add/edit files, run qmd embed explicitly to update the index

Querying knowledge

Use the qmd MCP server tools directly from Claude or OpenCode:

# Fast keyword search
qmd search "MCP servers" -c <project-name>

# Semantic search with AI embeddings
qmd vsearch "how to configure MCP"

# Hybrid search with reranking (best quality)
qmd query "MCP server configuration"

# Get specific document
qmd get "references/learnings/2024-01-26-qmd-integration.md"

# Search with minimum score filter
qmd search "API" --all --files --min-score 0.3 -c <project-name>

Setup

Preflight check: Before starting, verify you have the required tools:

# Check for bun or node
command -v bun || command -v node || echo "Install bun or node.js first"

# Verify git is available (for project detection)
command -v git || echo "Install git for automatic project name detection"
  1. Install qmd:

    bun install -g @tobilu/qmd
  2. Install the skill:

    # The skill is installed to your AI tool's skills directory:
    # - OpenCode: $HOME/.config/opencode/skills/qmd-knowledge/
    # - Claude Code: $HOME/.claude/skills/qmd-knowledge/
    # - Amp: $HOME/.config/amp/skills/qmd-knowledge/
  3. Configure MCP server (see installation docs for Claude/OpenCode/Amp)

  4. Create a knowledge collection for your project:

    # The skill's record.sh script will auto-detect the project name when executed.
    # For manual setup, use your desired project name consistently in the commands below.
    # Optional: export QMD_PROJECT=<project-name> to override auto-detection
    
    # Create storage directory for your project (replace <project-name> with your project)
    mkdir -p ~/.ai-knowledges/<project-name>/learnings
    mkdir -p ~/.ai-knowledges/<project-name>/issues
    
    # Add qmd collection
    qmd collection add ~/.ai-knowledges/<project-name> --name <project-name>
    qmd context add qmd://<project-name> "Knowledge base for <project-name> project: learnings, issue notes, and conventions"
    
    # Generate embeddings for AI-powered search
    qmd embed

Knowledge structure

  • references/learnings/: Time-stamped markdown files with project insights

    • Format: YYYY-MM-DD-topic-slug.md
    • Contains learnings, patterns, architectural decisions
  • references/issues/: Issue-specific notes and resolutions

    • Format: <issue-id>.md
    • Append-only log of notes related to specific issues

Integration with qmd MCP server

The qmd MCP server allows Claude to:

  • Search knowledge: Use natural language queries to find relevant context
  • Auto-update index: Automatically reindex after adding new knowledge
  • Filter by project: Use --collection flag to scope searches to specific projects

Example workflow

  1. During development, you discover something useful:

    "I learned that qmd MCP server allows Claude to use tools autonomously."

  2. Claude recognizes the skill and executes:

    $SKILL_PATH/scripts/record.sh learning "qmd MCP autonomous tool use"
  3. Later, you ask:

    "What did I learn about MCP servers?"

  4. Claude queries the knowledge base using qmd MCP tools:

    qmd query --collection <project-name> "MCP servers"

Project detection

The skill automatically detects your project name using the following priority:

  1. QMD_PROJECT environment variable (highest priority)

    export QMD_PROJECT=my-project-name
  2. Git remote URL (most reliable - extracts repo name from origin URL)

    • Example: https://github.com/user/my-project.git → my-project
    • Works even if the local folder has a different name
  3. Git repository folder name (fallback)

    • Uses the name of the git repository root directory
    • Works when you're anywhere inside a git repository
    • Note: May not match the actual repo name if the folder was renamed
  4. Current directory name (last resort)

    • Uses the name of your current working directory
    • Used when not in a git repository

This means you can use the skill in any project without hardcoding project names. The knowledge base will be stored at ~/.ai-knowledges/<detected-project-name>/.

Important: The script prioritizes the git remote URL to ensure consistent project naming even if local folders are renamed or in non-standard locations (e.g., dated folders like 2026-01-08-my-ai-tools.qmd-skill).

📋 Best Practices

🎨 Session Wrap-up

At the end of a work session, consider prompting the user about key learnings:

"What were the main discoveries or decisions from this session? Would you like me to record any learnings?"

🎨 Pattern Detection

Be attentive to phrases that indicate valuable knowledge capture opportunities:

  • "I discovered that..."
  • "I learned that..."
  • "The solution was..."
  • "The key insight is..."
  • "Don't forget to..."
  • "Make sure to..."

When you detect these patterns, suggest recording:

"That sounds like a useful learning. Would you like me to record it?"

🎨 Auto-Index Updates

The record script automatically runs qmd embed after each write, ensuring the knowledge base is searchable immediately. This re-indexing step is required to make new content available for search queries.

Important: If you manually create or edit knowledge files (outside of the record script), you must run qmd embed manually to update the search index:

# Manual re-indexing after direct file edits
qmd embed

Without re-indexing, newly added or modified content will not appear in search results.

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值75/100

亮点

  • 提供项目知识管理系统,解决开发者知识沉淀和检索的实际痛点
  • 支持多种知识类型:学习成果、问题记录、决策约定
  • 集成AI搜索能力,提升知识检索效率
触发精准85/100

亮点

  • frontmatter中hint字段提供清晰触发指引
  • description详细覆盖record/retrieve/query等核心场景
  • 触发词边界清晰,不易与其他技能混淆
结构规范90/100

待提升项

  • 缺少明确的退出条件说明 原报告严重程度:轻微

    文档中未明确说明何时停止记录或查询操作

    改进建议:在How it works或When to use部分添加明确的退出条件说明

亮点

  • 文档结构完整,包含What I do/When to use/How it works等标准章节
  • 提供详细的命令行示例和配置步骤
  • frontmatter元数据完整,兼容性声明清晰
执行可靠85/100

亮点

  • 工具来源明确,提供完整的qmd安装和配置指南
  • 包含预检步骤,检查必要依赖是否存在
  • 自动项目检测机制完善,支持多种fallback方案
  • 记录脚本自动执行embedding,确保搜索可用性
证据可验 (前四项均值)84/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • github.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

翻译待完成,请参阅来源文档。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。