agentleFS
ambroselittleambroselittle/agent-skills/skills/setup-agent-skills/SKILL.md

setup-agent-skills

Skill0 starsChanged 2 months agoMITView on GitHub

First-time setup for agent-skills workflow. Configures where plans and reviews are stored and your personal branch prefix. Run this once per machine before using /plan-work, /do-work, or other workflow skills.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    Ask the user where they'd like to store these files.

    line 21
  2. Very specific:

    Use AskUserQuestion with these options:

    line 23
  3. Very specific:

    After they answer, expand the path (resolve ~) and show the full absolute path for confirmation.

    line 28
  4. Very specific:

    If it succeeds and returns exactly one device → note the device_id

    line 50
  5. Distinctive:

    If multiple devices → ask which to use as the default

    line 51
  6. Very specific:

    If it fails or Superset isn't connected → skip silently, /super-work will handle it on first use

    line 52
  7. Very specific:

    Ask with AskUserQuestion (single-select.

    line 60
  8. Very specific:

    If they pick "Other", they can name any mix of the items below.

    line 65
  9. Distinctive:

    Create the work folder if it doesn't exist:

    line 107
  10. Distinctive:

    If there was a pre-existing config (shown in pre-loaded context), note what changed.

    line 126

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Agent Skills Setup

You are configuring agent-skills for this machine. This takes about a minute and only needs to be done once. The settings are saved to ~/.claude/agent-skills.json.

Pre-loaded context:

  • Git user name: !git config user.name 2>/dev/null || echo "unknown"
  • Existing config: !cat ~/.claude/agent-skills.json 2>/dev/null || echo "not found"

Step 1: Work Folder Location

The work folder is where plans, reviews, and working notes for all your tickets are stored — outside of any repo, so they survive branch deletion and work across multiple repos.

Ask the user where they'd like to store these files. Suggest ~/Work as the default. If they're on a work machine with iCloud or a cloud-synced folder, suggest that as an alternative (e.g. ~/Library/Mobile Documents/com~apple~CloudDocs/Work).

Use AskUserQuestion with these options:

  • ~/Work (Recommended) — simple local folder
  • ~/Documents/Work — inside Documents
  • Other / type a custom path

After they answer, expand the path (resolve ~) and show the full absolute path for confirmation.


Step 2: Branch Prefix

The branch prefix is prepended to all branch names you create (e.g. ambrose/eng-42-dark-mode). Suggest the first word of their git user name (lowercased) from the pre-loaded context.

Ask:

  • <suggested-prefix> (Recommended) — from your git config
  • Other / type your preferred prefix

Step 3: Discover Superset Device (Optional)

Try to look up the Superset device ID now so /super-work never has to ask:

mcp__superset__list_devices {}
  • If it succeeds and returns exactly one device → note the device_id
  • If multiple devices → ask which to use as the default
  • If it fails or Superset isn't connected → skip silently, /super-work will handle it on first use

Step 4: Anything to Leave Off This Machine? (Optional)

setup.sh installs everything by default. The exclude key in the config is a persistent opt-out: setup.sh never installs anything listed there, and on every run it removes anything listed that it installed earlier. This is the place to declare it, so a fresh machine never gets the excluded pieces even once.

Ask with AskUserQuestion (single-select; the tool adds its own "Other" entry for a free-text answer):

  • Nothing — install everything (Recommended)
  • Skip the workflow skills — plan-work, plan-review, do-work, do-fixes, code-review (for machines where an org repo already provides them)
  • Skip all hooks — pretooluse, notification, message-display, window-title

If they pick "Other", they can name any mix of the items below. Map what they say onto this schema — every key is a list, and "all" in a list excludes everything under that key:

"exclude": {
  "hooks":       ["pretooluse", "notification", "message-display", "window-title"],
  "mcp":         ["playwright"],
  "guidance":    ["core", "personal"],
  "skills":      ["<skill directory name>", "..."],
  "attribution": ["sessionUrl", "commit", "pr"],
  "cli":         ["claude-resume", "reclaude"]
}

shared cannot be excluded (other skills depend on it). Anything unknown is warned about and ignored by setup.sh, so a typo is harmless but worth catching here.


Step 5: Write Config

Merge the confirmed values into ~/.claude/agent-skills.json. Read the existing file first and only set the keys you collected — other skills store their own keys here (team_repos, linear_team_statuses, projects, …) and a re-run must not wipe them:

python3 -c "
import json, os
p = os.path.expanduser('~/.claude/agent-skills.json')
try:
    d = json.load(open(p))
except (FileNotFoundError, json.JSONDecodeError):
    d = {}
d['user_prefix'] = '<prefix>'
d['work_root'] = '<absolute-path>'
# Include device_id if discovered
# d['device_id'] = '<device-id>'
# Only when the user chose something in Step 4 — replace the lists they named,
# leave keys they did not mention alone:
# d.setdefault('exclude', {})['skills'] = ['plan-work', 'do-work']
with open(p, 'w') as f:
    json.dump(d, f, indent=2, ensure_ascii=False)
    f.write('\n')
"

Create the work folder if it doesn't exist:

mkdir -p "<absolute-path>"

Step 6: Confirm

Show a summary:

"Setup complete.

  • Work folder: <path> ✓
  • Branch prefix: <prefix> ✓
  • Superset device: <device-name> ✓ (or "not connected — run /super-work to set up later")
  • Excluded: skills: plan-work, do-work (or "nothing — everything installs")

Run bash setup.sh in the agent-skills repo to apply, then /plan-work <LINEAR-ID> to start your first work session. To change exclusions later, edit the exclude key in ~/.claude/agent-skills.json (or run setup.sh --without <component>) and re-run setup.sh."

If there was a pre-existing config (shown in pre-loaded context), note what changed.

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.