AgentSkillsCN

release-readiness

发布前的最终检查——防御性编程、指标监控、功能标志、质量扫描。当您完成某项功能开发,或为正式上线做准备时,可调用此技能。

SKILL.md
--- frontmatter
name: release-readiness
description: Final checks before release — defensive coding, metrics, feature flags, quality scans. Use when completing a feature or preparing for production release.

Release Readiness

Philosophy

Last line of defense. Validate everything upstream first. Then harden minimally.

Final Defensive Coding

  • Only now add exception handling or defensive code — after exhausting upstream fixes
  • Keep it minimal — don't over-engineer

Business Metrics

  • Confirm whether business metrics are appropriate for this feature
  • User actions, conversions, feature usage, domain KPIs

Release Strategy

  • Ask: feature flag for gradual rollout?
  • Ask: A/B experiment needed?
  • Document rollback plan: feature flag off, revert deploy, data considerations

Dashboards

  • Remind to create/update dashboards
  • Print summary of available data to connect:
    • Logs, traces, metrics endpoints
    • Business events
    • Health checks

Environment Parity

  • Confirm staging matches prod: env vars, feature flags, data shape

Database Migrations

  • Confirm migrations are reversible
  • Test rollback
  • Check for locking issues on large tables

Load Testing

  • For high-traffic features, run load tests
  • Confirm rate limits and scaling behave as expected

Runbook

  • Update on-call runbook if feature introduces new failure modes

Quality Tools — IDE

Confirm running in IDE or run manually:

ToolPurpose
Error LensInline error display
WebHintBrowser best practices
ESLintJS/TS linting
typescript-eslintTS-specific rules
StylelintCSS linting
eslint-plugin-react-hooksHooks rules
eslint-plugin-jestJest rules
axe LinterA11y linting
SonarLintCode quality
Code Spell CheckerTypos
SQLFluffSQL linting
PrettierFormatting

Quality Scans — Pipeline

Run or confirm in pipeline:

ScanCommand
Type checktsc --noEmit
Unused depsdepcheck
Dep vulnerabilitiesnpm audit / pip-audit
Code qualitySonarQube
Copy-paste detectionnpx jscpd <path>
License compliancelicense-checker / pip-licenses

Flag copyleft licenses in proprietary code.

Bundle Analysis

  • Check bundle size: webpack-bundle-analyzer, source-map-explorer
  • Flag unexpected growth

Manual Checks

Remind to run:

  • Smoke test in staging — before prod
  • Lighthouse — performance, a11y, SEO, best practices
  • WAVE — a11y audit
  • Performance profiling — browser devtools, backend profiling as needed