Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add cosmix/loom --skill loom-security-scangit clone --depth 1 https://github.com/cosmix/loomWrote 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.
[](https://agentmods.dev/skills/cosmix/loom/loom-security-scan)<a href="https://agentmods.dev/skills/cosmix/loom/loom-security-scan"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-security-scan/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.
<a href="https://agentmods.dev/skills/cosmix/loom/loom-security-scan"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-security-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium MCP Rug Pull · line 145 Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.Fix: Pin the image: image:tag or image@sha256:abc123
- low Tool Misuse · line 145 Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00021 | $0.02242 |
| Opus 5.5 | $0.00008 | $0.00897 |
| Sonnet 5.5 | $0.00004 | $0.00448 |
| Haiku 4.5 | $0.00002 | $0.00224 |
Grade A, and why
loom-security-scan 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Security Scan
Fast, automatable checks to run pre-commit / in CI — catch secrets, known-CVE deps, image and IaC misconfig early. This is the tooling skill; for methodology and compliance use loom-security-audit, for STRIDE use loom-threat-model, for deep dependency/SBOM work use loom-dependency-scan.
Tool Selection Matrix
| Scan type | Tool | Alternative | Notes |
|---|---|---|---|
| Secrets | TruffleHog | Gitleaks | TruffleHog verifies live creds; Gitleaks is regex-fast |
| Deps (JS) | npm audit | osv-scanner, Snyk | --audit-level=high |
| Deps (Python) | pip-audit | safety | pip-audit uses OSV/PyPI advisory DB |
| Deps (Go) | govulncheck | osv-scanner | call-graph aware → fewer false positives |
| Deps (Rust) | cargo audit | cargo-deny | RustSec DB |
| Container image | Trivy | Grype | --scanners vuln,secret,config |
| SAST multi-lang | Semgrep | CodeQL | p/security-audit, p/secrets |
| SAST Python | Bandit | Semgrep | — |
| SAST Go | gosec | Semgrep | — |
| Dockerfile | hadolint | Trivy config | best-practice lint |
| IaC (Terraform) | tfsec / trivy config | Checkov | — |
| IaC (K8s) | kubesec / trivy | Checkov | — |
| Universal (fs+img, vuln+secret+config) | Trivy | osv-scanner | one binary for most CI needs |
Priority Order
Run cheapest/highest-signal first; a secret in git history is worse than a medium CVE.
1. Secrets (Critical)
Prefer dedicated tools over grep — they cut false positives and TruffleHog verifies whether a key is live.
trufflehog filesystem . --only-verified --no-update # only credentials confirmed active
gitleaks detect --source . --redact # scans full git HISTORY by default
⚠ Secret-scanning gotchas:
- Scan history, not just the worktree. A rotated key still lives in old commits and forks.
gitleaks detectwalks history;gitleaks detect --no-git/trufflehog filesystemonly see current files. A committed-then-deleted secret must be rotated, not just removed — deletion doesn't scrub history. --only-verified(TruffleHog) suppresses unverifiable/expired hits — great for CI signal, but it will miss a secret whose endpoint it can't reach; run a full pass periodically.- Regex fallback for a quick look (dedicated tools are better): AWS keys
(AKIA|ASIA)[A-Z0-9]{16}, PEM-----BEGIN (RSA |EC |OPENSSH )?PRIVATE KEY-----, generic(password|secret|token|api[_-]?key)\s*[:=]\s*['"][^'"]{8,}.
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.
- 2mo ago Changed · -46 tokens per session 8304de346463
- 3mo ago First seen · 188 lines · 67 tokens per session scan A b3c1bd6132f2
loom-security-scan is a skill published in the GitHub repository cosmix/loom (66 stars, last pushed yesterday), licensed MIT. It adds 21 tokens to every session and 2,242 once invoked, about $0.0001 per session on Opus 5.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-08-30.
loom-security-scan compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| loom-security-scancosmix/loom | Skill | 66 | yesterday | MIT | A | 21 | Claude Code |
| idiomatic-goTypeFox/agent-skills | Skill | 5 | 1mo ago | MIT | A | 137 | Claude Code |
| eclipse-license-checkTypeFox/agent-skills | Skill | 5 | 1mo ago | MIT | A | 110 | Claude Code |
| go-documentationTypeFox/agent-skills | Skill | 5 | 1mo ago | MIT | A | 98 | Claude Code |
| publish-vscode-extensionTypeFox/agent-skills | Skill | 5 | 1mo ago | MIT | A | 107 | Claude Code |
| domainmodel-dslTypeFox/agent-skills | Skill | 5 | 1mo ago | MIT | A | 68 | Claude Code |
| statemachine-dslTypeFox/agent-skills | Skill | 5 | 1mo ago | MIT | A | 63 | Claude Code |