AGENT SKILL

data-sync-workflows

Use when designing, planning, implementing, or reviewing data synchronization workflows, ERP imports, incremental syncs, backfills, reconciliation jobs, or scheduled ingestion. Covers source of truth, checkpoints, idempotency, deduplication, retries, repair, evidence, and operational controls. Do not use for one-off pure CRUD code.

License 许可
MIT
所属仓库
marcioaltoe/skills
最近更新
2026-11-14
Stars
★ 0
Forks
2

01 前言 Front Matter

name
data-sync-workflows
metadata
{ "tags": [ "backend", "database", "sync", "jobs" ], "author": "Marcio Altoé", "source": "https://github.com/marcioaltoe/skills", "version": "0.1.0", "category": "backend" }
description
Use when designing, planning, implementing, or reviewing data synchronization workflows, ERP imports, incremental syncs, backfills, reconciliation jobs, or scheduled ingestion. Covers source of truth, checkpoints, idempotency, deduplication, retries, repair, evidence, and operational controls. Do not use for one-off pure CRUD code.

03 SKILL.md 正文

Data Sync Workflows

Use this skill when data moves between systems and the application must preserve correctness across retries, partial failure, and repeated runs.

Design Questions

  • What is the source of truth for each field?
  • Is the sync full, incremental, event-driven, scheduled, or manual?
  • What is the stable identity key across systems?
  • What checkpoint or cursor proves where the last successful run stopped?
  • Can the operation be retried safely?
  • What does a partial success mean?
  • How will operators see what changed, failed, skipped, or needs repair?

Core Design Rules

  • Define identity and idempotency before implementation.
  • Store checkpoints only after durable success for the covered range.
  • Separate fetch, normalize, validate, apply, and evidence steps.
  • Make every write idempotent or protected by a deterministic conflict rule.
  • Keep raw external data out of domain code after normalization.
  • Design backfill and replay paths before production use.
  • Treat deletion, missing records, and tombstones as explicit product decisions.

Workflow Shape

load checkpoint
fetch external page or range
normalize records
validate records
deduplicate by stable identity
apply idempotent writes
record per-record evidence
advance checkpoint
emit run summary

Checkpoint Rules

  • Use monotonic cursors, updated-at windows, sequence IDs, or source-provided tokens when available.
  • Include enough metadata to resume without rereading ambiguous ranges.
  • For time-window syncs, use overlap windows and deduplicate by stable identity.
  • Never advance the checkpoint past unapplied records.

Failure Handling

  • Classify failures as retryable, permanent, data-quality, auth/config, or human decision required.
  • Keep per-record failures visible instead of collapsing the whole run into one generic error.
  • Use bounded retries for transient infrastructure errors.
  • Stop on repeated deterministic failures and preserve evidence for repair.

Evidence

Each run should produce a summary with:

  • run ID
  • source system
  • checkpoint before and after
  • records fetched, created, updated, skipped, failed
  • retry count
  • failure categories
  • links or IDs for detailed diagnostics

Review Checklist

  • Identity key is stable and documented.
  • Sync writes are idempotent.
  • Checkpoint advancement is safe.
  • Backfill/replay behavior is defined.
  • Partial failures are visible and repairable.
  • Tests cover duplicate input, out-of-order input, missing fields, retry, and resume.

04 同仓库更多 Skills

marcioaltoe
marcioaltoe/skills

startup-validator

Comprehensive startup idea validation and market analysis tool. Use when users need to evaluate a startup idea, assess market fit, analyze competition, validate problem-solution fit, or determine market positioning. Triggers include requests to "validate my startup idea", "analyze market opportunity", "check if there's demand for", "research competition for", "evaluate business idea", or "see if my idea is viable". Provides data-driven analysis using web search, market frameworks, competitive research, and positioning recommendations.

★ 0
marcioaltoe
marcioaltoe/skills

positioning-icp

When the user wants to define their ideal customer profile, position an AI product, build messaging architecture, or validate product-market fit. Also use when the user mentions 'ICP,' 'ideal customer profile,' 'positioning,' 'PMF,' 'product-market fit,' 'messaging,' 'buyer persona,' 'enrichment signals,' 'market positioning,' or 'competitive positioning.' This skill covers market positioning, ICP definition, messaging architecture, and PMF validation for AI-native products. Do NOT use for technical implementation, code review, or software architecture.

★ 0
marcioaltoe
marcioaltoe/skills

copywriting

When the user wants to write or rewrite page copy (homepage, landing, pricing, feature), or asks which headline, promise, or message to lead with. Diagnoses the input first (blank brief, real voice, or point edit) and changes only what it calls for. Claims must be supportable; a declined claim names the evidence that would unlock it. No AI tells like 'it's not X, it's Y' or 'no X, no Y, no Z'. For editing, see copy-editing. For emails, see emails. For the offer, see offers.

★ 0
marcioaltoe
marcioaltoe/skills

business-storyteller

Transforms technical work into persuasive business-language documents for non-technical stakeholders, including internal announcements, approval proposals, incident explainers, technical-debt cases, product explainers, and investor or partner memos. Use when the user asks to present technical work to the company, explain software to business teams, write a business case, make an approval document, or convert a technical artifact into stakeholder communication in the requested language. Do not use for READMEs, specs, ADRs, external marketing pages, or customer-facing sales copy.

★ 0
marcioaltoe
marcioaltoe/skills

brand-storytelling

Help users craft compelling brand narratives. Use when someone is defining brand strategy, writing company positioning, creating pitch narratives, developing messaging frameworks, or trying to make their company story more memorable.

★ 0
marcioaltoe
marcioaltoe/skills

skill-creator

Create 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 existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

★ 0