data-flows
This skill should be used when the user asks to "map data flows", "trace data through the system", "show how data moves", "identify trust boundaries", "find…
by florianbuetow★ 22 GitHub stars
Install data-flows in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Data Flow Mapping
Trace how data moves through the application from input to storage to output. Identify trust boundary crossings, encryption/decryption points, serialization steps, and data transformation operations. Produces annotated data flow maps with security observations at each transition.
Supported Flags
Read ../../shared/schemas/flags.md for the full flag specification.
| Flag | Data Flow Behavior |
|---|---|
--scope |
Default full. Data flow mapping requires broad visibility. Narrow scopes trace only flows touching scoped files. |
--depth quick |
Entry points and data stores only, no intermediate tracing. |
--depth standard |
Trace major data paths from input through processing to storage/output. |
--depth deep |
Full taint analysis: every transformation, validation, and boundary crossing. |
--depth expert |
Deep + annotate with threat categories, identify covert channels, DREAD scoring on flow weaknesses. |
--format |
Default text. Use md for Mermaid diagrams, json for structured flow graph. |
Workflow
Step 1: Determine Scope
- Parse
--scopeflag. Default tofullfor comprehensive flow mapping. - Resolve to a concrete file list.
- Prioritize: HTTP handlers, database access layers, external service clients, message queue producers/consumers, file I/O operations, cache layers, serialization/deserialization code, encryption modules.
Step 2: Identify Data Sources (Origins)
Catalog every point where data enters the system:
| Source Type | What to Look For |
|---|---|
| HTTP requests | Request body, query params, headers, cookies, path params, uploaded files |
| Database reads | Queries returning user data, config data, or cached content |
| External APIs | Responses from third-party services, webhook payloads |
| Message queues | Consumed messages from Kafka, RabbitMQ, SQS, etc. |
| File system | File reads, config loading, uploaded file processing |
| Environment | Environment variables, secrets managers, config services |
| User sessions | Session data, cached user state |
Step 3: Identify Data Sinks (Destinations)
Catalog every point where data exits or is persisted:
| Sink Type | What to Look For |
|---|---|
| Database writes | INSERT, UPDATE, ORM save/create operations |
| HTTP responses | Response body, headers, cookies set |
| External APIs | Requests to third-party services |
| Message queues | Published messages |
| File system | File writes, log files, exported data |
| Logs | Application logs, audit logs, error tracking |
| Browser | Rendered HTML, JavaScript context, DOM injection points |
| Email/SMS | Outbound notification content |
Step 4: Trace Data Paths
For each source, trace data through the codebase to its sinks:
- Follow the variable: Track the request parameter/input through function calls, assignments, and returns.
- Map transformations: Record every operation applied to the data:
- Validation (type checks, regex, allowlists)
- Sanitization (HTML escaping, SQL parameterization, encoding)
- Encryption/Decryption (note algorithm and key source)
- Serialization/Deserialization (JSON parse, protobuf, pickle)
- Aggregation (data combined with other sources)
- Redaction (fields stripped or masked)
- Mark trust boundaries: Note when data crosses between:
- External network to application
- Application to database
- Application to external service
- Frontend to backend
- Service to service (in microservices)
- User space to privileged operations
Step 5: Annotate Security Properties
At each node in the data flow, annotate:
| Property | Values |
|---|---|
| Encrypted | In transit (TLS), at rest (AES/etc.), both, neither |
| Validated | Yes (with method), no, partial |
| Sanitized | Yes (with method), no |
| Logged | Yes (check for sensitive data in logs), no |
| Access controlled | Auth required, role checked, none |
| PII/Sensitive | Contains PII, financial, health, credentials, or other sensitive data |
Step 6: Identify Flow Weaknesses
Flag security concerns at data flow transitions:
- Missing validation: Data crosses a trust boundary without validation.
- Missing encryption: Sensitive data transmitted or stored without encryption.
- Sensitive data in logs: PII, credentials, or tokens written to log sinks.
- Deserialization of untrusted data:
pickle.loads,JSON.parseon unvalidated external input without schema validation,ObjectInputStreamon network data. - Trust boundary violations: Internal-only data exposed to external sinks.
- Missing sanitization before output: Data from untrusted source rendered in HTML, SQL, or shell command without appropriate encoding.
- Data retention issues: Sensitive data persisted longer than necessary or without deletion mechanisms.
- **Implicit trust
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the data-flows skill do?
This skill should be used when the user asks to "map data flows", "trace data through the system", "show how data moves", "identify trust boundaries", "find where data is encrypted or decrypted", "map PII flows", or "trace input to storage". Also triggers when the user asks about data transformation pipelines, where sensitive data is processed, or how user input reaches databases or external services.
How do I install the data-flows skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the data-flows skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…