skills/smithery.ai/netalertx-code-standards

netalertx-code-standards

Installation
SKILL.md

Code Standards

  • ask me to review before going to each next step (mention n step out of x) (AI only)
  • before starting, prepare implementation plan (AI only)
  • ask me to review it and ask any clarifying questions first
  • add test creation as last step - follow repo architecture patterns - do not place in the root of /test
  • code has to be maintainable, no duplicate code
  • follow DRY principle - maintainability of code is more important than speed of implementation
  • code files should be less than 500 LOC for better maintainability
  • DB columns must not contain underscores, use camelCase instead (e.g., deviceInstanceId, not device_instance_id)
  • treat DB as temporary storage for stats, long term configuration should be stored in the /config folder, the /config folder should allow you to restore most of your functionality (excluding historical data)

File Length

Keep code files under 500 lines. Split larger files into modules.

DRY Principle

Do not re-implement functionality. Reuse existing methods or refactor to create shared methods.

Installs
1
First Seen
Apr 16, 2026