agentleFS
Cat-tjCat-tj/autoskills/SKILL.md

autoskills

Skill0 starsChanged 7 months agoMITView on GitHub

Auto-detect project tech stack and recommend/install matching AI agent skills. Scans package.json, config files, and project structure to find frameworks, languages, and infrastructure. Maps detections to OpenClaw skills, clawhub packages, and external skill sources. Use when starting work on a new project, onboarding to a codebase, or checking if better skills are available.

  • Installs packages

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. B143KC47/autoskills★ 1same name
    2. GstMirabal/Token-Optimized-Agent-Pipeline★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    All mappings live in scripts/skills-map.json.

    line 77
  2. Very specific:

    Add your tech under technologies with the three skill arrays

    line 101
  3. Very specific:

    If your tech needs new detection logic, edit scripts/detect.sh — see references/detection-rules.md for details

    line 103
  4. Distinctive:

    When an agent loads this skill, it should:

    line 156
  5. Distinctive:

    Run detection on the project directory the user is working on

    line 158
  6. Very specific:

    No Node.js required for core detection and recommendation.

    line 177

≈ “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

autoskills

Auto-detect a project's tech stack and recommend matching AI agent skills for OpenClaw.

Inspired by midudev/autoskills, adapted for the OpenClaw ecosystem.

Quick Start

Scan a project directory

# Detect tech stack
bash ~/.openclaw/workspace/skills/autoskills/scripts/detect.sh /path/to/project

# Detect + get recommendations in one step
bash ~/.openclaw/workspace/skills/autoskills/scripts/recommend.sh --detect /path/to/project

# Or pipe them
bash ~/.openclaw/workspace/skills/autoskills/scripts/detect.sh /path/to/project \
  | bash ~/.openclaw/workspace/skills/autoskills/scripts/recommend.sh

Install a recommended skill

# From ClawHub
bash ~/.openclaw/workspace/skills/autoskills/scripts/install.sh nextjs-best-practices --from clawhub

# From skills.sh (shows instructions)
bash ~/.openclaw/workspace/skills/autoskills/scripts/install.sh vercel-labs/next-skills/next-best-practices --from skills.sh

How It Works

1. Detection (detect.sh)

Scans a project directory for:

  • Languages — JavaScript, TypeScript, Python, Rust, Go, PHP, Ruby, Java, Dart
  • Frameworks — React, Next.js, Vue, Nuxt, Svelte, Angular, Astro, Express, Fastify, Hono, NestJS, Tailwind, shadcn/ui, Prisma, Drizzle, Supabase, Stripe, Playwright, Vitest, Jest, Flutter
  • Infrastructure — Docker, Kubernetes, Terraform, GitHub Actions, Vercel, Cloudflare, GitLab CI, CircleCI
  • Package Manager — npm, yarn, pnpm, bun

Detection methods:

  1. File presence — Dockerfile, tsconfig.json, Cargo.toml, etc.
  2. package.json dependencies — reads both dependencies and devDependencies
  3. Directory structure — .github/workflows/, k8s/, src/components/
  4. File content — YAML files checked for Kubernetes manifests, pubspec.yaml for Flutter

Also classifies the project as frontend, backend, or fullstack based on detected frameworks and directory heuristics.

2. Recommendation (recommend.sh)

Maps each detected technology to three tiers of skills:

TierSourceDescription
installedOpenClaw workspaceSkills already in ~/.openclaw/workspace/skills/
availableClawHubInstallable via clawhub install <name>
externalskills.sh / GitHubExternal skill files that can be imported

Also checks combo detections — when multiple techs are present together, recommends specialized combo skills (e.g., nextjs + tailwind + shadcn triggers tailwind-v4-shadcn recommendations).

3. Installation (install.sh)

Installs skills from supported sources:

  • clawhub — Uses the clawhub CLI (falls back to npx clawhub)
  • skills.sh — Prints instructions to manually import or use the skill-absorber skill

The Skills Map

All mappings live in scripts/skills-map.json. Structure:

{
  "technologies": {
    "tech-name": {
      "openclaw": ["local-skill-name"],
      "clawhub": ["clawhub-package-name"],
      "external": ["github-owner/repo/skill-path"]
    }
  },
  "combos": {
    "tech1+tech2+tech3": {
      "openclaw": [],
      "clawhub": [],
      "external": ["owner/repo/combo-skill"]
    }
  }
}

Adding New Mappings

  1. Edit scripts/skills-map.json
  2. Add your tech under technologies with the three skill arrays
  3. Optionally add combo entries under combos (techs joined with +)
  4. If your tech needs new detection logic, edit scripts/detect.sh — see references/detection-rules.md for details

Currently Mapped Technologies

Languages: javascript, typescript, python, rust, go, php, ruby, java, dart
Frameworks: react, nextjs, vue, nuxt, svelte, angular, astro, express, fastify, hono, nestjs, tailwind, shadcn, prisma, drizzle, supabase, stripe, playwright, vitest, jest, flutter
Infrastructure: docker, kubernetes, terraform, github-actions, vercel, cloudflare
Combos: nextjs+tailwind+shadcn, node+express, react+tailwind, vue+nuxt, prisma+supabase, typescript+vitest

Example Output

Detection

{
  "languages": ["javascript", "typescript", "node"],
  "frameworks": ["nextjs", "tailwind", "shadcn", "prisma"],
  "infrastructure": ["docker", "github-actions", "vercel"],
  "packageManager": "pnpm",
  "isFrontend": true,
  "isBackend": true,
  "isFullstack": true
}

Recommendations

{
  "detection": { "..." },
  "recommendations": {
    "installed": [
      {"skill": "ui-ux-pro-max", "reason": "Detected nextjs"},
      {"skill": "dev-workflow", "reason": "Detected typescript"},
      {"skill": "github-enhanced", "reason": "Detected github-actions"}
    ],
    "available": [],
    "external": [
      {"source": "skills.sh", "skill": "vercel-labs/next-skills/next-best-practices", "reason": "Detected nextjs"},
      {"source": "skills.sh", "skill": "prisma/skills/prisma-database-setup", "reason": "Detected prisma"},
      {"source": "skills.sh", "skill": "secondsky/claude-skills/tailwind-v4-shadcn", "reason": "Combo detected: nextjs + tailwind + shadcn"}
    ]
  },
  "summary": {
    "totalInstalled": 3,
    "totalAvailable": 0,
    "totalExternal": 3
  }
}

Agent Integration

When an agent loads this skill, it should:

  1. Run detection on the project directory the user is working on
  2. Present the recommendations in a clear format
  3. Offer to install available/external skills
  4. Note which installed skills are already relevant

Typical agent prompt flow:

User: "Scan this project for me"
Agent: runs detect.sh → recommend.sh
Agent: "Found Next.js + Tailwind + Prisma project. You already have ui-ux-pro-max.
        I recommend installing prisma-database-setup from skills.sh. Want me to set it up?"

Requirements

  • bash 4+ (available on all modern Linux/macOS)
  • jq (JSON processor — pre-installed on most VPS, apt install jq if missing)
  • clawhub CLI (optional, only for ClawHub installs)

No Node.js required for core detection and recommendation.

File Structure

skills/autoskills/
├── SKILL.md                      ← This file
├── scripts/
│   ├── detect.sh                 ← Tech stack detection
│   ├── recommend.sh              ← Map to skill recommendations
│   ├── install.sh                ← Install skills from sources
│   └── skills-map.json           ← Technology → skills mapping
└── references/
    └── detection-rules.md        ← Detailed detection documentation

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.