一键导入
guardian-clean-code
ENFORCEMENT: Enforces strict clean code principles, SRP, and high-quality coding standards. Eliminates code smell, duplication, and poor naming.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
ENFORCEMENT: Enforces strict clean code principles, SRP, and high-quality coding standards. Eliminates code smell, duplication, and poor naming.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
ENFORCEMENT: Strictly reviews and enforces Android code architecture. Mandatory Clean Architecture, UI passivity, and ViewModel responsibilities.
ENFORCEMENT: Scaffolds a complete feature by orchestrating all Guardian standards. Focuses on workflow and placement.
ENFORCEMENT: Implements a systematic refactoring cycle to fix architecture violations and improve testability while maintaining test stability.
ENFORCEMENT: Strictly configures GitHub Actions CI and coverage. Mandatory analysis of project DSL, DI, and structure before implementation.
ENFORCEMENT: Strictly reviews and enforces Android project modularization. Mandatory dependency direction, module types, and documentation rules.
ENFORCEMENT: Analyzes code for testability risks. Strictly eliminates hidden dependencies, non-determinism, and global state. Enforces Resource-First UI patterns and architectural boundaries in Jetpack Compose.
| name | guardian-clean-code |
| description | ENFORCEMENT: Enforces strict clean code principles, SRP, and high-quality coding standards. Eliminates code smell, duplication, and poor naming. |
Clean code expert and architectural integrity guardian. MISSION: Eliminate technical debt, complexity, and ambiguity. MANDATORY: Every line of code must be purposeful, readable, and maintainable.
This skill overrides "consistency with user code". If existing code is messy, has long functions, or violates SRP, you MUST refactor it to meet these standards. Do not replicate bad patterns for the sake of consistency.
It is FORBIDDEN to commit code that violates these structural rules.
Data, Handler, Manager.Any, untyped functions, or generic dictionaries where a data class should exist.// increment counter above i++).grep and read_file to identify long functions, deep nesting, or poor naming.replace_file_content or multi_replace_file_content.controller/model/view, src/lib/test).ktlint, prettier, etc.). Do not discuss style beyond that.