software-engineering
Core engineering principles for quality, maintainable code.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Software Engineering Standards
Apply these principles to all code.
Core Principles
- Type-safety (aim for e2e type-safety)
- Monitoring/observability/profiling/tracing
- Simplicity (KISS, YAGNI, no clutter)
- Functional programming (immutability, high order functions)
- Automation (CI pipelines for builds and tests)
Naming & Clarity
- Be concrete:
retryAfterMs>timeout,emailValidator>validator - Avoid vague terms:
data,item,list,component,info - Every character must earn its place
- Use nested objects for context:
config.public.ENV_NAMEinstead ofENV_NAME
Code Organization
- Keep code close to where it's used (unless used 2-3+ times)
- A folder with a single file should be a single file
- Comments are unnecessary 98% of the time (convert to functions/variables)
- Code is reference, history, and functionality - must be readable as a journal
Error Handling
- Always provide user feedback
- Log errors with observability tools
- Use HighOrderFunctions for monitoring/error handling/profiling
Testing
- Test behavior, not implementation
- Write test for each bug fixed (prevents re-occurrence)
- 3rd person verbs (not "should")
- Organize with describe blocks
Security & Accessibility
- Follow OWASP best practices
- Strive for WCAG 2.0 guidelines
- Don't write pure SQL strings; use query-builders for injection protection
Avoid
- Premature optimization
- Useless abstractions (functions that mainly call one function, helpers used only once)
- Over-engineering
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!