Skip to content

skills/setup-isolated-setup-install: trim frontmatter to fit metadata budget - #121

Merged
potiuk merged 1 commit into
apache:mainfrom
choo121600:trim-setup-isolated-setup-install-skill
May 11, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
choo121600:trim-setup-isolated-setup-install-skill

Conversation

@choo121600

Copy link
Copy Markdown
Member

Summary

Trims setup-isolated-setup-install frontmatter (description + when_to_use) from 1,292 → 962 characters.

Same principle as #103, #119, #120: frontmatter is the routing layer. The body's ## Golden rules section already enforces every safety constraint (no sudo, no shell-rc edits, no settings overwrites) and docs/setup/secure-agent-setup.md is the canonical install path that this skill is a thin walkthrough wrapper around.

Tracking: #118

Before / after

before after Δ
description 663 402 -261
when_to_use 629 560 -69
total 1,292 962 -330
budget margin 244 574 +330
budget 1,536 1,536

What moved where

Detail Where it lives now
.claude/settings.json key enumeration (sandbox block, permissions.deny, permissions.ask, allowedDomains) Canonical install path at docs/setup/secure-agent-setup.md — already cross-referenced in body
"surfaces sudo / shell-rc-edit / settings-file-overwrite operations for explicit approval before applying, and never auto-runs anything privilege-elevating or destructive" ## Golden rules (4 explicit bullets covering sudo, shell rc, settings overwrite, stop-on-failure)
"user-scope ~/.claude/settings.json wiring that turns those hooks on" (separate phrase) Collapsed into "project + user-scope .claude/settings.json wiring" in the trimmed frontmatter

The trimmed frontmatter still names every routing-relevant component (bubblewrap, socat, claude-code, claude-iso, sandbox-bypass-warn, sandbox-status-line) so a user saying "install bubblewrap for my Claude setup" still routes here.

Trigger-phrase preservation

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

  • "set up the secure agent setup"
  • "first-time install of the secure config"
  • "install the secure setup in this tracker"
  • "walk me through the secure-agent-setup install"
  • "fresh OS install / new dev machine where ~/.claude/scripts/ is empty"

Skip-routing to sibling skills is preserved verbatim:

  • setup-isolated-setup-verify (to confirm completeness)
  • setup-isolated-setup-update (to refresh against the framework's latest)

Routing recall does not regress.

… budget

The frontmatter for setup-isolated-setup-install was carrying the body's
job — the full `permissions.deny / .ask / allowedDomains` enumeration and
the long sudo / shell-rc / settings-overwrite safety verbiage, which the
Golden rules section already enforces line-by-line. Trims description +
when_to_use from 1,292 → 962 chars (margin 244 → 574) by collapsing the
implementation enumeration to the routing-relevant component names and
deferring the safety verbiage to the body.

Every literal trigger phrase from the original when_to_use is preserved
verbatim, including the sibling-skill skip-routing
(setup-isolated-setup-verify, setup-isolated-setup-update). Routing recall
does not regress.

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.

Budget compliance confirmed. Pre: 1,338 chars (desc=686, wtu=652). Post: 998 chars (desc=417, wtu=581). Well under the 1,536 limit.

Checked all four analysis dimensions:

  • Semantic faithfulness: all five literal trigger phrases are preserved verbatim. The "skip when already in place" negative-routing logic is retained ("Skip when the secure setup is already in place — use setup-isolated-setup-verify / setup-isolated-setup-update"). The collapsed .claude/settings.json key enumeration (permissions.deny, allowedDomains, etc.) loses a small amount of router surface area, but those terms appear in the skill body and canonical doc, so practical routing recall is not degraded.
  • Placeholder convention: preamble block untouched.
  • Frontmatter shape: name / description / when_to_use / license: Apache-2.0 — correct.
  • Sibling cross-references: setup-isolated-setup-verify and setup-isolated-setup-update appear in both when_to_use (skip-routing) and the body — no regressions.

🤖 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 ba73ff0 into apache:main May 11, 2026
12 checks passed
@potiuk potiuk added 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: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