agentleFS
KbWenKbWen/agentic-os/.agents/skills/production-readiness/SKILL.md

production-readiness

Skill206 starsChanged 3 months agoMITView on GitHub

Use at review and ship, automatically for feature or architecture changes and on request for error handling, logging, crash reporting, or observability; verify errors reach production monitoring.

16 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use incident-response.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Document in Work Log where production errors go:

    line 32
  2. Distinctive:

    If the project has no production logging infrastructure, document as Known Risk:

    line 41
  3. Distinctive:

    Alert thresholds: When to page on-call — SRE/ops owns this.

    line 61

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Production Readiness

Overview

Code that passes all tests but logs errors only via debug-only APIs (e.g., debugPrint, console.log in debug mode) is functionally silent in production. This skill enforces observability readiness before ship — ensuring the team is not blind during beta testing and production rollout.

When to Use

  • Auto-recommended for feature and architecture-change classifications.
  • Activate manually when working on error handling, crash reporting, or logging infrastructure.
  • Apply at /review (semantic error check) and /ship (readiness checklist).

Observability Checklist

1. Error Surface Audit (at /review)

For every catch / error-handling block in changed files:

CheckPassFail
Logging call existsLogger.error(), log.error(), crashReporter.capture()Empty catch {}
Logger is production-observableFramework logger, crash reporter, structured stdoutdebugPrint(), print(), debug-only console.log
Error context is actionableIncludes error type, operation, identifiers"error occurred", raw exception only

2. Log Sink Documentation (at /ship)

Document in Work Log where production errors go:

## Observability
- Error sink: [e.g., Sentry via Logger.error(), Crashlytics, stdout → CloudWatch]
- Health check: [e.g., /health endpoint, Firebase Vitals, uptime monitor]
- Rollback signal: [e.g., error rate > 2x baseline → revert]

If the project has no production logging infrastructure, document as Known Risk:

"No production error reporting configured. Errors in catch blocks will be logged to stdout only. Risk: silent failures in release builds if stdout is not monitored."

3. Rollback Telemetry (at /ship)

The rollback plan (per engineering_guardrails.md §12.5) must answer:

  • How will operators know the rollback is needed? (alert, dashboard, manual check)
  • How will operators know the rollback succeeded? (error rate drops, health check passes)

Heading-Scoped Read Note

For phase-entry loading, read only:

  • When to Use
  • Observability Checklist

Load What This Skill Does NOT Cover, Anti-Patterns, and Interaction with Other Skills on full read or cache miss only.

What This Skill Does NOT Cover

  • Tool selection: Sentry vs Crashlytics vs Datadog — team/project decides.
  • Alert thresholds: When to page on-call — SRE/ops owns this.
  • Dashboards: What to visualize — team preference.
  • Post-deploy monitoring: This is a pre-ship readiness check, not an ops workflow.

Anti-Patterns

Anti-PatternWhy It FailsFix
catch (e) { debugPrint(e); }Tree-shaken in release buildUse production logger
catch (e) { /* TODO: add logging */ }Silent catch escapes reviewAdd logging now, not later
Logger.error("error") without contextUseless in production triageInclude operation, identifiers, error type
Logging to local file onlyNot observable in cloud/mobileUse centralized error reporting

Interaction with Other Skills

  • systematic-debugging: Complements — debugging finds bugs, production-readiness ensures they're visible when they happen again.
  • verification-before-completion: Works alongside — verification checks correctness, production-readiness checks observability.
  • auth-security: Security errors are especially critical to observe in production. §5.2a applies with elevated priority to auth error paths.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.