agentleFS
OpenDCAIOpenDCAI/DataMind/.claude/skills/source-update/SKILL.md

source-update

Skill455 starsChanged 42 days agoApache-2.0View on GitHub

Guide Codex to update or retract DataMind source data while preserving other evidence and published workspace consistency.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use a write operation and fetch this Skill with the same operation_id.

    line 10
  2. Very specific:

    Use db_update_path for source-scoped table replacement.

    line 24
  3. Distinctive:

    Never replace an entire shared table to change only one source.

    line 26
  4. Distinctive:

    Check every receipt result.

    line 27
  5. Very specific:

    Use workspace_rollback(revision, expected_revision) for coordinated rollback to a retained revision.

    line 32

≈ “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

Source updates

Use a write operation and fetch this Skill with the same operation_id. MCP tools have the datamind_ prefix; Python DataPlane tools omit it.

  • For a published workspace, prepare its original directory, read sources and extract relationships with Codex, then publish a complete source inventory via workspace_publish. Omitted/deleted files disappear from the new snapshot. In incremental mode, only new or changed documents need {uri, version, triples}, including empty triples; snapshot mode still needs every document. Hash mismatch, invalid assertions or a competing publication must retain the old head. Completed source checkpoints can be reused after restart.
  • For independent live data, kb_add_file replaces the same document; graph_replace_source(path, expected_version, triples) replaces only that source's graph support. Extract triples yourself. Invalid input or a stale source hash must not retract existing support. Use graph_forget_source to retract a removed source without deleting its file or other sources' evidence.
  • Use db_update_path for source-scoped table replacement. db_delete_path and kb_delete_file also remove a managed file: use them when deletion is requested. Never replace an entire shared table to change only one source.
  • Check every receipt result. Successful KB refresh does not prove KG refresh. Published revisions and independent live stores are separate; live writes do not appear in snapshot readers. Start a new read operation after publication; existing read operations deliberately retain their original revision.

Use workspace_rollback(revision, expected_revision) for coordinated rollback to a retained revision; latest retention may already have pruned older targets. Close finished operations with operation_close. Per-surface rollback does not roll back the workspace. Conflicting supported claims should remain attributable; insertion order does not decide truth.

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.