scaffold-analytics-ids
Installation
SKILL.md
Scaffold Analytics IDs
Create or extend a feature-level <feature_name>_ids.dart file.
Inputs to confirm
- Feature name in
snake_case. - Single-page or multi-page feature.
- Page names that need IDs.
- Clickable actions that need
AnalyticsIdentries.
Workflow
- Locate or create
lib/features/<feature_name>/<feature_name>_ids.dart. - Name the class
<FeatureName>AnalyticsId. - Add page IDs as
static const Stringfields first. - Add clickable IDs below them as
AnalyticsIdfields or factory methods. - If one action exists on multiple pages, use a factory method that accepts the page ID.