Provide mock data
Skill anoopsg/agent_rules/src/exclusive/skills/provide-mock-data
Behavioral blueprints for agents.
npx -y skills add anoopsg/agent_rules --skill provide-mock-dataAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Process for creating mock data sources in the infrastructure layer.
SKILL.md
1.0 KB, as published. Nobody here has run it
Provide Mock Data
When you need to create mock data for development or prototyping, follow these guidelines:
- Location: Place mock data files inside the
lib/src/infrastructure/_mock/directory. - Naming: Name the file using the domain name suffixed with
_mock.dart(e.g.,notifications_mock.dart). - Structure:
- Provide a pure function or constants to generate the mock data.
- Do NOT use singletons or hold state within the mock data file itself. State should be managed by Riverpod providers/notifiers.
- Integration: Create a repository class (e.g.,
NotificationsRepository) that uses the mock data generator to simulate API responses, including adding artificial delays usingFuture.delayedto simulate network latency. - Separation of Concerns: The notifier should handle all local state updates, while the repository strictly handles the "network" (mock) operations.