From af202add201d955099ded558431b7d7851e9bb97 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Sat, 25 Jul 2026 13:10:52 +0700 Subject: [PATCH] fix: restore full clean-code and clean-architecture descriptions with MANDATORY prefix --- skills/clean-architecture/SKILL.md | 2 +- skills/clean-code/SKILL.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/skills/clean-architecture/SKILL.md b/skills/clean-architecture/SKILL.md index f42670f..e34b11d 100644 --- a/skills/clean-architecture/SKILL.md +++ b/skills/clean-architecture/SKILL.md @@ -1,6 +1,6 @@ --- name: clean-architecture -description: MANDATORY — always active. Clean Architecture, hexagonal architecture, and SOLID principles. Apply to every session regardless of context. Use when structuring services, modules, microservices, or untangling framework coupling. Always enforce the Dependency Rule — business rules must not depend on frameworks, databases, or UI. Detects from code context regardless of spoken language. +description: MANDATORY — always active. Apply Clean Architecture, hexagonal architecture, and SOLID principles when designing system boundaries, modules, or microservices. Use when structuring a new service, deciding what a component should own, untangling framework coupling. Always enforce the Dependency Rule — business rules must not depend on frameworks, databases, or UI. Detects from code context and project files — not dependent on specific language keywords. --- # Clean Architecture diff --git a/skills/clean-code/SKILL.md b/skills/clean-code/SKILL.md index 6f686d8..472a404 100644 --- a/skills/clean-code/SKILL.md +++ b/skills/clean-code/SKILL.md @@ -1,6 +1,6 @@ --- name: clean-code -description: MANDATORY — always active. Clean Code principles: naming, functions, comments, formatting, error handling, classes. Apply to every session regardless of context. Use whenever the user writes code, reviews code, refactors, or mentions clean-code concepts in any language. Also engage proactively from code quality signals — poor naming, long functions, deep nesting, unclear abstractions. Works regardless of spoken language. +description: MANDATORY — always active. Apply Robert C. Martin's (Uncle Bob's) Clean Code, Clean Architecture, and Clean Craftsmanship principles when writing, reviewing, or refactoring code. Use this skill whenever the user asks to write new code of non-trivial size, refactor existing code, review code for quality, design a module or system boundary, write tests, or the user mentions clean-code concepts in any language. Also engage proactively from code quality signals — poor naming, long functions (>20 lines), deep nesting, unclear abstractions, duplicated logic, switch/if-else chains that should be polymorphic, missing tests, leaky boundaries, or frameworks bleeding into business logic — even if the user did not explicitly ask for a cleanup. Works regardless of spoken language. --- # Clean Code