Adopt health shell scripts; worktree_status becomes a /health leg#35
Merged
Conversation
- scripts/{health,health_sync,health_release,health_audit}.sh move here from
PyAutoMind/scripts — the Heart owns the health surface; a health dashboard
living in the intent organ was a boundary leak. Mind keeps forwarding shims.
- skills/worktree_status/SKILL.md -> reference.md: retired as a standalone
installed skill; it is now the procedure behind the new `/health worktrees`
leg (same pattern as the pyauto-status legs).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Jammy2211
added a commit
to PyAutoLabs/PyAutoMind
that referenced
this pull request
Jul 8, 2026
The health dispatcher and its implementations moved to PyAutoHeart/scripts (PyAutoLabs/PyAutoHeart#35) — Mind stores intent, Heart owns the health surface. These shims keep any existing sourcing path working; verified the dispatcher still defines and runs through them. Co-authored-by: Jammy2211 <JNightingale2211@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Jammy2211
added a commit
to PyAutoLabs/PyAutoBrain
that referenced
this pull request
Jul 8, 2026
The worktree/task dashboard becomes the fourth /health leg (procedure: PyAutoHeart/skills/worktree_status/reference.md, PyAutoLabs/PyAutoHeart#35); repo_cleanup references updated; the shell-side pointer follows health.sh to PyAutoHeart/scripts. Co-authored-by: Jammy2211 <JNightingale2211@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR relocates the local health shell dispatcher and its implementations into PyAutoHeart (aligning “health surface” ownership with Heart), and updates the former worktree_status skill reference to reflect its new role as the /health worktrees leg procedure.
Changes:
- Added a
healthshell dispatcher (scripts/health.sh) plus three implementations: sync dashboard, release-run dashboard, and structural audit. - Converted
skills/worktree_status/reference.mdfrom standalone-skill framing to/health worktreesleg documentation. - Introduced helper viewer functions (
health-report,health-json,health-triage) for release-run artifacts.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| skills/worktree_status/reference.md | Updates docs to reframe worktree status as the /health worktrees leg procedure. |
| scripts/health.sh | Adds the health dispatcher function routing to sync/release/audit implementations. |
| scripts/health_sync.sh | Implements cross-repo git sync status dashboard with optional follow-up sections. |
| scripts/health_release.sh | Implements release-prep run dashboard + report/json/triage viewer helpers. |
| scripts/health_audit.sh | Implements an on-demand structural audit for non-git dirs, old stashes, and abandoned branches. |
Comments suppressed due to low confidence (1)
skills/worktree_status/reference.md:6
- This file is now described as a procedure for the
/health worktreesleg, but this paragraph still calls it a "Diagnostic skill". Consider updating this wording here (and other remaining references to "skill" later in the document) to avoid implying it is still an invokable standalone skill.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+224
to
+226
| for r in "${actions_pull[@]}"; do | ||
| echo " git -C $r pull --ff-only" | ||
| done |
Comment on lines
+171
to
+172
| # _pyauto_run_file <subpath> [run-dir-arg] — resolve a file inside the latest | ||
| # (or supplied) run directory. Used by the pyauto-{report,json,triage} viewers. |
Comment on lines
+177
to
+180
| if [[ ! -e "$run_dir" ]]; then | ||
| echo "pyauto: no run found at $run_dir" >&2 | ||
| return 1 | ||
| fi |
Comment on lines
+183
to
+187
| local target="$run_dir/$subpath" | ||
| if [[ ! -f "$target" ]]; then | ||
| echo "pyauto: $target missing" >&2 | ||
| return 1 | ||
| fi |
Comment on lines
+231
to
+233
| for r in "${actions_set_upstream[@]}"; do | ||
| echo " git -C $r branch --set-upstream-to=origin/main main" | ||
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Roadmap item 11:
healthshell dispatcher + its three implementations move here fromPyAutoMind/scripts/(Mind stores intent; health dashboards belong to Heart). Mind-side forwarding shims + the/healthcommand doc update land in companion PRs.worktree_statusis retired as a standalone skill and becomes the procedure behind/health worktrees— same pattern as thepyauto-statuslegs.🤖 Generated with Claude Code