query-metrics-db
How to locate and query the deep-cuts pipeline metrics SQLite database
Skill by robertolupi
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/robertolupi-query-metrics-db
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/query-metrics-db
What's inside
- Skill name
query-metrics-db- Description
- How to locate and query the deep-cuts pipeline metrics SQLite database
- License
- AGPL-3.0
- Instructions
- 120 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Querying the Pipeline Metrics Database
The app maintains a second SQLite database — separate from the main library DB — that records pipeline performance metrics and system lifecycle events. All data stays on the local machine and is never transmitted.
---
## Database location
```
~/Library/Logs/com.rlupi.deep-cuts/metrics.db
```
Store it in a shell variable to avoid retyping:
```bash
MDB="$HOME/Library/Logs/com.rlupi.deep-cuts/metrics.db"
```
---
## Schema
### `pipeline_metrics`
One row per analysis pass execution (success or failure).
| Column | Type | Description |
|--------|------|-------------|
| `id` | INTEGER | Auto-increment PK |
| `run_id` | TEXT | Shared across all passes in a pipeline run (Unix ms timestamp as string) |
| `track_id` | INTEGER | Track ID (no filenames stored) |
| `pass_name` | TEXT | e.g. `audio_analysis`, `clap`, `essentia`, `qwen`, `description_embed` |
| `status` | TEXT | `success` or `failed` |
| `duration_ms` | INTEGER | Wall-clock time for just this pass on this track |
| `started_at` | INTEGER | Unix timestamp in milliseconds |
| `ended_at` | INTEGER | Unix timestamp in milliseconds |
| `audio_duration_sec` | REAL | Track length in seconds (NULL if unavailable) |
| `error_message` | TEXT | Error string on failure (NULL on success) |
### `system_events`
Pipeline lifecycle events.
| Column | Type | Description |
|--------|------|-------------|
| `id` | INTEGER | Auto-increment PK |
| `event_type` | TEXT | `pipeline_start` or `pipeline_end` |
| `details` | TEXT | e.g. `run_id=1780559866025` or `run_id=... (nothing to do)` |
| `duration_ms` | INTEGER | Total pipeline wall-clock time (only on `pipeline_end`) |
| `created_at` | TIMESTAMP | SQLite wall-clock (CURRENT_TIMESTAMP, UTC) |
---
## Useful queries
### Recent pipeline runs
```bash
sqlite3 "$MDB" ".headers on" ".mode column" \
"SELECT * FROM system_events ORDER BY id DESC LIMIT 20;"
```
### Pass latency summary (all time)
```bash
sqlite3 "$MDB" ".headers on" ".mode column" "
SELECT pass_name, status,
COUNT(*) as cnt,
ROUND(AVG(duration_ms)/1000.0, 2) as avg_s,
ROUND(MIN(duration_ms)/1000.0, 2) as min_s,
ROUND(MAX(duration_ms)/1000.0, 2) as max_s
FROM pipeline_metrics
GROUP BY pass_name, status
ORDER BY pass_name, status;"
```
### Metrics for a specific run
```bash
RUN_ID="1780560383909"
sqlite3 "$MDB" ".headers on" ".mode column" "
SELECT pass_name, track_id, status, duration_ms, audio_duration_sec
FROM pipeline_metrics
WHERE run_id = '$RUN_ID'
ORDER BY started_at;"
```
### Recent failures with error messages
```bash
sqlite3 "$MDB" ".headers on" ".mode column" "
SELECT pass_name, track_id, error_message, datetime(started_at/1000, 'unixepoch') as started
FROM pipeline_metrics
WHERE status = 'failed'
ORDER BY id DESC LIMIT 20;"
```
### Real-time speed ratio (audio processed per second of wall clock)
```bash
sqlite3 "$MDB" ".headers on" ".mode column" "
SELECT pass_name,
ROUND(AVG(audio_duration_sec / (duration_ms / 1000.0)), 1) as avg_realtime_ratio
FROM pipeline_metrics
WHERE status = 'success' AND audio_duration_sec IS NOT NULL AND duration_ms > 0
GROUP BY pass_name;"
```
---
## Safety notes
- **Do not write to the DB while the app is running.** External writes can corrupt in-flight WAL transactions.
- The metrics DB grows unboundedly — clear it with:
```bash
sqlite3 "$MDB" "DELETE FROM pipeline_metrics; DELETE FROM system_events;"
```From robertolupi/deep-cuts, AGPL-3.0.
More from robertolupi/deep-cuts
- 0.534score
how-to-experiment
robertolupi
Experimental protocol for Deep Cuts research, prototypes, model evaluations, threshold tuning, ablations, metric comparisons, and claims about accuracy or…
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
write-blog-post
robertolupi
Draft, structure, and finalize a Deep Cuts blog-series post so it conforms to the post template, house voice, and cross-post link rules.
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
ui-debug
robertolupi
Inspect, debug, and compare the Deep Cuts UI using an available browser tool.
SkillCFreshness: C★ 7Claude Code +9 - 0.531score
dev-guidelines
robertolupi
Guidelines to prevent development false starts, environment mismatches, and incorrect commands in the deep-cuts monorepo
SkillCFreshness: C★ 7Claude Code +9 - 0.531score
git-commits
robertolupi
Rules for writing commit messages in the deep-cuts repository — subject line format, body content, scope naming, and what to omit
SkillCFreshness: C★ 7Claude Code +9 - 0.531score
ui-design
robertolupi
Guidelines for the Sonic Glitch design system, theme variables, and multi-theme readability (dark, light, high-contrast)
SkillCFreshness: C★ 7Claude Code +9 - 0.531score
add-tauri-sidecar
robertolupi
How to bundle an external binary and its dylib dependencies with the Tauri app, patch rpaths, sign everything, and resolve the path at runtime
SkillCFreshness: C★ 7Claude Code +9 - 0.531score
release-build
robertolupi
End-to-end checklist for building a signed macOS release — bump manifest min_app_version, verify sidecars, build, and inspect the .app
SkillCFreshness: C★ 7Claude Code +9 - 0.528score
add-analysis-pass
robertolupi
Checklist and guide for adding a new analysis pass to the trait-based modular pipeline
SkillCFreshness: C★ 7Claude Code +9 - 0.528score
add-ipc-command
robertolupi
Pattern for adding a new Tauri IPC command (request/response or push event) in the deep-cuts monorepo
SkillCFreshness: C★ 7Claude Code +9 - 0.528score
bump-dev-version
robertolupi
Bump the app version in Cargo.toml after a release to start the next dev cycle
SkillCFreshness: C★ 7Claude Code +9 - 0.528score
db-migration
robertolupi
Safe pattern for adding SQLite schema migrations in the deep-cuts Rust/rusqlite_migration stack
SkillCFreshness: C★ 7Claude Code +9
Signals
- Stars
- 7
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Jun 4, 2026 (4 months ago)
- Last release
- Jun 8, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- AGPL-3.0
- Repository
- github.com/robertolupi/deep-cuts
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from robertolupi
- 0.534score
write-blog-post
robertolupi
Draft, structure, and finalize a Deep Cuts blog-series post so it conforms to the post template, house voice, and cross-post link rules.
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
ui-debug
robertolupi
Inspect, debug, and compare the Deep Cuts UI using an available browser tool.
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
how-to-experiment
robertolupi
Experimental protocol for Deep Cuts research, prototypes, model evaluations, threshold tuning, ablations, metric comparisons, and claims about accuracy or…
SkillCFreshness: C★ 7Claude Code +9 - 0.531score
release-build
robertolupi
End-to-end checklist for building a signed macOS release — bump manifest min_app_version, verify sidecars, build, and inspect the .app
SkillCFreshness: C★ 7Claude Code +9 - 0.531score
add-tauri-sidecar
robertolupi
How to bundle an external binary and its dylib dependencies with the Tauri app, patch rpaths, sign everything, and resolve the path at runtime
SkillCFreshness: C★ 7Claude Code +9 - 0.531score
git-commits
robertolupi
Rules for writing commit messages in the deep-cuts repository — subject line format, body content, scope naming, and what to omit
SkillCFreshness: C★ 7Claude Code +9
Cite this page
query-metrics-db skill. Agent Mart. https://agentmart.dev/skills/robertolupi-query-metrics-db (last updated 2026-10-24)