Token导航 LogoToken导航

Agent Skill · 研究检索

ddia-systems(迪迪亚系统公司)

ddia-systems 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

ddia-systems 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 4,972。

总安装 28,512周安装 1,241GitHub Stars 779下载 9,984核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ddia-systems(迪迪亚系统公司)
来源仓库:https://github.com/wondelai/skills
仓库路径:skills/ddia-systems
安装命令:
npx skills add https://github.com/wondelai/skills --skill ddia-systems
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/wondelai/skills --skill ddia-systems

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

基于DDIA框架构建可靠可扩展系统的原则指南,聚焦数据层长期演进。适用于数据库选型、分布式架构设计和容错机制规划等关键决策场景。核心原则是数据优先于代码,所有设计必须保障数据的正确性与耐久性。不提供特定技术栈方案,需根据实际业务需求匹配适用模式。

ddia-systems 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/ddia-systems

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/wondelai/skills --skill ddia-systems;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ddia-systems 怎么安装?

在终端执行 npx skills add https://github.com/wondelai/skills --skill ddia-systems。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ddia-systems 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ddia-systems 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

ddia-systems 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

ddia-systems 用的人多吗?

公开数据是累计安装 28,512 次,近一周安装 1,241 次,下载 9,984 次,GitHub 779 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ddia-systems 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
ddia-systems

迪迪亚系统公司 · 本页

28,512779需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Designing Data-Intensive Applications Framework

A principled approach to building reliable, scalable, and maintainable data systems. Apply these principles when choosing databases, designing schemas, architecting distributed systems, or reasoning about consistency and fault tolerance.

Core Principle

Data outlives code. Applications are rewritten, languages change, frameworks come and go -- but data and its structure persist for decades. Every architectural decision must prioritize the long-term correctness, durability, and evolvability of the data layer above all else.

The foundation: Most applications are data-intensive, not compute-intensive. The hard problems are the amount of data, its complexity, and the speed at which it changes. Understanding the trade-offs between consistency, availability, partition tolerance, latency, and throughput is what separates robust systems from fragile ones.

Scoring

Goal: 10/10. When reviewing or designing data architectures, rate them 0-10 based on adherence to the principles below. A 10/10 means deliberate trade-off choices for data models, storage engines, replication, partitioning, transactions, and processing pipelines; lower scores indicate accidental complexity or ignored failure modes. Always provide the current score and specific improvements needed to reach 10/10.

The DDIA Framework

Seven domains for reasoning about data-intensive systems:

1. Data Models and Query Languages

Core concept: The data model shapes how you think about the problem. Relational, document, and graph models each impose different constraints and enable different query patterns.

Why it works: Choosing the wrong data model forces application code to compensate for representational mismatch, adding accidental complexity that compounds over time.

Key insights:

  • Relational models excel at many-to-many relationships and ad-hoc queries
  • Document models excel at one-to-many relationships and data locality
  • Graph models excel at highly interconnected data with recursive traversals
  • Schema-on-write (relational) catches errors early; schema-on-read (document) offers flexibility
  • Polyglot persistence -- use different stores for different access patterns -- is often the right answer
  • Impedance mismatch between objects and relations is a real cost; document models reduce it for self-contained aggregates

Code applications:

ContextPatternExample
User profiles with nested dataDocument model for self-contained aggregatesStore profile, addresses, and preferences in one MongoDB document
Social network connectionsGraph model for relationship traversalNeo4j Cypher query: MATCH (a)-[:FOLLOWS*2]->(b) for friend-of-friend
Financial ledger with joinsRelational model for referential integrityPostgreSQL with foreign keys between accounts, transactions, and entries
Mixed access patternsPolyglot persistencePostgreSQL for transactions + Elasticsearch for full-text search + Redis for caching

See: references/data-models.md

2. Storage Engines

Core concept: Storage engines make a fundamental trade-off between read performance and write performance. Log-structured engines (LSM trees) optimize writes; page-oriented engines (B-trees) balance reads and writes.

Why it works: Understanding the internals of your database's storage engine lets you predict performance characteristics, choose appropriate indexes, and avoid pathological workloads.

Key insights:

  • LSM trees: append-only writes, periodic compaction, excellent write throughput, higher read amplification
  • B-trees: in-place updates, predictable read latency, write amplification from page splits
  • Write amplification means one logical write causes multiple physical writes -- critical for SSDs with limited write cycles
  • Column-oriented storage dramatically improves analytical query performance through compression and vectorized processing
  • In-memory databases are fast not because they avoid disk, but because they avoid encoding overhead

Code applications:

ContextPatternExample
High write throughputLSM-tree engineCassandra or RocksDB for time-series ingestion at 100K+ writes/sec
Mixed read/write OLTPB-tree enginePostgreSQL B-tree indexes for transactional workloads with point lookups
Analytical queries on large datasetsColumn-oriented storageClickHouse or Parquet files for scanning billions of rows with few columns
Low-latency cachingIn-memory storeRedis for sub-millisecond lookups; Memcached for simple key-value caching

See: references/storage-engines.md

3. Replication

Core concept: Replication keeps copies of data on multiple machines for fault tolerance, scalability, and latency reduction. The core challenge is handling changes to replicated data consistently.

Why it works: Every replication strategy trades off between consistency, availability, and latency. Making this trade-off explicit prevents subtle data anomalies that surface only under load or failure.

Key insights:

  • Single-leader replication: simple, strong consistency possible, but the leader is a bottleneck and single point of failure
  • Multi-leader replication: better write availability across data centers, but conflict resolution is complex
  • Leaderless replication: highest availability, uses quorum reads/writes, but requires careful conflict handling
  • Replication lag causes read-your-writes violations, monotonic read violations, and causality violations
  • Synchronous replication guarantees durability but increases latency; asynchronous replication risks data loss on leader failure
  • CRDTs and last-writer-wins are conflict resolution strategies with very different correctness guarantees

Code applications:

ContextPatternExample
Read-heavy web appSingle-leader with read replicasPostgreSQL primary + read replicas behind pgBouncer for read scaling
Multi-region writesMulti-leader replicationCockroachDB or Spanner for geo-distributed writes with bounded staleness
Shopping cart availabilityLeaderless with mergeDynamoDB with last-writer-wins or application-level merge for cart conflicts
Collaborative editingCRDTs for conflict-free mergingYjs or Automerge for real-time collaborative document editing

See: references/replication.md

4. Partitioning

Core concept: Partitioning (sharding) distributes data across multiple nodes so that each node handles a subset of the total data, enabling horizontal scaling beyond a single machine.

Why it works: Without partitioning, a single node becomes the bottleneck for storage capacity and throughput. Effective partitioning distributes load evenly and avoids hotspots.

Key insights:

  • Key-range partitioning supports efficient range scans but risks hotspots on sequential keys
  • Hash partitioning distributes load evenly but destroys sort order and makes range queries expensive
  • Secondary indexes can be partitioned locally (each partition has its own index) or globally (index partitioned separately)
  • Local secondary indexes require scatter-gather queries; global secondary indexes require cross-partition updates
  • Hotspots can occur even with hash partitioning if a single key is extremely popular (celebrity problem)
  • Rebalancing strategies: fixed number of partitions, dynamic splitting, or proportional to node count

Code applications:

ContextPatternExample
Time-series dataKey-range partitioning by time + sourcePartition by (sensor_id, date) to avoid write hotspot on current day
User data at scaleHash partitioning on user IDCassandra consistent hashing on user_id for even distribution
Global search indexGlobal secondary indexElasticsearch index sharded independently from primary data store
Celebrity/hot-key problemKey splitting with random suffixAppend random digit to hot partition key, fan-out reads across 10 sub-partitions

See: references/partitioning.md

5. Transactions and Consistency

Core concept: Transactions provide safety guarantees (ACID) that simplify application code by letting you pretend failures and concurrency don't exist -- within the transaction's scope.

Why it works: Without transactions, every piece of application code must handle partial failures, race conditions, and concurrent modifications. Transactions move this complexity into the database where it can be handled correctly once.

Key insights:

  • Isolation levels are a spectrum: read uncommitted, read committed, snapshot isolation (repeatable read), serializable
  • Most databases default to read committed or snapshot isolation -- not serializable -- and application developers must understand the anomalies this permits
  • Write skew occurs when two transactions read the same data, make decisions based on it, and write different records -- no row-level lock prevents this
  • Serializable snapshot isolation (SSI) provides full serializability with optimistic concurrency -- no blocking, but aborts on conflict
  • Two-phase locking provides serializability but causes contention and deadlocks under high concurrency
  • Distributed transactions (two-phase commit) are expensive and fragile; avoid them when possible by designing around single-partition operations

Code applications:

ContextPatternExample
Account balance transferSerializable transactionBEGIN; UPDATE accounts SET balance = balance - 100 WHERE id = 1; UPDATE accounts SET balance = balance + 100 WHERE id = 2; COMMIT;
Inventory reservationSELECT FOR UPDATE to prevent write skewSELECT stock FROM items WHERE id = X FOR UPDATE before decrementing
Read-heavy dashboardsSnapshot isolation for consistent readsPostgreSQL MVCC provides point-in-time snapshot without blocking writers
Cross-service operationsSaga pattern instead of distributed transactionsCompensating transactions: charge card, reserve inventory, on failure refund card

See: references/transactions.md

6. Batch and Stream Processing

Core concept: Batch processing transforms bounded datasets in bulk; stream processing transforms unbounded event streams continuously. Both are forms of derived data computation.

Why it works: Separating the system of record (source of truth) from derived data (caches, indexes, materialized views) allows each to be optimized independently and rebuilt from the source when requirements change.

Key insights:

  • MapReduce is conceptually simple but operationally awkward; dataflow engines (Spark, Flink) generalize it with arbitrary DAGs
  • Event sourcing stores every state change as an immutable event, enabling full audit trails and temporal queries
  • Change data capture (CDC) turns database writes into a stream that downstream systems can consume
  • Stream-table duality: a stream is the changelog of a table; a table is the materialized state of a stream
  • Exactly-once semantics in stream processing require idempotent operations or transactional output
  • Time windowing (tumbling, hopping, session) is essential for aggregating unbounded streams

Code applications:

ContextPatternExample
Daily analytics pipelineBatch processing with SparkRead day's events from S3, aggregate metrics, write to data warehouse
Real-time fraud detectionStream processing with FlinkConsume payment events from Kafka, apply rules within 5-second tumbling windows
Syncing search indexChange data captureDebezium captures PostgreSQL WAL changes, publishes to Kafka, Elasticsearch consumer updates index
Audit trail / event replayEvent sourcingStore OrderPlaced, OrderShipped, OrderRefunded events; rebuild current state by replaying

See: references/batch-stream.md

7. Reliability and Fault Tolerance

Core concept: Faults are inevitable; failures are not. A reliable system continues operating correctly even when individual components fail. Design for faults, not against them.

Why it works: Hardware fails, software has bugs, humans make mistakes. Systems that assume perfect operation are brittle. Systems that expect and handle faults gracefully are resilient.

Key insights:

  • A fault is one component deviating from spec; a failure is the system as a whole stopping. Fault tolerance prevents faults from becoming failures
  • Hardware faults are random and independent; software faults are correlated and systematic (more dangerous)
  • Human error is the leading cause of outages -- design systems that minimize opportunity for mistakes and maximize ability to recover
  • Timeouts are the fundamental fault detector in distributed systems -- but choosing the right timeout is hard (too short causes false positives, too long delays recovery)
  • Safety properties (nothing bad happens) must always hold; liveness properties (something good eventually happens) may be temporarily violated
  • Byzantine fault tolerance is rarely needed outside blockchain -- most systems assume non-Byzantine (crash-stop or crash-recovery) models

Code applications:

ContextPatternExample
Service communicationTimeouts + retries with exponential backoffretry(max=3, backoff=exponential(base=1s, max=30s)) with jitter
Leader electionConsensus algorithm (Raft/Paxos)etcd or ZooKeeper for distributed lock and leader election
Data pipeline reliabilityIdempotent operations + checkpointingKafka consumer commits offset only after successful processing
Graceful degradationCircuit breaker patternHystrix/Resilience4j: open circuit after 50% failures in 10-second window

See: references/fault-tolerance.md

Common Mistakes

MistakeWhy It FailsFix
Choosing a database based on popularityDifferent engines have fundamentally different trade-offsMatch storage engine characteristics to your actual read/write patterns
Ignoring replication lagUsers see stale data, phantom reads, or lost updatesImplement read-your-writes consistency; use monotonic read guarantees
Using distributed transactions everywhereTwo-phase commit is slow and fragile; coordinator is a single point of failureDesign for single-partition operations; use sagas for cross-service coordination
Hash partitioning everythingDestroys range query ability; some workloads need sorted accessUse key-range partitioning for time-series; composite keys for locality
Assuming serializable isolationMost databases default to weaker isolation; write skew bugs appear in productionCheck your database's actual default isolation level; use explicit locking where needed
Conflating batch and streamBatch tools on streaming data add latency; stream tools on bounded data waste complexityMatch processing model to data boundedness and latency requirements
Treating all faults as recoverableSome failures (data corruption, Byzantine) require fundamentally different handlingClassify faults and design specific recovery strategies for each class

Quick Diagnostic

QuestionIf NoAction
Can you explain why you chose this database over alternatives?Decision was based on familiarity, not requirementsEvaluate data model fit, read/write ratio, consistency needs, and scaling path
Do you know your database's default isolation level?You may have concurrency bugs you haven't found yetCheck documentation; test for write skew and phantom read scenarios
Is your replication strategy explicitly chosen (not defaulted)?You have implicit assumptions about consistency and durabilityDocument trade-offs: sync vs async, failover behavior, lag tolerance
Can your system handle a hot partition key?A single popular entity can bring down the clusterAdd key-splitting strategy or application-level load shedding for hot keys
Do you separate your system of record from derived data?Schema changes or new features require migrating everythingIntroduce CDC or event sourcing to decouple source from derived stores
Are your timeouts and retries tuned, not defaulted?You get cascading failures or unnecessary delaysMeasure p99 latency; set timeouts above p99 but below cascade threshold
Have you tested failover in production conditions?Your recovery plan is theoretical, not validatedRun chaos engineering experiments: kill leaders, partition networks, fill disks

Reference Files

  • data-models.md: Relational vs document vs graph models, schema-on-read vs schema-on-write, query languages, polyglot persistence
  • storage-engines.md: LSM trees vs B-trees, write amplification, compaction, column-oriented storage, in-memory databases
  • replication.md: Single-leader, multi-leader, leaderless replication, replication lag, conflict resolution, CRDTs
  • partitioning.md: Key-range vs hash partitioning, secondary indexes, rebalancing, request routing, hotspots
  • transactions.md: ACID, isolation levels, write skew, two-phase locking, SSI, distributed transactions
  • batch-stream.md: MapReduce, dataflow engines, event sourcing, CDC, stream-table duality, exactly-once semantics
  • fault-tolerance.md: Faults vs failures, reliability metrics, timeouts, consensus, safety and liveness guarantees

Further Reading

This skill is based on Martin Kleppmann's comprehensive guide to the principles and practicalities of data systems. For the complete treatment with detailed diagrams and research references:

About the Author

Martin Kleppmann is a researcher in distributed systems and a former software engineer at LinkedIn and Rapportive. He is a Senior Research Associate at the University of Cambridge and has worked extensively on CRDTs, Byzantine fault tolerance, and local-first software. *Designing Data-Intensive Applications* (2017) has become the definitive reference for engineers building data systems, praised for making complex distributed systems concepts accessible through clear explanations and practical examples. Kleppmann's research focuses on data consistency, decentralized collaboration, and ensuring correctness in distributed systems. He is also known for his conference talks and educational writing that bridge the gap between academic research and industrial practice.

平台分布

Codex

34.77%
按下载量换算3,471

Claude

32.77%
按下载量换算3,272

Cursor

18.69%
按下载量换算1,866

Gemini CLI

10.27%
按下载量换算1,025

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills