agentsclimarketplace

Provide mock data

Skill anoopsg/agent_rules/src/exclusive/skills/provide-mock-data

Behavioral blueprints for agents.

Install
npx -y skills add anoopsg/agent_rules --skill provide-mock-data

Assembled 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:

  1. Location: Place mock data files inside the lib/src/infrastructure/_mock/ directory.
  2. Naming: Name the file using the domain name suffixed with _mock.dart (e.g., notifications_mock.dart).
  3. 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.
  4. Integration: Create a repository class (e.g., NotificationsRepository) that uses the mock data generator to simulate API responses, including adding artificial delays using Future.delayed to simulate network latency.
  5. Separation of Concerns: The notifier should handle all local state updates, while the repository strictly handles the "network" (mock) operations.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.