clawdbot/skills/repoql-sql/SKILL.md
SQL reference for RepoQL query tool - views, functions, and patterns.
npx skillsauth add stueeey/repoql.public repoql-sqlInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use repoql_query for DuckDB SQL queries on indexed repository data.
Document inventory with metadata.
SELECT uri, lang, lines, error_count, headline, summary
FROM Files
WHERE lang = 'csharp'
ORDER BY lines DESC
LIMIT 10
| Column | Description | |--------|-------------| | uri | File URI (file:///path) | | lang | Detected language | | lines | Line count | | error_count | Parse errors | | headline | One-line summary | | summary | Multi-line summary |
Callable units (methods, functions).
SELECT name, qualified_name, signature, declaring_type, is_async
FROM Functions
WHERE declaring_type = 'AuthService'
| Column | Description | |--------|-------------| | name | Function name | | qualified_name | Full path (Namespace.Class.Method) | | signature | Parameter signature | | declaring_type | Containing type | | is_async | Async marker |
Type definitions (classes, interfaces, enums).
SELECT name, qualified_name, type_kind, extends, implements
FROM Types
WHERE type_kind = 'interface'
| Column | Description | |--------|-------------| | name | Type name | | qualified_name | Full path | | type_kind | class/interface/enum/struct | | extends | Base type | | implements | Implemented interfaces (array) |
Diagnostics, lint results, facts.
SELECT resolved_target_uri, severity, rule_id, message
FROM Annotations
WHERE severity = 'error'
Semantic + lexical hybrid search.
SELECT * FROM search('authentication flow', k := 10)
SELECT * FROM search('config validation', k := 5)
Find symbols by name.
SELECT * FROM search_symbol('ValidateToken')
SELECT * FROM search_symbol('IAuth%') -- Wildcards work
Code preview around location.
SELECT snippet(uri, 3) FROM Files WHERE uri LIKE '%Auth%'
Find files with errors:
SELECT uri, error_count FROM Files WHERE error_count > 0
Count functions per file:
SELECT f.uri, COUNT(*) as fn_count
FROM Functions fn
JOIN Files f ON fn.file_uri = f.uri
GROUP BY f.uri
ORDER BY fn_count DESC
Find async methods:
SELECT qualified_name, signature
FROM Functions
WHERE is_async = true
Search within scope:
SELECT * FROM search('error handling', k := 10)
WHERE uri LIKE 'file:///src/services/%'
tools
Diagnose and fix RepoQL issues. Use when tool calls fail, results seem wrong, indexing is stuck, the host is unresponsive, or things are slow.
development
This skill guides intentional skill design. Use when creating, improving, or reviewing Claude Code skills. Requires a zone assessment to clarify what kind of skill is being built before writing content.
documentation
Effective Mermaid diagrams. Use when creating markdown documents with human audiences.
tools
Effective use of RepoQL — the workflow, the techniques, and the wild magic. Use when you want to get more out of RepoQL or need to understand what's possible.