loom-doctor

loom-doctor is a skill for Claude Code from terrene-foundation/kailash-coc-claude-py. It costs 40 tokens per session (1,246 once invoked), scanned A, original, Apache-2.0.

A read-only health check for a newly set-up coding workspace. It checks the operator role, software versions, Git, line-ending settings, access to the version-control host, and repository-link resolution.

In plain words
What is it for?
Use it after cloning a repository, changing its layout, or before running onboarding commands, especially on Windows or with Azure DevOps.
Why use it?
It shows onboarding problems together before work begins, so setup failures do not appear later as confusing command errors.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { runDoctor, formatReport } from "../../bin/loom-doctor.mjs";.

Good fit Use it after cloning a repository, changing its layout, or before running onboarding commands, especially on Windows or with Azure DevOps.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/terrene-foundation/kailash-coc-claude-py
agentmods
npx agentmods add skills/terrene-foundation/kailash-coc-claude-py/47-loom-doctor

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for loom-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/terrene-foundation/kailash-coc-claude-py/47-loom-doctor/github.svg)](https://agentmods.dev/skills/terrene-foundation/kailash-coc-claude-py/47-loom-doctor)
Your own site
<a href="https://agentmods.dev/skills/terrene-foundation/kailash-coc-claude-py/47-loom-doctor"><img src="https://agentmods.dev/badge/skills/terrene-foundation/kailash-coc-claude-py/47-loom-doctor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for loom-doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/terrene-foundation/kailash-coc-claude-py/47-loom-doctor"><img src="https://agentmods.dev/badge/skills/terrene-foundation/kailash-coc-claude-py/47-loom-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,246 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.01246
Opus 5 $0.00020 $0.00623
Sonnet 5 $0.00008 $0.00249
Haiku 4.5 $0.00004 $0.00125

Measured 9d ago against content hash 5898e18edf08, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

loom-doctor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/47-loom-doctor/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/loom doctor — onboarding health-check runbook

This skill is the procedural detail for the doctor command (.claude/commands/doctor.md). The command is the entry point; this skill is the runbook + the contract the check engine (.claude/bin/loom-doctor.mjs) honors.

When to use

  • A fresh operator clones a repo (loom, a USE template, or a downstream consumer) on a new workstation — especially Windows or an ADO host — and wants the full onboarding picture before /onboard.
  • After a layout change (moved repos, new loom-links.local.json) to confirm the resolver still resolves.
  • As the FIRST step of onboarding: run loom doctor, fix what it surfaces, then /onboard — the /onboard command preamble points back here.

Read-only contract

loom doctor in its default mode writes ZERO state. Every check is a read:

Check Source (read-only) Status semantics
role loom-links.mjs::resolveRole() ok=declared · warn=null (undeclared) · crit=malformed (LinkError)
node process.versions.node ok=≥floor · crit=below floor
git git --version ok=present · crit=missing
line-endings git config --get core.autocrlf + .gitattributes ok=clean · warn=autocrlf true · info=no contract
gh gh --version + gh auth status ok=authed · warn=present-unauthed · info=absent
az az --version + az account show ok=authed · warn=present-unauthed · info=absent
vcs-host derived from gh/az ok=≥1 host authed · warn=none authed
resolver resolveAll() / isConfigured() ok=all resolve · warn=error cells · info=not configured

Read the full file on GitHub · 94 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 94 lines · 40 tokens per session scan A 5898e18edf08

Subscribe to this mod's changes

loom-doctor is a skill published in the GitHub repository terrene-foundation/kailash-coc-claude-py (12 stars, last pushed 24d ago), licensed Apache-2.0. It adds 40 tokens to every session and 1,246 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

conventional-commit

Workflow for generating conventional commit messages following the Conventional Commits specification. MUST be invoked every time a commit is created. Guides construction of standardized commit messages with correct type, scope, description, body, and footer.

JanDeDobbeleer/oh-my-posh · 47 tokens

python-release

Handle Python SDK release, build, bump, packaging metadata, PyPI client pin, uv.lock, nox/build workflow, and publish verification changes. Use for Python release process work or dependency pin bumps; do not use for ordinary Python feature implementation.

ComposioHQ/composio · 53 tokens

release-notes

Generate and publish concise, evidence-based notes in the body of the latest existing GitHub Release. Use only when the user explicitly invokes $release-notes or explicitly asks to update the latest existing GitHub Release body. Do not invoke for general release planning, changelog, tag, or version tasks.

kenryu42/cc-safety-net · 65 tokens

contributor

End-to-end open source contribution workflow: from scanning issues to submitting PRs. Use this skill whenever the user wants to contribute to an open source project, find issues to fix, submit a pull request, fork a repo to contribute, fix a GitHub issue, or mentions 'open source contribution'. Also trigger when they…

majiayu000/spellbook · 111 tokens

git-commit-smart

Generates meaningful, conventional commit messages automatically. Use when committing code changes. Analyzes diff to create descriptive commits following best practices.

majiayu000/spellbook · 32 tokens

review-gate

Use before an agent-produced diff is committed, pushed, opened as a PR, merged, landed, or applied to user files when explicit implementation approval is missing. Trigger for review gate, review pack, approve before landing, diff first then land, human approval, merge gate, commit gate, push gate, or PR readiness.…

majiayu000/spellbook · 95 tokens