devql-explore-first
Use always before codebase exploration, bug fixing, SWE-bench tasks, locating symbols, files, or tests, or before using rg, grep, sed, find, or source-file…
Use when answering repo-understanding questions in a Bitloops repo with DevQL guidance enabled, especially when you need to locate code by path, line range, exact symbol, or approximate/conceptual search before reading files.
$ npx -y skills add bitloops/bitloops --skill using-devql --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/using-devqlContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when answering repo-understanding questions in a Bitloops repo with DevQL guidance enabled, especially when you need to locate code by path, line range, exact symbol, or approximate/conceptual search before reading files.
name: using-devql description: > Use when answering repo-understanding questions in a Bitloops repo with DevQL guidance enabled, especially when you need to locate code by path, line range, exact symbol, or approximate/conceptual search before reading files.
DevQL is Bitloops's typed repo-intelligence surface. In repos where this guidance is enabled, use DevQL first for repo-understanding questions when it is available in the current session. If DevQL returns nothing useful or is not available, fall back to targeted repo search or file reads.
artefacts from that file.
a file; Bitloops limits the seed artefacts to that line range.
Use `searchMode: LEXICAL` for identifiers, literals, file-ish strings, and snippets. Keep the default `AUTO` mode for approximate or conceptual search. Use `IDENTITY`, `ARCHITECTURE`, `CODE`, or `SUMMARY` only when you need advanced narrowing.
1. Choose the most specific selector available: `path`, `path + lines`, or `symbolFqn` when the request is exact; `search` when you need lookup rather than direct addressing. 2. If the request is an identifier, literal, path-like string, or snippet, distill it and run `search` with `searchMode: LEXICAL`. 3. If the request is approximate or conceptual, distill it to a short phrase and run `search` in the default `AUTO` mode first. Inspect `artefacts(first: 10)` and, when useful, `searchBreakdown(first: 3)` to see which retrieval mode is carrying the result. 4. Reserve `searchMode: IDENTITY`, `ARCHITECTURE`, `CODE`, or `SUMMARY` for advanced narrowing when `AUTO` is broad but you already know which representation is likely to matter. 5. Once you have a concrete file or artefact, run `overview`. 6. If the response includes `expandHint`, `schema`, or another typed follow-up hint, read that hint before composing the next query. 7. Expand only one relevant stage or `artefacts(first: ...)` if the overview shows that more detail is needed. 8. When DevQL returns `path`, `startLine`, and `endLine`, use a bounded read around that range first: start about 20 lines before `startLine` and stop about 40 lines after `endLine`. Escalate to a full-file read only when the bounded context is insufficient. 9. If DevQL returns nothing useful, fall back to targeted repo search or file reads.
# Use AUTO search first when the request is approximate or conceptual
bitloops devql query '{ selectArtefacts(by: { search: "<distilled conceptual phrase>" }) { count artefacts(first: 10) { path symbolFqn canonicalKind startLine endLine score summary } searchBreakdown(first: 3) { lexical { path symbolFqn score summary } identity { path symbolFqn score summary } code { path symbolFqn score summary } summary { path symbolFqn score summary } } } }'
# Use LEXICAL search for identifiers, literals, paths, or snippets
bitloops devql query '{ selectArtefacts(by: { search: "<identifier or snippet>", searchMode: LEXICAL }) { count artefacts(first: 10) { path symbolFqn canonicalKind startLine endLine score summary } } }'
# Ask for overview once the selection is concrete
bitloops devql query '{ selectArtefacts(by: { symbolFqn: "<symbol-fqn>" }) { overview } }'
# Same overview shape for file or file+line selectors
bitloops devql query '{ selectArtefacts(by: { path: "<repo-relative-path>", lines: { start: <start>, end: <end> } }) { overview } }'hits are relevant but you want to see which lexical or semantic mode is also surfacing candidates.
read it before composing the next query.
the next stage call.
`searchMode: LEXICAL` is the right tool.
narrowing an already-understood search problem.
you how to drill down.
`startLine`, and `endLine`; start with a bounded read around the range, roughly 20 lines before `startLine` through 40 lines after `endLine`.
artefact.
Give AI coding agents the context they need to ship production-quality software.
Repo: bitloops/bitloops
Use always before codebase exploration, bug fixing, SWE-bench tasks, locating symbols, files, or tests, or before using rg, grep, sed, find, or source-file…