cg-devplan
Generate a structured development plan (devplan) for software projects. Use this skill whenever the user wants to plan a new app,…
Set up production observability for indie-scale apps — structured logging, uptime monitoring, error tracking, and basic metrics. Use when the user mentions logging, monitoring, alerts, error tracking, uptime checks, "how do I know if my app is down", Sentry, journalctl,
How it fires
How this command gets triggered: by you, by Claude, or both.
/cg-indie-observabilityContext preview
What this command does when you run it.
Set up production observability for indie-scale apps — structured logging, uptime monitoring, error tracking, and basic metrics. Use when the user mentions logging, monitoring, alerts, error tracking, uptime checks, "how do I know if my app is down", Sentry, journalctl,
name: cg-indie-observability description: Set up production observability for indie-scale apps — structured logging, uptime monitoring, error tracking, and basic metrics. Use when the user mentions logging, monitoring, alerts, error tracking, uptime checks, "how do I know if my app is down", Sentry, journalctl, structured logs, or wants to know what's happening in production. NOT for enterprise observability stacks (Grafana+Prometheus+Loki+Jaeger), OpenTelemetry distributed tracing, or APM platforms — this is for solo devs and small teams who want to know when something breaks and why.
Give an indie-scale production app enough visibility to answer three questions reliably: *Is it up? Did something break? Why?* Without running a six-container observability stack.
**This skill covers:**
**This skill does NOT cover:**
If the user has multiple services, high traffic, or needs distributed tracing across a microservice mesh — recommend SigNoz, Grafana LGTM, or a managed platform instead.
MUST have answers to these before producing code or config. Ask the user directly if unclear.
1. **What language/runtime is the app?** — determines logging library:
2. **Is the app already running in production?** — determines workflow:
3. **How is the app deployed?** — affects log destination:
4. **What's the team size and error volume expectation?**
5. **What alerting channels does the user actually check?**
The best alerting system is the one the user will not mute.
Indie observability is four loosely-coupled concerns. Set them up in order of value.
**Why first**: Every other pillar is easier when logs are structured. A single `jq` query replaces an entire dashboard. Debugging goes from hours to minutes.
**Rules**:
**Go example with slog**:
import (
"log/slog"
"os"
)
logger := slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{
Level: slog.LevelInfo,
}))
slog.SetDefault(logger)
// Use it
slog.Info("request completed",
"request_id", reqID,
"method", "POST",
"path", "/api/users",
"status", 201,
"duration_ms", 42,
)**Node.js with pino**:
import pino from 'pino';
const logger = pino({
level: process.env.LOG_LEVEL || 'info',
formatters: {
level: (label) => ({ level: label }),
},
timestamp: pino.stdTimeFunctions.isoTime,
});
logger.info({
request_id: reqId,
method: 'POST',
path: '/api/users',
status: 201,
duration_ms: 42,
}, 'request completed');**Python with structlog**:
import structlog
import logging
structlog.configure(
processors=[
structlog.contextvars.merge_contextvars,
structlog.processors.add_log_level,
structlog.processors.TimeStamper(fmt="iso", utc=True),
structlog.processors.JSONRenderer(),
],
wrapper_class=sA minimal rule system for Claude Code. Gives Claude the structural discipline it lacks by default — phase tracking, decision logging, honest pushback, debug discipline, language-specific best practices, and reusable skills.
Generate a structured development plan (devplan) for software projects. Use this skill whenever the user wants to plan a new app,…
Deploy an application to a single VPS with reverse proxy, automatic TLS, systemd process supervision, firewall, and basic health…
Build, sign, notarize, and publish a macOS app as a GitHub release with a professional DMG
Set up an open source repository for healthy long-term maintenance — branch protection, commit signing, tag immutability, issue…
Harden an indie-scale production app against common attacks — rate limiting, CORS, security headers, input validation, secrets…
Perform deep, findings-first senior engineering code reviews of any change in any language or stack. Use when reviewing a phase,…