Skip to content
Back to skills

Loom Code

ASecurity

Use before you grep or open files to answer a question about a Loom-indexed codebase: where something is defined, how it works, who calls it, what a change touches. NOT for unindexed repositories.

  • 282 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 11, 2026
ai-agents

Works with

  • claude code
  • cli
  • mcp

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add ClickHouse/loom --skill loom-code --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Loom Code?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Loom Code
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/clickhouse-loom-code-loom/badge)](https://www.skillsdirectory.com/skills/clickhouse-loom-code-loom)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: loom-code
description: "Use before you grep or open files to answer a question about a Loom-indexed codebase: where something is defined, how it works, who calls it, what a change touches. NOT for unindexed repositories."
license: Apache-2.0
metadata:
  version: "1.4.1"
---

# loom-code — the indexed answer before the grep reflex

Loom version of this copy: 1.4.1

When a call this file names is refused as unknown or answers `ignored_args`,
or the user asks whether this skill is current, read the server's `version`
(`loom_op {op: "mentor.guide"}`; over HTTP, `GET /v1/health`): if it is
newer, say this copy is older and follow the server's guide (that reply's
`text`) and `loom_op {op: "help"}` where they differ from this file.

The thought "let me grep for that" or "let me read a few files" is the cue:
pick a row below; `loom_code_grep` covers exact literals too. A
`loom_code_search` that abstains on everything means the repository is not
indexed: work locally, or with no checkout (a chat client) say the index
does not hold it.

Loom indexes this codebase (symbols, call graph,
tests, PR history), served as MCP tools. Choose the operation that answers the question; do not call tools just to
show use. Static callers and impact can be lower bounds.

If the current prompt already supplied sufficient evidence, use it
without repeating the lookup. Skip code retrieval for memory-only questions,
ordinary chat and self-contained tasks. Use memory tools for saved decisions.
If the needed code tool is deferred, use client tool discovery (ToolSearch in
Claude Code). A definition does not supply its callers. Retrieve the missing
evidence, then stop. Quoting an identifier or error in a code question does not
make it a literal-search request.

## The tools (MCP names)

| Question | Call |
|---|---|
| where is X defined / its signature and doc | `loom_code_symbol` (`name`) |
| what could changing X affect | `loom_code_impact` (`name`, or the current diff) |
| who calls X | `loom_code_symbol`: its `lead` counts the callers and lists the first three; `loom_code_callers` for all or more hops |
| a concept with no greppable keyword ("where do we retry s3 uploads") | `loom_code_search` |
| an exact literal or error string | `loom_code_grep` (each hit with its enclosing symbol) |
| what is in a file | `loom_code_outline` (`path`) — then read one span |
| the function around a `path:line` | `loom_code_symbol` with `name="src/F.cpp:123"`, or `loom_code_enclosing` |
| how does X work, in prose, with citations | `loom_code_ask` |
| a bundle for a task (symbols, callers, tests, history) | `loom_code_context_pack` |

Pass `namespace` when you know the repository's code namespace
(`code.repos` lists them). The MCP code tools infer
`org` from the token. Grep UNCOMMITTED or unindexed files; abstention permits local fallback.

## Reading a result

- `abstain: true` is an answer ("nothing relevant"); do not retry with
  synonyms more than once — grep instead.
- `as_of` names the indexed commit. Line numbers are that commit's; when
  your checkout is at another commit, report them as the index's.
- Caller and impact counts are floors: static evidence may miss dynamic calls.
  A structural claim ("nothing calls X") needs `loom_code_callers`
  evidence, not a hunch.

## Stop rules

- Read a returned span only to close a specific evidence gap; do not
  chain callers + impact + history as a ritual.
- If two loom calls in a row did not move you forward, grep.

The full substitution table (impact, test_gate, pr_check, trace, verify,
outline, grep neighbours) and the verification gate are in `reference.md`
beside this file; open it only when one of those rows is what you need.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.