using-devql
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,…
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 reads in a repository.
$ npx -y skills add bitloops/bitloops --skill devql-explore-first --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/devql-explore-firstContext preview
The summary Claude sees to decide when to auto-load this skill.
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 reads in a repository.
name: devql-explore-first description: > 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 reads in a repository.
<VERY_IMPORTANT> For code understanding and exploration, DevQL is the primary discovery tool, not a one-time preflight. Use `bitloops devql query ...` whenever locating symbols, files, tests, implementations, callers/usages, or the next source region to inspect. </VERY_IMPORTANT>
Do not use `sed`, `rg`, `grep`, `find`, `wc`, directory crawling, or broad source-file reads to discover task-relevant code while DevQL can answer the lookup. Use traditional tools only to:
Do not run `bitloops devql --help` or `bitloops devql query --help`.
Choose the most specific selector:
string, or copied snippet: use `searchMode: LEXICAL`
adapter, or boundary: use `searchMode: ARCHITECTURE`
anchor: omit `searchMode` and use default `AUTO`
Fuzzy symbol-name lookup is included in the lexical lane; do not use a separate fuzzy selector.
Use compact exploration queries. If the prompt has no concrete anchor, start with the default `AUTO` query:
bitloops devql query '{ selectArtefacts(by: { search: "<short behavior phrase or task keywords>" }) { count artefacts(first: 10) { path symbolFqn canonicalKind startLine endLine score } } }'
bitloops devql query '{ selectArtefacts(by: { search: "<single identifier, literal, path fragment, or short snippet>", searchMode: LEXICAL }) { count artefacts(first: 10) { path symbolFqn canonicalKind startLine endLine score } } }'
bitloops devql query '{ selectArtefacts(by: { symbolFqn: "<symbol-fqn>" }) { count artefacts(first: 10) { path symbolFqn canonicalKind startLine endLine score } } }'
bitloops devql query '{ selectArtefacts(by: { path: "<repo-relative-path>", lines: { start: <start>, end: <end> } }) { count artefacts(first: 10) { path symbolFqn canonicalKind startLine endLine score } } }'For architecture role context on a known file, use the minimal GraphQL shape and request role fields only unless target or rule metadata is needed:
bitloops devql query '{ selectArtefacts(by: { path: "<repo-relative-path>" }) { architectureRoles(first: 10) { items(first: 10) { role { canonicalKey displayName family description } target { symbolFqn canonicalKind } } } } }'
bitloops devql query '{ selectArtefacts(by: { symbolFqn: "<symbol-fqn>" }) { architectureRoles(first: 10) { items(first: 10) { role { canonicalKey displayName family description } target { symbolFqn canonicalKind } } } } }'If DevQL returns relevant paths and line ranges:
grep/glob/find
Give AI coding agents the context they need to ship production-quality software.
Repo: bitloops/bitloops
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,…