Skip to content

Add skills.sh integration for AI agent discovery#64

Merged
tobi merged 1 commit intotobi:mainfrom
Algiras:add-skills-sh-integration
Jan 30, 2026
Merged

Add skills.sh integration for AI agent discovery#64
tobi merged 1 commit intotobi:mainfrom
Algiras:add-skills-sh-integration

Conversation

@Algiras
Copy link
Copy Markdown
Contributor

@Algiras Algiras commented Jan 28, 2026

Summary

  • Adds Agent Skills specification (agentskills.io) support so qmd can be discovered and used by AI agents via skills.sh
  • Creates skills/qmd/SKILL.md with search commands, options, workflows, and MCP tool documentation
  • Adds skills/qmd/references/MCP-SETUP.md with detailed MCP server setup guide
  • Updates .gitignore to allow .md files in skills/ directory

Usage

Once merged, users can install via:

npx skills add tobi/qmd

The skill supports both:

  • CLI usage via Bash with qmd commands
  • MCP server integration documenting all qmd_* tools and their CLI equivalents

Test plan

  • Verify SKILL.md follows Agent Skills spec format
  • Test skill installation with npx skills add
  • Confirm MCP setup instructions work with Claude Code

🤖 Generated with Claude Code

Adds a SKILL.md following the Agent Skills specification (agentskills.io)
so qmd can be discovered and used by AI agents via skills.sh.

- skills/qmd/SKILL.md: Main skill definition with search commands,
  options, workflows, and MCP tool documentation
- skills/qmd/references/MCP-SETUP.md: Detailed MCP server setup guide
- .gitignore: Allow .md files in skills/ directory

Users can install via: npx skills add tobi/qmd

The skill supports both CLI usage (via Bash) and MCP server integration,
documenting all qmd_* tools and their CLI equivalents.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds Agent Skills specification support to enable AI agent discovery of qmd via skills.sh. The PR creates comprehensive documentation for both CLI and MCP usage patterns.

Changes:

  • Adds skills/qmd/SKILL.md with Agent Skills specification format, documenting CLI commands, options, workflows, and MCP tool mappings
  • Adds skills/qmd/references/MCP-SETUP.md with detailed MCP server configuration and tool parameter documentation
  • Updates .gitignore to allow markdown files in the skills/ directory

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 5 comments.

File Description
skills/qmd/SKILL.md Agent Skills specification file documenting qmd commands, search modes, MCP integration, and usage workflows
skills/qmd/references/MCP-SETUP.md MCP server setup guide with configuration instructions and tool parameter documentation
.gitignore Adds exception pattern to allow markdown files in skills directory

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread skills/qmd/SKILL.md
# Semantic vector search (finds conceptually similar content)
qmd vsearch "your query"

# Hybrid search with re-ranking (best quality)
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent spelling of "reranking". The codebase consistently uses "reranking" without a hyphen (see README.md:29, 69 and src/mcp.ts:360, 367), but this file uses "re-ranking" with a hyphen. For consistency with the rest of the codebase, use "reranking" instead.

Suggested change
# Hybrid search with re-ranking (best quality)
# Hybrid search with reranking (best quality)

Copilot uses AI. Check for mistakes.
Comment on lines +85 to +89
Retrieve a document by path or docid.

**Parameters:**
- `path` (required): Document path or docid (e.g., `#abc123`)
- `full` (optional): Return full content (default: true)
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parameter documentation for qmd_get is incorrect. According to the MCP implementation (src/mcp.ts:454-458), the parameter name should be file not path, and there is no full parameter. The actual parameters are: file (required), fromLine (optional), maxLines (optional), and lineNumbers (optional). The full parameter appears to be a CLI option but is not available in the MCP tool.

Suggested change
Retrieve a document by path or docid.
**Parameters:**
- `path` (required): Document path or docid (e.g., `#abc123`)
- `full` (optional): Return full content (default: true)
Retrieve a document by file path or docid.
**Parameters:**
- `file` (required): Document path or docid (e.g., `#abc123`)
- `fromLine` (optional): Starting line number (1-based) for partial content
- `maxLines` (optional): Maximum number of lines to return

Copilot uses AI. Check for mistakes.
Comment on lines +63 to +73
- `limit` (optional): Number of results (default: 5)
- `minScore` (optional): Minimum relevance score

### qmd_vsearch
Semantic vector search for conceptual similarity.

**Parameters:**
- `query` (required): Search query string
- `collection` (optional): Restrict to specific collection
- `limit` (optional): Number of results (default: 5)
- `minScore` (optional): Minimum relevance score
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default limit values documented here are inconsistent with the actual MCP implementation. According to src/mcp.ts lines 265, 306, and 370, the default limit for all search tools (qmd_search, qmd_vsearch, qmd_query) is 10, not 5. Update these descriptions to reflect the correct default of 10 results.

Copilot uses AI. Check for mistakes.
- `query` (required): Search query string
- `collection` (optional): Restrict to specific collection
- `limit` (optional): Number of results (default: 5)
- `minScore` (optional): Minimum relevance score
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The minScore parameter documentation is incomplete for qmd_vsearch. According to src/mcp.ts:307, qmd_vsearch has a default minScore of 0.3 (not 0), which should be documented. This is an important difference from qmd_search which defaults to 0.

Copilot uses AI. Check for mistakes.

**Parameters:**
- `pattern` (required): Glob pattern or comma-separated list
- `maxBytes` (optional): Skip files larger than this (default: 10KB)
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The qmd_multi_get parameter documentation is incomplete. According to src/mcp.ts:519-521, qmd_multi_get also supports maxLines (optional) and lineNumbers (optional) parameters in addition to pattern and maxBytes. These should be documented.

Suggested change
- `maxBytes` (optional): Skip files larger than this (default: 10KB)
- `maxBytes` (optional): Skip files larger than this (default: 10KB)
- `maxLines` (optional): Maximum number of lines to return per file
- `lineNumbers` (optional): Include line numbers in returned content

Copilot uses AI. Check for mistakes.
@tobi tobi merged commit f6a987a into tobi:main Jan 30, 2026
6 checks passed
Anrahya pushed a commit to Anrahya/qmd that referenced this pull request Feb 3, 2026
jaylfc added a commit to jaylfc/qmd that referenced this pull request Apr 5, 2026
jaylfc added a commit to jaylfc/qmd that referenced this pull request Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants