Skip to content
cccskills
FreePublished on GitHub

update-recipes

Refresh the ReadMe contributor recipes (code tabs, line highlights, and prose) after frontend changes land on main. Runs scripts/readme_recipes/sync_recipes.py, then scans recipe prose against the merged diff. Called by /merge after frontend PRs; also usable standalone via /update-recipes [PR number].

The English summary is being prepared. Showing the original description.

SatcherInstitute/health-equity-tracker23 stars(GitHub 23 + cccskills 0)
Works withGitHub

Run score Not tested

See how to install

Files included (1)

  • SKILL.md4.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

/update-recipes

The recipes on healthequitytracker.readme.io quote real source files and go stale silently. This skill keeps their code tabs and highlights in sync mechanically and flags prose that needs a human decision.

The optional argument is a merged PR number (e.g. /update-recipes 5250). With no argument, use the latest commit on local main.


Step 1: Decide whether to run

Get the changed paths:

gh pr view <number> --json files --jq '.files[].path'   # with a PR number
git show --name-only --format= HEAD                      # without

Skip the skill with a one-line note unless a path starts with frontend/src/ or frontend/.env. Also skip with a note if README_API_KEY is unset after source ~/.zshenv (never print it).

Local main must be at the merge commit so the script reads the merged code. /merge guarantees this in its Step 4; standalone, verify all three conditions and stop if any fails, since a wrong-branch or dirty checkout would publish recipes from unmerged code:

git fetch origin main
BRANCH=$(git rev-parse --abbrev-ref HEAD)                # must equal "main"
STATUS=$(git status --porcelain)                         # must be empty
LOCAL_SHA=$(git rev-parse HEAD)
MERGE_SHA=$(gh pr view <number> --json mergeCommit --jq '.mergeCommit.oid')
[ "$BRANCH" = "main" ] && [ -z "$STATUS" ] && [ "$LOCAL_SHA" = "$MERGE_SHA" ] \
  || { echo "Refusing to sync: not on clean main at merge commit ($BRANCH, dirty=$([ -n "$STATUS" ] && echo yes || echo no), local=$LOCAL_SHA vs merge=$MERGE_SHA)"; exit 1; }

Step 2: Sync tabs and highlights

source ~/.zshenv && python3 scripts/readme_recipes/sync_recipes.py check
  • Exit 0: recipes are current.
  • Exit 1 (drift): only code tabs or line highlights changed, which is mechanical. Run python3 scripts/readme_recipes/sync_recipes.py push and report which recipes moved.
  • Exit 2 (anchor error or unexpected recipe shape): a symbol or file the recipes point at was renamed or removed, or a live recipe no longer matches recipes.json. Do not push. Tell the user which recipe broke and offer a follow-up PR that updates scripts/readme_recipes/recipes.json.
  • Exit 3 (API error or no key): the check did not complete. Do not push; report the error and move on.
  • Exit 4 (bad command line): you mistyped the invocation; fix it and rerun.

Pass a slug as a second argument (check <slug>) to limit the run to one recipe.


Step 3: Scan recipe prose

The script never touches step titles or bodies. Map the changed paths (relative to frontend/src/) to recipes:

Changed pathRecipe slug
data/loading/DataSourceConfigs.ts, data/loading/VariableProviderMap.tssetting-up-a-new-data-provider
data/providers/*.test.tscreating-test-cases-for-the-new-data-provider
data/config/MetricConfig*.ts, charts/mapGlobals.tssetting-up-the-metric-configuration
data/config/DatasetMetadata*.ts, data/config/MetadataMap.tsupdating-metadata-configuration-for-new-dataset-integration
utils/MadLibs.tsupdating-the-madlibs-configuration-for-new-dataset-integration
featureFlags.ts, frontend/.env.*merging-behind-a-feature-flag

For each mapped recipe, fetch it (GET https://api.readme.com/v2/branches/1.0/recipes/<slug> with Authorization: Bearer $README_API_KEY and a User-Agent header, since the default Python one gets a 403) and check whether any step title or body names a file, symbol, path or behavior the change removed or altered. If so, show the user the proposed wording and ask before PATCHing. The whole content object must be sent back, so change only the step title/body fields you mean to.


Step 4: Report

One line: Recipes: <current/pushed (which)/skipped/needs recipes.json update/prose flagged>.


Notes

  • scripts/readme_recipes/recipes.json declares which source files each recipe quotes and which text anchors drive the highlights. Adding a recipe means adding an entry there.
  • The recipes are external to the repo and nothing fails when they go stale, so this skill is the only safety net.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Force-push the current branch to infra-test to trigger a GCP deploy, wait for it to complete, then run each associated DAG pipeline one at a time and wait for each to finish. On full success, updates the PR description with a checklist confirming real GCP infra-test results. Use when the user wants to verify backend changes on the test environment before merging, or run /infra-test.

The English summary is being prepared. Showing the original description.

SatcherInstitute/health-equity-tracker23Updated Oct 24, 2026

merge

Free

Force-merge an open PR to main (bypassing review requirements), delete the local branch, pull the updated main, and push it to the personal fork remote. Use when the user wants to close out a PR without waiting for review, or run /merge.

The English summary is being prepared. Showing the original description.

SatcherInstitute/health-equity-tracker23Updated Oct 24, 2026

next

Free

Figure out the best new thing to work on. Pulls open items from the GitHub project board, weighs assignment and labels, then prioritizes cleanly closeable scoped work and issues that would wrap up a milestone. Use when the user wants to know what to work on next, or run /next.

The English summary is being prepared. Showing the original description.

SatcherInstitute/health-equity-tracker23Updated Oct 24, 2026

pr

Free

Polish an open PR for review. Classify the diff by bucket (frontend / python / go) and run only the relevant checks — Biome+tsc+Playwright for frontend, black+pylint+pytest for python, build+test for go. Address open review comments, update CLAUDE.md docs if stale, rewrite the PR title and description, then watch CI until all checks pass (diagnosing and reporting any failures). Use when the user wants to close out a PR, verify it's ready for review, or run /pr.

The English summary is being prepared. Showing the original description.

SatcherInstitute/health-equity-tracker23Updated Oct 24, 2026

Summarize what's new on dev since the last release and investigate for footguns — config/infra changes, breaking changes, anything that could bring down production. Use before cutting a release, or run /pre-release.

The English summary is being prepared. Showing the original description.

SatcherInstitute/health-equity-tracker23Updated Oct 24, 2026

Cut a new production release — pre-flight checks, auto-increment tag, publish GitHub release, monitor prod deploy, verify prod loads, targeted Playwright smoke tests, then trigger nightly E2E. Use when the user wants to ship a release or run /release.

The English summary is being prepared. Showing the original description.

SatcherInstitute/health-equity-tracker23Updated Oct 24, 2026

See all skills by SatcherInstitute

Report a problem with this skill