Files
ghbot/.claude/skills/ghbot-production-hardening/SKILL.md
T
ghbot 78bf8e9e41 feat: v2.0 iteration — test coverage, reliability, observability
M0: Test coverage expansion (151 → 321 tests, 61% → 66% lines)
  - normalizeKnowledge CRLF/LF normalization fix
  - gooseReviewer: 11 tests, 97.35% coverage
  - r2 storage: 22 tests, 100% coverage
  - triage processor: 11 tests, exported buildTriagePrompt/labelName
  - webhook processor: 35 tests, 72.39% coverage
  - conflict resolver: 12 tests
  - review processor: 7 tests

M1: Reliability hardening
  - Smart retry with jitter, maxTotalTimeoutMs, custom retryable predicate
  - MergeGuard: in-memory merge dedup tracker (100% coverage)
  - failureMessages: 7-category failure classifier (100% coverage)

M2: Observability
  - MetricsCollector: Actions-run metrics with snapshot/markdown/reset
  - 11 tests, 100% coverage

New files: 12 test files, 3 source modules
All gates: typecheck ✓ lint ✓ format ✓ 321/321 tests ✓ build ✓
2026-08-24 17:34:04 +08:00


name: ghbot-production-hardening description: Production close-out workflow for ghbot: spec, audit, fix P0/P1 guards, gates, webhook HTTP smoke, independent review, docs. metadata: last_verified: "2026-08-23" repo_baseline: "v1.1.0-hardening"

ghbot production hardening skill

When to use

Closing a production iteration of this GitHub review bot. Not for adding unrelated SaaS features.

Do not use

  • Changing AUTO_MERGE default
  • Reusing old review cache as a new-head approval
  • Running paid LLM E2E without budget
  • Pushing to remotes without write permission

Inputs

Current repo, CLAUDE.md red lines, .specify/memory/constitution.md.

Steps

  1. Read constitution, CLAUDE.md, workflow_status.md, last verification record.
  2. Rebuild facts: git status, typecheck, test.
  3. Audit contract/security/error/docs before coding.
  4. Fix P0 then P1 with tests. Skip 1700-line processor extraction unless an event-loop harness exists.
  5. Gates: typecheck, lint, format:check, test, build, npm audit --omit=dev.
  6. Webhook HTTP smoke on a spare port: /healthz, HMAC 202, bad sig 401, duplicate, /metrics.
  7. Independent critic. Repair only confirmed Blocking/Required.
  8. Sync README/.env.example/workflows. Write HTML report under docs/reports/.

Stop

Missing credentials, origin 403, paid API, production deploy, no progress after two review loops.

Verify

Never claim LLM review E2E or origin push without command evidence.