Skip to content
Back to skills

Monitor Setup

ASecurity

Set up error tracking, alerting, and health checks. Use AFTER deploy to ensure observability. Step 7 of 7-step workflow. Maps to H7 (Sharpen the Saw).

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
developmentbashdockergitfrontendbackend

Security analysis

A100/100

Scanned September 22, 2026

npx -y skills add pitimon/8-habit-ai-dev --skill monitor-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Monitor Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Monitor Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pitimon-monitor-setup/badge)](https://www.skillsdirectory.com/skills/pitimon-monitor-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: monitor-setup
description: >
  Set up error tracking, alerting, and health checks.
  Use AFTER deploy to ensure observability. Step 7 of 7-step workflow. Maps to H7 (Sharpen the Saw).
user-invocable: true
argument-hint: "[project or service to monitor]"
allowed-tools: ["Read", "Glob", "Grep", "Bash"]
prev-skill: deploy-guide
next-skill: none
---

# 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

## When to Skip

- Monitoring is already comprehensive for this service (verified, not assumed)
- Change is purely frontend with no backend or infrastructure impact
- Service is being deprecated — invest monitoring effort elsewhere

## Definition of Done

- [ ] Health endpoint exists and returns version information
- [ ] Alerting configured for error rate and resource thresholds
- [ ] Error tracking active (logs accessible, not just stdout)
- [ ] Recovery runbook exists for each critical dependency

## Further Reading

See [Step 7 wiki page](https://github.com/pitimon/8-habit-ai-dev/blob/main/docs/wiki/Step-7-Monitor-Setup.md) for deeper walkthrough, examples, and common pitfalls.

Load `${CLAUDE_PLUGIN_ROOT}/habits/h7-sharpen-saw.md` for the full H7 principle and examples.

---

Hermes: no `${CLAUDE_PLUGIN_ROOT}`; use `https://github.com/pitimon/8-habit-ai-dev/blob/main` ([#388](https://github.com/pitimon/8-habit-ai-dev/issues/388)). OpenClaw: use the bundled file or `{baseDir}`; otherwise use the same GitHub URL.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…