Answer a question from a project's fact/decision/guardrail/procedure knowledge base, with citations to the artifacts the answer is drawn from — never from memory or inference when the knowledge base already has the answer. Use when the user asks what was decided, why a rule exists, or what's currently true about the project, e.g. "what did we decide about X", "why does this guardrail exist".
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Query?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vivantel-query)
---
name: query
description: Answer a question from a project's fact/decision/guardrail/procedure knowledge base, with citations to the artifacts the answer is drawn from — never from memory or inference when the knowledge base already has the answer. Use when the user asks what was decided, why a rule exists, or what's currently true about the project, e.g. "what did we decide about X", "why does this guardrail exist".
---
Search `<knowledge dir>/{facts,decisions,guardrails,procedures}/` for the artifacts relevant to the question, then answer using only what they say — never from memory or inference when a real artifact already settles it.
## Answering
1. Read each type's `INDEX.md` first, if present, to narrow candidates by tag/title before opening full files — ignore any `(umbrella)`-marked tag when matching (same exclusion `lint` check 16 applies; an umbrella tag matches nearly every row). Fall back to searching all four directories directly by keyword/topic/`tags` when no index exists, or when the index-narrowed candidates don't actually settle the question — the index can go stale between `lint` runs, so a thin or empty match isn't proof nothing relevant exists.
2. If nothing relevant is found, say so plainly — don't guess or synthesize an answer the knowledge base doesn't actually support.
3. If a decision has been superseded, follow `superseded-by` transitively until reaching a decision whose own `status` isn't `superseded` — cite that final active decision alongside the original, not just the next hop.
4. A `status: draft` decision or guardrail is reported as "proposed", never as the answer.
5. Answer in prose, then list every artifact the answer drew from as `Refs: <repo-relative-path>` — one per artifact, matching `attribute`'s trailer format so this plugin has one citation convention. Print a fact's `last-verified` beside its citation when older than the model's staleness threshold.
## Out of scope
Writing or editing any artifact — this skill only reads and cites. Use `decide` to capture new knowledge, `capture` to maintain it, `bootstrap` to set it up.