Skip to content

skills install: --target takes an agent name, not a path - #7

Merged
fioenix merged 1 commit into
mainfrom
feat/skills-target-agent
Jun 30, 2026
Merged

skills install: --target takes an agent name, not a path#7
fioenix merged 1 commit into
mainfrom
feat/skills-target-agent

Conversation

@fioenix

@fioenix fioenix commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #6. Users know their agent CLI ("claude", "codex") but not the skill-directory path, so --target now takes the agent name and derives the directory.

  • --target accepts an agent name (claude, codex, agents, opencode, copilot, pi), all (every detected agent), or — as an escape hatch — a directory path. Unknown names error with the valid list.
  • With no --target, auto-detects: installs the single detected agent, prompts (interactive, showing name (dir)), or asks for --target (non-interactive).
  • threads skills list now reports agent names.
  • Install safety from Add threads skills install to install the skill into agent skill dirs #6 is unchanged (replace-not-merge, symlink-safe).
  • Docs, --help, and eval 8 updated.

82 tests; ruff clean; build OK. Smoke-tested: --target claude installs, unknown agent errors with the list, skills list shows agents.

🤖 Generated with Claude Code

Users know their agent ("claude", "codex") but not the skill-dir path.
--target now accepts an agent name (claude/codex/agents/opencode/copilot/pi),
'all', or — as an escape hatch — a directory path. The directory is derived
from the agent name. Unknown names error with the valid list.

- _AGENT_SKILL_DIRS maps name -> dir; _detected_agents() returns name->dir for
  set-up runtimes; _resolve_skill_targets() handles name/all/path.
- `skills list` reports agent names; the install prompt shows "name (dir)".
- Docs, --help, and eval 8 updated.

82 tests; ruff clean; build OK.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@fioenix
fioenix merged commit 906ff9d into main Jun 30, 2026
6 checks passed
@fioenix
fioenix deleted the feat/skills-target-agent branch June 30, 2026 06:47
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