Use only when the user asks to set Loom up in this repository, or to add, update or remove Loom's instruction block. In Claude Code the user runs it as /loom:loom-setup; a line saying the block is missing is not a request. Writes the short block that says when to search Loom's code index into the repository's instruction file. NOT for a Loom that is quiet for another reason (loom-status).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Loom Setup?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/clickhouse-loom-setup)
---
name: loom-setup
description: >
Use only when the user asks to set Loom up in this repository, or to add,
update or remove Loom's instruction block. In Claude Code the user runs it
as /loom:loom-setup; a line saying the block is missing is not a request.
Writes the short block that says when to search Loom's code index into
the repository's instruction file. NOT for a Loom that is quiet for
another reason (loom-status).
disable-model-invocation: true
---
# loom-setup — write Loom's instruction block
Setup writes one short block, between two markers: when `loom_code_search`
is worth a call. It does no lookup.
Run it from the repository; add `--remove` when the user asked to take the
block out:
```bash
LR="${CLAUDE_PLUGIN_ROOT:-$(ls -d ~/.codex/plugins/cache/loom/loom/*/ 2>/dev/null | sort -V | tail -1)}"; sh "${LR%/}/bin/loom-node" "${LR%/}/bin/loom-setup.mjs"
```
Relay its output, then say what applies:
- **Written, updated, removed or deleted:** which file, and that committing
it is their call: teammates get the change only from a committed file. Do
not commit it unasked. It applies from the next session.
- **A CLAUDE.md deleted or added, the block in AGENTS.md:** the deleted
file held only the block and kept AGENTS.md unread. The added one imports
AGENTS.md, which the file named in setup's line kept unread.
Both are theirs to commit.
- **Nothing written:** memory mode, an unindexed checkout (rerun once
indexed), or an invalid `server_url` (see `/loom:loom-status`).
- **`prompt_pack` named:** search pointers say when to search, so setup
wrote none and removed any it found.
- **A marker without its pair:** setup left the file alone. The user deletes
the stray marker line; do not edit their file unasked.
The file is CLAUDE.md (at the root or under `.claude/`), or AGENTS.md under
Codex, where CLAUDE.md imports it (`@AGENTS.md`) and where the repository
has no CLAUDE.md. A block one of those files already holds stays there.