data-logic
Skill2 starsChanged 6 days agoMITView on GitHub
Use when designing immutable data models, DTOs, type-safe transformation pipelines, or state management logic.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Echo-Scion/portable-brainvibingword for word, first seen Oct 15, 2026
Other versions1 project uses a version of this.
Word for word · 1
- Echo-Scion/portable-brainvibing★ 2100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-engineerSkill
- api-contractSkill
- app-lifecycleSkill
- brain-graphSkill
- code-reviewSkill
- cost-optimizerSkill
- feature-discoverySkill
- frontend-experienceSkill
- integrity-sentinelSkill
- meta-agent-adminSkill
- paletteSkill
- project-architectSkill
- project-operatorSkill
- saas-strategistSkill
- self-evolveSkill
- session-offloadSkill
- strict-tddSkill
- systematic-debuggingSkill
- ui-finishSkill
- worker-delegateSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Detect Ecosystem: Check the project root for ecosystem markers (pubspec.yaml = Flutter, package.json = Node/React, Cargo.toml = Rust, …
- Very specific: line 16
Use an available file-search tool to locate data model directories (domain/, models/, entities/).
- Very specific: line 19
FORBIDDEN (In-Place Mutation): Never mutate state objects directly (e.g., state.field = value).
- Distinctive: line 20
FORBIDDEN (Boundary Bleed): Never import UI/Presentation layers (widgets, controllers, HTML elements) into domain models or entities.
- Very specific: line 21
FORBIDDEN (Untyped Data): Never use dynamic, any, or raw untyped dictionaries in production domain models.
- Distinctive: line 22
FORBIDDEN (Over-Subscription): Never subscribe to broad root state objects in UI widgets.
- Distinctive: line 27
Async State Management: Use async state containers for async mutations, read-only providers for one-off fetches.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Data & State Architect
Enforces unidirectional data flow, immutable DTOs, and type-safe state transitions across application layers.
JIT Tool Directives (Execute this FIRST)
- Detect Ecosystem: Check the project root for ecosystem markers (
pubspec.yaml= Flutter,package.json= Node/React,Cargo.toml= Rust,go.mod= Go,*.csproj= .NET). - Load Ecosystem Canon: Based on detected ecosystem, load the relevant canon:
- Flutter:
canons/ecosystems/flutter/flutter-data-patterns.md - Other: Apply universal principles below directly.
- Flutter:
- Use an available file-search tool to locate data model directories (
domain/,models/,entities/).
Architectural Invariants (Negative Constraints)
- FORBIDDEN (In-Place Mutation): Never mutate state objects directly (e.g.,
state.field = value). All updates MUST produce a fresh instance viacopyWith, immutability records, or pure reducers. - FORBIDDEN (Boundary Bleed): Never import UI/Presentation layers (widgets, controllers, HTML elements) into domain models or entities.
- FORBIDDEN (Untyped Data): Never use
dynamic,any, or raw untyped dictionaries in production domain models. Enforce strict schemas (Zod, Freezed, Pydantic). - FORBIDDEN (Over-Subscription): Never subscribe to broad root state objects in UI widgets. Enforce granular, field-level reactive selectors to eliminate redundant re-renders.
Universal Workflow Patterns
- Selective Watch Rule: Subscribe to specific fields to prevent unnecessary UI rebuilds.
- Async State Management: Use async state containers for async mutations, read-only providers for one-off fetches.
- Loop Prevention: Handle futures/streams with explicit state matchers (loading/error/data).
Troubleshooting (Universal)
- Model methods not generated: Missing code generation setup or part directives.
- UI not updating on state change: Using one-shot read instead of reactive watch.
- Duplicate state containers: Multiple providers/stores with same responsibility.
🔗 Native Interconnection Pipeline
Data models and state logic do not exist in isolation. Follow the strict 4-stage pipeline:
- Upstream Schema Feed: Ingest table schemas and data flow definitions from
context/00_Strategy/BLUEPRINT.md(authored via/project-architect). - Contract Encasement: Pass all domain boundaries through strict schemas (Zod/Pydantic/OpenAPI via
/api-contract). - Immutable Implementation: Produce unidirectional, immutable DTOs and pure reducers (
/data-logic). - Downstream Verification: Feed generated state schemas directly into failing state-delta unit tests (
/strict-tdd).
📚 Mandatory Knowledge Routing (JIT References)
If your current task intersects with these domains, you MUST execute view_file on the target BEFORE writing code:
| If User Prompt/Task Relates To... | Immediately load target with an available file-reading tool |
| Flutter Logic Patterns | .agents/canons/ecosystems/flutter/flutter-logic-patterns.md |
Generated by OrionCortex Infrastructure - Universal Data Logic
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

