Skip to content

skills/setup-shared-config-sync: trim frontmatter to fit metadata budget - #127

Merged
potiuk merged 1 commit into
apache:mainfrom
choo121600:trim-setup-shared-config-sync-skill
May 11, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
choo121600:trim-setup-shared-config-sync-skill

Conversation

@choo121600

Copy link
Copy Markdown
Member

Summary

Trims setup-shared-config-sync frontmatter (description + when_to_use) from 1,138 → 831 characters.

Same principle as #103 and the rest of #118's audit pass: frontmatter is the routing layer. The body already cross-references docs/setup/secure-agent-setup.md and details the per-file flow.

Tracking: #118

Before / after

before after Δ
description 610 474 -136
when_to_use 528 357 -171
total 1,138 831 -307
budget margin 398 705 +307
budget 1,536 1,536

What moved where

Detail Where it lives now
(per docs/setup/secure-agent-setup.md → Syncing user-scope config across machines) doc cross-reference Body L34-38 (counterpart-to-sync.sh note + cross-references)
Explicit file glob list (~/.claude-config/scripts/*.sh, ~/.claude-config/CLAUDE.md, ~/.claude-config/commands/*, etc.) Tightened to a categorical list: "scripts, CLAUDE.md, commands, sync.sh"
Long "Also appropriate after the setup-isolated-setup-update skill surfaces drift on a script that the user keeps in ~/.claude-config/ and the user wants the framework's update propagated to every machine the sync repo is checked out on" Tightened to "propagated to other machines"

Trigger-phrase preservation

Every literal trigger phrase from the original when_to_use is preserved verbatim:

  • "sync my Claude config"
  • "push my ~/.claude-config"
  • "commit shared Claude config"

Behavioral routing signals preserved:

  • "after modifying a file in ~/.claude-config/"
  • "after setup-isolated-setup-update surfaces drift"

Safety rails preserved verbatim:

  • Never force-pushes; never rewrites already-pushed history; never modifies files outside ~/.claude-config/
  • Pull-rebase-first ordering ("git pull --rebase first if the local checkout is behind")

Routing recall does not regress.

Trims setup-shared-config-sync frontmatter from 1,138 → 831 chars
(margin 398 → 705). Drops the doc cross-reference parenthetical (body
already cross-references the secure-agent-setup doc) and the explicit
file enumeration in when_to_use (shortened to a categorical list), and
tightens the "Also appropriate after..." sentence.

All three literal trigger phrases preserved verbatim. Safety rails
(never force-push / never rewrite / never modify outside
`~/.claude-config/`) and the pull-rebase-first behaviour preserved.

Tracking: #118

@choo121600 choo121600 left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed frontmatter pre/post, body, and all analysis dimensions.

Budget: 831/1536 (705-char margin). Compliant.

Safety invariants: All three hard rails present verbatim — Never force-pushes, never rewrites already-pushed history, never modifies files outside ~/.claude-config/. The singular→plural change (file → files) is a minor strengthening, not a regression.

Pull-rebase-first ordering: Runs \git pull --rebase` first if the local checkout is behind— the load-bearingfirst` is preserved and the prose order makes the constraint clear.

Trigger phrases: "sync my Claude config", "push my ~/.claude-config", "commit shared Claude config" — all three preserved verbatim.

Sibling cross-reference: setup-isolated-setup-update surfaces drift → propagated to other machines — present. Condensed but routing-equivalent.

--autostash drop from description: The frontmatter now says git pull --rebase without --autostash. This is fine — --autostash is a behaviour detail, not a routing signal. It is fully specified in Golden Rules §Pull-with-rebase first and Walk-through §4 in the body, which is the correct layer.

One non-blocking note: the docs/setup/secure-agent-setup.md cross-reference was removed from the description. The PR body confirms it moved to body §Hardcoded path. Confirm that is intentional — it is, and it is correct.

LGTM.

🤖 This review was drafted by an AI-assisted tool. An apache-steward maintainer has read and confirmed it before posting; mistakes are still possible — point them out and the maintainer will sort it. See CONTRIBUTING.md for what an apache-steward maintainer review covers.

@potiuk
potiuk merged commit 365de94 into apache:main May 11, 2026
12 checks passed
@potiuk potiuk added capability:intake Import external signal + sync tracker state capability:platform Framework / agent substrate skills (install, verify, doctor, override, status, setup bootstrap) family:setup setup-* skills labels Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:intake Import external signal + sync tracker state capability:platform Framework / agent substrate skills (install, verify, doctor, override, status, setup bootstrap) family:setup setup-* skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants