원클릭으로
clean-code
// The Foundation Skill. LLM Firewall + 2025 Security + Cross-Skill Coordination. Use for ALL code output - prevents hallucinations, enforces security, ensures quality.
// The Foundation Skill. LLM Firewall + 2025 Security + Cross-Skill Coordination. Use for ALL code output - prevents hallucinations, enforces security, ensures quality.
Use when you need to act as an Elite Software Architect (Maestro) to manage complex repositories. It enforces a "Why over How" philosophy, maintains a persistent project memory (Brain), and orchestrates specialized sub-skills through a Plan-Act-Verify lifecycle.
Elite Tier Backend standards, including Vertical Slice Architecture, Zero Trust Security, and High-Performance API protocols.
Design-first methodology. Explore user intent, requirements and design before implementation. Turn ideas into fully formed specs through collaborative dialogue.
Master specialized skill for building 2025/2026-grade browser extensions. Deep expertise in Manifest v3, Service Worker persistence (Alarms, Offscreen API), Side Panel API, and Cross-Browser compatibility.
Systematic debugging methodology with 4-phase process, root cause tracing, and elite observability standards. No fixes without investigation.
Elite Tier Web UI standards, including pixel-perfect retro aesthetics, immersive layouts, and UX psychology protocols.
| name | clean-code |
| description | The Foundation Skill. LLM Firewall + 2025 Security + Cross-Skill Coordination. Use for ALL code output - prevents hallucinations, enforces security, ensures quality. |
<domain_overview>
Philosophy: This skill is the FOUNDATION - it applies to ALL other skills. Every piece of code must pass these gates. ALGORITHMIC ELEGANCE MANDATE (CRITICAL): Never prioritize "clever" code over readable, intent-revealing engineering. AI-generated code often fails by introducing unnecessary abstractions or using vague naming conventions that obscure logic. You MUST use intent-revealing names for every variable and function. Any implementation that increases cognitive complexity without a proportional gain in performance or scalability must be rejected. Avoid "Hype-Driven Development"—proven patterns trump trending but unstable frameworks. </domain_overview> <iron_laws>
1. NO HALLUCINATED PACKAGES - Verify before import
2. NO LAZY PLACEHOLDERS - Code must be runnable
3. NO SECURITY SHORTCUTS - Production-ready defaults
4. NO OVER-ENGINEERING - Simplest solution first
</iron_laws> <security_protocols>
LLMs hallucinate packages that sound real but don't exist.
npm search or pip show for unfamiliar packages^ or ~ for critical deps
2025 AI Package Risks:Frontend Security:
| Forbidden | Required |
|---|---|
dangerouslySetInnerHTML | DOMPurify sanitization |
| Inline event handlers | Event delegation |
eval(), new Function() | Static code only |
| Storing tokens in localStorage | httpOnly cookies |
| Backend Security: | |
| Forbidden | Required |
| ----------- | ---------- |
CORS: * | Explicit origin whitelist |
| Raw SQL strings | Parameterized queries |
chmod 777 | Principle of least privilege |
| Hardcoded secrets | Environment variables + validation |
| API Security (2025): |
Forbidden Patterns:
// ❌ BANNED
// TODO: Implement this
// ... logic goes here
function placeholder() { }
throw new Error('Not implemented');
Required:
The 50/300 Rule:
Native First:
// ❌ Don't install is-odd
npm install is-odd
// ✅ Use native
const isOdd = n => n % 2 !== 0;
Anti-Patterns:
Freshness Check:
npm outdated # Check for updates
npm audit # Check for vulnerabilities
The CVE Brake:
When Building AI Features:
Before committing ANY code:
npm audit clean)any)| When Using... | Clean Code Adds... |
|---|---|
@frontend-design | Security defaults, no eval, CSP awareness |
@backend-design | Input validation, no raw SQL, Zero Trust |
@tdd-mastery | No placeholders (tests enforce completeness) |
@planning-mastery | Modularity guides task breakdown |
@brainstorming | SOLID/YAGNI guide architecture decisions |
@debug-mastery | Logging standards, no silent failures |
| </audit_and_reference> |