agentleFS
hi-donwihi-donwi/Donwi-Skills/skills/data-import-export/SKILL.md

data-import-export

Skill0 starsChanged 11 days agoMITView on GitHub

Build validated data imports and interoperable exports with staging, dry runs, mapping, row errors, resumability, and reconciliation. Use for data exchange semantics, not Flyway schema migrations or Java-specific streaming report implementation.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep real documents and dumps in authorized product/local storage, never public skills.

    line 31

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Data Import and Export

Overview

Make data exchange typed, scoped, repeatable, and recoverable. A successfully parsed file is not necessarily valid or authorized business data.

When to use

  • Ingesting CSV/spreadsheet or partner records and mapping external identifiers.
  • Exporting round-trippable data and reconciling resumable import jobs.

Hand off when

NeedSkill
Java streaming XLSX/PDF and reporting scalebulk-reporting-export
Quarkus schema changes and Flyway migrationsquarkus-persistence
Durable job scheduling and worker recoverybackground-jobs

Process

  1. Define file/schema version, encoding, delimiter, locale, null representation, identifiers, currency/unit precision, dates/timezones, limits, and authoritative mapping.
  2. Authenticate scope and validate file type, size, parser limits, and storage policy. Keep real documents and dumps in authorized product/local storage, never public skills.
  3. Stage immutable source rows with row IDs and mapping version. Preserve identifiers as strings, exact amounts, and original values; never guess ambiguous locale or dates.
  4. Resolve external IDs and all references within authorized tenant/company scope. Apply domain services and approval/posting rules rather than bypassing them with bulk SQL.
  5. Provide a dry-run plan with counts, sanitized row errors, duplicate/conflict policy, and expected effects. Revalidate mutable constraints at commit; dry run reserves nothing.
  6. Declare atomic-file or partial-batch semantics. Commit checkpoints with stable row/effect keys; retries must not duplicate posted journals, stock movements, members, or payments.
  7. Scope export queries and downloads, apply consistent snapshot policy and bounded streaming/jobs, and neutralize spreadsheet-executable text cells without corrupting types.
  8. Reconcile attempted, accepted, rejected, skipped, and committed rows plus relevant quantity/value totals. Test crash/resume, locale, leading zeros, formulas, and foreign scope.

Red flags

  • Direct imports into posted tables, silent coercion, or dry runs with external effects.
  • Retrying whole files without operation identity or exporting unrestricted customer data.
  • Formula escaping that changes canonical amounts or leaves dangerous text executable.

Verification

  • Round trips preserve approved types, precision, identifiers, and scope.
  • Dry runs are side-effect free; commit-time checks and resumability remain correct.
  • Row counts, business totals, parser limits, formula safety, and download access are tested.

References

  • references/exchange-contract.md - typed exchange and failure exercises.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.