搜索

PythonReactSEOPDF
GitHub Skill

software-engineering

Core engineering principles for quality, maintainable code.

WallysonGalvao☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

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_NAME instead of ENV_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

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!