study

A codebase-analysis guide that produces a blueprint of reusable software architecture patterns. It can study an entire project or a chosen area, such as search, data storage, or an MCP server.

In plain words
What is it for?
Use it to study a project's structure, identify its important design patterns, and plan a new implementation based on them. It is also useful when investigating a specific subsystem.
Why use it?
It reduces the need to understand a large codebase file by file before designing a similar system. The resulting blueprint explains patterns that can be reused elsewhere.

Skill for Claude CodeCodex

Part of the grepika plugin — 9 skills, 3 commands, 2 agents shipped together

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/adamthewilliam/grepika/study
Any agent
npx skills add adamthewilliam/grepika --skill study
Clone the repo
git clone --depth 1 https://github.com/adamthewilliam/grepika

Made for: Claude Code, Codex.

Or install grepika, the plugin that ships this one along with the rest of its 9 skills, 3 commands, 2 agents.

Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,621 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00067 $0.01621
Opus 5 $0.00034 $0.00811
Sonnet 5 $0.00013 $0.00324
Haiku 4.5 $0.00007 $0.00162

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

Security

Grade B, and why

study scanned grade B 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 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat > ~/.claude/blueprints/SOURCE_NAME/blueprint.md << 'BLUEPRINT_EOF'
plugins/grepika/skills/study/SKILL.md · 196 lines

How it starts

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

Codebase Study — Blueprint Extraction

You are an architecture analyst who extracts reusable patterns from codebases. Your goal is to produce a blueprint — a structured document of named, reusable patterns that someone could use to build a similar system from scratch.

Input

Focus area: $ARGUMENTS

If no focus specified, study the entire codebase architecture. If a focus is specified (e.g., "MCP server pattern", "search architecture", "database layer"), concentrate on that area.

Pre-check

If any tool returns "No active workspace", call mcp__grepika__add_workspace with the project root first, then retry the tool.

Study Workflow

Step 1: Detect Source Name

Determine a short identifier for this codebase. Use Bash to check these in order:

  1. grep -m1 '^name' Cargo.toml | cut -d'"' -f2 (Rust)
  2. jq -r .name package.json (Node.js)
  3. basename $(git remote get-url origin 2>/dev/null | sed 's/.git$//') (git remote)
  4. basename $PWD (fallback)

Store the result as SOURCE_NAME.

Step 2: Get Codebase Overview

  1. Use mcp__grepika__stats with detailed: true for size and language breakdown
  2. Use mcp__grepika__toc with depth: 3 for directory structure
  3. Identify the primary language and framework

Step 3: Identify Key Architectural Patterns

For each major module or subsystem:

  1. Use mcp__grepika__outline on key files to understand exports and structure
  2. Use mcp__grepika__search with mode: "fts" for conceptual patterns (e.g., "error handling strategy", "configuration management")
  3. Use mcp__grepika__refs on key types/functions to trace how they connect
  4. Use mcp__grepika__get to read critical implementation details

For each pattern you discover, determine:

  • Name: A kebab-case identifier (e.g., spawn-blocking-bridge, score-merging, incremental-indexing)
  • Load-bearing?: Would removing this break the core value proposition? (yes/no)
  • Category: concurrency, data-flow, error-handling, configuration, persistence, api-design, security, performance, testing
  • What: One paragraph explaining the pattern
  • Why: The constraint or problem that motivated this design choice
  • Key Files: The 2-4 most important file:line references
  • Implementation: The essential code snippets (keep brief — just enough to understand the approach)
  • Adapt When: When someone building a different project should use this pattern

Read the full file on GitHub · 196 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. 3d ago First seen · 196 lines · 67 tokens per session scan B d43087b23268

Subscribe to this mod's changes

study is a skill published in the GitHub repository adamthewilliam/grepika (134 stars, last pushed 21d ago), licensed MIT. It adds 67 tokens to every session and 1,621 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). 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

trulens-notebook-execution

Execute and display Jupyter notebooks for TruLens demos and quickstarts.

truera/trulens · 21 tokens

eli5

Explain research, papers, or technical ideas in plain English with minimal jargon, concrete analogies, and clear takeaways. Use when the user says "ELI5 this", asks for a simple explanation of a paper or research result, wants jargon removed, or asks what something technically dense actually means.

companion-inc/feynman · 63 tokens

deck-course-module

暖纸背景 + Playfair, 左侧学习目标常驻, 含 MCQ 自测页.

nexu-io/html-anything · 25 tokens

master-yinguang

Use when user asks about 印光大师, 净土, 念佛, 持名念佛, 十念法, 摄耳谛听, 老实念佛, 信愿行, 带业往生, 仗佛慈力, 自力他力, 竖出横超, 往生, 极乐, 阿弥陀佛, 净土三经, 敦伦尽分, 闲邪存诚, 因果报应, 文钞, 一函遍复, or wants teaching in 印光大师 Yinguang's voice. Triggers include "印光"、"文钞"、"老实念佛"、"信愿行"、"带业往生"、"仗佛慈力"、"横超竖出"、"都摄六根"、"净念相继"、"敦伦尽分"、"闲邪存诚"、"因果"、"十念法"、"摄耳谛听"、"一函遍复"、"净土三经"、"往生" — invoke…

xr843/Master-skill · 274 tokens

explore-unknowns

Guide the user through a quadrant walk that maps the unknowns of a task — open by listing the known knowns, then work through known unknowns, unknown knowns, and unknown unknowns one stage at a time, ending with a complete four-quadrant map in the user's hands. Use when a request is ambiguous or underspecified, the…

dzhng/skills · 162 tokens

obsidian-to-clew-import

Convert an Obsidian vault or wiki-linked markdown graph into a validated structured-learning graph package for Clew. Use when the user wants to inspect a vault, preview whether it imports cleanly, preserve explicit relation markers, choose only the few import settings that matter, and produce a fail-closed package…

miuuyy/Clew · 72 tokens