Merged
Conversation
New slash commands: /obs-status, /obs-cost, /obs-sessions, /obs-tools, /obs-alerts, /obs-query — query Prometheus, Loki, Tempo, Alertmanager directly from the conversation without switching to Grafana. All skills use scripts/obs-api.sh — centralized API client with env var overrides for auth (SHEPARD_API_TOKEN, SHEPARD_CA_CERT) ready for future multi-machine and TLS hardening. Un-ignores .claude/skills/ in .gitignore so skills are versioned with the repo. Updates README, CLAUDE.md, and CHANGELOG. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Skills used shell pipes (cmd | jq) which required multiple permission approvals in Claude Code. Now obs-api.sh handles jq internally via --jq and --raw flags — each skill command is a single executable, no pipes, works out of the box without permission dance. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Replace !`command` pre-execution with code block instructions
(Claude executes via Bash tool with normal approval flow)
- Add references: resolution-hints.md (16 alerts), examples.md (PromQL/LogQL)
- Add shared assets: output-formats.md (table/csv/json rules)
- Fix {label!=""} breaking max_over_time/increase queries — moved to jq filters
- Rewrite obs-sessions: span-metrics lack session_id/model labels,
replaced with cost metrics + Tempo search + session count queries
- Remove .claude/settings.json from git tracking (user opt-in permissions)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds 6 Claude Code skills (
/obs-status,/obs-cost,/obs-sessions,/obs-tools,/obs-alerts,/obs-query) for querying the obs stack directly from the conversation.Includes
scripts/obs-api.sh— centralized auth-ready API client with --jq/--raw flags.Skills use instruction-based architecture (code blocks, not
!commandpre-execution) — works without permission configuration.Related issue
N/A
How to test
docker compose up -d # then in Claude Code: /obs-status /obs-alerts /obs-cost /obs-query upChecklist