data-flow-analyzer
Skill3 starsChanged 4 months agoMITView on GitHub
Analyze and document data flows across the system: data origins, transformations, storage, retention, and compliance boundaries. Use when working on solution architecture, C4 diagrams, APIs, ADRs, or system design.
In this repository59 other files it gives its agents.
- agent-memory-designerSkill
- ai-cost-optimizerSkill
- ai-evaluation-builderSkill
- ai-latency-optimizerSkill
- ai-solution-architectSkill
- ai-workflow-builderSkill
- context-engineeringSkill
- human-in-the-loop-designerSkill
- multi-agent-plannerSkill
- prompt-engineerSkill
- prompt-optimizerSkill
- prompt-reviewerSkill
- adr-generatorSkill
- api-designerSkill
- architecture-reviewSkill
- component-diagram-builderSkill
- container-diagram-builderSkill
- integration-plannerSkill
- observability-plannerSkill
- scalability-advisorSkill
- solution-architectureSkill
- system-context-builderSkill
- experiment-designerSkill
- go-to-market-plannerSkill
- pricing-strategy-advisorSkill
- mcp-best-practicesSkill
- mcp-client-generatorSkill
- mcp-security-reviewSkill
- mcp-server-generatorSkill
- mcp-tool-generatorSkill
- acceptance-criteria-generatorSkill
- analytics-instrumentation-plannerSkill
- competitive-analysisSkill
- epic-generatorSkill
- feature-prioritizationSkill
- idea-validatorSkill
- north-star-metric-advisorSkill
- okr-builderSkill
- persona-generatorSkill
- prd-generatorSkill
- problem-statement-builderSkill
- product-discovery-assistantSkill
- product-vision-builderSkill
- sprint-plannerSkill
- story-mappingSkill
- user-story-generatorSkill
- value-proposition-designerSkill
- chunking-strategy-advisorSkill
- embedding-strategy-advisorSkill
- hybrid-search-advisorSkill
- knowledge-ingestion-plannerSkill
- rag-architecture-designerSkill
- retriever-optimizerSkill
- ai-governance-advisorSkill
- ai-threat-modelingSkill
- guardrails-builderSkill
- owasp-llm-reviewerSkill
- prompt-injection-detectorSkill
- skill-nameSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 117
Use STRIDE or LINDDUN for threat modeling sensitive flows.
- Distinctive: line 118
Document encryption per flow crossing trust boundaries.
≈ “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 Flow Analyzer
Purpose
Analyze and document data flows across the system: data origins, transformations, storage, retention, and compliance boundaries.
Input: Container diagram, integration plan, data entities (optional), compliance requirements
Output: Data Flow document with DFD-style diagrams, data inventory, and privacy classification
Examples: See examples.md for worked input/output.
Workflow
Step 1: Identify data entities
List core data entities:
| Entity | Description | Owner container | Sensitivity |
Sensitivity: Public, Internal, Confidential, PII, PHI, PCI.
Step 2: Map data origins and sinks
For each entity:
- Source (user input, external system, generated)
- Storage locations (database, cache, file, queue)
- Consumers (containers, external systems)
- Retention period
Step 3: Document transformations
| Step | Input | Transformation | Output | Container |
Include validation, enrichment, aggregation, anonymization.
Step 4: Draw data flow diagram
flowchart LR
user[User] -->|PII| api[API]
api -->|encrypted| db[(Database)]
api -->|event| queue[Queue]Label flows with data type and protocol. Mark trust boundary crossings.
Step 5: Compliance analysis
| Requirement | Data affected | Control | Gap |
Cover: GDPR, encryption at rest/transit, right to deletion, audit logging.
Step 6: Identify risks
- Data duplication across stores
- Unencrypted sensitive flows
- Missing retention policy
- Cross-border transfer
Step 7: Validate
Run Validation checklist.
Decision Rules
| Condition | Action |
| No container/integration context | Stop; run container-diagram-builder or integration-planner |
| PII without classification | Classify before proceeding; flag if unknown |
| Sensitive data in logs | Flag as Critical finding |
| Retention undefined for PII | Recommend policy; mark as gap |
| Data flow crosses trust boundary unencrypted | Flag as High severity |
Validation
- All core entities inventoried with sensitivity
- Each entity has source, storage, consumers
- Transformations documented for sensitive data
- DFD diagram with labeled flows
- Trust boundaries marked
- Compliance requirements checked
- ≥3 data risks identified with severity
- Retention policy stated or flagged as gap
Anti-patterns
- Data swamp — duplicate entities across stores without sync strategy.
- PII everywhere — sensitive data in logs, caches, analytics without controls.
- Missing lineage — unknown data origin for compliance-critical fields.
- Implicit retention — data kept forever by default.
- Diagram without labels — arrows without data type or volume indication.
Best Practices
- Use STRIDE or LINDDUN for threat modeling sensitive flows.
- Document encryption per flow crossing trust boundaries.
- Align with integration-planner contracts.
- Map to GDPR lawful basis where applicable.
- Separate analytics data flows from operational flows.
Output Structure
# Data Flow Analysis: [System Name]
## Data Inventory
| Entity | Sensitivity | Owner | Storage | Retention |
|--------|-------------|-------|---------|-----------|
## Transformations
| Step | Input | Transform | Output |
|------|-------|-----------|--------|
## Data Flow Diagram
```mermaid
[diagram]Trust Boundaries
| Boundary | Data crossing | Controls |
Compliance
| Requirement | Status | Gap |
Risks
| ID | Severity | Finding | Remediation |
---
# Next Skills
| Outcome | Recommended Skill |
|---------|-------------------|
| Plan scaling for data layer | `architecture/scalability-advisor` |
| Review security | `architecture/architecture-review` |
| Update integration plan | `architecture/integration-planner` |
| Document data decision | `architecture/adr-generator` |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.

