enrich

enrich is a skill for Claude Code, Codex from RashadAnsari/myagents. It costs 37 tokens per session (1,751 once invoked), scanned A, original, MIT.

A workflow for mining the 100 most recently merged GitHub pull requests and saving durable project lessons from them.

In plain words
What is it for?
Use it to extract architecture facts, coding conventions, decisions, and recurring problems from pull-request discussions.
Why use it?
It turns decisions, conventions, and discovered problems in past code reviews into searchable project memory.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present.

Part of the albino plugin — 18 skills, 14 agents, 3 MCP servers shipped together

Good fit Use it to extract architecture facts, coding conventions, decisions, and recurring problems from pull-request discussions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rashadansari/myagents/enrich
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.

Any agent
npx skills add RashadAnsari/myagents --skill enrich
Clone the repo
git clone --depth 1 https://github.com/RashadAnsari/myagents

Made for: Claude Code, Codex.

Or install albino, the plugin that ships this one along with the rest of its 18 skills, 14 agents, 3 MCP servers.

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 enrich

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rashadansari/myagents/enrich"><img src="https://agentmods.dev/badge/skills/rashadansari/myagents/enrich.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,751 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00037 $0.01751
Opus 5.5 $0.00015 $0.00700
Sonnet 5.5 $0.00007 $0.00350
Haiku 4.5 $0.00004 $0.00175

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

Security

Grade A, and why

enrich 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 yesterday.

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.

plugins/albino/skills/enrich/SKILL.md · 186 lines

How it starts

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

Memory Enrichment

Mine the 100 most recently merged PRs in the current repository. Extract durable learnings from PR bodies, review discussions, and comments. Write what is genuinely non-obvious and useful to project memory.

Step 1: Validate Environment

Run all three in parallel:

gh auth status
git rev-parse --show-toplevel
gh repo view --json nameWithOwner --jq '.nameWithOwner'

Store PROJECT_ROOT (from git rev-parse) and REPO (e.g. owner/repo). If gh is not authenticated, tell the user to run gh auth login and stop.

Step 2: Load Existing Memory

Call project_search with these two queries in parallel to understand what is already captured:

  • "architecture decision convention pattern"
  • "gotcha bug workflow dependency"

Combine results into EXISTING_MEMORY_SUMMARY: a compact list of summaries already stored. Extractor agents will use this to avoid rediscovering what is already known.

Step 3: Fetch Merged PR List

gh pr list --repo {REPO} --state merged --limit 100 \
  --json number,title,mergedAt,comments,reviews \
  --jq 'sort_by((.comments | length) + (.reviews | length)) | reverse | [.[] | {number: .number, title: .title}]'

Store as PR_LIST. Sort puts high-discussion PRs first to maximize signal in the analysis. If the repo has fewer than 100 merged PRs, proceed with however many exist. If there are no merged PRs, tell the user and stop.

Extract just the number field from each element so you have a flat array PR_NUMBERS like [101, 99, 88, ...].

Step 4: Split Into Batches and Spawn Extractor Agents

Divide PR_NUMBERS into batches of 10 (up to 10 batches total). Spawn all batches simultaneously. Do not wait for one to finish before starting the next.

Each extractor agent receives:

  • REPO: the owner/repo string
  • BATCH: a list of 10 PR numbers
  • EXISTING_MEMORY_SUMMARY: the summary from Step 2

Use this prompt for every extractor agent (substituting values):

Read the full file on GitHub · 186 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 186 lines · 37 tokens per session scan A c55bc0930c78

Subscribe to this mod's changes

enrich is a skill published in the GitHub repository RashadAnsari/myagents (6 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 1,751 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-10-15.

Related

Other skills, from other repositories

memory-to-skill

Turn workflows from your MemSearch memory into reusable skills. Use when the user asks to make/create/extract/distill a skill from what they just did or from past work, review skill candidates, install a distilled skill, or 'turn this into a skill'. Manages MemSearch procedural-memory candidates under…

zilliztech/memsearch · 82 tokens

memory

Persist and retrieve agent memory across sessions — recall via the three-stage protocol (structure route → semantic search → navigation fallback), read via memoryload, see the wiki structure via memorybrowse, write well-placed pages via memorywrite (including section-level append/rewrite), maintain via memorycurate.…

Prismer-AI/PrismerCloud · 122 tokens

memory-dream

Curate the workspace memory wiki as its appointed orchestrator. Trigger on a Cloud-scheduled Dream task or a user's direct curation request. Inspect candidates for orphan leaves, near-duplicates, stale pages, remote conflicts and oversized hubs; browse the graph, cluster leaves into INDEX/hub/leaf structure, maintain…

Prismer-AI/PrismerCloud · 133 tokens

code-review

Review a diff against its acceptance criteria in four segments (convention adherence, bug scan, historical-context regressions, test-coverage gaps) as a NON-implementing agent. Findings are sorted by severity, each with file:line + a failure scenario. A planted defect must be caught; a clean diff must not be…

Prismer-AI/PrismerCloud · 72 tokens

design-review

Five-dimension design audit (frontend UI/UX · server data-model & flow · endpoint spec · daemon-runtime/SDK & local-cache-first · built-in skill/agent-role), executed by a NON-implementing agent. Every dimension gets a verdict; N/A only with a stated reason. A dimension the design silently skipped must be surfaced as…

Prismer-AI/PrismerCloud · 84 tokens

codebase-design

Design maintainable module interfaces, review scoped code changes, and simplify implementations with behavioral verification. Use for code review, cleanup, testability, and module design work.

Prismer-AI/PrismerCloud · 37 tokens