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.
curl -O https://raw.githubusercontent.com/randomm/oo/main/.claude/skills/oo-learn-patterns/SKILL.mdgit clone --depth 1 https://github.com/randomm/ooWrote 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/randomm/oo/oo-learn-patterns)<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.
<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>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.00074 | $0.02046 |
| Opus 5.5 | $0.00030 | $0.00818 |
| Sonnet 5.5 | $0.00015 | $0.00409 |
| Haiku 4.5 | $0.00007 | $0.00205 |
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 | 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_matchis 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
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.
- 25d ago Changed eb6166e269cd
- 2mo ago First seen · 257 lines · 74 tokens per session scan A 9ac9985b0170
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.
oo-learn-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| oo-learn-patternsrandomm/oo | Skill | 22 | 23d ago | Apache-2.0 | A | 74 | Claude Code |
| orbit-notionnexu-io/open-design | Skill | 106k | yesterday | Apache-2.0 | A | 117 | Claude Code, Codex |
| agentmailpaperclipai/paperclip | Skill | 111k | yesterday | MIT | A | 30 | Claude Code, Codex |
| Cortexdanielmiessler/LifeOS | Skill | 20k | yesterday | MIT | A | 184 | Claude Code |
| rowboat-spacesrowboatlabs/rowboat | Skill | 18k | yesterday | Apache-2.0 | A | 60 | Claude Code, Codex |
| feishuHmbown/CodeWhale | Skill | 41k | 5d ago | MIT | A | 33 | Claude Code, Codex |
| pinchtab-mcppinchtab/pinchtab | Skill | 11k | 10d ago | MIT | A | 52 | Claude Code, Codex |