SKILL.md
Dart style & layout – Contentstack Dart SDK
When to use
- Adding new files under
lib/ortest/ - Fixing analyzer or lint findings
- Choosing import style (
package:vs relative) consistent with this repo
Instructions
Layout
- Public API:
lib/contentstack.dartandlib/src/ - Tests:
test/*.dartalongside optional scripts liketest/run_test.sh - Analyzer config: root [
analysisoptions.yaml](../../analysisoptions.yaml)
Conventions reflected in analysis_options.yaml
- Prefer
package:imports for public code;avoidrelativelib_importsis enabled directivesordering,packageapidocs(document public APIs),alwaysdeclarereturntypes, strong null-safety practices- Generated
*.g.dartfiles are excluded from analysis—do not hand-edit them
Naming
- Follow
filenames,camelcasetypes,nonconstantidentifiernamesas enforced by the configured lints
References
- [../dev-workflow/SKILL.md](../dev-workflow/SKILL.md) —
dart analyze/ format - Effective Dart
- Analyzer options