ivanshamaev/de-agent-skills/de-adr
Claude Code and agent skill by ivanshamaev/de-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
DE architecture decision records (ADR) — ADR template, trade-off analysis framework, technology evaluation criteria, common DE architecture decisions (storage format, orchestrator, streaming vs batch, lakehouse vs warehouse), decision reversibility, stakeholder communication
Install
npx vskill@latest install ivanshamaev/de-agent-skills/de-adrSKILL.md
The same SKILL.md was published earlier as ivanshamaev/de-agent-skills/de-adr.
DE Architecture Decision Records
When to Use
Load this skill when the user needs to:
- Choose between two or more data engineering technologies or approaches ("which tool should we use for X?")
- Design the high-level architecture for a new data platform component ("how should we architect Y?")
- Evaluate and score competing options ("we need to decide between A and B")
- Write up or document a past decision for the team record ("document why we chose Z")
- Understand the trade-offs of a specific DE architectural pattern
- Communicate a technical decision to non-technical stakeholders or leadership
- Manage the lifecycle of existing ADRs (supersede, deprecate, link to code)
1. ADR Format
Every Architecture Decision Record follows this template. Fill every section — leaving a section blank signals the analysis is incomplete.
2. Trade-off Evaluation Framework
Weighted Scoring Matrix
Assign weights (must sum to 100) based on project context, then score each option 1–5 per criterion. Multiply score × weight and sum the row.
Context-based weight guidance:
| Context | Emphasize | De-emphasize | |
|---|---|---|---|
| Early-stage startup | Cost, team fit, ecosystem | Vendor lock-in, operational complexity | |
| Enterprise / regulated | Vendor risk, operational complexity, ecosystem | Cost | |
| Real-time / sub-second SLA | Performance (latency), operational complexity | Cost | |
| Batch analytics | Performance (throughput), cost | Latency | |
| Small team (< 5 DE) | Team fit, operational complexity | Ecosystem maturity | |
| Large team (> 20 DE) | Ecosystem maturity, vendor risk | Team fit learning curve |
Example matrix — Orchestrator selection (mid-size batch-focused team):
| Criterion | Weight | Airflow 2.x | Prefect 3 | Dagster | |
|---|---|---|---|---|---|
| Performance (throughput, scalability ceiling) | 15 | 4 → 60 | 4 → 60 | 3 → 45 | |
| Operational complexity (deploy, upgrade, observe) | 20 | 3 → 60 | 4 → 80 | 4 → 80 | |
| Cost (licensing, compute, engineering effort) | 15 | 5 → 75 | 3 → 45 | 3 → 45 | |
| Ecosystem (connectors, community, docs, cadence) | 20 | 5 → 100 | 3 → 60 | 3 → 60 | |
| Team fit (skills, learning curve, hiring market) | 20 | 5 → 100 | 3 → 60 | 3 → 60 | |
| Vendor risk (OSS health, commercial dependency, exit path) | 10 | 5 → 50 | 3 → 30 | 3 → 30 | |
| Total | 100 | 445 | 335 | 320 |
Scores 1–5: 1 = very poor, 3 = adequate, 5 = excellent.
Scoring Rubric for Each Criterion
Performance
- 5: Proven at 10× your expected scale; documented benchmarks exist
- 4: Handles your load with headroom; team has validated this
- 3: Handles your load at launch; may need tuning or sharding later
- 2: Requires significant workaround or custom code to meet the requirement
- 1: Cannot meet the requirement without architectural changes
Operational Complexity
- 5: Managed service or trivial Helm chart; self-healing; mature runbooks
- 4: Well-documented deployment; < 1 day to upgrade; good observability built in
- 3: Multi-service deployment; upgrade requires planned downtime; some observability
- 2: Complex multi-service with known operational pain; limited built-in monitoring
- 1: No managed path; upgrades routinely cause incidents; black-box internals
Cost
- 5: Open-source with minimal infra overhead; negligible licensing
- 4: Open-source with moderate infra cost; or affordable SaaS tier
- 3: Moderate licensing or infra cost within budget
- 2: Significant cost; requires budget approval or trade-off conversation
- 1: Cost-prohibitive at your scale or violates budget constraints
Ecosystem
- 5: De-facto standard; hundreds of connectors; active community; weekly releases
- 4: Mature ecosystem; major connectors available; active community; monthly releases
- 3: Growing ecosystem; key connectors available; responsive maintainers
- 2: Limited connectors; small community; slow release cadence
- 1: Niche tool; single maintainer; connector gaps require custom code
Team Fit
- 5: Team already uses this daily; same language/paradigm; easy hiring
- 4: Team familiar; < 1 sprint to become productive; candidates widely available
- 3: Some team members know it; 1–2 months to full productivity
- 2: New to the team; 3–6 months to productive; limited hiring pool
- 1: Entirely foreign technology; steep learning curve; very thin hiring market
Vendor Risk
- 5: Pure Apache/Linux Foundation OSS; permissive license; multiple large sponsors
- 4: OSS with strong commercial backing; clear license; easy fork path
- 3: OSS but controlled by a single company; BSL or similar license
- 2: Commercial SaaS with data portability but switching cost is high
- 1: Proprietary closed-source; data lock-in; no exit path
Decision Reversibility Spectrum
Before committing, assess how hard it would be to undo this decision in 12–18 months.
| Decision type | Reversibility | Recommended process | |
|---|---|---|---|
| Adding a new tool alongside existing | High | Spike + team demo | |
| Replacing a config or connector | High | PR review | |
| Switching orchestrator | Medium | 3-month parallel run | |
| Changing storage format | Low | Full migration plan + rollback ADR | |
| Changing data model (fact/dim) | Very low | Stakeholder sign-off + versioning | |
| Moving cloud providers | Very low | Architecture committee + exec approval |
3. Pre-filled ADR Examples
ADR-001: Adopt Lambda Architecture with Micro-Batch for Near-Real-Time Reporting
Date: 2025-03-10 Status: Accepted Deciders: Lead DE, Analytics Engineering Manager, VP of Data Tags: streaming, batch, architecture
Context
The business requires order status dashboards to refresh within 10 minutes of an event occurring. The existing data platform is purely batch: nightly Airflow DAGs load the Hive/Parquet warehouse by 06:00 UTC. The analytics team uses Trino for ad-hoc queries. The DE team has no prior Flink or Kafka Streams experience. A 2-month delivery window is imposed. Infrastructure budget is capped at existing compute + $3k/month.
Decision
We will implement a Lambda architecture: the existing nightly batch pipeline is kept as the historical accuracy layer, and a new PySpark Structured Streaming job running 5-minute micro-batch windows writes an Iceberg "hot" table that the dashboard queries. Both layers write to the same Iceberg table namespace, with the batch layer overwriting partitions for dates older than today.
Rationale
Pure streaming (Flink) was rejected due to the team's skill gap and the 2-month deadline. A 5-minute micro-batch interval satisfies the 10-minute SLA with margin. PySpark Structured Streaming uses the same Spark codebase as existing ETL jobs, minimising ramp-up time. Lambda complexity (dual code paths) is accepted as a transitional state; a future ADR will evaluate moving to Kappa when the team is Flink-proficient.
Alternatives Considered
Option A: Pure Streaming with Apache Flink Pros: true event-time processing; lowest latency; single code path (Kappa). Cons: no team Flink experience; 4–6 month ramp-up; misses the delivery window; additional operational surface. Why not chosen: timeline and skill gap make this untenable in the current window.
Option B: Pure Batch — Reduce Airflow Schedule to Every 10 Minutes Pros: zero new infrastructure; trivial change. Cons: 10-minute Airflow schedule creates scheduler contention; full table scans every 10 minutes violate cost constraints; no time-travel or incremental semantics. Why not chosen: cost and scheduler-contention risk.
Option C: Kappa Architecture with PySpark Streaming Only Pros: single code path; no dual-write complexity. Cons: reprocessing historical partitions in streaming mode is error-prone; backfill latency unpredictable under load. Why not chosen: historical accuracy risk; batch overwrite is simpler and already tested.
Consequences
Positive: 10-minute dashboard SLA met; reuses existing Spark infrastructure; team upskills on Structured Streaming. Negative: two code paths to maintain for the same data; reconciliation between batch and streaming layers required nightly. Neutral / Watch: monitor for drift between batch and streaming row counts; build automated reconciliation task.
Follow-up Actions
- [ ] DE Lead, 2025-04-01: Deploy streaming job to staging and validate 5-min window latency
- [ ] DE Lead, 2025-05-01: Build nightly reconciliation Airflow task (batch vs streaming row counts)
- [ ] DE Manager, 2025-09-01: Review Flink readiness; open ADR-011 for Kappa migration if team is ready
ADR-002: Use Apache Iceberg as the Lakehouse Table Format
Date: 2025-01-15 Status: Accepted Deciders: Principal DE, Platform Architect Tags: storage, lakehouse
Context
The data lake on S3 uses plain Parquet files managed by the Hive Metastore. Pain points: no ACID updates/deletes (GDPR erasure requests require full partition rewrites), no time travel, schema evolution breaks Trino queries, and small-file accumulation degrades performance. The platform uses both PySpark for ETL and Trino for ad-hoc queries. A unified open format is required that both engines read natively without a vendor-managed service.
Decision
We will migrate all production tables to Apache Iceberg (v1.5+) stored on S3, with the REST catalog (backed by a PostgreSQL store). Spark and Trino will both use the Iceberg catalog connector.
Rationale
Iceberg's REST catalog is engine-agnostic; both Spark and Trino have mature, maintained Iceberg connectors. Iceberg v2 supports row-level deletes and upserts (MERGE) enabling GDPR compliance without full partition rewrites. Hidden partitioning and partition evolution prevent query breakage on partition changes. The open specification and Apache governance mitigate vendor lock-in risk.
Alternatives Considered
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/de_adr/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ivanshamaev/de-agent-skills/de-adr)