discover-a-skill
0
总安装量
1
周安装量
安装命令
npx skills add https://github.com/avibe-bot/askill --skill discover-a-skill
Agent 安装分布
amp
1
cline
1
opencode
1
cursor
1
continue
1
kimi-cli
1
Skill 文档
Discover a Skill
Use this skill when you need to operate askill reliably as an AI agent: discover skills, install them, run commands, maintain updates, and troubleshoot install/runtime issues.
Core Workflow
When a user asks for a capability that might be implemented as a skill:
- Discover candidates:
askill find <query> - Inspect details:
askill info <slug> - Install:
askill add <source> -y - Read installed instructions:
<skill-dir>/SKILL.md - Execute commands if defined:
askill run <skill>:<command> [args]
Always prefer reading the installed SKILL.md before improvising.
Source Formats You Should Use
Use any supported install source:
@author/skill-name– published skill slug from askill registryowner/repo– discover and install from a GitHub repoowner/repo@skill-name– install one named skillowner/repo/path/to/skill– install by explicit folder pathgh:owner/repo@skill-name– explicit GitHub-prefixed formathttps://github.com/owner/repo– full GitHub URL./local/path– local skill directory for testing
Notes:
askill install,askill add, andaskill iare equivalent- Prefer explicit, non-interactive calls (
-y) in agent workflows
Installation Patterns
Non-interactive (agent-safe)
# Published skill slug
askill add @johndoe/awesome-tool -y
# Indexed GitHub skill slug
askill add gh:owner/repo@skill-name -y
Install all discovered skills from a repo
askill add gh:owner/repo --all -y
Preview before install
askill add gh:owner/repo --list
Target specific agents
askill add gh:owner/repo@skill-name -a claude-code opencode -y
Global install
askill add gh:owner/repo@skill-name -g -y
Copy mode (avoid symlink)
askill add gh:owner/repo@skill-name --copy -y
Where Skills Are Installed
askill installs to canonical directories and links into agent-specific paths.
- Project canonical:
.agents/skills/<skill>/ - Global canonical:
~/.agents/skills/<skill>/ - Agent paths:
.claude/skills/,.opencode/skills/,.cursor/skills/, etc.
State and metadata:
- Lock file:
~/.agents/.skill-lock.json - Credentials:
~/.askill/credentials.json - Preferences:
~/.config/askill/config.json
Running Skill Commands
If the skill defines commands in frontmatter, run:
askill run <skill>:<command> [args...]
Examples:
askill run memory:save --key preference --value "TypeScript"
askill run memory:recall --key preference
askill run my-skill:_setup
Rules:
- Read available commands from the installed
SKILL.md - If command fails from missing dependencies, try
_setupfirst - Pass user arguments through after the command target
Maintenance Commands
Use these routinely:
askill list– show installed skillsaskill check– check update availabilityaskill update– update tracked GitHub-installed skillsaskill remove <skill>– uninstallaskill validate [path]– validate SKILL.md format
Submit vs Publish
Treat these as different workflows:
askill submit <github-url>: request indexing (and slug-driven publish pipelines)askill publish [path]: local publish, requires login token, author = logged-in useraskill publish --github <blob-url>: GitHub publish, no login required, author = repo owner
Publishing requires frontmatter slug and version:
---
name: my-skill
slug: my-skill
version: 1.0.0
---
Troubleshooting Checklist
When something fails, check in this order:
- Source is valid and reachable (
gh:slug, URL, or local path) - Skill exists and parsed correctly (
askill add ... --list,askill info ...) - Skill actually defines the command (
commands:in installedSKILL.md) _setuphas run if runtime dependencies are needed- User is authenticated for publish (
askill whoami)
Agent Behavior Guidelines
- Prefer deterministic commands with
-yfor automation - Do not assume command names; read installed
SKILL.md - Use
askill runinstead of running scripts by hardcoded paths - Prefer explicit agent targeting with
-awhen environment is multi-agent - Surface actionable errors and next commands when a step fails