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 agentmods add skills/aaronb305/claude-cortex/learning-capturenpx skills add aaronb305/claude-cortex --skill learning-capturegit clone --depth 1 https://github.com/aaronb305/claude-cortexWrote 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/aaronb305/claude-cortex/learning-capture)<a href="https://agentmods.dev/skills/aaronb305/claude-cortex/learning-capture"><img src="https://agentmods.dev/badge/skills/aaronb305/claude-cortex/learning-capture.svg" alt="Measured on agentmods" 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 | $0.00041 | $0.01082 |
| Opus 5 | $0.00020 | $0.00541 |
| Sonnet 5 | $0.00008 | $0.00216 |
| Haiku 4.5 | $0.00004 | $0.00108 |
Grade A, and why
learning-capture 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 3d 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 — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Learning Capture Skill
This skill enables explicit capture of learnings to the claude-cortex blockchain ledger, ensuring valuable insights persist across sessions.
When to Capture
Discoveries
- Finding out how a system works
- Discovering undocumented API behavior
- Learning about codebase architecture
- Performance characteristics found
Example triggers:
- "I found that..."
- "It turns out..."
- "The system actually..."
Decisions
- Choosing a technology or approach
- Making architectural decisions
- Selecting patterns or conventions
- Resolving tradeoffs
Example triggers:
- "We decided to..."
- "Going with X because..."
- "Chose this approach since..."
Errors
- Mistakes made and how to avoid them
- Gotchas and edge cases
- Failed approaches
- Debugging insights
Example triggers:
- "Don't do X because..."
- "Watch out for..."
- "This doesn't work when..."
Patterns
- Reusable code patterns
- Naming conventions
- File organization strategies
- Testing approaches
Example triggers:
- "The pattern for X is..."
- "Always use Y for..."
- "Convention is to..."
Tagging Format
Use these tags in your responses to mark learnings:
[DISCOVERY] The API rate limits at 100 requests per minute
[DECISION] Using Redis for caching due to pub/sub requirements
[ERROR] Don't use async in middleware - breaks error handling
[PATTERN] All services implement the IService interface
Manual Capture
Use the learn command to explicitly capture:
uv run python -c "
import json
import hashlib
from datetime import datetime
from pathlib import Path
from uuid import uuid4
# Configure
CATEGORY = 'discovery' # discovery, decision, error, pattern
CONTENT = 'Your learning content here'
LEDGER_PATH = Path.home() / '.claude' / 'ledger' # or Path('.claude/ledger')
# Ensure structure
LEDGER_PATH.mkdir(parents=True, exist_ok=True)
(LEDGER_PATH / 'blocks').mkdir(exist_ok=True)
index_file = LEDGER_PATH / 'index.json'
if not index_file.exists():
index_file.write_text('{\"head\": null, \"blocks\": []}')
reinforcements_file = LEDGER_PATH / 'reinforcements.json'
if not reinforcements_file.exists():
reinforcements_file.write_text('{\"learnings\": {}}')
# Read state
index = json.loads(index_file.read_text())
reinforcements = json.loads(reinforcements_file.read_text())
# Create learning
learning = {
'id': str(uuid4()),
'category': CATEGORY,
'content': CONTENT,
'confidence': 0.6,
'source': None,
'outcomes': []
}
# Create block
block_id = str(uuid4())[:8]
block = {
'id': block_id,
'timestamp': datetime.utcnow().isoformat(),
'session_id': 'manual',
'parent_block': index.get('head'),
'learnings': [learning]
}
block['hash'] = hashlib.sha256(json.dumps(block, sort_keys=True, default=str).encode()).hexdigest()
# Save
(LEDGER_PATH / 'blocks' / f'{block_id}.json').write_text(json.dumps(block, indent=2))
index['head'] = block_id
index['blocks'].append({'id': block_id, 'timestamp': block['timestamp'], 'hash': block['hash'], 'parent': block.get('parent_block')})
index_file.write_text(json.dumps(index, indent=2))
reinforcements['learnings'][learning['id']] = {'category': CATEGORY, 'confidence': 0.6, 'outcome_count': 0, 'last_updated': datetime.utcnow().isoformat()}
reinforcements_file.write_text(json.dumps(reinforcements, indent=2))
print(f'Captured: {learning[\"id\"][:8]} [{CATEGORY}]')
"
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.
- 3d ago First seen · 159 lines · 41 tokens per session scan A 512152b2c680
learning-capture is a skill published in the GitHub repository aaronb305/claude-cortex (2 stars, last pushed 5mo ago), licensed MIT. It adds 41 tokens to every session and 1,082 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-08-31.
Other skills, from other repositories
azure-mgmt-apicenter-dotnet
Azure API Center SDK for .NET. Centralized API inventory management with governance, versioning, and discovery. Use for creating API services, workspaces, APIs, versions, definitions, environments, deployments, and metadata schemas. Triggers: "API Center", "ApiCenterService", "ApiCenterWorkspace", "ApiCenterApi", "API…
requirements-author
Requirements authoring guide for BRD and PRD across Discover, Define, and Govern with canonical templates and handoff contracts.
marginfi
MarginFi — Solana lending and borrowing.
crypto-market-rank
Crypto market rankings and leaderboards. Query trending tokens, top searched tokens, Binance Alpha tokens, tokenized stocks, social hype sentiment ranks, smart money inflow token rankings, top meme token rankings from Pulse launchpad, and top trader PnL leaderboards. Use this skill when users ask about token rankings…
trading-signal
Subscribe and retrieve on-chain Smart Money signals. Monitor trading activities of smart money addresses, including buy/sell signals, trigger price, current price, max gain, and exit rate. Use this skill when users are looking for investment opportunities — smart money signals can serve as valuable references for…
deposit-qr
Use when a user needs a QR code or wallet payment URI to fund a Superior-managed EVM wallet on a specific chain before using Lighter, Polymarket, Hyperliquid, or other Superior Trade workflows.