Manual impact

From PureCutCNC/purecutcnc · View interactive version

Manual impact is an AI agent skill from the GitHub repository PureCutCNC/purecutcnc. Write the Manual impact section every PureCutCNC PR description carries — decide whether the change is visible in the user manual, name the manual pages and screenshots it affects, and keep the section current through review. Use before `gh pr create`, and again whenever review changes user-visible

How to use this skill

Skill file

manual-impact

The user manual lives in a separate repo, PureCutCNC/purecutcnc.github.io,

and nothing else tells it when the app changes (#818). You write a **Manual

impact** section in the description of every PR into main; when it merges,

CODE0 opens an

issue in the docs repo from that section as merged, with the merge commit.

The manual-impact-check job fails the PR while the section is missing or

malformed.

You decide, not a file list, because you know what changed. #816 moved where

automatic tabs land and touched only engine code; no path rule would have

caught it.

1. Decide

The change has manual impact when a user following the manual would now see or

get something different:

added, removed, renamed, moved or restyled;

differently;

PR fixes (#813).

Pure refactors, performance work with identical output, test-only and

process-only changes, and translations outside en are None.

If the diff touches src/i18n/locales/en/**, src/components/**,

src/assets/icons/**, CSS or src/theme/**, or

src/store/helpers/operationDefaults.ts, look twice before writing None.

2. Find the pages and screenshots

Read the docs repo's main unless the user names a docs branch. Bigger changes

are documented on a docs integration branch (for example docs/issue-85-m3-rotary)

before it merges, and pages or screenshots there may not exist on main yet. Set

the ref once, then list the pages:

DOCS_REF=main   # or the docs branch the user named
gh api "repos/PureCutCNC/purecutcnc.github.io/git/trees/$DOCS_REF?recursive=1" \
  --jq '.tree[].path | select(startswith("site/src/content/docs/guide/") and endswith(".mdx"))
        | ltrimstr("site/src/content/docs/") | rtrimstr(".mdx")'

List the captured screenshots with what each shows, then grep for the panel,

operation or control you changed:

gh api "repos/PureCutCNC/purecutcnc.github.io/contents/site/src/assets/manual/media.json?ref=$DOCS_REF" \
  --jq .content | base64 -d \
  | jq -r 'to_entries[] | select(.value.source == "capture") | "\(.key)\t\(.value.shows)"'

Name pages as the first command prints them (guide/cam-setup/tabs) and

screenshots by their media.json key (cam-setup/tabs/tab-crossings.png). Name

what you found; do not guess a page that is not in the list.

3. Write the section

Put it in the PR description, exactly one per PR. PRs into any other branch

skip the check: for an integration branch, the branch's own PR into main

carries one section covering every slice merged into it. No impact:

<!-- manual-impact:start -->
### Manual impact
None
<!-- manual-impact:end -->

Impact:

<!-- manual-impact:start -->
### Manual impact
Pages: guide/cam-setup/tabs, guide/operations/pocket
Changed: automatic tabs now land on feature edges instead of spacing evenly
along the path; the Tabs panel is unchanged.
Re-shoot: cam-setup/tabs/tab-crossings.png
<!-- manual-impact:end -->

comma-separated; a field may continue onto following lines.

user now sees or gets, in user terms, including exact new labels and

defaults.

in the docs repo, where a bare #NN links to one of its issues.

Validate before pushing (Node 24+ runs it directly):

PR_BODY="$(cat body.md)" node tools/manual-impact/cli.ts check

4. Keep it current

The docs issue is written from the description at merge time, so the section

must describe the final PR. When review renames a label, drops an option or

changes behaviour, update the section in the same push:

gh pr edit NN --body-file body.md

Editing the description re-runs the check and moves the manual-impact label.

After merge

The workflow opens App change: <PR title> (purecutcnc#NN) in the docs repo,

labelled app-change, and comments its link on the PR. If that job failed, for

example because the token expired, re-run it from Actions → Manual Impact →

Run workflow with the PR number; it never opens a second issue for the same PR.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.