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.
npx agentmods add skills/pitimon/8-habit-ai-dev/monitor-setupnpx skills add pitimon/8-habit-ai-dev --skill monitor-setupgit clone --depth 1 https://github.com/pitimon/8-habit-ai-devWrote 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.
[](https://agentmods.dev/skills/pitimon/8-habit-ai-dev/monitor-setup)<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>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.
| Model | Per session | Once 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 |
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.
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
-
Check existing monitoring: Search for health endpoints, Prometheus configs, Grafana dashboards, alerting rules — don't duplicate what exists.
-
Verify minimum observability:
- Health endpoint exists (
/healthor/healthz) - Error rate is trackable (metrics or logs)
- Alerting is configured (email, Slack, PagerDuty)
- Logs are accessible (not just stdout)
- Health endpoint exists (
-
If monitoring gaps found, recommend additions:
- Health endpoint: simple
/healthreturning{"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%
- Health endpoint: simple
-
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
-
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 -
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
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.
- 4d ago First seen · 82 lines · 43 tokens per session scan A 6f9a6c2ef779
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.
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…
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".
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 …
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.
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".
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.