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>
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer