gitscape.ai: Skill for Claude Code

.agents/skills/observability-and-instrumentation/SKILL.md

observability-and-instrumentation is a skill for Claude Code, Codex from jmxt3/gitscape.ai. It costs 40 tokens per session (1,418 once invoked), scanned A, original, Apache-2.0.

A guide for adding production monitoring to software through structured logs, metrics, and traces. Logs explain events, metrics show that something is wrong, and traces help locate where a request or job failed.

In plain words
What is it for?
Use it when adding APIs or background jobs, connecting external services, changing error handling, or modifying request processing in production.
Why use it?
It gives engineers information to diagnose failures and performance problems after software is released. Adding this information during development avoids having to reconstruct events after an incident.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is jmxt3/gitscape.ai's own configuration. It tells Claude Code and Codex how to work on gitscape.ai itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gitscape.ai configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jmxt3/gitscape.ai. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jmxt3/gitscape.ai/main/.agents/skills/observability-and-instrumentation/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/jmxt3/gitscape.ai

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for observability-and-instrumentation

README.md
[![agentmods](https://agentmods.dev/badge/skills/jmxt3/gitscape.ai/observability-and-instrumentation/github.svg)](https://agentmods.dev/skills/jmxt3/gitscape.ai/observability-and-instrumentation)
Your own site
<a href="https://agentmods.dev/skills/jmxt3/gitscape.ai/observability-and-instrumentation"><img src="https://agentmods.dev/badge/skills/jmxt3/gitscape.ai/observability-and-instrumentation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for observability-and-instrumentation

Your own site · 80×15
<a href="https://agentmods.dev/skills/jmxt3/gitscape.ai/observability-and-instrumentation"><img src="https://agentmods.dev/badge/skills/jmxt3/gitscape.ai/observability-and-instrumentation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,418 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.01418
Opus 5 $0.00020 $0.00709
Sonnet 5 $0.00008 $0.00284
Haiku 4.5 $0.00004 $0.00142

Measured 11d ago against content hash 90b6f61d734d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

observability-and-instrumentation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/observability-and-instrumentation/SKILL.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Observability and Instrumentation

Overview

Instrument production code so that on-call engineers (including future AI agents) can answer: Is it working? What's broken? Why? Logs answer why. Metrics answer that something is wrong. Traces answer where. Build all three in as you go — retrofitting observability after an incident is painful and late.

When to Use

  • Adding a new API endpoint or background job
  • Shipping a feature that touches external services (GitHub API, Gemini)
  • Modifying error handling or retry logic
  • Any change to Cloud Run that affects request processing

The Three Pillars

1. Structured Logging

Every log line should be machine-parseable JSON, not a free-form string.

import structlog

log = structlog.get_logger()

# GOOD: Structured, queryable
log.info(
    "skill_generation_started",
    repo=repo,
    tier=tier,
    request_id=request_id,
)

log.error(
    "github_api_error",
    repo=repo,
    status_code=e.status,
    error=str(e),
    request_id=request_id,
)

# BAD: Free-form string — unsearchable
print(f"Error fetching {repo}: {e}")
logger.info("Starting skill generation for " + repo)

Log level conventions:

  • error — invariant broken, someone may need to act
  • warn — degraded but handled (rate limit approaching, retrying)
  • info — significant business event (skill generated, export downloaded)
  • debug — off in production; verbose tracing for local debugging

Never log:

  • Secrets, API keys, or tokens
  • Full request/response bodies
  • Unredacted PII or GitHub personal access tokens

2. RED Metrics for Every Endpoint

For every API endpoint, instrument:

  • Rate — requests per second
  • Errors — error rate (%)
  • Duration — p50/p95/p99 latency (histogram, never average)
from prometheus_client import Counter, Histogram

skill_generation_requests = Counter(
    "skill_generation_requests_total",
    "Total skill generation requests",
    ["tier", "status"]  # labels: tier=standard|hd, status=success|error
)

skill_generation_duration = Histogram(
    "skill_generation_duration_seconds",
    "Skill generation duration",
    ["tier"],
    buckets=[0.5, 1.0, 2.0, 5.0, 10.0, 30.0, 60.0]
)

# Usage
with skill_generation_duration.labels(tier=tier).time():
    try:
        result = await generate_skill(repo, tier)
        skill_generation_requests.labels(tier=tier, status="success").inc()
    except Exception as e:
        skill_generation_requests.labels(tier=tier, status="error").inc()
        raise

Read the full file on GitHub · 184 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 184 lines · 40 tokens per session scan A 90b6f61d734d

Subscribe to this mod's changes

observability-and-instrumentation is a skill published in the GitHub repository jmxt3/gitscape.ai (33 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 40 tokens to every session and 1,418 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ultralytics-platform

This skill should be used when user asks to "upload my model to Ultralytics Platform", "push this run to the platform", "upload a dataset to platform", "download a dataset from platform", "search platform datasets", "start cloud training", "train on platform GPUs", "export a model on platform", "deploy a model…

fcakyon/claude-codex-settings · 112 tokens

mindos

Operate a MindOS knowledge base: update notes, search, organize files, execute SOPs/workflows, retrospective, append CSV, cross-agent handoff, route unstructured input to the right files, distill experience, sync related docs. Use when the task targets files inside the user's MindOS KB (mindRoot). NOT for editing app…

GeminiLight/MindOS · 157 tokens

mongodb-query-optimizer

Help with MongoDB query optimization and indexing. Use only when the user asks for optimization or performance: "How do I optimize this query?", "How do I index this?", "Why is this query slow?", "Can you fix my slow queries?", "What are the slow queries on my cluster?", etc. Do not invoke for general MongoDB query…

fcakyon/claude-codex-settings · 98 tokens

github-image-upload

Upload local images and other files (PDF, zip, log, …) to GitHub and embed them in a pull request description, an issue, or a comment — producing canonical github.com/user-attachments URLs (private-repo uploads stay private). Use when asked to "attach a screenshot to the PR", "add an image to the PR description", "put…

drogers0/gh-image · 135 tokens

rag-retrieval

Retrieval-Augmented Generation patterns for grounded LLM responses. Use when building RAG pipelines, embedding documents, implementing hybrid search, contextual retrieval, HyDE, agentic RAG, multimodal RAG, query decomposition, reranking, or pgvector search.

yonatangross/orchestkit · 58 tokens

github

GitHub operations via gh CLI: issues, PRs, CI runs, code review, API queries.

AIOSAI/AIPass · 23 tokens