query

A query skill for asking structural questions about a saved codebase baseline. A baseline is a recorded snapshot of files, functions, dependencies, and other code relationships.

In plain words
What is it for?
Filtering or analyzing baseline data, such as finding large files, examining imports and calls, or exploring code ownership and change patterns.
Why use it?
It covers questions that standard repository-analysis tools do not answer directly, while keeping results in a table format that agents can inspect.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/rayforcedb/raysense/query
Any agent
npx skills add RayforceDB/raysense --skill query
Clone the repo
git clone --depth 1 https://github.com/RayforceDB/raysense

Made for: Claude Code, Codex.

Per session 181 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,265 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00181 $0.04265
Opus 5 $0.00090 $0.02132
Sonnet 5 $0.00036 $0.00853
Haiku 4.5 $0.00018 $0.00426

Measured yesterday against content hash 26d52444d02b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

query scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-plugin/skills/query/SKILL.md · 396 lines

How it starts

The opening of the file, as written. The whole thing — 396 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Query

raysense_baseline_query evaluates a Rayfall expression against a single baseline table, which is bound to the symbol t before evaluation. The result must itself be a RAY_TABLE. Wrap scalar / column queries with select to keep the result tabular.

Use this when the question shape isn't covered by the dedicated tools. For pure paginate / filter / sort, prefer raysense_baseline_table_read (no Rayfall needed). For graph-shaped questions (blast radius, cycles), prefer raysense_blast_radius / raysense_cycles.

Inputs

raysense_baseline_query
    path:     <absolute repo root, defaults to cwd>
    table:    one of files | functions | imports | calls | call_edges
              | types | hotspots | rules | module_edges | changed_files
              | file_ownership | temporal_hotspots | file_ages
              | change_coupling | inheritance | entry_points | health
              | meta
    rayfall:  Rayfall source, e.g. "(select {from: t where: (> lines 500)})"

Call raysense_baseline_tables first if you are unsure what is saved (empty / missing tables fail loudly rather than silently).

Schema cheat sheet

The columns most agents ask about. For the full list, query the table once with t (no filter) and read the column names off the result.

  • files: file_id i64, path str, language str, module str, lines i64, bytes i64, content_hash str
  • functions: function_id i64, file_id i64, name str, start_line i64, end_line i64
  • calls: call_id i64, file_id i64, caller_function i64, target str, line i64
  • call_edges: edge_id i64, call_id i64, caller_function i64, callee_function i64
  • imports: import_id i64, from_file i64, target str, kind str, resolution str, resolved_file i64
  • hotspots: file_id i64, path str, module str, fan_in i64, fan_out i64
  • rules: severity str, code str, path str, message str
  • module_edges: from_module str, to_module str, edges i64
  • change_coupling: left str, right str, co_commits i64, coupling_strength_milli i64
  • file_ownership: path str, top_author str, top_author_commits i64, total_commits i64, author_count i64, bus_factor i64
  • meta: schema_version i64, raysense_version str, rayforce_version str, repo_sha str, snapshot_id str, scan_unix i64, column_digest str

Read the full file on GitHub · 396 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 396 lines · 181 tokens per session scan A 26d52444d02b

Subscribe to this mod's changes

query is a skill published in the GitHub repository RayforceDB/raysense (11 stars, last pushed 3mo ago), licensed MIT. It adds 181 tokens to every session and 4,265 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

coverage-loop

Iteratively improve Fallow Rust test coverage with cargo-llvm-cov, prioritizing meaningful untested behavior and preserving runtime correctness.

fallow-rs/fallow · 29 tokens

ci-formats-review

Review SARIF, CodeClimate, compact, markdown, badge, and other CI-facing output formats for correctness and integrator expectations. Use when changes affect machine-consumed report formats or CI presentation layers.

fallow-rs/fallow · 45 tokens

brooks-sweep

Full-sweep mode: runs a unified analysis across all quality dimensions — code decay, architecture, tech debt, and test quality — then applies fixes directly to the codebase. Safe changes are auto-applied; risky changes are confirmed before execution. Drawing on twelve classic engineering books. Triggers when: user…

hyhmrright/brooks-lint · 178 tokens

llm-friendly-context

Clarifies inputs, outputs, success criteria, decisions, and unresolved conditions so downstream consumers can execute without guessing. Use when writing or revising LLM-facing prompts, handoffs, planning artifacts, reviews, reports, or generated instructions.

shinpr/claude-code-workflows · 52 tokens

ring:exploring-codebases

Exploring a codebase across phases: scopes the target, detects architecture, components, and layers, deep-dives each discovered perspective, then synthesizes findings into actionable guidance with file:line evidence. Use to understand how a feature or system works before planning changes, or to orient on an unfamiliar…

LerianStudio/ring · 91 tokens

deps-audit

Audit dependencies for vulnerabilities, staleness, unused packages, and license risks — produce a health report with actionable fixes.

optave/ops-codegraph-tool · 27 tokens