Add embedded Claude Code Skills + AGENTS.md for AI agents#18
Open
Snodgrass-Wilkerschnoz wants to merge 1 commit into
Open
Add embedded Claude Code Skills + AGENTS.md for AI agents#18Snodgrass-Wilkerschnoz wants to merge 1 commit into
Snodgrass-Wilkerschnoz wants to merge 1 commit into
Conversation
… agents Add eight current-format Claude Code Skills covering the operational monitoring lifecycle, embedded in the CLI and installable to .claude/skills/<name>/SKILL.md via a new, additive `skills install --claude-skills` flag. Also add a repo-root AGENTS.md so non-Claude agents (OpenAI Codex, Cursor, Gemini CLI, ...) get the same guidance. Skills: project-bootstrap, weekly-health-review, failure-investigation, incident-triage, monitoring-estate-audit, slo-review, config-as-code, performance-analytics. Every command and JSON shape is grounded in the built CLI's actual command surface (branch develop, commit 9697405). The existing setup-* skills, `--claude-code`, `--codex`, `--dir`, and `onboard` behavior are unchanged; this is purely additive. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
rujames
reviewed
Jul 16, 2026
|
|
||
| ### 1. Discover SLO operations | ||
|
|
||
| The SLO command set is CRUD only: `list-slos`, `get-slo <slo-id>` (not `read-slo`), `create-slo`, `update-slo`, `delete-slo`. There is **no SLO attainment, status, or error-budget endpoint** — the CLI returns SLO *definitions*, not computed attainment. Plan to derive attainment yourself from result and performance data (step 4). |
Contributor
There was a problem hiding this comment.
❗ Much better to derive attainment from the get-incidents operation (which seems to have been missed, or misunderstood) than to start from scratch.
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 & why
Extends the CLI's agent integration with the operational monitoring lifecycle, not just monitor setup. It adds eight current-format Claude Code Skills embedded in the binary, plus a repo-root
AGENTS.mdso non-Claude agents (OpenAI Codex, Cursor, Gemini CLI, …) get the same guidance from one source of truth.This is purely additive. The existing
setup-*skills,skills install --claude-code,--codex,--dir, andonboardbehave exactly as before.Skills added
Embedded under
skills/claude-skills/<name>/SKILL.md:apimetrics-project-bootstrapapimetrics-weekly-health-reviewapimetrics-failure-investigationapimetrics-incident-triageapimetrics-monitoring-estate-auditapimetrics-slo-reviewapimetrics-config-as-codebulkcheckout/diff/push workflowapimetrics-performance-analyticsCLI change (additive)
skills/skills.go://go:embed claude-skills(separate from the untouchedembed/*.md).apimetrics skills install --claude-skills→ installs.claude/skills/<name>/SKILL.md(current Claude Code Skills format; preservesdisable-model-invocation/argument-hint, so read-only skills auto-load and mutation skills stay gated).--claude-code(flat.claude/commands/),--codex,--dir, andonboardare unchanged.AGENTS.md (non-Claude agents)
New repo-root
AGENTS.md— the cross-agent standard read by OpenAI Codex, Cursor, Gemini CLI, and others. It carries the core CLI facts (flat commands, JSON-on-stdin, no--api-key, output/filtering, the non-uniform list envelopes, discovery-first) and a workflow index that points at the skill files. Any agent can also runapimetrics onboardto pull the full workflows.Grounding
Every command name and JSON shape is grounded in the built CLI's actual command surface (branch
develop, commit9697405; 213-command tree). Notable corrections baked into the skills:get-resultis a summary (forensics come fromget-result-content/query-*/conformance-results); percentiles are server-computed viaquery-*-performance; API assertions useset-call-conditions; SLOs are CRUD-only (no attainment endpoint); MCP usesrun-monitor; and there is no--api-keyflag.Testing
go build ./...andgo build -tags prod— pass.go test ./...— pass.apimetrics skills install --claude-skillswrites the eight.claude/skills/<name>/SKILL.mdfiles.apimetrics skills install --claude-codestill writes the three flat.claude/commands/*.md(unchanged).Follow-ups (not in this PR)
setup-*embedded skills still reference a non-existent--api-keyflag in their 401/403 recovery notes; worth a one-line fix each (left out here to keep this PR additive).skillspackage (frontmatter validity,name==dir slug, embedded inventory, no stale names) — recommended as a small follow-up.🤖 Generated with Claude Code