a11y-debugging
Uses Chrome DevTools MCP for accessibility (a11y) debugging and auditing based on web.dev guidelines. Use when testing semantic…
Query and analyze developer-local history, macOS Unified Logs, Git, and source code through DevSQL Code Mode. Use when the user asks about prior conversations, shell commands, system logs, productivity, commits, sessions, symbols, file context, or impact analysis.
Claude Code
$ npx -y skills add douglance/devsql --skill devsql-querying --agent claude-code
Codex
$ npx skills add douglance/devsql --skill devsql-querying -a codex -y
Cursor
$ npx skills add douglance/devsql --skill devsql-querying -a cursor -y
Gemini CLI
$ npx skills add douglance/devsql --skill devsql-querying -a gemini-cli -y
GitHub Copilot
$ npx skills add douglance/devsql --skill devsql-querying -a github-copilot -y
OpenCode
$ npx skills add douglance/devsql --skill devsql-querying -a opencode -y
Windsurf
$ npx skills add douglance/devsql --skill devsql-querying -a windsurf -y
name: devsql-querying description: Query and analyze developer-local history, macOS Unified Logs, Git, and source code through DevSQL Code Mode. Use when the user asks about prior conversations, shell commands, system logs, productivity, commits, sessions, symbols, file context, or impact analysis.
Use DevSQL Code Mode to query Claude Code and Codex CLI history, shell history, macOS Unified Logs, Git commits, and source code.
Prefer the connected DevSQL Code Mode server. Use `codemode_search` to discover typed `devsql.*` methods, then `codemode_execute` to compose them in JavaScript. Inspect query executions with `codemode_execution`. Devsql observes existing history; it does not create tasks or require progress reports.
Use the direct commands below only when Code Mode is unavailable or when writing a shell script.
Ensure devsql is installed:
brew install douglance/tap/devsql
For structured queries, prefer these subcommands (they return JSON):
| Command | Use When | |---------|----------| | `devsql search "<query>"` | Finding symbols by name (functions, classes, structs). Supports `--kind` filter and `--limit`. | | `devsql context <file>` | Getting file metadata + all symbols defined in a file. | | `devsql history <file>` | Showing Git commit history for a specific file with diff stats. | | `devsql diff <base> <head>` | Comparing two Git refs with file-level and symbol-level change analysis. | | `devsql impact <file>` | Analyzing a file's exports and finding potential dependents via imports. | | `devsql grok search "<terms>"` | Searching Grok Bot conversations. Supports `--bot` and `--limit`. | | `devsql grok status` | Checking Grok Bot index coverage and ingest errors. | | `devsql grok sync` | Refreshing local replicas, and optionally backfilling full history from the gateway. |
All commands accept `--repo` / `-r` and `--data-dir` / `-d` options.
The lists below are a guide. For the exact columns, run `devsql schema` (every table) or `devsql schema <table>`; a query naming a column that does not exist fails with the table's real columns and the closest match.
| Table | Columns | |-------|---------| | `history` | rowid, display (prompt text), timestamp (epoch ms), project (working directory) | | `jhistory` | session_id, ts, text, display, timestamp | | `codex_history` | Alias of `jhistory` | | `transcripts` | type, content, tool_name, session_id, _source_file, _session_id, _project, _agent_id, timestamp, model, usage_input_tokens, usage_output_tokens, usage_cache_read_input_tokens, usage_cache_creation_input_tokens, usage_ephemeral_5m_input_tokens, usage_ephemeral_1h_input_tokens, usage_service_tier | | `sessions` | session_id, project, cwd, git_branch, version, title, first_timestamp, last_timestamp, user_message_count, assistant_message_count, subagent_count, total_input_tokens, total_output_tokens, total_cache_read_input_tokens, total_cache_creation_input_tokens, pr_url, pr_number | | `todos` | content, status | | `codex_threads` | one row per Codex conversation: thread_id, cwd, started_at, last_event_at, first_user_text, … | | `codex_messages`, `codex_events`, `codex_tool_executions` | Codex messages, raw events, and commands with output |
| Table | Columns | |-------|---------| | `shell_history` | Atuin, zsh, and bash history: source, timestamp, command, cwd, exit_code, … | | `command_events` | shell and agent commands in one stream (large; filter early) |
`transcripts` covers `~/.claude/projects/<slug>/**/*.jsonl` (top-level sessions plus subagent transcripts) and the legacy `~/.claude/transcripts/*.jsonl`. `sessions` has one aggregated row per session file; `_project` / `project` is the project slug directory (e.g. `-Users-you-Developer-app`), NULL for legacy files. `_agent_id` is set only on subagent rows.
| Table | Columns | |-------|---------| | `commits` | id, message, summary, author_name, authored_at, short_id | | `branches` | name, is_head, commit_id | | `diffs` | commit_id, files_changed, insertions, deletions | | `diff_files` | commit_id, path, status (A/D/M/R/C), insertions, deletions |
Also loaded when a query reads them: `commit_parents`, `tags`, `refs`, `stashes`, `reflog`, `blame`, `config`, `remotes`, `submodules`, `status`, `worktrees`, `hooks`, `notes`. A commit's hash is `commits.id` (`short_id` for 7 characters); line counts live in `diffs` and `diff_files`, not `commits`.
| Table | Columns | |-------|---------| | `macos_logs` | timestamp, event_type, subsystem, category, process, process_id, thread_id, sender, message, level, activity_id, trace_id, boot_uuid, raw_json, provenance, source, archive_path, source_order, timestamp_ms, image/signpost fields |
Pass `log_last`, `log_start`/`log_end`, `log_predicate`, `log_archive`, `log_level`, `log_max_rows`, and `log_timeout` to `devsql.query`. Prefer a narrow time window plus process or subsystem filters. Defaults are 15 minutes, standard level, 50,000 rows, and 30 seconds. The provider streams with bounded memory, pushes safe filters into macOS `log show`, and returns partial rows with a
Code Mode for observing AI coding history, shell history, macOS Unified Logs, Git repositories, and source code. Code Mode is the primary agent interface; the direct SQL CLI remains available for humans and scripts.
Uses Chrome DevTools MCP for accessibility (a11y) debugging and auditing based on web.dev guidelines. Use when testing semantic…
Triage a Windows crash dump - identify the exception, the faulting frame, and what to look at next. Use when the user points at a…
Test and debug a web app in its existing d3k browser, including local Chrome connected to a Vercel Sandbox over CDP. Use for UI…