Skip to content

feat(skill): add codex target subcommand for skill install - #90

Merged
benbenbang merged 1 commit into
mainfrom
feature/skill-subcommands
Oct 14, 2026
Merged

benbenbang merged 1 commit into
mainfrom
feature/skill-subcommands

Conversation

@benbenbang

Copy link
Copy Markdown
Member

This change introduces subcommand-style targets for the skill command, allowing users to pick an installation destination via jevwise skill codex, claude, or agent rather than relying solely on target flags.

New Codex target support:

  • Added a new codex target that installs under .agents/skills, matching the official Codex project skill location, distinct from the legacy singular .agent/skills used by the generic agent target.
  • Registered codex, claude, and agent as subcommands that share the parent's args and run logic, with target flags moved to persistent flags so they apply across subcommands.
  • Extended the install validation to accept .agents alongside .agent and .claude.

Backward compatibility and guards:

  • Kept legacy --agent/--claude flags working but hidden from help, and rejected combining them with target subcommands.
  • Made online mode reject target subcommands in addition to the existing target and force flags.

Docs and tests:

  • Updated usage docs to document the new subcommands and the separate .agents vs .agent directories.
  • Added tests covering the new targets, force combinations, and invalid flag/subcommand pairings.

This change introduces subcommand-style targets for the `skill` command, allowing users to pick an installation destination via `jevwise skill codex`, `claude`, or `agent` rather than relying solely on target flags.

**New Codex target support:**
* Added a new `codex` target that installs under `.agents/skills`, matching the official Codex project skill location, distinct from the legacy singular `.agent/skills` used by the generic `agent` target.
* Registered `codex`, `claude`, and `agent` as subcommands that share the parent's args and run logic, with target flags moved to persistent flags so they apply across subcommands.
* Extended the install validation to accept `.agents` alongside `.agent` and `.claude`.

**Backward compatibility and guards:**
* Kept legacy `--agent`/`--claude` flags working but hidden from help, and rejected combining them with target subcommands.
* Made online mode reject target subcommands in addition to the existing target and force flags.

**Docs and tests:**
* Updated usage docs to document the new subcommands and the separate `.agents` vs `.agent` directories.
* Added tests covering the new targets, force combinations, and invalid flag/subcommand pairings.
@benbenbang
benbenbang enabled auto-merge (squash) October 14, 2026 02:52
@github-actions github-actions Bot added documentation Improvements or additions to documentation triage labels Oct 14, 2026
@benbenbang
benbenbang merged commit 4d94b37 into main Oct 14, 2026
5 checks passed
@benbenbang
benbenbang deleted the feature/skill-subcommands branch October 14, 2026 02:54
@ptah-bw-technical-app

Copy link
Copy Markdown

🎉 This PR is included in version 1.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation released triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant