agentleFS
shino369shino369/claude-code-personal-workspace/.agents/skills/workspace-setup/SKILL.md

workspace-setup

Skill13 starsChanged 11 days agoISCView on GitHub

Initialise or repair this workspace on a new machine or clone — installs dependencies, installs third-party skills from skills-lock.json (skills.sh), links .agents/skills into harness skill folders (.claude/skills), enables the git commit hooks, and creates the local memory files (pnpm memory init). Use after cloning or pulling, when a skill is missing or not found, when Codex/Claude/another harness cannot see skills, when commit hooks do not run, or when adding a project-owned skill.

  • Installs packages

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 0

    Distinctive

    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:

    Check Node.js: node --version must be 24 or later.

    line 20
  2. Very specific:

    Read the output. Lines start with ✓ (ok), !

    line 37
  3. Very specific:

    Verify: pnpm workspace:check must end with Workspace check passed.

    line 39
  4. Very specific:

    Create .agents/skills/<name>/SKILL.md with name: <name> and a description saying when to use it.

    line 63
  5. Very specific:

    Run pnpm skills:link, then pnpm check.

    line 68
  6. Very specific:

    Commit skills-lock.json if it changed.

    line 77
  7. Very specific:

    Never use --copy with skills.sh, npm, or pnpm add -g.

    line 81
  8. Very specific:

    Never edit files under .claude/skills/ — edit .agents/skills/ instead.

    line 82
  9. Very specific:

    Never commit third-party skill folders or anything under tasks/ or logs/.

    line 83

“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

Workspace Setup

One command does the work; this skill tells you how to run it and how to fix what it reports.

Layout (do not change it)

  • .agents/skills/<name>/ — the real skill files. Codex reads this folder directly.
  • .claude/skills/<name> — a link to ../../.agents/skills/<name> for Claude Code. Never edit files through it, and never put real folders here.
  • Project-owned skills are committed. Third-party skills come from skills-lock.json via skills.sh and are git-ignored.

Procedure

  1. Check Node.js: node --version must be 24 or later. If pnpm is missing, run corepack enable.
  2. Run setup:

    pnpm workspace:setup

    Options (combine as needed):

    NeedAdd
    Browser automation (agent-browser, e2e)--with-browsers
    No network / skip skills.sh--skip-skills
    Dependencies already installed--skip-install
    Another harness reads its own skill folder--target <dir>
    Machine-readable output--json
  3. Read the output. Lines start with ✓ (ok), ! (warning), ✗ (must fix), or - (skipped). Each !/✗ line has a Fix: line — run exactly that command.
  4. Verify: pnpm workspace:check must end with Workspace check passed. Repeat steps 3–4 until it does.
  5. Restart the agent session so it picks up new skills.

Troubleshooting

SymptomFix
skill-links: … conflictA real folder in .claude/skills/<name> shadows .agents/skills/<name>. Compare the two, keep the .agents copy, move the other away, re-run pnpm skills:link.
skill-links: … legacy-copyOld copied install. Run pnpm skills:link — it moves the copy into .agents/skills/ and links it.
skills: not installed: …Needs GitHub access. Run the printed pnpm skills:install --only … command when online. Skills are optional; the workspace still works.
Windows: links failThe linker falls back to directory junctions automatically. If that also fails, enable Windows Developer Mode and re-run setup.
git-hooks: commit hooks are not enabledpnpm workspace:setup (sets git config core.hooksPath .githooks).
Commit rejected by commit-msgRewrite the message as <type>(<scope>): <description>; see AGENTS.md → Git conventions.
Commit rejected by pre-commitRun the printed Fix: command (prettier/eslint), git add the files, commit again.
A harness still cannot see a skillCodex: skill must be in .agents/skills/. Claude Code: run pnpm skills:link, then restart. Other harness: pnpm workspace:setup --target <its skill dir>.
memory: personal memory is tracked by gitRun the printed git rm -r --cached … (it keeps the files), then commit. Memory is personal and never committed.
memory: not gitignored: …Restore the /AGENTS.local.md, /CLAUDE.local.md, /memory/ lines in .gitignore.
memory: not set up: …pnpm memory init (setup runs it). Optional: without it, agents only lack personal memory.
tools: … recommended but missing: …Optional. Install the listed tools with the printed hints, then pnpm tools scan. pnpm tools list --all shows the rest.
node_modules missing / install failscorepack enable && pnpm install. Never use npm.

Adding a project-owned skill

  1. Create .agents/skills/<name>/SKILL.md with name: <name> and a description saying when to use it.
  2. Register it in three places (a test fails if you forget one):
    • OWNED_SKILLS in utils/workspace-config.js
    • .gitignore: add !/.agents/skills/<name>/
    • tsconfig.json include: add .agents/skills/<name>/**/*
  3. Run pnpm skills:link, then pnpm check.

Adding a third-party skill

pnpm dlx skills add <owner/repo> --skill <name> --agent claude-code codex -y
pnpm skills:link

Commit skills-lock.json if it changed. Do not commit the skill folder.

Never

  • Never use --copy with skills.sh, npm, or pnpm add -g.
  • Never edit files under .claude/skills/ — edit .agents/skills/ instead.
  • Never commit third-party skill folders or anything under tasks/ or logs/.

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.