/raysense:drift runs instead · from raysense
Diffs the latest scan against saved baseline and trend history to surface structural regressions. Use after rescan to find worsened dimensions, new hotspots, and newly tripped rules.
This skill never runs in Claude Code
It ships in raysense at skills/, but /raysense:drift (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
drift answers one question: "what got worse since N days ago?"
It is heavier than verify (which only diffs against the saved
baseline) but lighter than audit (which sweeps the whole repo).
Run it when the question is shaped like "are we slowly losing
modularity?" or "did a bad pattern creep in over the last sprint?"
All tools take a path argument; pass the current repo root as an
absolute path.
raysense_rescan with path: <cwd> so the
active health is current.raysense_drift with path: <cwd> and
window: 30d (the default). Returns:
worsened_dimensions: the dimensions whose scores dropped
(or rule count rose) across the window.hotspots_new_or_risen: files that newly entered the top
hotspots or whose risk_score climbed.rules_new_or_increased: rule codes that newly tripped or
whose violation count grew.drift reports available: false
(fewer than 2 samples in the window), call raysense_trend with
window: all so the user sees how short the history is. Suggest
they call raysense_baseline_save to seed a sample.rules_new_or_increased, call raysense_remediations and
surface the suggestion alongside the regression.A good drift report leads with the worst regression, not the full list. Three focused lines beat one wall of metrics:
max_function_complexity newly tripped (0 to 2)."If drift returns nothing in any of the three categories, say so
plainly: "No drift detected in the last 30d." Do not pad with empty
sections.
7d: catches regressions from the current week's edits.30d: default. Sees a typical sprint's worth of structural
movement.90d: quarterly review cadence. Often spans refactors that
haven't fully settled.all: every recorded sample. Use when you want the full arc.Drift compares the oldest in-window sample to the newest in-window sample. Wider windows give bigger deltas but blur acute regressions.
available: false and the report will be empty. Run
raysense_baseline_save first to seed history.json.verify or
audit question, not a drift question.verify: snapshot diff against the session baseline (no time
axis). Use after a focused chunk of edits.audit: whole-repo structural sweep, no time axis. Use when the
question is shape, not change.raysense_baseline_query: the query skill covers Rayfall
directly. The splayed trend_health, trend_hotspots, and
trend_violations tables are queryable from there for custom
drift analyses (per-dimension regressions, file-specific arcs).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
drift, structural-regression, code-health, raysense, trend-analysis
npx claudepluginhub rayforcedb/raysense --plugin raysense6 skills in this plugin
/auditUse when the user explicitly asks for a structural audit, architecture review, dead-code report, test-gap analysis, or evolution hotspot scan. Heavier and noisier than the other raysense skills — only run on demand, not as part of the routine edit loop./bootstrapUse at the start of any coding session in a repository to scan the structure, save a baseline, and materialize splayed-table memory for fast follow-up queries. Establishes the "before" reference point that the verify skill diffs against later./impactUse before refactoring, deleting, moving, or substantially modifying a file to compute its blast radius, coupling profile, and cycle exposure. Lets the agent edit with awareness of downstream effects rather than discovering them after the fact.Other plugins' skills for the same job