push
Skill6 starsChanged 2 months agoMITView on GitHub
Use this skill to publish the current dataset directory to DataHub with the `dh publish` CLI command, or (story mode, inside the DataPressr repo) to publish an approved data story as its own DataHub page, or (blog mode) a finished story package to the DataHub blog with `dh publish -p blog`. Checks datapackage.json, the root README.md, views and credentials (from `dh login` or DATAHUB_API_TOKEN) first, always passes an explicit --publication, and skips cleanly if `dh` or credentials aren't set up (committing to git is enough on its own). Invoked as `/push` in Claude Code, or by name; operates on the dataset in the current directory, or on the story named as the argument.
55 other projects use a version of this.
Adopted by
Most recently taken up by
- mohhh-ok/ai-30-countdowntheir own version, first seen Nov 29, 2026
- GavinGreenwood/agentic-workflow-templatetheir own version, first seen Nov 24, 2026
- nesalia-inc/skillstheir own version, first seen Nov 22, 2026
- GiuseppeBellamacina/claude-code-synctheir own version, first seen Nov 22, 2026
- JQ-WCoding/devkittheir own version, first seen Nov 22, 2026
- toy-crane/claude-code-playbook-templatetheir own version, first seen Nov 19, 2026
Used with
Projects with it also use get-pr-reviews, push-everything and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
saffron-healthSkillget-pr-reviews
Get nicely formatted output of the last review comments on a PR. Used internally by other skills.
Also in 3 projects that use this
saffron-healthSkillpush-everything
Stage ALL changes in the repository (not just session changes), commit, and push. Use when you need to commit all pending changes.
Also in 3 projects that use this
NVIDIASkillgenerate-spec
Produce a feature specification covering API changes, backward compatibility, cross-language impact, performance, and a file-level change plan. Use when designing a new feature, planning a significant change, or the user asks to spec something out.
Also in 3 projects that use this
ddehartSkillknowledge-graph
Search, capture, and query the claude-code-plugins knowledge graph. Use when asked to "capture this", "add this to the graph", "what do we know about X", "update the graph", "check the graph for X", or when a decision, pattern, or non-obvious fact surfaces mid-session that's worth recording. Also: "log an observation", "what patterns do we have about skill triggering", "any decisions on the knowledge-commons plugin", "what do we know about the commit-creator agent".
Also in 3 projects that use this
MicrosoftSkilldiscover
Also in 4 projects that use this
MicrosoftSkillmerge
Merge changes from the topic branch to the merge base branch. Use when the user wants to merge their session's work back to the base branch.
Also in 3 projects that use this
- +2 more from saffron-health
- +1 more from microsoft
Other versions55 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 55
- openai/symphony★ 27ksame name
- kdlbs/kandev★ 1.2ksame name
- cashew-labs/libretto★ 911same name
- saffron-health/libretto★ 911same name
- egregore-labs/egregore★ 293same name
- Mooshieblob1/MooshieUI★ 235same name
- team-mirai-volunteer/mirai-gikai★ 217same name
- sterlingcrispin/claude_slash_commands★ 200same name
- Nucleify/Nucleify★ 172same name
- kv0906/pm-kit★ 138same name
45 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 0 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 47 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Never run dh login yourself: it opens a browser and needs the person to sign in.
- Very specific: line 26
Run /validate (node scripts/validate-datapackage.mjs .).
- Very specific: line 33
No resource may be named the same as the package.
- Very specific: line 38
Always pass --publication explicitly.
- Very specific: line 40
Use $DATAHUB_PUBLICATION if it is set, otherwise datapressr.
- Very specific: line 51
If $DATAHUB_PUBLICATION is core, stop and tell the user.
- Very specific: line 66
Never publish site/stories/ itself, or a story file in place: it holds every story, the outlines, build scripts and node_modules, and the …
- Very specific: line 78
Look at files: it should be README.md and the charts, nothing else.
- Very specific: line 80
Publish: Run the command the bundler printed, which is dh publish <bundle dir> --publication <pub> --name <slug> --title <title> …
- Very specific: line 99
every image exists, including <picture> sources such as the -mobile.svg.
“Common” is measured: kept by at least 6 in 10 of the 47 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Push: publish the current dataset to DataHub
The skill is called push for continuity (/push is what people already type), but the CLI command it runs is dh publish. The DataHub CLI renamed its push command to publish; the old name now fails with unknown command "push".
0. Skip cleanly if publishing isn't set up
Publishing is optional. Committing and pushing to git is enough on its own. If any of these is missing, tell the user which, and stop. It is not an error.
dhis installed:command -v dh. If it isn't, point to the install steps below and stop.- Credentials exist, from either source:
dh loginhas been run: a credentials file exists at~/.config/datahub/credentials(Linux) or~/Library/Application Support/datahub/credentials(macOS). This is the normal path on a person's machine.DATAHUB_API_TOKENis set (withDATAHUB_API_URL=https://datahub.io). This is the CI path.
Never run dh login yourself: it opens a browser and needs the person to sign in.
1. Pre-flight checks
datapackage.jsonexists in the current directory. If not, stop and tell the user.resourcesis defined and non-empty. If not, warn that the dataset page won't render correctly and ask whether to continue.- A root
README.mdexists. DataHub renders the dataset page from the rootREADME.md(orindex.md). Without one the page is a 404, even though the upload succeeds. If it's missing, stop and offer to write one: a short description, the source and licence, and what's in each file. Don't start it with a# Titleheading, because DataHub already shows the title above it. - Run
/validate(node scripts/validate-datapackage.mjs .). Fix errors before publishing. Paststub, warnings should be fixed too. - Check any
viewsagainst what DataHub renders:specType: "simple"withtype: "line"works with several series.specType: "simple"withtype: "bar"or"lines-and-points"needs thegroup(x) field andseries[0]to be typedyear,yearmonth,dateornumberin the resource schema.integerandstringfields render an "Unsupported field type" error. Onlyseries[0]is plotted; any further series are silently dropped.- For a categorical x-axis or several bar series, use
specType: "vega-lite"(a raw Vega-Lite spec; DataHub injects the resource's CSV as data) orspecType: "plot"instead. - Each view's resource must match a resource
name, or the page shows "Resource not found for view". - DataHub bundles Vega-Lite 5.1, which has no
xOffset: a grouped-bar spec renders as stacked bars. Use lines with points, or a facet, instead (datapressr-kh5.13). - No resource may be named the same as the package. DataHub reads that as a "full + sample" premium package and shows only that one resource; every other resource, and any view on it, disappears (datapressr-kh5.12).
- Check
.datahubignore. Every non-hidden file in the directory is uploaded unless.datahubignoreexcludes it (.gitignoreis not read). Make sure it coversarchive/, build and enrich scripts,node_modules/,package*.jsonandAGENTS.md. Any other.mdfile (such asSUMMARY.md) becomes its own sub-page, so exclude it if you don't want that.
2. Pick the publication
Always pass --publication explicitly. Never rely on a default saved by dh login.
- Use
$DATAHUB_PUBLICATIONif it is set, otherwisedatapressr. - Never publish to
core.coredatasets (e.g. co2-ppm, oil-prices, airport-codes) git-sync fromgithub.com/datasets/*, and the next sync can overwrite a direct upload. Improvements to a core dataset go upstream as a pull request to its GitHub repo.
3. Publish
pub="${DATAHUB_PUBLICATION:-datapressr}"
case "$(printf %s "$pub" | tr A-Z a-z)" in core) echo "Refusing to publish to core; use datapressr" >&2; exit 1;; esac
dh publish . --publication "$pub"If $DATAHUB_PUBLICATION is core, stop and tell the user; do not fall back to another publication silently.
dh publish reads name, title and description from datapackage.json and prints the page URL, https://datahub.io/<publication>/<name>.
4. Report, with the caveats
Report the URL, then tell the user:
- Check the page in a browser. "N file(s) published" only means the uploads finished; the page is processed in the background. Look at the README, the views, the resource previews and the licence.
- Publishing is an upsert, not a sync. Files are added or overwritten, but a file deleted or renamed locally stays on DataHub. On a dataset that already exists, the
titleanddescriptionare not updated either: change them in the DataHub dashboard.dh delete <name> -p <pub>removes the whole dataset, losing its identity and dates, so prefer not to.
Story mode: publish a data story
Use this path when the argument names a story (/push story oil-prices, or "publish the oil story") rather than a dataset. It needs the DataPressr repo: stories live in its site/stories/, and the bundler is scripts/bundle-story.mjs. On DataHub a story is a page with a README.md and no datapackage.json: DataHub shows the title, description, "Published <date>" and author, then the Markdown. Step 0 (skip cleanly if dh or credentials are missing) applies unchanged.
Never publish site/stories/ itself, or a story file in place: it holds every story, the outlines, build scripts and node_modules, and the story has an h1 (and, in older stories, internal "Friction notes") that DataHub would show. Always publish the bundle.
- Pick the publication. As in section 2:
$DATAHUB_PUBLICATIONif set, otherwisedatapressr. Stories go todatapressr(beside their datasets) until a story has had its voice pass and a grant to another publication (the DataHubblog) is recorded in the bundler'sPUBLICATIONSlist. Nevercore. - Check approval. Read the story's frontmatter
datahubblock.status: approvedwith a datedapproved:line may go to any publication with a recorded grant.status: draft(every story until its voice pass) may only go todatapressr, and only when the owner has explicitly said this draft may be published; record that OK (verbatim, dated) in the Bead before passing--allow-draft. Never mark a story approved yourself. Build the bundle. This checks approval, refuses
coreand publications without a grant, refuses a slug that is a local dataset name, rewrites links, keeps onlyREADME.mdplus the SVGs it references, and checks the result compiles as DataHub MDX. It exits non-zero, naming the problem, if any of that fails; stop and report it.pub="${DATAHUB_PUBLICATION:-datapressr}" json=$(node scripts/bundle-story.mjs <story> --publication "$pub") || exit 1 # add --allow-draft only with a recorded owner OK echo "$json" # dir, slug, publication, status, title, description, files, commandLook at
files: it should beREADME.mdand the charts, nothing else.- Check the slug on DataHub. The bundler only knows local dataset names.
curl -s -o /dev/null -w '%{http_code}' https://datahub.io/$pub/<slug>should be404(a new page) or this same story's earlier publish. Anything else at that URL (a dataset, another story) means stop: pick another slug in the story's frontmatter. Publish. Run the
commandthe bundler printed, which isdh publish <bundle dir> --publication <pub> --name <slug> --title <title> --description <description>.dhreads title and description only fromdatapackage.json, which a story doesn't have, so they must be passed as flags:node -e 'const [cmd, ...args] = JSON.parse(process.argv[1]).command; require("node:child_process").execFileSync(cmd, args, { stdio: "inherit" })' "$json"- Check the page in a real browser (
https://datahub.io/<pub>/<slug>), not just the "N file(s) published" line: the title appears once (header only, no repeated h1); the description shows under it; every chart loads; there is no "Error parsing MDX" (an MDX failure blanks the whole body inside an HTTP 200 page); every link works, especially dataset links and the outline link. - Report the URL and these caveats:
- Title and description are fixed at first publish. Re-publishing does not update them; change them in the DataHub dashboard.
- The date shown is the first publish, not the frontmatter
date, and re-publishing does not move it. - Deleted or renamed files linger. Publishing is an upsert: a renamed chart leaves the old SVG online.
dh delete <slug> -p <pub>removes the whole page, losing its URL history, so prefer not to.
Blog mode: publish a story package to the DataHub blog
Use this path for a finished story package in the blog layout (a folder with README.md, its SVGs and an optional <slug>-src/, as Factory's releases/*/package/). Publishing to the blog is just dh publish to the blog publication; no DataPressr port, bundler or datahubio/blog commit is needed (factory-but.3.4.1). Step 0 applies unchanged.
- Check the package first:
npm run story-check -- <dir>from the DataPressr repo (ornode <datapressr>/scripts/story-check.mjs <dir>from anywhere; no install needed). Fix every FAIL before publishing. It checks:- front matter has
title,descriptionanddate; - there is no H1, because DataHub shows the title from
-t; - the README compiles as DataHub MDX, with no
<https://...>autolinks; - every image exists, including
<picture>sources such as the-mobile.svg; - SVGs contain no NaN or undefined;
- download links are absolute.
- front matter has
- Links are absolute. Downloads and images point at
https://datahub.io/blog/<slug>/_r/-/<path>(the path inside the package), not relative paths. Publish with explicit flags:
dh publish <dir> -p blog -n <slug> -t "<title>" -d "<description>"dhignores the front mattertitleanddescription, so always pass-tand-d. Copy them from the front matter.- Caveats. Title and description are fixed at the first publish; after that, change them in the DataHub dashboard. Publishing is an upsert: files are added or overwritten, and a deleted or renamed file stays online. Check
https://datahub.io/blog/<slug>in a browser: every chart loads on desktop and phone, and there is no "Error parsing MDX".
Installing dh
dh is a Go binary from datopian/datahub-next, not an npm package. The repo is private, so you need GitHub access to it. Download the release for your platform (dh_darwin_arm64, dh_darwin_amd64, dh_linux_amd64, dh_linux_arm64 or dh_windows_amd64.zip), check it and put it on your PATH:
gh release download v0.1.0 -R datopian/datahub-next -p 'dh_darwin_arm64.tar.gz' -p checksums.txt
shasum -a 256 -c checksums.txt --ignore-missing # Linux: sha256sum -c --ignore-missing checksums.txt
tar -xzf dh_darwin_arm64.tar.gz && mv dh ~/bin/ # any directory on your PATHThen the person (not the agent) runs dh login once in a terminal; it signs in through the browser.
dh command reference (v0.1.0)
Checked against dh --help on the v0.1.0 release binary. Commands: publish, login, logout, delete, publication create, completion.
dh publish [dir]:-p/--publication,-n/--name(default:datapackage.jsonname, then the directory name),-t/--title,-d/--description,-a/--author(repeatable). GitHub-link mode (-g/--github owner/repo,--branch,--subdir) is not used here: it ignores.datahubignoreand would publisharchive/, build scripts andAGENTS.md.dh delete <name>:-p/--publication.dh login:--api-url(defaulthttps://datahub.io). It saves{apiUrl, token, publication}to the credentials file withpublicationempty, which is one more reason to always pass--publication.dh publication create <slug>:-n/--name(display name). Thedatapressrpublication already exists at https://datahub.io/datapressr, so you don't need this.--publicationoverridesDATAHUB_PUBLICATION, which overrides the credentials file.
For CI, run dh login once as the publishing user, copy the token value from the credentials file into a DATAHUB_API_TOKEN secret, and set DATAHUB_API_URL=https://datahub.io. Treat that token as highly privileged and keep the secret tightly scoped.
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.

