learning

learning is a skill for Claude Code, Codex from walm00/business-context-os. It costs 54 tokens per session (1,233 once invoked), scanned A, original, MIT.

A command for managing rules learned from the user’s past choices in the BCOS system. It can list or forget learned rules and regenerate the derived rules file from the recorded resolution log.

In plain words
What is it for?
Use it to review learned rules, remove one, or rebuild learned-rules.json from resolutions.jsonl.
Why use it?
It lets you inspect and control suggestions based on previous selections instead of treating them as permanent. The command manages stored results; the learning itself happens when resolutions are recorded.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/walm00/business-context-os/learning
Any agent
npx skills add walm00/business-context-os --skill learning
Clone the repo
git clone --depth 1 https://github.com/walm00/business-context-os

Made for: Claude Code, Codex.

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 learning

README.md
[![agentmods](https://agentmods.dev/badge/skills/walm00/business-context-os/learning.svg)](https://agentmods.dev/skills/walm00/business-context-os/learning)
Your own site
<a href="https://agentmods.dev/skills/walm00/business-context-os/learning"><img src="https://agentmods.dev/badge/skills/walm00/business-context-os/learning.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,233 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00054 $0.01233
Opus 5 $0.00027 $0.00616
Sonnet 5 $0.00011 $0.00247
Haiku 4.5 $0.00005 $0.00123

Measured 5d ago against content hash d04513fffdf8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

learning 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 5d 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/learning/SKILL.md · 95 lines

How it starts

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

/learning — Self-learning ladder management

Surface for inspecting and editing the rules BCOS has learned from your resolution clicks.

How learning works (one paragraph)

Every dashboard card click and every headless action writes a row to .claude/quality/ecosystem/resolutions.jsonl via record_resolution.py. The promote_resolutions.py script reads that log, groups by (finding_type, action_taken), and promotes pairs that meet tier thresholds into .claude/quality/ecosystem/learned-rules.json. The cockpit reads learned-rules.json to add a "✨ suggested" badge on cards where you've consistently picked the same action.

Tier thresholds:

Tier Required signal Behavior
preselect (P5, current) N≥3 + consistency=1.0 Pre-fills the radio button on the matching card. Doesn't apply anything.
auto-apply (P7, future) N≥5 + consistency≥0.9 + 14d span Applies after a 10-second undo countdown.
silent (P8, gated) N≥10 + consistency≥0.95 + 6w auditor-clean + opt-in Fires without a card. Per-rule user click required to promote into this tier.

learning-blocklist.json is the user's veto: rules in there are excluded from learned-rules.json regardless of evidence.

Subcommands

/learning list

Show all currently-learned rules grouped by tier with their evidence counts.

Reads: .claude/quality/ecosystem/learned-rules.json Side effects: none Output: table of {rule_id, tier, n, consistency, last_observed, calendar_span_days}.

If learned-rules.json is missing or empty, say so and suggest /learning regenerate.

/learning forget <rule-id>

Add a rule to learning-blocklist.json and regenerate learned-rules.json. The rule disappears from the cockpit's "✨ suggested" badges immediately and won't be relearned even if more supporting evidence accumulates.

Required arg: <rule-id> in <finding_type>::<action_taken> form (e.g. inbox-aged::inbox-aged-archive).

Mechanism: call promote_resolutions.add_to_blocklist(rule_id) then promote_resolutions.regenerate(). Both are idempotent.

Read the full file on GitHub · 95 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. 5d ago First seen · 95 lines · 54 tokens per session scan A d04513fffdf8

Subscribe to this mod's changes

learning is a skill published in the GitHub repository walm00/business-context-os (21 stars, last pushed 3mo ago), licensed MIT. It adds 54 tokens to every session and 1,233 once invoked, about $0.0003 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-08-30.

Related

Other skills, from other repositories

wiki-ingest

Ingest supplied source material into an Obsidian vault with provenance and claim tracking: pasted text, files staged in the selected vault's inbox or .raw archive, or explicitly approved URLs. Use for a single source or bounded batch, not for saving an assistant answer. Triggers: ingest, ingest this file, ingest this…

AgriciDaniel/claude-obsidian · 88 tokens

autoresearch

Run a bounded, source-grounded research loop, draft a cited dossier, and optionally propose a separately reviewed canonical vault merge. Use when the user wants autonomous or deep research that may access the public web. Triggers: /autoresearch, autoresearch, research this topic, deep dive into, investigate, find…

AgriciDaniel/claude-obsidian · 80 tokens

wiki-retrieve

Build and query a vault-local contextual BM25 retrieval index with optional multilingual Nomic cosine reranking; use for retrieve, hybrid retrieval, BM25, rerank, contextual retrieval, chunk search, vault search, semantic search, find relevant passages, or retrieval diagnostics. Derived caches stay under .vault-meta…

AgriciDaniel/claude-obsidian · 81 tokens

canvas

Create, inspect, and update Obsidian JSON Canvas boards with text, file, link, group, and edge nodes. Use for canvas status, canvas lists, visual maps, zones, spatial layouts, adding vault notes or media to a .canvas file, and requests such as create canvas, add to canvas, or put this on the canvas.

AgriciDaniel/claude-obsidian · 72 tokens

defuddle

Plan and, with explicit network consent, use an optional external Defuddle cleaner to extract article-like HTTPS pages as Markdown. Use for defuddle, clean this URL, strip page clutter, readable Markdown from a web page, or preparing a web source for later wiki ingestion.

AgriciDaniel/claude-obsidian · 57 tokens

obsidian-bases

Explain, draft, and validate Obsidian Bases .base files with filters, formulas, properties, summaries, and table, card, or list views. Use for Obsidian Bases, database-like vault views, dynamic tables, reading lists, task trackers, filters, formulas, summaries, and .base file edits.

AgriciDaniel/claude-obsidian · 69 tokens