monitor-setup

monitor-setup is a skill for Claude Code, Codex from pitimon/8-habit-ai-dev. It costs 43 tokens per session (766 once invoked), scanned A, original, MIT.

A post-deployment checklist for checking whether an application can report errors, health, logs, and service failures after it goes live.

In plain words
What is it for?
It helps inspect health endpoints, error tracking, uptime checks, alerts, logs, disk and memory limits, dependent services, restart settings, and recovery instructions.
Why use it?
It helps catch problems that may otherwise remain unnoticed after deployment and checks that existing monitoring is not duplicated.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the 8-habit-ai-dev plugin — 24 skills, 2 agents, 1 hook shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/pitimon/8-habit-ai-dev/monitor-setup
Any agent
npx skills add pitimon/8-habit-ai-dev --skill monitor-setup
Clone the repo
git clone --depth 1 https://github.com/pitimon/8-habit-ai-dev

Made for: Claude Code, Codex.

Or install 8-habit-ai-dev, the plugin that ships this one along with the rest of its 24 skills, 2 agents, 1 hook.

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 monitor-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/pitimon/8-habit-ai-dev/monitor-setup.svg)](https://agentmods.dev/skills/pitimon/8-habit-ai-dev/monitor-setup)
Your own site
<a href="https://agentmods.dev/skills/pitimon/8-habit-ai-dev/monitor-setup"><img src="https://agentmods.dev/badge/skills/pitimon/8-habit-ai-dev/monitor-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 766 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00043 $0.00766
Opus 5 $0.00022 $0.00383
Sonnet 5 $0.00009 $0.00153
Haiku 4.5 $0.00004 $0.00077

Measured 4d ago against content hash 6f9a6c2ef779, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

monitor-setup 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 4d 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.

plugin/skills/monitor-setup/SKILL.md · 82 lines

How it starts

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

Step 7: Monitor (เฝ้าระวัง)

Habit: H7 — Sharpen the Saw | Anti-pattern: Deploying and forgetting — "it works on my machine"

Process

  1. Check existing monitoring: Search for health endpoints, Prometheus configs, Grafana dashboards, alerting rules — don't duplicate what exists.

  2. Verify minimum observability:

    • Health endpoint exists (/health or /healthz)
    • Error rate is trackable (metrics or logs)
    • Alerting is configured (email, Slack, PagerDuty)
    • Logs are accessible (not just stdout)
  3. If monitoring gaps found, recommend additions:

    • Health endpoint: simple /health returning {"status":"healthy","version":"x.y.z"}
    • Error tracking: Sentry, Prometheus alert rules, or log aggregation
    • Uptime monitoring: health check ping every 30-60s
    • Disk/memory alerts: warn at 85%, critical at 95%
  4. Infrastructure health (prevent cascade failures):

    • Disk space monitoring with alerts before exhaustion
    • Dependent services checked (DB, cache, queue) — if one dies, what cascades?
    • Container/process auto-restart configured (Docker restart policy, systemd)
    • Recovery runbook exists for each critical dependency
  5. Post-deploy monitoring habit:

    After every deploy:
    1. Check health endpoint returns correct version
    2. Verify key features work (smoke test)
    3. Watch error rate for 5 minutes
    4. Check no new alerts fired
    5. Record any incidents for future learning
    
  6. H7 Checkpoint: "Am I investing in Production Capability (monitoring), or just grinding out Production (features)?"

The P/PC Balance

Production (P) = shipping features, fixing bugs Production Capability (PC) = monitoring, alerting, runbooks, incident playbooks

If you only invest in P and neglect PC, eventually the saw is too dull to cut.

Handoff

  • Expects from predecessor (/deploy-guide): Deployed service in staging or production
  • Produces for successor: Observability configured — workflow complete

Read the full file on GitHub · 82 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. 4d ago First seen · 82 lines · 43 tokens per session scan A 6f9a6c2ef779

Subscribe to this mod's changes

monitor-setup is a skill published in the GitHub repository pitimon/8-habit-ai-dev (3 stars, last pushed 1mo ago), licensed MIT. It adds 43 tokens to every session and 766 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-31.

Related

Other skills, from other repositories

fix

Use to drive a bug fix from first report through close, with a "why didn't we catch it?" loop at the end. Triggers — "/engineer.fix", "a bug came in", "this is broken", "a user reported X", "there's a defect", "we have a regression", "this needs a fix", "another report", "more issues", "still failing", "validation…

swingerman/engineer · 100 tokens

next

Use at the start of a work session, or any time the question is "what should I pick up now" across the whole project. Triggers — "/engineer.next", "what's next", "what should I work on", "what should I do next", "where do I pick up".

swingerman/engineer · 64 tokens

crap-analyzer

Use to produce a risk-based refactor + test plan for recently-changed code on a diff/branch/PR by computing CRAP (complexity × untested) on changed methods. Multi-language — TypeScript, JavaScript, Python, Java, Kotlin, Go, Ruby, C#, Rust, PHP — auto-discovers how the repo generates coverage. Triggers …

swingerman/engineer · 109 tokens

post-merge

Use immediately after a PR is merged to clean up the local feature branch and resync main. Triggers — "/engineer.post-merge", "did we merge", "did we push", "PR merged", "post-merge cleanup", or right after a gh pr merge succeeds in the same session.

swingerman/engineer · 68 tokens

session-summary

Use at the end of a work session on a DAE feature, so the next session picks up cleanly. Triggers — "/engineer.session-summary", "wrap up the session", "write the session log", "I'm stopping for the day".

swingerman/engineer · 54 tokens

onboard

Use to bring a project into the DAE methodology, or to check an onboarded project for gaps. Triggers — "/engineer.onboard", "onboard this project", "set up DAE here", "adopt the methodology", or when a DAE skill fails because no manifest exists.

swingerman/engineer · 64 tokens