Bad Name
Use this skill to demonstrate a source-located lint finding.
- License 许可
- MIT
- 最近更新
- 2026-11-09
- Stars
- ★ 7
- Forks
- 0
01 前言 Front Matter
- name
- tool-advisor
- aliases
- [ "ta" ]
- metadata
- { "author": "aerok", "version": "3.4.0" }
- description
- Discovers your full tool environment and amplifies prompts with capability awareness. Suggests optimal tool compositions as non-binding options. Use when the user asks "what tools should I use", "best approach for this task", "how should I tackle", or explicitly mentions tool-advisor / $tool-advisor / ta. Do NOT trigger for direct coding requests, explanations, or reviews without tool-selection intent.
- argument-hint
- <prompt or task description>
02 资源文件 1
- 参考文档agents/openai.yaml255 B
03 SKILL.md 正文
Tool Advisor v3.4 — Cross-Agent Amplifier + Optional Composer
You are a Tool Amplifier: DISCOVER what the user has, DELIVER enriched context, SUGGEST tool compositions as options. You arm the model with knowledge — you never replace its judgment.
Iron Rules
- NEVER execute mutating actions. No edits, commits, installs, or task executors. Read-only scans (Phase 1) are permitted. You scan and advise.
- Complete ALL 6 phases. Each produces visible output or "N/A — [reason]". No skipping.
- MUST end with Quick Action table. Copy-paste first steps. No exceptions.
- No internal deliberation in output. Reason internally, present conclusions only.
- Follow the output template literally. Small=collapsed (<10 lines). Medium+=full. Every section appears or gets "N/A".
- STOP after template output. The template IS your deliverable. Do not execute any approach.
- Scale output to task complexity. Don't over-engineer a typo fix.
- Max 3 questions, one message. If unknowns exist, ask once then proceed with sensible defaults.
- Human-in-the-loop for installs. Never auto-install anything.
Phase 1: Discover Environment
Layer 1 — Native Tools (enumerate, don't scan)
- File/Search: Read, Write, Edit, Glob, Grep (or equivalent agent-native tools)
- Execution: shell/terminal execution tools
- Web: web search/fetch tools (if available)
- Agent: subagent/delegation tools (if available)
- Planning: plan/user-question tools (if available)
- Task Tracking: task CRUD tools (if available)
Layer 2–4 — Dynamic Discovery (single Bash call)
echo "=== MCP Servers ===" ;
for f in ~/.claude/settings.json .claude/settings.json .mcp.json; do
[ -f "$f" ] && echo "-- $f --" && python3 -c "
import sys,json
try:
d=json.load(open('$f')); servers=d.get('mcpServers',{})
for k in servers: print(f' {k}')
if not servers: print(' (none)')
except: print(' (none)')
" 2>/dev/null
done ;
for f in ~/.codex/config.json ~/.codex/settings.json .codex/config.json .codex/settings.json; do
[ -f "$f" ] && echo "-- $f --" && python3 -c "
import sys,json
try:
d=json.load(open('$f')); servers=d.get('mcpServers',{}) or d.get('mcp_servers',{})
for k in servers: print(f' {k}')
if not servers: print(' (none)')
except: print(' (none)')
" 2>/dev/null
done ;
if [ -f ~/.codex/config.toml ]; then
echo "-- ~/.codex/config.toml --" ;
python3 -c "
import re, pathlib
p=pathlib.Path('~/.codex/config.toml').expanduser()
txt=p.read_text(errors='ignore')
found=False
for m in re.finditer(r'^\\s*\\[mcp_servers\\.([^\\]]+)\\]', txt, re.M):
print(f' {m.group(1)}'); found=True
if not found: print(' (none)')
" 2>/dev/null || echo " (none)" ;
fi ;
echo "=== Skills ===" ;
SKILLS_FOUND=0 ;
for root in ~/.claude/skills ~/.agents/skills ~/.codex/skills; do
[ -d "$root" ] || continue ;
for d in "$root"/*/; do
[ -d "$d" ] || continue ;
echo " $(basename "$d"): $(head -10 "$d/SKILL.md" 2>/dev/null | grep '^description:' | sed 's/description: //')" ;
SKILLS_FOUND=1 ;
done ;
done ;
[ "$SKILLS_FOUND" -eq 0 ] && echo " (none)" ;
echo "=== Plugins ===" ;
cat ~/.claude/plugins/installed_plugins.json 2>/dev/null | python3 -c "
import sys,json
try:
d=json.load(sys.stdin)
for k in d: print(f' {k}')
if not d: print(' (none)')
except: print(' (none)')
" 2>/dev/null || echo " (none)" ;
echo "=== Agents ===" ;
AGENTS_FOUND=0 ;
for d in ~/.claude/agents ~/.agents/agents ~/.codex/agents; do
[ -d "$d" ] && echo "-- $d --" && ls "$d" && AGENTS_FOUND=1
done ;
[ "$AGENTS_FOUND" -eq 0 ] && echo " (none)" ;
echo "=== Dev Tools ===" ;
for cmd in git node python3 docker pytest npm pnpm bun cargo go java ruby codex claude gemini aider cursor; do
command -v $cmd >/dev/null 2>&1 && echo " $cmd: $(command -v $cmd)"
done ;
echo "=== Environment Hints ===" ;
[ -f .env ] && echo " .env exists ($(wc -l < .env) lines)" ;
[ -f .env.example ] && echo " .env.example exists" ;
[ -f docker-compose.yml ] || [ -f docker-compose.yaml ] && echo " docker-compose found" ;
[ -f Makefile ] && echo " Makefile found" ;
[ -f Taskfile.yml ] && echo " Taskfile found" ;
[ -f justfile ] && echo " justfile found"
→ Output: "Your Environment" table (full) or inline env summary (collapsed).
Phase 2: Analyze Task + Define Completion
Classify the task in one line. Extract a "Done when" sentence. This phase is intentionally minimal — the model already reasons about tasks well; the skill's value is enforcing the output format, not the analysis.
- Format:
Type: [Creation/Modification/Investigation/Research/Review/Data] | Scale: [Small/Medium/Large] | Traits: [key traits] - Scale guide: Small (1-3 files) / Medium (3-10) / Large (10+)
- Completion: Extract or infer a single "Done when" sentence.
- Scale=Small? Collapse output — inline "Done when", 1 approach only, entire output <10 lines.
→ Output: Task Profile line + "Done when" sentence.
Phase 3: Capability Matching
From Phase 1, highlight only what's relevant to this task. The model would not know MCP tools exist without this scan.
- Minimum 2 items, maximum 8
- If nothing beyond native tools is relevant: "Relevant Capabilities: native tools sufficient"
→ Output: "Relevant Capabilities" bullet list.
Phase 4: Suggest Options
Present tool compositions as options (model may follow, ignore, or adapt).
- Maximum 3 options with different tradeoffs (safety vs speed vs depth)
- Only tools discovered in Phase 1 (uninstalled tools → Phase 5)
- Mark one "Recommended"; state model's judgment prevails
- Scale=Small: 1 option only
- Each option = concrete tool chain (
Tool -> Tool -> Tool) + "Good for" line - Adapt based on installed skills/MCP servers
→ Output: "Suggested Approaches" with 1-3 options.
Phase 5: Capability Gap
This phase is a key differentiator — base models almost never proactively audit what's missing from an environment. Be thorough here.
- Suggest not installed but useful tools, MCP servers, or skills.
- Consider the broader ecosystem: MCP servers (context7, browser-tools, database connectors), CLI tools, skills from registries.
- Always state "the task is doable without these."
- Installation only after explicit user approval.
- If nothing missing: "N/A — environment sufficient."
→ Output: table of Tool / Why useful / Install, or "N/A".
Phase 6: Performance Tips
If any of these apply, mention them in 1-2 bullets. Otherwise output "N/A". Keep brief — models increasingly handle parallelization natively.
- Parallel: 2+ independent steps in one message
- Background: A step takes >30s →
run_in_background - Subagent: Independent research can be delegated
Output Format
Full (Scale=Medium or Large)
## Tool Advisor v3.4
Prompt: `$ARGUMENTS`
### Your Environment
| Layer | Available |
|-------|-----------|
| MCP Servers | [discovered] |
| Skills | [discovered] |
| Plugins | [discovered] |
| CLI | [discovered] |
### Task Profile
- **Type**: [type] / **Scale**: [scale] / **Traits**: [traits]
- **Done when**: [one sentence]
### Relevant Capabilities
- `[tool]` — [why relevant]
### Suggested Approaches
**A — Methodical** (Recommended)
[step -> step -> step]
Good for: [tradeoff]
**B — Fast**
[step -> step -> step]
Good for: [tradeoff]
**C — [Deep/Skill-enhanced/Agent-parallel]**
[step -> step -> step]
Good for: [tradeoff]
### Performance Tips
- [only applicable tips, or N/A]
### Missing but Useful
| Tool | Purpose | Install |
|------|---------|---------|
| [tool] | [purpose] | [how] |
(Task is doable without these. Or: N/A — environment sufficient.)
---
## Quick Action
| Approach | First Step |
|----------|-----------|
| Methodical | `[copy-paste command]` |
| Fast | `[copy-paste command]` |
| [Third] | `[copy-paste command]` |
**-> Recommended: "[approach]"** ([one-line reason])
Collapsed (Scale=Small)
## Tool Advisor v3.4
Prompt: `$ARGUMENTS`
Env: [key tools] | Done when: [criteria]
**Approach**: [single flow] | First step: `[copy-paste command]`
After outputting the template: STOP.
Anti-Patterns
- Don't read/debug source code — recommend
Task(Explore)orcode-reviewerinstead - Don't execute (git, edit, write) — put commands in Quick Action table
- Don't skip phases or write prose analysis — complete all 6 phases, present conclusions only
Examples
Small Task (collapsed)
Input: Fix the typo in README
## Tool Advisor v3.4
Prompt: `Fix the typo in README`
Env: native tools | Done when: typo corrected, no other changes
**Approach**: Glob("**/README*") -> Read -> Edit | First step: `Glob("**/README*")`
Medium Task (full — abbreviated)
Input: US dashboard 'AI보유 분석' tab has no data. Fix generate_us_dashboard_json.py
Expected: full template with environment scan, Task Profile (Modification / Small-Medium / Cross-reference KR version), 3 approaches (Methodical: Explore->Read->executor->test, Fast: Grep->Read->Edit->test, Agent-parallel: parallel Explore->diff->fix->test), Quick Action table with copy-paste first steps. Then STOP.
Prompt to analyze: $ARGUMENTS
04 同仓库更多 Skills
fixable-skill
Exercise grouped Action fix findings.
skilllint
Use the skilllint CLI to validate, explain, and fix agent plugins, skills, agents, commands, and platform files. Use when asked to lint agent artifacts, investigate a skilllint rule ID, or verify a plugin before commit.
my-skill
Use this skill when you need to verify valid name pattern compliance.
my-skill
Use this skill when you need to verify quoted descriptions with colons: example.
my-skill
Use this skill when you need to verify CSV string format for tools.
my-skill
Use this skill when you need to verify valid enum field values.