Skip to content

Add observability skill, cross-references, and persona integration - #59

Closed
googlarz wants to merge 5 commits into
addyosmani:mainfrom
googlarz:feat/observability-skill-and-crossrefs
Closed

googlarz wants to merge 5 commits into
addyosmani:mainfrom
googlarz:feat/observability-skill-and-crossrefs

Conversation

@googlarz

Copy link
Copy Markdown
Contributor

Summary

  • New skill: observability-and-monitoring — fills the only confirmed lifecycle gap in the collection. Covers structured logging (with cardinality rules), four golden signals metrics, OpenTelemetry-standard distributed tracing (W3C traceparent/tracestate), SLO-based alerting (burn rate, not raw thresholds), and dashboard design. Follows skill-anatomy.md format exactly: Overview, When to Use, stepwise process, Common Rationalizations, Red Flags, Verification checklist.
  • Cross-references added to isolated skills — idea-refine now points forward to spec-driven-development; deprecation-and-migration now references incremental-implementation, test-driven-development, and git-workflow-and-versioning at the natural touch points in the migration process.
  • /ship command updated — observability-and-monitoring is wired into the launch checklist so the skill is reachable via the /ship entrypoint, not just via the meta-skill decision tree.
  • using-agent-skills updated — new skill added to decision tree, lifecycle sequence (before shipping-and-launch, not after), and quick reference table.
  • README updated — skill count 20 → 21, new entry in Ship section and directory tree.

How findings were addressed

This PR went through both /codex:adversarial-review and /codex:review before submission:

Finding Fix
Metric path label causes cardinality explosion Changed to route_template; added explicit cardinality rule banning user IDs, tenant IDs, query strings from labels
Tracing example used custom X-Trace-Id headers (non-interoperable) Replaced with OpenTelemetry inject() + W3C traceparent/tracestate
New skill not reachable via /ship entrypoint Added as step 6 in ship command
Skill count stale in README Updated to 21, added to table and directory tree
Lifecycle placed observability after deploy Moved before shipping-and-launch in decision tree, lifecycle, and quick reference

Test plan

  • Verify skills/observability-and-monitoring/SKILL.md exists and passes frontmatter lint
  • Verify skill count in README matches ls skills/ | wc -l
  • Confirm /ship command references observability-and-monitoring
  • Confirm lifecycle in using-agent-skills has observability before shipping

- New skill: observability-and-monitoring covering structured logging,
  metrics (four golden signals), distributed tracing, SLO-based alerting,
  and dashboard design — a confirmed gap with no existing PR
- idea-refine: add forward reference to spec-driven-development
- deprecation-and-migration: add references to incremental-implementation,
  test-driven-development, and git-workflow-and-versioning at natural touch points
- using-agent-skills: add new skill to decision tree, lifecycle sequence,
  and quick reference table
- Metric labels: replace raw path with route_template, add cardinality
  rule banning user IDs/tenant IDs/query strings from labels
- Tracing: remove custom X-Trace-Id/X-Span-Id example; show proper
  OpenTelemetry propagation with W3C traceparent/tracestate
- Ship command: wire observability-and-monitoring into the launch
  checklist so the skill is reached via the /ship entrypoint
- README: update skill count to 21, add observability-and-monitoring
  to Ship section and directory tree
- using-agent-skills: move observability before shipping-and-launch in
  decision tree, lifecycle sequence, and quick reference table so agents
  instrument before deploying, not after
- code-review-and-quality: reference code-reviewer persona in the
  Multi-Model Review Pattern section and See Also; show how to invoke it
- security-and-hardening: reference security-auditor persona in See Also
  with clear trigger conditions (auth, input, data, integrations)
- test-driven-development: reference test-engineer persona in the
  subagent section with concrete prompt template
- using-agent-skills: add Skill Rule 5 listing all three personas and
  where they are loaded from so agents can discover them
@googlarz googlarz changed the title Add observability-and-monitoring skill and cross-references Add observability skill, cross-references, and persona integration Apr 11, 2026
- AGENTS.md: add Agent Personas section with table, invocation pattern,
  and distinction between skills and personas; update Intent→Skill
  mapping to include persona load instructions for review/test/security;
  update lifecycle to include observability before shipping
- CLAUDE.md: add observability-and-monitoring to Ship phase; expand
  agents/ entry to show which skill each persona is invoked from
@nucliweb

Copy link
Copy Markdown
Collaborator

Thanks @googlarz for the thorough work here — the adversarial review pass before submitting is exactly the right discipline, and it shows. The technical decisions in the observability skill are solid: route_template cardinality rule, OTel + W3C traceparent, burn-rate alerting over raw thresholds, and the "When NOT to use" section are all production-grade choices that less experienced contributors miss.

A few things worth discussing before merge:

1. Two independent concerns in one PR

The observability skill and the agent persona integration are unrelated changes. The persona wiring touches code-review-and-quality, security-and-hardening, test-driven-development, AGENTS.md, and CLAUDE.md — none of which have anything to do with observability. Bundling them increases blast radius and makes the diff harder to review. If either half needs to be reverted, you're reverting both. These should be two PRs.

2. The decision tree trigger is reactive

├── Need production visibility? ──→ observability-and-monitoring

The skill itself says "build observability before you need it, not after your first outage", but this trigger only fires when you already feel the pain. Something like "Instrumenting a service / setting up monitoring?" would match the proactive framing the skill is actually teaching.

3. Lifecycle placement is right, but incomplete

Putting observability before shipping-and-launch (step 11 of 12) is correct. The problem is it implies you start thinking about it at the end. A small note in incremental-implementation, something like "when defining a slice, define what you'll measure" — would anchor observability to where it actually starts, without moving the full skill.

4. Missing references/observability-checklist.md

Every other skills covering a technical domain has a corresponding checklist in references/:

  • references/security-checklist.md
  • references/testing-patterns.md
  • references/performance-checklist.md

This skill doesn't create one and doesn't reference one. A checklist covering "do I have the four golden signals? trace_id on every log line? SLOs defined?" would be the most immediately useful artifact for someone running this skill on a real service — and it would make this PR consistent with the rest of the repo.

5. No Step 0 for existing services

The "When to Use" mentions "taking ownership of an existing one" but the steps assume you're starting from scratch. There's no audit step, "what instrumentation do you already have?", before adding more. That's the most common real-world case.

None of these are blockers on the core skill, which is good work. The main structural concern is point 1 — the persona integration deserves its own PR so both changes can be reviewed and reverted independently.

@googlarz

Copy link
Copy Markdown
Contributor Author

Thanks for the thorough review — all points taken.

Closing this in favour of two focused PRs:

The CI validator is in its own separate #60.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants