configure-workspaces
What it does
It reads your project and writes workspace settings files that tell HumanLayer how to build worktrees. It is for developers who run HumanLayer tasks inside a git repository.
When to use it
- ✓When you set up HumanLayer for a repository for the first time.
- ✓When new tasks fail to create their worktree and the config needs fixing.
- ✓When you want shared team settings kept separate from your own machine's overrides.
Skill link
https://github.com/humanlayer/humanlayer/blob/main/apps/riptide-rpi-claude-plugin/skills/configure-workspaces/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Set up the HumanLayer workspace config for this repository so new tasks create their worktrees correctly.”
5 new skills a week. 1 minute to read.
How it works
The agent reads the project, proposes a short configuration, and writes the shared and local files after you approve. It then checks that the files are valid.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Purpose
This skill reads the project, proposes a concise workspace configuration, writes the approved files, and validates them.
The workspace config files control how worktrees are created when tasks use workspaceTiming = now in the Riptide task creation UI:
.humanlayer/workspace.json— shared team configuration, safe to commit.humanlayer/workspace.local.json— machine-specific overrides, gitignored
Use plain, brief language. State each point as one human speaking to another.
Steps to follow
<step index=0>Step 0: Select the repository
Check the current directory and home directory:
Bash(pwd)
Bash(printf '%s\n' "$HOME")
Bash(git rev-parse --show-toplevel)
If git rev-parse succeeds, use that repository root as the working directory. State the path in one short sentence.
If the current directory is the home directory and it is not inside a Git repository, ask one question:
Which repository should I configure? Send its path.
Use the same question when the current directory is not a Git repository. After the user gives a path, confirm it with git -C <path> rev-parse --show-toplevel and use the returned root.
Step 1: Read the project
Read any existing workspace config files:
Read(.humanlayer/workspace.json)
Read(.humanlayer/workspace.local.json)
Run all file reads and commands from the selected repository root.
Check for coordination-repo signals (Claude config, additional sibling repos):
Read(.claude/settings.json)
Bash(ls -la ../)
Read(package.json)
Read(Makefile)
Read(README.md)
Bash(git remote -v)
Use an existing workspace config as the starting point. Infer changes from the repository and the user's request.
</step> <step index=2>Step 2: Build the proposal
Infer a complete proposal from project files and common defaults.
- Use a single-repository config unless the project clearly coordinates related sibling repositories.
- For one repository, use
{ "localPath": ".", "primary": true }. - For multiple repositories, include the related paths and mark exactly one primary repository.
- Prefer the repository with the team's central Claude settings, MCP config, or agent policy as primary.
- Use
~/.humanlayer/workspaces/{{ TASKSLUG }}/{{ REPOBASENAME }}as the default path template. - Use
origin/mainas the default source ref, or whatever default remote the user prefers (e.g. upstream/main - if there are multiple remotes, ask) - Infer a setup command from project scripts, package manager files, the Makefile, and the README.
- Include local files that exist and are useful in a worktree, such as
.env,.env.local,.env.development.local,.claude/settings.local.json, and.humanlayer/workspace.local.json. - Put machine-specific values in
.humanlayer/workspace.local.json.
For multi-repository workspaces:
- Sessions in the workspace launch in the primary repo's worktree by default.
- Skills and instruction files (
CLAUDE.md/AGENTS.md) are loaded from all repos in the workspace. - Repo-local
.claude/settings*.json/ MCP-style configuration only governs sessions launched from a repo — so the repo holding the team's central Claude settings, MCP config, or agent policy should usually be primary.
The first response after project inspection must show the proposed .humanlayer/workspace.json as a fenced json block. If local overrides are useful, show .humanlayer/workspace.local.json in a second fenced json block. End with one short line:
Tell me what to change, or approve this config.
When the user gives feedback, update and print the complete proposed JSON again.
</step> <step index=3>Step 3: Validate the proposal
Validate the proposed config before asking for approval.
For single-repo projects, workspace.json looks like:
{
"disabled": false,
"pathTemplate": "~/.humanlayer/workspaces/{{ TASKSLUG }}/{{ REPOBASENAME }}",
"branchTemplate": "{{ TASKSLUG }}",
"sourceRef": "origin/main",
"setupCommand": "",
"copyGlobs": [
".env",
".env.local",
".env.development.local",
".claude/settings.local.json",
".humanlayer/workspace.local.json"
],
"repos": [
{
"localPath": ".",
"description": "Selected repository",
"primary": true
}
]
}
For multi-repo projects (coordination repos), workspace.json looks like:
{
"disabled": false,
"pathTemplate": "~/.humanlayer/workspaces/{{ TASKSLUG }}/{{
FAQ
Which files does it create?
A shared workspace.json that is safe to commit, and a workspace.local.json for machine-specific settings that stays out of git.
Which repository does it configure?
It uses the current git repository. If it cannot find one, it asks you for the path.
Does it write files without asking?
No. It proposes the configuration first and writes files only after you approve.
Details
Original description by the author
Propose and generate workspace configuration files (.humanlayer/workspace.json and .humanlayer/workspace.local.json) for a repository
repo: humanlayer/humanlayer
Popularity
- GitHub stars
- 13k
- Ranking position
- #11396
- License
- Apache-2.0
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
asd-ste100
13kTeaches your agent to rewrite confusing English into short, one-meaning sentences that are easy for people and other software to read.
better-github-skill
13kHelps your agent check a pull request's status, read its review comments, and find why a CI build failed, using ready-made GitHub scripts.
calldiff
13kHelps your agent compare the chains of function calls in a codebase between two git versions, so a code review can see what behavior changed.
chrome-devtools-cli
13kLets your agent control Chrome from the terminal to open pages, click, fill in forms, and take page snapshots for browser automation and testing.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.