pkm-query

Generate SQLite queries to search and filter Doc Database documentation entries.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/Albatross679/snake-hrl-torchrl --skill pkm-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pkm-query
Source: https://github.com/Albatross679/snake-hrl-torchrl/tree/main/.claude/skills/doc-db-query
Command: npx skills add https://github.com/Albatross679/snake-hrl-torchrl --skill pkm-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill allows you to efficiently query and retrieve information from your project's documentation database using SQL, making it easy to find specific entries based on various criteria.

Core Features & Use Cases

  • SQL-based querying: Generate SQLite queries to search, filter, and list documentation entries.
  • Schema awareness: Understands the structure of different document types (logs, experiments, issues, etc.) and their relationships.
  • Use Case: Find all 'open' issues with 'critical' severity related to 'performance' and list their names and descriptions.

Quick Start

Generate a SQLite query to find all logs with the tag 'bugfix'.

Frequently Asked Questions about pkm-query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query project documentation using SQLite?

You can query project documentation using SQLite by generating SQL statements to search, filter, and list entries. This allows you to retrieve specific documentation records based on their frontmatter properties and relationships.

Can I filter documentation entries by frontmatter properties in SQL?

Yes, you can filter documentation entries by their frontmatter properties using SQL. The querying mechanism understands the schema of different document types, allowing you to specify criteria like finding open issues with critical severity.

Do I need to know SQLite syntax to search documentation entries?

Yes, you need an understanding of SQLite syntax to search documentation entries. Specifically, you must understand junction tables for multi-valued fields and correlated subqueries to ensure efficient data retrieval from the database.

What is the best way to find open issues with critical severity in a knowledge base?

The best way to find open issues with critical severity in a knowledge base is to generate a SQLite query. You can filter the documentation database entries based on their specific frontmatter properties and list their names and descriptions.

How does the database handle multi-valued fields when querying documentation?

The database handles multi-valued fields when querying documentation by using junction tables. You need to write SQLite queries that join these junction tables to accurately search and filter entries containing multiple values in a single frontmatter property.

What document types can I retrieve from the Doc Database using SQL?

You can retrieve logs, experiments, issues, knowledge bases, references, and ideas from the Doc Database using SQL. The schema is aware of these different document types and their relationships for efficient data retrieval.