agentleFS
anyoneandersonanyoneanderson/agent-skills/skills/skill-suggest/SKILL.md

skill-suggest

Skill3 starsChanged 9 days agoMITView on GitHub

Auto-detect project tech stack and suggest optimal skills from skills.sh registry.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 4 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Turborepo / npm workspaces / yarn workspaces: Read workspaces from root package.json (glob patterns like apps/*, packages/*)

    line 52
  2. Very specific:

    pnpm workspaces: Read packages from pnpm-workspace.yaml

    line 53
  3. Very specific:

    Nx: Read projects from nx.json, scan directories listed in workspace.json, or recursively find project.json files and use their parent …

    line 54
  4. Very specific:

    Lerna: Read packages from lerna.json

    line 55
  5. Very specific:

    If the same technology is found in multiple workspaces, deduplicate (list it once).

    line 90
  6. Distinctive:

    If the total number of queries exceeds 10, prioritize: frameworks > libraries > infra.

    line 101
  7. Very specific:

    Read skills-lock.json (if exists) — format is a JSON object with skills key:

    line 111
  8. Distinctive:

    If a single query fails (non-200 response), log a warning and skip that query.

    line 139
  9. Very specific:

    If ALL queries fail, stop and report: "Failed to reach skills.sh API." / "skills.sh API に接続できませんでした。"

    line 140
  10. Very specific:

    4a. Remove duplicates: If the same skillId appears from multiple queries, keep the entry with the highest installs.

    line 144
  11. Distinctive:

    4d. Set default selection: Only Tier 1 skills (10K+ installs) are "default selected".

    line 157
  12. Very specific:

    If the user wants to select specific skills, they can specify by number (e.g., "1,3,5") in a follow-up message.

    line 210
  13. Distinctive:

    If agent detection failed, fall back to:

    line 229

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

skill-suggest — Auto-Suggest Best Practice Skills

Analyze the project tech stack and suggest optimal skills from the skills.sh registry.

Language Rules

  1. Auto-detect input language → output in the same language
  2. Japanese input → Japanese output, use references/tech-detection.ja.md
  3. English input → English output, use references/tech-detection.md
  4. Explicit override takes priority (e.g., "in English", "日本語で")

Options

OptionDescription
--dry-runShow suggestion report only, skip installation

Execution Flow

Step 1: Detect Tech Stack

1a. Check for monorepo

First, check if the repository is a monorepo by looking for these indicators at the root:

IndicatorMonorepo Tool
turbo.jsonTurborepo
nx.jsonNx
pnpm-workspace.yamlpnpm workspaces
lerna.jsonLerna
package.json with "workspaces" fieldnpm/yarn workspaces

1b. Collect manifest files

If monorepo detected: Find all workspace directories and scan each for manifest files. Always scan the repository root manifests too, because a monorepo may keep shared or primary dependencies at the root. Use the workspace tool's config to locate packages:

  • Turborepo / npm workspaces / yarn workspaces: Read workspaces from root package.json (glob patterns like apps/*, packages/*)
  • pnpm workspaces: Read packages from pnpm-workspace.yaml
  • Nx: Read projects from nx.json, scan directories listed in workspace.json, or recursively find project.json files and use their parent directories as workspace roots
  • Lerna: Read packages from lerna.json

For each workspace directory, check for the manifest files listed below. Also check the repository root for the same manifest files plus shared configs (Dockerfile, *.tf, tailwind.config.*).

If not a monorepo: Scan the repository root only.

Manifest files to check:

package.json, Cargo.toml, go.mod, requirements.txt, pyproject.toml,
Pipfile, Gemfile, pom.xml, build.gradle*, composer.json,
Dockerfile, docker-compose.yml, docker-compose.yaml,
*.tf, tsconfig.json, tailwind.config.*, .eslintrc*, components.json

1c. Extract dependencies

For each detected manifest, read it and extract dependencies:

  • package.json → parse dependencies and devDependencies keys
  • Cargo.toml → parse [dependencies] section
  • go.mod → parse require block
  • requirements.txt → each line is a package name
  • pyproject.toml → parse [project.dependencies] or [tool.poetry.dependencies]
  • Dockerfile → extract FROM image name (language hint only)

1d. Classify and deduplicate

Map packages to technologies using the language-appropriate reference file from references/tech-detection.md or references/tech-detection.ja.md. Classify each into:

  • language (e.g., TypeScript, Python)
  • framework (e.g., Next.js, Django)
  • library (e.g., Prisma, Tailwind CSS, shadcn/ui)
  • infra (e.g., Docker, Terraform)

If the same technology is found in multiple workspaces, deduplicate (list it once). For the report, note the source workspace if monorepo (e.g., "Next.js 15 (apps/web)").

1e. Generate search queries

Per the rules in references/tech-detection.md:

  • Frameworks → "<name> best practices"
  • Major libraries → "<name>" (short query)
  • Infrastructure → "<name> best practices"
  • Languages → only if no framework detected for that language

If the total number of queries exceeds 10, prioritize: frameworks > libraries > infra.

Step 2: Check Installed Skills

Detect already-installed skills to avoid duplicate suggestions.

Scan these locations:

  1. List directory names under .agents/skills/ (if exists)
  2. List directory names under .claude/skills/ (if exists)
  3. Read skills-lock.json (if exists) — format is a JSON object with skills key:
    { "version": 1, "skills": { "<skillId>": { "source": "<owner/repo>", ... }, ... } }
    Extract each key as skillId and its .source value.

Build an installed set of skillId values (directory names). If skills-lock.json exists, also keep source + skillId pairs for exact matching.

Step 3: Search skills.sh API

For each search query from Step 1, make an HTTP request:

GET https://skills.sh/api/search?q={query}&limit=6

Response format:

{
  "skills": [
    { "id": "owner/repo/skill-name", "skillId": "skill-name", "name": "skill-name", "installs": 12345, "source": "owner/repo" }
  ]
}

Collect all results from all queries into a combined list.

Error handling:

  • If a single query fails (non-200 response), log a warning and skip that query. Continue with remaining queries.
  • If ALL queries fail, stop and report: "Failed to reach skills.sh API." / "skills.sh API に接続できませんでした。"

Step 4: Score, Rank, and Filter

4a. Remove duplicates: If the same skillId appears from multiple queries, keep the entry with the highest installs. If the same purpose skill exists from multiple sources, keep the one with the highest installs.

4b. Assign tiers based on install count only:

ConditionTier
installs >= 10,000Tier 1 (high adoption)
installs >= 1,000Tier 2 (moderate adoption)
installs >= 100Tier 3 (emerging)
installs < 100Exclude (do not suggest)

4c. Exclude installed: Cross-reference with Step 2 installed set. Mark matching skills as "already installed" instead of suggesting them.

4d. Set default selection: Only Tier 1 skills (10K+ installs) are "default selected". Tier 2 and Tier 3 are opt-in (user must explicitly choose them). This is a supply-chain safety measure — high install count serves as a community-verified trust signal.

Step 5: Present Report

Display the results in the user's language (per Language Rules).

Report format:

## Detected Tech Stack / 検出された技術スタック

| Category | Technologies |
|---|---|
| Framework | Next.js 15, React 19 |
| Library | Prisma 6, Tailwind CSS, shadcn/ui |
| Infra | Docker |

## Recommended Skills / おすすめスキル

### Tier 1 (10K+ installs, default selected / デフォルト選択)

| # | Skill | Installs | Reason |
|---|---|---|---|
| 1 | `vercel-labs/agent-skills` → `vercel-react-best-practices` | 253K | Uses React 19 |
| 2 | `shadcn/ui` → `shadcn` | 45.8K | Uses shadcn/ui |

### Tier 2 (1K+ installs, opt-in / 選択式)

| # | Skill | Installs | Reason |
|---|---|---|---|
| 3 | `sickn33/antigravity-awesome-skills` → `prisma-expert` | 2.9K | Uses Prisma 6 |

### Tier 3 (opt-in / 選択式)
...

(Already installed / インストール済み: typescript-best-practices, docker-best-practices)

Format installs with K/M suffixes (e.g., 253366 → 253K, 1200 → 1.2K).

If --dry-run: Display the report and stop. Do not ask about installation.

Otherwise, ask the user:

AskUserQuestion:
  question: "How would you like to proceed?" / "どうしますか?"
  options:
    - "Install Tier 1 only (recommended)" / "Tier 1 のみインストール(推奨)"
    - "Install all suggested skills" / "提案されたスキルを全てインストール"
    - "Skip installation" / "インストールをスキップ"

If the user wants to select specific skills, they can specify by number (e.g., "1,3,5") in a follow-up message. Accept comma-separated numbers matching the # column.

Step 6: Install Selected Skills

6a. Detect current agent to pass --agent option:

Detection MethodAgent Name
CLAUDE_CODE env var set, or parent process contains claudeclaude-code
Parent process contains codexcodex
Parent process contains cursorcursor
Cannot determineOmit --agent flag (install to all agents)

6b. Install each selected skill:

npx skills add <source> --skill <skillId> -a <detected-agent> -y

If agent detection failed, fall back to:

npx skills add <source> --skill <skillId> -y

Execute installations sequentially. If one skill fails, log the error and continue with the remaining skills.

6c. Display results:

## Install Results / インストール結果

| Skill | Status |
|---|---|
| vercel-react-best-practices | ✓ Installed / インストール完了 |
| shadcn | ✓ Installed / インストール完了 |
| prisma-expert | ✗ Failed / 失敗 (error detail) |

Error Handling

SituationResponse
No manifest files found"No manifest files detected." / "マニフェストファイルが見つかりません。" → stop
All API queries fail"Failed to reach skills.sh API." / "skills.sh API に接続できませんでした。" → stop
Some API queries failWarning per failed query, continue with successful results
No skills found after filtering"No new skills to suggest." / "提案できる新しいスキルはありません。" → stop
npx/npm not available"Node.js/npm is required for installation." / "インストールにはNode.js/npmが必要です。" → stop
Individual skill install failsLog error, continue with remaining skills

Post-Completion Actions

After installation completes:

AskUserQuestion:
  question: "What's next?" / "次のアクションは?"
  options:
    - "Done" / "完了"
    - "Run again to check for more" / "もう一度実行して追加を確認"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.