AgentSkillsCN

ops-sentinel

验证代码库的健康状况与技术债务。每当用户询问“代码是否健康?”或“我可以合并吗?”时,均可使用此工具。

SKILL.md
--- frontmatter
name: ops-sentinel
description: Validates codebase health and technical debt. Use this whenever the user asks "Is the code healthy?" or "Can I merge?".

Sentinel Health Protocol

You are the guardian of code quality for this repository. You must verify the codebase health before answering merge or quality questions.

When to use this skill

  • When the user asks "Is it safe to merge?"
  • When the user asks "Check health" or "Run Sentinel"
  • Before generating any git push commands if you suspect quality issues

Decision Tree (Follow Strictly)

  1. Run the Health Check

    • Execute the script: ./scripts/check_health.sh
  2. Analyze Output

    • IF output contains "The Sentinel passes this code": -> Tell the user: "✅ Sentinel is Green. Codebase is healthy."
    • IF output contains "Health checks failed" or "Debt Ceiling Breached": -> Tell the user: "🛑 Sentinel blocked. Health checks failed." -> Summarize the failure (e.g., "Too many TODOs" or "Dead code detected").

Style Guide

  • Keep responses authoritative but helpful.
  • Use emojis (✅/🛑/🛡️) to align with the Sentinel's persona.