stoneskin (Mr. Sun)

Personal homepage of Mr Sun - AI Solutions Architect, Tech Lead & AWS Cloud Specialist: resume, selected projects, and teaching archive

Skill Discovery First

Purpose

When no installed skill fits a novel task, find and adapt an existing skill before building one from scratch. Reuse keeps upstream improvements; a from-scratch copy forks maintenance.

Workflow

  1. Look at what is installed. List the skill directories: user level (your agent’s skills directory, for example ~/.claude/skills/ or ~/.agents/skills/); repo level .github/skills/ and .agents/skills/. Read the descriptions using two or three keyword angles, then read the best match’s SKILL.md before concluding nothing fits.
  2. Search the wider ecosystem if nothing installed fits. Query the skills.sh search API, which returns install counts (checked on the work PC on 2026-11-29):
    • PowerShell: Invoke-RestMethod "https://skills.sh/api/search?q=<query>&limit=10". bash: curl -s "https://skills.sh/api/search?q=<query>&limit=10".
    • Each result has id (<owner>/<repo>/<skillId>), source (<owner>/<repo>), name and installs. The page is https://skills.sh/<id>; the source repository is https://github.com/<source>.
    • Do not trust an empty npx -y skills find "<query>". On 2026-11-29 it ran a binary named add-skill and printed “No skills found” for pdf, while the API returned the pdf skill with 239,827 installs. If the CLI is empty, call the API.
    • Results vary sharply by keyword, so try several query angles. Then check awesome-skill lists, the vendor’s own repository and community libraries. Collect two to four candidates.
    • A TLS error such as UnknownIssuer behind a corporate proxy: set SSL_CERT_FILE to your organization’s root certificate; do not disable certificate checks.
  3. Apply the quality gates (Operating Rule 5) to the candidates and drop any that fail. Take the closest survivor, read its source first, then adapt it into your agent’s user-level skills directory. Record the source repository and commit you took it from, and adapt tool paths and trigger wording to your environment.
  4. Only when no candidate is adaptable, author a new skill (VS Code: Chat: New Skill; otherwise write the SKILL.md by hand: name equal to the directory name, lowercase kebab-case, description at most 1024 characters). Record which searches were run, so a later audit can see the discovery trail.
  5. When adapting someone else’s skill, keep attribution and license notes intact.

Output Contract

Operating Rules

  1. Catalog first, web second, scratch last. Do not skip to step 4 because writing feels faster.
  2. Adapt, don’t just install: rewrite tool paths, conventions and trigger wording to match this machine.
  3. One task, one skill decision: if the adapted skill covers it, stop. Do not also author a parallel from-scratch skill for the same job.
  4. Keep personal facts, secrets, credentials and task records out of adapted or authored skills; cite evidence by handle instead of copying conversations into files.
  5. Quality gates before recommending or adapting (absorbed from the find-skills playbook, 2026-10-22): prefer skills with 1K+ installs; treat under 100 installs with caution; official sources (the vendor’s own org) outrank unknown authors; a source repository under 100 stars needs its skepticism stated out loud. Presentation contract: every candidate shown to the user carries name, what it does, install count or popularity signal, source and link. A recommendation without its evidence fields is incomplete.
  6. Install only what the work needs. Every installed skill puts its description into the context of every session, so a skill that is not needed stays uninstalled.