oo: Skill for Claude Code

.claude/skills/oo-learn-patterns/SKILL.md

oo-learn-patterns is a skill for Claude Code from randomm/oo. It costs 74 tokens per session (2,046 once invoked), scanned A, original, Apache-2.0.

A setup tool that scans a repository and creates output-pattern files for oo, a command-output summarizer for AI coding agents. The patterns describe the project’s tools and common commands.

In plain words
What is it for?
Use it to detect a project’s toolchain and configure oo for commands such as npm test, pytest, cargo test, go test, Docker, or Terraform.
Why use it?
It reduces long test, build, lint, and deployment logs to shorter summaries that are easier for an agent to use.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is randomm/oo's own configuration. It tells Claude Code how to work on oo itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything oo configures →

View source ↗ randomm/oo
Reuse

Borrowing it

Nothing to install: this file belongs to randomm/oo. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/randomm/oo/main/.claude/skills/oo-learn-patterns/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/randomm/oo

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 oo-learn-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/randomm/oo/oo-learn-patterns/github.svg)](https://agentmods.dev/skills/randomm/oo/oo-learn-patterns)
Your own site
<a href="https://agentmods.dev/skills/randomm/oo/oo-learn-patterns"><img src="https://agentmods.dev/badge/skills/randomm/oo/oo-learn-patterns/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 oo-learn-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/randomm/oo/oo-learn-patterns"><img src="https://agentmods.dev/badge/skills/randomm/oo/oo-learn-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,046 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00074 $0.02046
Opus 5.5 $0.00030 $0.00818
Sonnet 5.5 $0.00015 $0.00409
Haiku 4.5 $0.00007 $0.00205

Measured 25d ago against content hash eb6166e269cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

oo-learn-patterns scanned grade A with 1 finding 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 25d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| **Unknown** | Anything else (curl, docker, etc.) | Pass through if successful and ≤ 4 KiB; larger: a matching success pattern summary if any, else bounded head+tail slice with full output indexed |
.claude/skills/oo-learn-patterns/SKILL.md · 257 lines

How it starts

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

oo-learn-patterns

Create project-specific output patterns so oo can compress verbose command output into terse summaries for AI coding agents.

Workflow

1. Detect project root and toolchain

Find the git root (git rev-parse --show-toplevel) and scan for toolchain markers to determine which commands the project uses:

Marker file Commands to pattern
Cargo.toml cargo test, cargo build, cargo clippy, cargo fmt --check
package.json npm test, npm run build, npx jest, npx eslint, npx tsc
pyproject.toml / setup.py / requirements.txt pytest, ruff check, mypy, pip install
go.mod go test ./..., go build ./..., go vet ./...
Makefile / CMakeLists.txt make, cmake --build
Dockerfile / docker-compose.yml docker build, docker compose up
terraform/ / *.tf terraform plan, terraform apply
.github/workflows/ inspect YAML for additional commands

Also check for CI config files (.github/workflows/*.yml, .gitlab-ci.yml, Jenkinsfile) to discover commands actually used in the project.

2. Create the patterns directory

mkdir -p <git-root>/.oo/patterns

3. Author one .toml file per command

For each discovered command, create a pattern file in .oo/patterns/. Name files descriptively: cargo-test.toml, npm-build.toml, etc.

Use the TOML format reference below. Key principles:

  • command_match is a regex tested against the full command string
  • [success] extracts a terse summary from passing output via named captures
  • [failure] filters noisy failure output to show only actionable lines
  • An empty summary = "" suppresses output entirely on success (quiet pass)
  • Omit [failure] to show all output on failure (sensible default)

4. Validate patterns

After creating patterns, verify them:

oo patterns          # lists all loaded patterns (project + user + builtins)
oo <command>         # run a real command to test the pattern

Read the full file on GitHub · 257 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. 25d ago Changed eb6166e269cd
  2. 2mo ago First seen · 257 lines · 74 tokens per session scan A 9ac9985b0170

Subscribe to this mod's changes

oo-learn-patterns is a skill published in the GitHub repository randomm/oo (22 stars, last pushed 23d ago), licensed Apache-2.0. It adds 74 tokens to every session and 2,046 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

oo-learn-patterns compared with skills from other repositories

oo-learn-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
oo-learn-patternsrandomm/ooSkill2223d agoApache-2.0A74Claude Code
orbit-notionnexu-io/open-designSkill106kyesterdayApache-2.0A117Claude Code, Codex
agentmailpaperclipai/paperclipSkill111kyesterdayMITA30Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill20kyesterdayMITA184Claude Code
rowboat-spacesrowboatlabs/rowboatSkill18kyesterdayApache-2.0A60Claude Code, Codex
feishuHmbown/CodeWhaleSkill41k5d agoMITA33Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k10d agoMITA52Claude Code, Codex