Skip to content

Fix skill flag parsing and default skill install to user scope#99

Merged
MrTango merged 1 commit into
masterfrom
MrTango/skill-install-fixes
May 21, 2026
Merged

Fix skill flag parsing and default skill install to user scope#99
MrTango merged 1 commit into
masterfrom
MrTango/skill-install-fixes

Conversation

@MrTango
Copy link
Copy Markdown
Contributor

@MrTango MrTango commented May 21, 2026

Summary

  • plonecli skill install --force (and any flag placed after the install/update/status action) was rejected with No such option. The top-level CLI group is chain=True, which disables interspersed args for every subcommand, so flags after a positional argument leaked back to the parent parser. Fixed with an InterspersedCommand parser applied only to the skill command; chaining is preserved.
  • plonecli skill install|update now defaults to --scope user, installing into ~/.agents/skills/plonecli + ~/.claude/skills/plonecli instead of the current working directory. This avoids clobbering the dev checkout when run from the source repo. Use --scope project for a project-local install.

Test plan

  • uv run pytest — 75 passed, 1 pre-existing skip
  • plonecli skill install --force installs/overwrites as advertised
  • No-flag plonecli skill install lands in user home, leaves cwd untouched (verified with a throwaway HOME and a new unit test)
  • Chaining still works (e.g. skill status + a chained command)

- Allow options after the action argument for the chained skill command
  (e.g. `plonecli skill install --force`) via an InterspersedCommand parser.
- Default `plonecli skill install|update` to --scope user so it no longer
  installs into the current directory; --scope project keeps the old behavior.
@MrTango MrTango merged commit 4101996 into master May 21, 2026
6 checks passed
@MrTango MrTango deleted the MrTango/skill-install-fixes branch May 21, 2026 21:26
@MrTango MrTango restored the MrTango/skill-install-fixes branch May 21, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant