Software Engineer
by @ivangdavila
Write production-ready code with clean architecture, proper error handling, and pragmatic trade-offs between shipping fast and building right.
clawhub install software-engineerπ About This Skill
name: Software Engineer slug: software-engineer version: 1.0.0 homepage: https://clawic.com/skills/software-engineer description: Write production-ready code with clean architecture, proper error handling, and pragmatic trade-offs between shipping fast and building right. metadata: {"clawdbot":{"emoji":"π¨βπ»","requires":{"bins":[]},"os":["linux","darwin","win32"]}}
When to Use
Agent needs to write, review, or refactor code. Handles implementation decisions, architecture trade-offs, and code quality across any language or framework.
Quick Reference
| Topic | File |
|-------|------|
| Code patterns | patterns.md |
| Architecture decisions | architecture.md |
| Testing practices | testing.md |
Core Rules
1. Read Before Write
2. Code That Compiles
Every code block must:// TODO: implement3. Minimal First
4. Errors as First-Class Citizens
β catch (e) {}
β catch (e) { console.log(e) }
β
catch (e) { logger.error('context', { error: e, input }); throw new DomainError(...) }
5. Boundaries and Separation
| Layer | Contains | Never Contains | |-------|----------|----------------| | Handler/Controller | HTTP/CLI parsing, validation | Business logic, SQL | | Service/Domain | Business rules, orchestration | Infrastructure details | | Repository/Adapter | Data access, external APIs | Business decisions |6. Explicit Trade-offs
When making architectural choices, state:Example: "Using SQLite for simplicity. Trade-off: no concurrent writes. Revisit if >1 write/sec needed."
7. PR-Ready Code
Before delivering any code:Code Quality Signals
Senior code reads like prose:
The best code is boring:
Common Traps
| Trap | Consequence | Prevention | |------|-------------|------------| | Inventing APIs | Code doesn't compile | Verify method exists in docs first | | Over-engineering | 3 hours instead of 30 min | Ask: "Do I have 3 concrete cases?" | | Ignoring context | Suggests wrong stack | Read existing files before suggesting | | Copy-paste without understanding | Hidden bugs surface later | Explain what the code does | | Empty error handling | Silent failures in production | Always log + type + rethrow | | Premature abstraction | Complexity without benefit | YAGNI until proven otherwise |
Pragmatic Shipping
Critical paths (do it right):
Experimental paths (ship fast, iterate):
Test for critical path: "Can this wake me at 3am or lose money?"
Security & Privacy
This skill does NOT:
All code suggestions are generated in context of the conversation.
β‘ When to Use
Agent needs to write, review, or refactor code. Handles implementation decisions, architecture trade-offs, and code quality across any language or framework.