Clean Code - Pragmatic AI Coding Standards
CRITICAL SKILL - Be concise, direct, and solution-focused.
Core Principles
Naming Rules
Rule: If you need a comment to explain a name, rename it.
Function Rules
Code Structure
AI Coding Style
Anti-Patterns (DON'T)
π΄ Before Editing ANY File (THINK FIRST!)
Before changing a file, ask yourself:
Quick Check:
π΄ Rule: Edit the file + all dependent files in the SAME task. π΄ Never leave broken imports or missing updates.
Summary
Remember: The user wants working code, not a programming lesson.
π΄ Self-Check Before Completing (MANDATORY)
Before saying "task complete", verify:
π΄ Rule: If ANY check fails, fix it before completing.
Verification Scripts (MANDATORY)
π΄ CRITICAL: Each agent runs ONLY their own skill's scripts after completing work.
Agent β Script Mapping
β WRONG:
test-engineerrunningux_audit.pyβ CORRECT:frontend-specialistrunningux_audit.py
π΄ Script Output Handling (READ β SUMMARIZE β ASK)
When running a validation script, you MUST:
- Run the script and capture ALL output
- Parse the output - identify errors, warnings, and passes
- Summarize to user in this format:
- Wait for user confirmation before fixing
- After fixing β Re-run script to confirm
π΄ VIOLATION: Running script and ignoring output = FAILED task. π΄ VIOLATION: Auto-fixing without asking = Not allowed. π΄ Rule: Always READ output β SUMMARIZE β ASK β then fix.


