| name | ai-cli-helper |
| description | View and manage configurations and skills for AI agent CLI tools (Claude Code, Opencode). Use when checking config files, listing or managing skills, viewing model settings, comparing configs across tools, or performing common config operations. |
AI CLI helper
Overview
This skill manages configuration and skills for AI agent CLI tools (Claude Code, Opencode). It understands the full config stack — from user settings through project and local scopes — and can inspect, modify, debug, synchronize, and research configuration across both tools.
Use this skill when:
- Installing, updating, or managing skills
- Inspecting or modifying configs at any scope
- Debugging config conflicts, scope issues, or skill activation failures
- Comparing or syncing settings between Claude Code and Opencode
- Researching latest upstream config options and applying them
Context
The user runs both Claude Code and Opencode, managed declaratively (e.g. via Nix, dotfiles, etc.). Both tools share agent instructions (AGENTS.md) and skills via .agents/skills/. The detailed setup for each tool is documented in the references/ directory.
Process
IMPORTANT: for skill install/remove requests where the user gives specific paths or names, go directly to the manage-skills subskill and execute. Do NOT read references, explore the codebase, or assess state first. Run the right command directly: npx skills for remote sources and local-skills.py for local filesystem sources.
For everything else:
- Inspection/debugging: read the relevant reference doc, then read config files
- Config modifications: see manage-configs subskill
- Skill operations (open-ended): see manage-skills subskill
- Research: delegate to web-research skill
- Verify results after changes
Resources
- subskills/manage-skills.md: install, update, discover, and audit skills with a hybrid flow (
npx skills for remote, local-skills.py for local)
- subskills/manage-configs.md: inspect and modify config files, rebuild workflow, scope rules
- references/opencode-config.md: Opencode config structure, config management, oh-my-opencode, agent modes
- references/vercel-skills.md:
npx skills CLI disk model, gotchas, recommended usage patterns
- references/claude-code-plugins.md: legacy plugin system reference — for diagnosing plugin conflicts and cleaning up old installs only
Guidelines
Skill management
- Use a hybrid model for skill activation:
- Remote skills (
owner/repo) -> npx skills
- Local monorepo skills (filesystem paths) ->
scripts/local-skills.py (npx add bootstrap + symlink swap)
- Never use
claude plugin install/remove/enable/disable for managing skills — the plugin system is deprecated for this purpose
- After skill changes, verify with both
npx skills list and scripts/local-skills.py list
- For development iteration on monorepo skills, prefer
scripts/local-skills.py because it symlinks instead of copying
Scope and editability
- User-level settings may be declaratively managed (e.g. via Nix). See the manage-configs subskill before editing directly.
- Project-level settings are checked into git and can be edited directly
- Local settings (
.claude/settings.local.json) are gitignored and can be edited directly
- When unsure which scope to modify, prefer project scope
Cross-tool awareness
- Claude Code and Opencode share skills via
.agents/skills/ (canonical store, managed by npx skills for remote skills and symlinks for local skills)
- Both tools reference the same AGENTS.md
- Config concepts overlap but syntax differs — always check both reference docs when comparing
- Claude Code uses
settings.json with hooks/permissions; Opencode uses opencode.json with agent modes and permission blocks
Legacy plugin conflicts
- Old plugins may still be installed from before the migration to
npx skills
- If a skill isn't loading correctly or behavior is unexpected, check for stale
enabledPlugins in settings.json and legacy entries in ~/.claude/plugins/installed_plugins.json
- Use
references/claude-code-plugins.md for the commands needed to inspect and uninstall legacy plugins
- Run
claude plugin list to check for stale plugin installs that may conflict
Research
General
- Only read reference docs when the task requires understanding config structure or debugging — not for straightforward install/remove operations
- When presenting config state, show all three layers (user -> project -> local) to make precedence clear
Appendix
Quick reference: CLI commands
npx skills list
npx skills list -g
npx skills add owner/repo --skill name -a claude-code -y
npx skills remove --skill name -y
./scripts/local-skills.py add ./path/to/my-skill -a claude-code opencode
./scripts/local-skills.py remove --skill my-skill -a claude-code opencode
./scripts/local-skills.py list
./scripts/discover-skills.py /path/to/monorepo
claude plugin list
claude plugin uninstall name@marketplace --scope project
opencode --version