diff --git a/docs/skills.md b/docs/skills.md index 5dd125ef2..6a003e8c2 100644 --- a/docs/skills.md +++ b/docs/skills.md @@ -910,7 +910,7 @@ gstack's own templates and for any skill folder you own. `/write-skill` is not `/skillify`: `/skillify` codifies a browser scrape into a browser-skill. Adapted from [nicobailon/skill-diet](https://github.com/nicobailon/skill-diet) (MIT). The first diet, /learn, cut its template from -5,797 to 2,586 bytes. +5,797 to 2,707 bytes. ## `/test-audit` diff --git a/learn/SKILL.md b/learn/SKILL.md index 7ed5359b8..d35c1feda 100644 --- a/learn/SKILL.md +++ b/learn/SKILL.md @@ -121,7 +121,10 @@ Flag each learning that is: - **CONFLICT**: the same key appears under two types with opposing insights (within one type the latest entry already wins). For each flagged entry, unless the user already approved the action, ask: remove, keep, or update. -- Remove: delete its lines (that key and type) from `$GSTACK_STATE_ROOT/projects/$SLUG/learnings.jsonl`, where - `SLUG=$(~/.claude/skills/gstack/bin/gstack-slug --get SLUG)` and - `GSTACK_STATE_ROOT=$(~/.claude/skills/gstack/bin/gstack-paths --get GSTACK_STATE_ROOT)`. Leave every other line as it is. +- Remove: delete its lines (that key and type) from the file this prints, leaving every other line as it is: + ```bash + SLUG=$(~/.claude/skills/gstack/bin/gstack-slug --get SLUG) + GSTACK_STATE_ROOT=$(~/.claude/skills/gstack/bin/gstack-paths --get GSTACK_STATE_ROOT); : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}" + echo "$GSTACK_STATE_ROOT/projects/$SLUG/learnings.jsonl" + ``` - Update: log a corrected entry with the same key and type; the latest one wins. diff --git a/learn/SKILL.md.tmpl b/learn/SKILL.md.tmpl index ed309fe29..ea36d2d27 100644 --- a/learn/SKILL.md.tmpl +++ b/learn/SKILL.md.tmpl @@ -48,7 +48,10 @@ Flag each learning that is: - **CONFLICT**: the same key appears under two types with opposing insights (within one type the latest entry already wins). For each flagged entry, unless the user already approved the action, ask: remove, keep, or update. -- Remove: delete its lines (that key and type) from `$GSTACK_STATE_ROOT/projects/$SLUG/learnings.jsonl`, where - `SLUG=$(~/.claude/skills/gstack/bin/gstack-slug --get SLUG)` and - `GSTACK_STATE_ROOT=$(~/.claude/skills/gstack/bin/gstack-paths --get GSTACK_STATE_ROOT)`. Leave every other line as it is. +- Remove: delete its lines (that key and type) from the file this prints, leaving every other line as it is: + ```bash + SLUG=$(~/.claude/skills/gstack/bin/gstack-slug --get SLUG) + GSTACK_STATE_ROOT=$(~/.claude/skills/gstack/bin/gstack-paths --get GSTACK_STATE_ROOT); : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}" + echo "$GSTACK_STATE_ROOT/projects/$SLUG/learnings.jsonl" + ``` - Update: log a corrected entry with the same key and type; the latest one wins. diff --git a/test/fixtures/context-budget.json b/test/fixtures/context-budget.json index 6e9757697..d9192167a 100644 --- a/test/fixtures/context-budget.json +++ b/test/fixtures/context-budget.json @@ -39,7 +39,7 @@ "ios-sync": 2465, "land-and-deploy": 13585, "landing-report": 3269, - "learn": 2092, + "learn": 2124, "make-pdf": 5204, "modernize": 3772, "office-hours": 19139,