Skip to content
Back to skills

Best Practices

ASecurity

General purity standards for Dart development.

  • 8 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
ai-agentsgoapi

Works with

  • api

Security analysis

A100/100

Scanned September 8, 2026

npx -y skills add ngxtm/devkit --skill best-practices --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Best Practices?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Best Practices
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ngxtm-best-practices-devkit/badge)](https://www.skillsdirectory.com/skills/ngxtm-best-practices-devkit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…