agentleFS
sudokoisudokoi/skills/setup-skills/SKILL.md

setup-skills

Skill0 starsChanged 3 months agoMITView on GitHub

Reproduces this repo's curated agent-skill setup on a fresh machine (or syncs it between machines). Installs skills from their source repos via the skills CLI, prompting for which agents to support and which skill categories to install (the pick is remembered), and optionally recreates the opencode slash commands. Use when setting up a new machine, restoring or syncing skills, or when asked to "set up my skills", "install my skills", "sync my skills", or "recreate my skill setup".

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use codebase-design, writing-for-agents and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AWSSkill

    codebase-design

    Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

    Also in 7 projects that use this

  • AWSSkill

    writing-for-agents

    Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

    Also in 5 projects that use this

  • SentrySkill

    diagnosing-bugs

    A discipline for hard bugs, flaky tests, CI hangs, and performance regressions in this SDK. Use when the user says "diagnose" or "debug this", reports something broken/throwing/failing/hanging/slow, or a test is flaky. Builds a tight, red-capable feedback loop before hypothesizing.

    Also in 5 projects that use this

  • AnasX7Skill

    setup-pre-commit

    Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.

    Also in 3 projects that use this

  • kayamanSkill

    git-guardrails-claude-code

    Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.

    Also in 3 projects that use this

  • +7 more from aws

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask which agents to support: Do not assume opencode. Offer the common ones and let the user pick any set:

    line 33
  2. Very specific:

    Read setup-skills/scripts/inventory.tsv and group by category (see Inventory above) to build the option list.

    line 54
  3. Distinctive:

    If the user picks all categories (or says "all"/"sync"), run non-interactively:

    line 57
  4. Very specific:

    If the user picks a subset, do not run install.sh without --all (it needs a TTY).

    line 63
  5. Very specific:

    Write the chosen categories one per line to ${XDG_CONFIG_HOME:-~/.config}/setup-skills/selection then tell the user to re-run in a …

    line 64

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “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

Setup Skills

Reproduces the personal skill set tracked in this repo. The repo is the source of truth: scripts/inventory.tsv lists every skill, its source repo, and its category, and commands/ holds a small curated set of opencode slash-command wrappers (only skills that need explicit invocation, such as grill-me, or a parameterized flow, such as code-review; everything else is loaded by the agent from the skill's own description). This skill runs the skills CLI (npx skills add …) against that inventory, so installation always comes from the upstream repos and is easy to maintain (add/remove one line to change the set).

Inventory

  • File: setup-skills/scripts/inventory.tsv (override via SKILLS_INVENTORY).
  • Format: one <repo> <skill> <category> triple per line, tab-separated, # for comments, blank lines ignored. category is one of core, react, kotlin, architecture, process, tooling.
  • Current categories and skills (read the file for truth — do not hardcode — but agents should present this grouped view without reading install.sh):
    • core: commit-style (sudokoi/skills), github-workflow (sudokoi/skills), find-skills (vercel-labs/skills)
    • react: bulletproof-react-architecture, frontend-architecture, shadcn, vercel-composition-patterns, vercel-react-best-practices, vercel-react-native-skills
    • kotlin: kotlin-api-design, kotlin-concurrency-and-flow, kotlin-control-flow, kotlin-tooling-agp9-migration
    • architecture: codebase-architecture, codebase-design, domain-modeling, improve-codebase-architecture
    • process: code-review, diagnosing-bugs, grill-me, grilling, handoff, tdd
    • tooling: agent-browser, design-taste-frontend
  • Slash commands (setup-skills/commands/*.md → ~/.config/opencode/commands/): code-review, diagnose-bugs, grill-me, handoff, sync-skills, tdd. Only skills that need explicit invocation get a wrapper; all others are loaded by description.

Steps

  1. Ask which agents to support. Do not assume opencode. Offer the common ones and let the user pick any set:

    • opencode, cursor, codex, claude, gemini, windsurf, zed, warp, github-copilot, …

    Friendly names claude and gemini are mapped to the CLI names claude-code and gemini-cli by the script. Default to opencode if the user has no preference. Collect as a comma-separated list for --agents.

  2. Ask whether to (re)create the opencode slash commands (optional). These are the curated wrappers in commands/ installed to ~/.config/opencode/commands/. Say yes only for opencode setups. This maps to --commands.
  3. Install the skills. The installer and inventory live in scripts/, next to this SKILL.md (i.e. <repo>/setup-skills/scripts/install.sh when using the repo checkout).

    For agents (no TUI — do not read install.sh to discover options)

    The interactive category tree (install.sh without --all) requires a TTY and will fail with needs a terminal when run by an agent. Do not invoke it. Instead:

    • Read setup-skills/scripts/inventory.tsv and group by category (see Inventory above) to build the option list. Check already-installed skills via ~/.agents/skills/<name>/SKILL.md if you want to show ✓ marks, but do not fail if absent.
    • Present the categories as a text checklist using the question tool (one question, multiple: true allowed). Example prompt: Which skill categories to install? with options core (3 skills), react (6 skills), … tooling (2 skills), plus an all choice. Pre-check from ${XDG_CONFIG_HOME:-~/.config}/setup-skills/selection when available (read via install.sh --print-selection or the file directly); on first run nothing is pre-checked.
    • Translate the answer to an install plan:
      • If the user picks all categories (or says "all"/"sync"), run non-interactively:

        bash setup-skills/scripts/install.sh --agents <list> --all [--commands]
      • If the user picks a subset, do not run install.sh without --all (it needs a TTY). Two valid approaches:
        1. Write the chosen categories one per line to ${XDG_CONFIG_HOME:-~/.config}/setup-skills/selection then tell the user to re-run in a terminal: bash setup-skills/scripts/install.sh --agents <list> [--commands] (it will pre-check the saved pick in its TUI), or
        2. Install directly without the TUI by looping npx skills add for only the chosen categories:

          # for each selected category and each agent:
          npx skills add <repo> --skill <name> --global --yes --agent <agent>

          and for commands run bash setup-skills/scripts/write-commands.sh if --commands was requested.

    • --dry-run is always safe for agents: bash setup-skills/scripts/install.sh --agents <list> --dry-run prints [plan] <skill> (<repo>, <category>) -> <agent> and Plan: N install(s) without installing or prompting. Use it to preview.

    For terminals (human at a TTY)

    bash setup-skills/scripts/install.sh --agents opencode,cursor,codex
    bash setup-skills/scripts/install.sh --agents opencode,cursor,codex --commands
    bash setup-skills/scripts/install.sh --agents opencode --all --commands
    bash setup-skills/scripts/install.sh --agents opencode --dry-run

    The terminal TUI shows each category as a checkbox row with skills beneath and ✓ for already-installed ones. Controls: space toggle category, a all/none, arrows move, enter install, q quit. The picked categories are remembered in ${XDG_CONFIG_HOME:-~/.config}/setup-skills/selection and pre-checked next time.

    For each selected category the script loops over every agent and installs each inventory skill with:

    npx skills add <repo> --skill <name> --global --yes --agent <agent>
  4. Report which skills were installed and which agents were targeted.

Idempotency

Re-running is safe. npx skills add with --yes is non-interactive and overwrites an already-installed skill without error, so the same command can run on a fresh machine or to bring an existing machine back in sync. write-commands.sh overwrites the command files in place and prunes previously managed commands that were removed from the repo. The remembered category selection only pre-checks the tree; every run reconfirms the pick before installing.

Adding / removing a skill

Edit scripts/inventory.tsv (one <repo> <skill> <category> triple per line, # for comments; category is one of core, react, kotlin, architecture, process, tooling) and commit. Re-running this skill on any machine installs the new set.

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.