agentleFS
SamG0ldSamG0ld/claude-code-starter/skills/harness-setup/SKILL.md

harness-setup

Skill2 starsChanged 4 months agoMITView on GitHub

Set up, repair, or verify this Claude Code harness on a machine. Covers prerequisites, running setup.sh/setup.ps1, registering MCP servers at user scope, and health checks. Use when setting up a new machine, when MCP tools are registered but not loading into sessions, when the setup script fails, or when asked to bring a machine to parity with the repo.

  • Reads credentials

6 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use harness-release, harness-work and 3 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.
  • fockusSkill

    harness-release

    Harness v3 統合リリーススキル。CHANGELOG・バージョンバンプ・タグ・GitHub Release を自動化。以下で起動: リリース、バージョンバンプ、タグ作成、公開、/harness-release。実装・コードレビュー・プランニング・セットアップには使わない。

    Also in 3 projects that use this

  • fockusSkill

    harness-work

    Harness v3 統合実行スキル。Plans.md タスクを1件から全並列チーム実行まで担当。以下で起動: 実装して、実行して、harness-work、全部やって、breezing、チーム実行、parallel。プランニング・レビュー・リリース・セットアップには使わない。

    Also in 3 projects that use this

  • +3 more from fockus

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Never print .env contents, tokens, or git remote URLs while debugging setup.

    line 68

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

Harness Setup

Full reference tables (what gets installed where, setup flags, platform differences) live in README.md at the repo root. Read the relevant section there rather than reproducing it here. This skill covers the ordering and the gotchas that actually cost debugging time.

Order of operations

  1. Clone and run the setup script. ./setup.sh on macOS/Linux, .\setup.ps1 on Windows. This installs agents, rules, commands, contexts, hooks, skills, scripts, the learned-skills link, and merges the hooks block into ~/.claude/settings.json. It does not register MCP servers.
  2. Preview first if unsure. ./setup.sh --dry-run (or .\setup.ps1 -DryRun) prints every write and symlink without applying any of them.
  3. Register MCP servers you want, at user scope. See below and examples/mcp-server-example.md.
  4. Third-party skills and plugins. Installed separately; the setup script does not manage them.
  5. Verify. See below.

The gotcha that matters most

MCP servers MUST be registered at user scope, via claude mcp add <name> -s user with -e KEY=value for env vars, using absolute paths.

Project-scope .mcp.json servers show "Connected" in claude mcp list but their tools silently never load into sessions. This failure mode is quiet and misleading: the server looks healthy and the tools simply are not there.

# Server needing credentials, read from your own env file
claude mcp add my-server -s user -e "MY_API_KEY=$MY_API_KEY" -- /abs/path/to/python /abs/path/to/server.py

# Third-party server, no credentials
claude mcp add some-server -s user -- npx some-mcp-package@latest

Platform gotchas

  • Windows requires a cmd /c wrapper in the command field for Python servers: -- cmd /c python C:\abs\path\to\server.py. Without it the server fails to spawn.
  • Learned skills link: symlink on macOS/Linux, junction on Windows. The setup script handles it. If ~/.claude/skills/learned/ already exists as a real directory, move its contents into config/skills/learned/ first, or the script will replace it.
  • CLI tools that install by cloning over SSH can fail on Windows with an SSH permission error. Force HTTPS for GitHub clones first: git config --global url."https://github.com/".insteadOf "git@github.com:".

Verify

node config/scripts/check-mcp-health.js   # MCP servers + CLI tools
node config/scripts/scan-mcp-tools.js     # tool-poisoning baseline (first run pins it)
ls ~/.claude/skills/learned/              # learned-skills link resolves
ls ~/.claude/scripts/hooks/               # hooks installed

Then start a session and confirm MCP tools actually appear. claude mcp list showing "Connected" is not sufficient evidence, per the user-scope gotcha above.

Credentials

Never print .env contents, tokens, or git remote URLs while debugging setup. If auth is broken, tell the user what to run themselves. GitHub auto-revokes leaked tokens.

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.