mpsuesser/pi-effect-harness/effect-wide-events

Claude Code and agent skill by mpsuesser/pi-effect-harness

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Conceptual guide to wide events (canonical log lines) for observability. Use when thinking about instrumentation strategy, span annotations, or designing what context to capture.

Install

npx vskill@latest install mpsuesser/pi-effect-harness/effect-wide-events

SKILL.md

The same SKILL.md was published earlier as mpsuesser/pi-effect-harness/effect-wide-events.

<wide-events>

<philosophy> traditional := many(log-lines) → grep(services) → hope wide := one(event) → query(structured) → answer

optimize(querying) ∧ ¬optimize(writing) </philosophy>

<current-practice> implementation := OTel spans + annotations wide-events := mental-model for annotation strategy

annotate(span, context) where context = { business ∪ user ∪ technical ∪ outcome }

effect-api := Effect.annotateCurrentSpan ∨ Effect.annotateLogs queryable-via := annotations ⊄ log-message-args // extra log-message args → message body, not auto-indexed dimensions </current-practice>

<dimensionality> wide-event.fields := { identity: {traceId, spanId, service, operation} user: {userId, accountTier, accountAge, lifetimeValue} business: {featureFlags, experimentGroup, cartValue} performance: {durationMs, dbQueryCount, cacheHitRate, retryCount} outcome: {success, errorCode, httpStatus} }

high-dimensionality → better-queryability high-cardinality(userId) → acceptable </dimensionality>

<anti-patterns> scattered-logs := console.log("step1") >> console.log("step2") >> ... low-dimensionality := span.set("success", true) ∧ |fields| < 5 technical-only := {http.status, db.queries} ∧ ¬{user, business} </anti-patterns>

<correct-pattern> span.setAttributes({ "request.operation", "user.id", "user.tier", "cart.items", "cart.value", "feature.*", "db.query_count", "cache.hit_rate", "request.success" })

∀ span → attach(identity ∪ user ∪ business ∪ performance ∪ outcome) </correct-pattern>

<tail-sampling> retain(100%) := errors ∨ slow(>p99) ∨ vip retain(1-5%) := success ∧ fast </tail-sampling>

<queryability-test> before(instrument) → verify(answerable({ "failures where tier=premium ∧ feature.new_flow=true" "p99(latency) group by tier" "errors group by featureFlags" "full context for user X incident" }))

¬queryable → ¬enough-context </queryability-test>

<terminology> cardinality := |unique values| (userId=high, httpMethod=low) dimensionality := |fields per event| (more → better) wide-event := canonical-log-line := one comprehensive record </terminology>

<when-to-apply> deciding(span-annotations) reviewing(instrumentation-coverage) debugging(incidents) → "what context was missing?" planning(new-service-observability) choosing(fields-to-index) </when-to-apply>

</wide-events>

Reference: See Article.md for full article by Boris Tane (loggingsucks.com)

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mpsuesser/pi-effect-harness/effect-wide-events/badge)](https://verified-skill.com/skills/mpsuesser/pi-effect-harness/effect-wide-events)

Something wrong with this skill or its page? Tell us.