Repository navigation
refactor: merge language-variant skills into one canonical skill - #216
SomSamantray wants to merge 6 commits into
Conversation
Locale slash commands now invoke planning-with-files:planning-with-files directly with an inline language instruction, instead of a dedicated -ar/-de/-es/-zh/-zht skill. Prepares for removing the duplicate skills in the next commit.
Removes skills/planning-with-files-{ar,de,es,zh,zht}/. The canonical
skill now covers every language via the repointed /plan-* commands
(prior commit); these variants had also drifted out of feature parity
with the canonical skill (missing attest-plan, gate-stop, ledger, and
plan-doctor scripts, and the v3.2.0 Windows UTF-8 fix), so removing
them eliminates that drift class entirely rather than requiring an
ongoing backport.
plugin.json's description named Arabic/German/Spanish/Chinese as if they were separate skills, which is no longer true after removing the per-language skill directories. marketplace.json never made that claim, so it needs no change.
Removes the per-language install commands, the -ar/-de/-es/-zh/-zht skill-id mentions, and the AGENTS.md version-bump table rows for the skills that no longer exist. Language support is now documented as the /plan-* commands routing through one canonical skill.
scripts/bump-version.py, tests/test_skill_md_version_parity.py, and
tests/test_skill_hook_dispatch_parity.py explicitly enumerated the 5
removed skills/planning-with-files-{ar,de,es,zh,zht}/ paths.
tests/test_stop_hook_dispatch.py hardcoded the same 5 SKILL.md paths
in ALL_STOP_SKILL_FILES with no existence guard, so it would have
raised FileNotFoundError once those directories were gone. Full suite
now green: 411 passed, 11 skipped.
AGENTS.md's version-bump table still listed 15 rows (including .kiro and .pi/SKILL.md, both explicitly non-bumped per the note beneath the table) after the count was corrected to 14; swapped .pi's row for its actually-bumped package.json and dropped .kiro. Also fixed leftover 'eleven variants' / 'language variants' docstrings and comments in the hook-dispatch and stop-hook tests that the structural edits missed.
|
@SomSamantray Not merging this one, and the reason is not the quality of the work. The audit in here is the most useful thing anyone has sent this repo in a while, and v3.10.0 acts on all of it. Everything I could check from your diff held up. The five variants really were missing Two things decided against the deletion itself. The install numbers, and what deletion actually does to them. The five variants carry 39.8K of the project's 89.3K installs on skills.sh. I checked what removing the directories would do there by reading the A behavior risk in the command rewrite. What shipped instead in v3.10.0, from your findings:
Your two AGENTS.md corrections were right as well, dropping the You are in CONTRIBUTORS.md for the audit. #130 stays open with the install numbers attached, since the consolidation question is real even though this particular answer to it is not the one this repo can take. |
|
@SomSamantray Following up because this thread is now closed properly. #130 shipped in v3.11.0, and your audit is part of why it could. The route that worked was moving the five variants one directory deeper rather than deleting them, so the plugin scan stops registering them while every install command keeps resolving. Your work is what made that safe to attempt: you proved the drift #130 predicted, named the twelve missing scripts and the missing Windows UTF-8 fix exactly, and showed the sync tooling covered only three dispatch targets. All of that shipped as v3.10.0. Had it not, this release would have moved five directories that were quietly a subset install. You are credited in the v3.11.0 release notes alongside everyone else who pushed on this. https://github.com/OthmanAdi/planning-with-files/releases/tag/v3.11.0 |
What changed
Removed
skills/planning-with-files-{ar,de,es,zh,zht}/and kept a single canonical skill./plan-ar,/plan-de,/plan-es,/plan-zh, and/plan-zhtare unaffected — each now invokesplanning-with-files:planning-with-filesdirectly with an inline instruction to write the planning files and respond in that language, instead of invoking a dedicated per-language skill.scripts/bump-version.pyand the three tests that hardcoded the 5 removed paths (test_skill_md_version_parity.py,test_skill_hook_dispatch_parity.py,test_stop_hook_dispatch.py) were updated to match, the plugin/marketplace description now describes language support via the commands rather than separate skills, and README/AGENTS.md no longer reference the removed skill ids. Version bumped to 3.10.0 with a CHANGELOG entry documenting the removal as a breaking change.Why it changed
Issue #130 pointed out that the 6 skills only ever differed in prose — the assistant already responds in the user's language regardless of the skill's source language, so the 5 extra skills were pure duplication: 5 more descriptions injected into every session's system prompt, and one more place any logic change had to be replicated.
Checking that claim against the current
v3.9.0tree found the cost had grown worse than described, not milder. The 5 variants had quietly drifted out of feature parity with the canonical skill:skills/planning-with-files-ar/scripts/session-catchup.py(and the other 4 variants) never got theconfigure_utf8_stdio()fix from v3.2.0 for the Windows encoding bug where non-ASCII session content crashed the hook silently — the same bug discussed in For multi-step / complex tasks, how should this skill be used properly? #19, still live for non-English users on Windows.attest-plan,gate-stop,ledger-append,ledger-summary.ps1,phase-status,plan-doctor,resolve-plan-dir.ps1,set-active-plan) — the completion gate, ledger, and plan-doctor features never reached non-English users at all.scripts/sync-ide-folders.py, the tool that keeps the IDE mirrors (.codex/,.cursor/, etc.) in parity with the canonical skill, was never extended to cover the 5 language directories, so this drift was structural, not a one-off oversight — every future feature would keep missing them.Consolidating removes the duplication that makes that drift possible, rather than trying to backport the missing scripts and hope the sync tooling gets extended to catch the next one.
A few decisions worth flagging for review:
localeparameter (issue's Option B/C) —SKILL.mdhas no such mechanism in this plugin format, and every hook-emitted diagnostic string is already English-only and byte-identical across the canonical skill and every "translated" variant today (verified by diffinginject-plan.shbetween canonical and-ar: 0 lines different). There's no genuine locale-specific runtime text left to parameterize./plan-aretc.) for a one-line diff per command file, rather than a user-facing removal.3.9.0,2.38.1), not a redirect stub.How I tested it
python -m pytest tests/ -qpasses clean: 411 passed, 11 skipped.python scripts/bump-version.py 3.10.0 --dry-runconfirmed the trimmed 14-entry parity set resolves with no missing-file errors before I ran the real bump. Manually re-verified withgrepthat no live reference to a removed skill id remains outsideCHANGELOG.md's historical entries.I don't have a way to invoke
/plan-aretc. end-to-end from this environment (that requires a live Claude Code session), so the one thing I can't verify directly is that each rewired command still produces output in its target language — I re-read all 5 command files and the instruction line is present and unchanged in intent from before, but a maintainer spot-check of at least one non-English command before merge would be good given this is the change's core user-facing guarantee.Known limitations
python scripts/bump-version.pyreportsMISSING: clawhub-upload/SKILL.mdon a fresh clone — pre-existing behavior (that directory is gitignored publish staging), unrelated to this change and not touched here.Closes #130.