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.
In this repository4 other files it gives its agents.
- code-reviewSkill
- db-ops-sopSkill
- workspace-ingestSkill
- workspace-retrieveSkill
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
- Very specific: line 10
Use a write operation and fetch this Skill with the same operation_id.
- Very specific: line 24
Use db_update_path for source-scoped table replacement.
- Distinctive: line 26
Never replace an entire shared table to change only one source.
- Distinctive: line 27
Check every receipt result.
- Very specific: line 32
Use workspace_rollback(revision, expected_revision) for coordinated rollback to a retained revision.
≈ “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.
Files
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_filereplaces 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. Usegraph_forget_sourceto retract a removed source without deleting its file or other sources' evidence. - Use
db_update_pathfor source-scoped table replacement.db_delete_pathandkb_delete_filealso 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.
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
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.

