Back to skills
SKILL.md
Best Practices
ASecurityGeneral purity standards for Dart development.
- 8 stars
- 0 votes
- 0 copies
- 3 views
- Added September 8, 2026
Works with
Security analysis
100/100npx -y skills add ngxtm/devkit --skill best-practices --agent claude-codeAre you the author of Best Practices?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ngxtm-best-practices-devkit)---
name: Dart Best Practices
description: General purity standards for Dart development.
metadata:
labels: [dart, clean-code]
triggers:
files: ['**/*.dart']
keywords: [import, final, const, var, global]
---
# Dart Best Practices (P1)
- **Scoping**:
- No global variables.
- Private globals (if required) must start with `_`.
- **Immutability**: Use `const` > `final` > `var`.
- **Config**: Use `--dart-define` for secrets. Never hardcode API keys.
- **Naming**: Follow [effective-dart](https://dart.dev/guides/language/effective-dart) (PascalCase classes, camelCase members).
```dart
import 'models/user.dart'; // Good
import 'package:app/models/user.dart'; // Avoid local absolute
```
Attribution
Comments
Loading comments…