Communitygithub.com

数据吞吐加速器

在大量数据摄取、回填、导出、ETL、仓库加载、清单追赶或表同步需要显著提速,同时确保数据正确性时使用本技能。

数据吞吐加速器 是什么?

本技能旨在解决数据管道中移动、转换或保存大量数据时的瓶颈问题,核心目标是“更快的正确数据落地 + 可验证的证明”。它首先要求区分源提取、网络传输、仓库加载、转换、服务表新鲜度以及作业运行期间实时数据增长六个不同维度的瓶颈。技能提供了一系列启发式加速路径,例如将计算移动到数据所在位置、优先使用仓库原生扫描和连接、利用清单或检查点跳过已完成分区、分区与聚簇匹配读写模式、批量合并小文件/请求/写入、通过唯一键或清单使写入幂等,以及将原始、派生和服务表分开问责。推荐的工作流程包括读取当前源/目标/清单契约、测量积压(外部文件数、清单行数、原始/派生行数、时间戳范围等)、运行安全追赶或样本基准测试、比较不同变体(批大小、工作线程数、仓库SQL、文件分组等)、仅推进最快且保持计数和时间戳一致性的路径、将路径编码为CLI/调度作业/工作流/运行手册,并在执行后重新运行最终对账。该技能适用于Claude Code、Cursor等AI辅助编码平台,通过硬对账块输出吞吐结果(如文件数、处理行数、剩余尾部、运行时间、正确性门控),并包含严格的护栏规则(禁止删除原始数据、静默跳过失败文件、混淆历史回填与实时刷新状态等),特别适合金融、医疗、受监管或影响客户的场景。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/everything-claude-code/tree/main/skills/data-throughput-accelerator

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

数据吞吐加速器 是做什么的?

当瓶颈在于移动、转换或保存大量数据时,使用本技能。目标不仅仅是速度,而是以更快的速度将正确的数据落地到正确的位置,并附带可验证的证据。

首要区分

在优化之前,先区分以下环节:

  • 源提取速度;
  • 网络传输速度;
  • 仓库/加载速度;
  • 转换速度;
  • 服务表新鲜度;
  • 作业运行时实时数据的增长。

管道可能“很快”,但如果新数据到达的速度比最终追赶窗口更快,它仍可能显得滞后。

快速路径启发式方法

  • 将计算移动到数据已存在的位置。
  • 对于已落地的大文件,优先使用仓库原生的扫描、连接和追加操作。
  • 使用清单或检查点,跳过已完成的文件/分区。
  • 使用与读取和追加模式相匹配的分区和聚簇。
  • 批量处理小文件、请求和写入。
  • 通过唯一键、清单或可替换的临时表使写入操作幂等。
  • 保持原始表、派生表和服务表分开问责。

工作流程

  1. 读取当前源、目标和清单契约。
  2. 测量积压:外部文件数、清单行数、原始行数、派生行数、最小/最大时间戳以及未处理计数。
  3. 运行一个安全的追赶或样本基准测试。
  4. 比较不同变体:批大小、工作线程数、仓库SQL、文件分组、临时表形状和清单更新方法。
  5. 仅推进最快且能保持计数和时间戳一致性的路径。
  6. 将该路径编码为CLI、定时任务、工作流或运行手册。
  7. 编码路径执行后,重新运行最终对账。

对账输出

使用硬对账块:

数据吞吐结果:
- 发现的源文件:294
- 本次运行处理的文件数:294
- 添加的原始行:9,683,598
- 添加的派生行:8,917,585
- 回读时剩余的尾部文件:24
- 运行时间:38.7秒
- 正确性门控:清单计数与表最大时间戳匹配

护栏

  • 不要为了优化指标而删除原始数据。
  • 不要静默跳过失败的文件。
  • 不要混淆历史回填状态与实时数据的新鲜度。
  • 在目标表和清单达成一致之前,不要声称管道已完成。
  • 对于金融、医疗、受监管或影响客户的数据,保留重放证据和审批门控。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

affaan-m/everything-claude-code

End-to-end marketing campaign planning and execution. Covers audience research, positioning, campaign angle definition, landing page copy, email sequences, social posts, ad copy, short-form video scripts, and content calendars. Use as the orchestration layer for multi-channel product launches. Use when planning or executing a multi-channel product launch, or producing landing page, email, social, or ad copy.

affaan-m/everything-claude-code

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/everything-claude-code-conventions

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use when the user asks to build web components, pages, or applications and the visual direction matters as much as the code quality.

affaan-m/gget

gget CLI and Python workflow for quick genomic database queries, sequence lookup, BLAST-style searches, enrichment checks, and reproducible bioinformatics evidence logs.

affaan-m/literature-review

Systematic literature-review workflow for academic, biomedical, technical, and scientific topics, including search planning, source screening, synthesis, citation checks, and evidence logging.

affaan-m/motion-ui

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

affaan-m/project-guidelines-example

Example project-specific skill template based on a real production application.

affaan-m/pubmed-database

Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.

affaan-m/scholar-evaluation

Structured scholarly-work evaluation for papers, proposals, literature reviews, methods sections, evidence quality, citation support, and research-writing feedback.

affaan-m/uspto-database

USPTO patent and trademark data workflow for official record lookup, PatentSearch queries, TSDR checks, assignment data, and reproducible IP research logs.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

相关技能