用途:该技能为 QJudge 的「品质门槛全责」角色,负责命名、架构与样式的可执行检查规则,以及 quality profile(compat/strict)与 CI gate 定义,用于在任务涉及 naming lint、architecture lint、样式禁则(.cds/.bx/!important)与 CI gate 设定时使用。
主要能力:提供三项可执行检查脚本,包括命名 lint、架构 lint 与 Carbon 样式 gate;定义 compat 与 strict 两种质量策略,compat 为默认,先兼容历史债、防止新增违规,strict 追求完整 clean architecture 边界,作为收敛目标;并负责违规分类与迁移节奏,采取先报告再阻挡。
使用方式:按顺序执行命令。先跑命名检查:node .codex/skills/qjudge-quality-gates-owner/scripts/lint-naming.js --root frontend/src;再跑架构检查:node .codex/skills/qjudge-quality-gates-owner/scripts/lint-architecture.js --root frontend/src --policy compat;最后跑 Carbon 样式 gate:bash .codex/skills/qjudge-quality-gates-owner/scripts/check-carbon-style.sh。
适用场景:适用于需要统一品质门槛、防止新增违规、并逐步迁移历史债的前端项目;参考文件包括 references/quality-profiles.md 与上述脚本。
限制与边界:不做 feature 架构决策(交给 qjudge-architecture-owner),不做 PR 流程决策(交给 qjudge-github-workflow-owner)。新项目只需替换 root path 与 allowlist file 即可重用。