claude/skills
Bastien Chanot da4e6b9590 feat(profile): add gstack on|off verb to lib/profile.sh
Centralize gstack toggling in the `profile` command without losing the
active-profile label.

  - `gstack on`  re-enables ALL parked gstack skills (moves
    skills-disabled/gstack__* back) but does NOT touch .active-profile,
    so the user layers full gstack on top of their current profile and
    the statusline label is preserved. Unlike `reset`, which clears the
    label to "none".
  - `gstack off` disables gstack skills not listed in the active profile;
    errors cleanly when no profile is active (needs one to know what to
    keep).

Refactor (behavior-preserving): extract three shared helpers
`enable_all_gstack`, `disable_gstack_not_in`, `parked_gstack_count` and
rewire `cmd_reset` + `cmd_set` to reuse them instead of duplicating the
symlink-toggle loops. Wire `gstack` into main() dispatch, usage(), and the
header usage block.

Docs: SKILL.md argument-hint, examples, and output-policy updated. The
generic `make profile cmd="gstack on"` target already covers Make usage.

Verified: shellcheck CLEAN, `bash -n` OK, 6-case test (help, bad-action,
off-with-no-profile, on, off-trim, on-cycle) with final assertion that the
live symlink state was restored exactly to its pre-test value.

Memory: capitalize BDR-018 (decision), LRN-024 (DRY helper-extraction
pattern), BLK-007 (6 gstack source skills ios-*/spec unlinked post
submodule bump — open follow-up), EVAL-002 (self-eval, false "full.profile
bug" flag corrected pre-edit). Backfill index drift: BDR-017, BLK-005/006.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-02 18:31:48 +02:00
..
analyze test(darwin-skill): add baseline test-prompts.json for 18 personal skills 2026-05-06 17:53:51 +02:00
bugfix test(darwin-skill): add baseline test-prompts.json for 18 personal skills 2026-05-06 17:53:51 +02:00
client-handover refactor(skills): compress 8 SKILL.md descriptions per writing-skills spec 2026-05-11 16:09:21 +02:00
close darwin: add test prompts for 5 skills (baseline pass) 2026-05-12 17:50:06 +02:00
code-clean test(darwin-skill): add baseline test-prompts.json for 18 personal skills 2026-05-06 17:53:51 +02:00
commit-change optimize skills-perso + commit-change: round 1 — D3 edge cases 2026-05-12 17:59:22 +02:00
doc refactor(skills): compress 8 SKILL.md descriptions per writing-skills spec 2026-05-11 16:09:21 +02:00
feat test(darwin-skill): add baseline test-prompts.json for 18 personal skills 2026-05-06 17:53:51 +02:00
geo refactor(skills): compress 8 SKILL.md descriptions per writing-skills spec 2026-05-11 16:09:21 +02:00
graphify feat(graphify): upgrade to 0.8.13 — gemini backend, encoding, monorepo, CLI export 2026-05-21 05:55:23 +02:00
harden darwin: add test prompts for 5 skills (baseline pass) 2026-05-12 17:50:06 +02:00
hotfix test(darwin-skill): add baseline test-prompts.json for 18 personal skills 2026-05-06 17:53:51 +02:00
init-project refactor(skills): compress 8 SKILL.md descriptions per writing-skills spec 2026-05-11 16:09:21 +02:00
onboard refactor(skills): compress 8 SKILL.md descriptions per writing-skills spec 2026-05-11 16:09:21 +02:00
pdf-translate feat(skills): add pdf-translate — PDF to translated HTML via Vision 2026-05-26 03:38:16 +02:00
plugin-check optimize plugin-check: round 1 — D3 fallback + D1 triggers + advisory clarification 2026-05-12 17:57:48 +02:00
profile feat(profile): add gstack on|off verb to lib/profile.sh 2026-06-02 18:31:48 +02:00
prune-memory darwin: add test prompts for 5 skills (baseline pass) 2026-05-12 17:50:06 +02:00
refactor optimize refactor: round 1 — D3 fallback + D1 triggers 2026-05-12 17:55:39 +02:00
seo refactor(skills): compress 8 SKILL.md descriptions per writing-skills spec 2026-05-11 16:09:21 +02:00
ship-feature refactor(skills): compress 8 SKILL.md descriptions per writing-skills spec 2026-05-11 16:09:21 +02:00
skills-perso optimize skills-perso + commit-change: round 1 — D3 edge cases 2026-05-12 17:59:22 +02:00
status optimize status: round 1 — D3 fallback + triggers 2026-05-12 17:53:28 +02:00
validate refactor(skills): compress 8 SKILL.md descriptions per writing-skills spec 2026-05-11 16:09:21 +02:00