AgentSkillsCN

release-ops

严格执行 TDD 测试驱动开发流程,并将代码覆盖率门槛设定在 80% 以上。当您需要新增功能、编写测试用例,或修复代码覆盖率与 CI 流程中的缺陷时,此技能将助您事半功倍。

SKILL.md
--- frontmatter
name: "release-ops"
description: "Standardizes staging/prod deploy, CI/CD gates, rollback, and monitoring. Invoke when configuring pipelines, releasing, or handling incidents."

Release Operations

Purpose

Make deployments safe and repeatable:

  • CI checks (typecheck, lint, tests, coverage, build)
  • Staging environment parity with production
  • Rollback procedures
  • Monitoring and alerting for payments/webhooks

When to Invoke

Invoke this skill when:

  • Setting up CI/CD
  • Adding new environment variables or secrets
  • Promoting staging → production
  • Investigating production incidents (failed payments, webhook errors)

Release Gates

  • Tests pass and coverage ≥ 80%
  • No TypeScript errors
  • Lighthouse baseline meets targets for critical pages
  • Webhook endpoints verified and monitored

Rollback Strategy

  • Prefer deployment rollback (platform revert) over emergency code edits.
  • Database changes must be additive and reversible.