Skip to content
Back to skills

Data Access

ASecurity

Implement the data access layer including contracts, repositories, and BLoC/Cubit for business logic. Use when adding Flutter CQRS data access.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 25, 2026
ai-agentsapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 25, 2026

npx -y skills add leancodepl/ai-plugins --skill data-access --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Access?

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

Security grade badge for Data Access
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leancodepl-data-access/badge)](https://www.skillsdirectory.com/skills/leancodepl-data-access)

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: data-access
description: Implement the data access layer including contracts, repositories, and BLoC/Cubit for business logic. Use when adding Flutter CQRS data access.
argument-hint: "<feature-or-use-case>"
---

# Implement Data Access Layer

Implement the data access layer including contracts, repositories, and BLoC/Cubit for business logic.

## Relevant knowledge

- For details about CQRS and contracts, see `../flutter-cqrs-usage/references/cqrs-data-access.md`.
- For command/query/operation naming, base classes, the `cqrs.run`/`cqrs.get` API, repository boundaries, and contract generation, see `reference.md` (alongside this skill).
- For base-cubit recipes, use `flutter-cubit-utils`.

## Steps

1. Find the required contracts in `contracts.dart`. Match them against the user prompt.
2. If contracts are missing, ask the user to run the contracts generator or run it manually.
3. For simple API calls, use contracts directly in the BLoC/Cubit.
4. For complex logic (caching, multiple sources, mapping), implement a repository.
5. Implement the BLoC or Cubit to handle the feature's business logic.
6. Do not create operations unless explicitly requested.

## Success criteria

- Code follows `../flutter-cqrs-usage/references/cqrs-data-access.md` and other relevant plugin rules.
- Missing contracts are reported if still absent after generation.
- All uncertainties are clarified with the user rather than assumed.

Files in this skill

  • SKILL.md1.4 KB
  • reference.md1.4 KB

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.