code-research

code-research is a skill for Claude Code from oyi77/1ai-skills. It costs 40 tokens per session (2,672 once invoked), scanned A, original, MIT.

A structured method for understanding an unfamiliar codebase, including its architecture, data flows, dependencies, conventions, and starting points.

In plain words
What is it for?
Use it when joining a project, mapping how the system works, or following data from input to output.
Why use it?
It reduces the time and mistakes involved in browsing a new project or tracing a feature spread across many files.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the 1ai-skills plugin — 187 skills, 4 commands, 4 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/oyi77/1ai-skills/code-research
Any agent
npx skills add oyi77/1ai-skills --skill code-research
Clone the repo
git clone --depth 1 https://github.com/oyi77/1ai-skills

Made for: Claude Code.

Or install 1ai-skills, the plugin that ships this one along with the rest of its 187 skills, 4 commands, 4 agents.

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 code-research

README.md
[![agentmods](https://agentmods.dev/badge/skills/oyi77/1ai-skills/code-research.svg)](https://agentmods.dev/skills/oyi77/1ai-skills/code-research)
Your own site
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/code-research"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/code-research.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,672 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.1 $0.00040 $0.02672
Opus 5 $0.00020 $0.01336
Sonnet 5 $0.00008 $0.00534
Haiku 4.5 $0.00004 $0.00267

Measured 6d ago against content hash 054178360f5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

code-research 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 6d 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.

agents/research/code-research/SKILL.md · 321 lines

How it starts

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

Code Research Agent

Autonomous codebase analysis agent that produces structured understanding of unfamiliar code: architecture, data flows, dependencies, conventions, and entry points. This agent reads code systematically -- not randomly browsing files, but following a deliberate investigation protocol.

Anti-Rationalization Table

Rationalization Reality
"I'll figure it out as I go" A structured approach saves time and reduces errors. Follow the workflow in this skill rather than improvising.
"I already know this topic" Familiarity breeds shortcuts. Use the checklist to verify you haven't missed critical steps.
"This doesn't apply to my situation" The patterns here generalize across contexts. Adapt, don't skip — the underlying principles hold.
"One more tool will fix it" Adding complexity rarely solves process gaps. Master the core workflow first.

When to Use

Trigger phrases:

  • "code research"

  • "Joining a new project and need to understand the codebase"

  • "Investigating how a feature is implemented across multiple files"

  • "Tracing a data flow from input to output"

  • Joining a new project and need to understand the codebase

  • Investigating how a feature is implemented across multiple files

  • Tracing a data flow from input to output

  • Understanding dependency chains before making changes

  • Finding all callers of a function or users of a module

  • Mapping the architecture of a monolith or microservice

  • Preparing a technical design document that references existing code

When NOT to Use

  • Implementing new features (use code-agent)
  • Reviewing code quality (use review-agent)
  • Refactoring code (use refactor-agent)
  • Writing tests (use test-agent)
  • Researching external documentation (use web-research)
  • Analyzing market or competitors (use market-research-agent)
  • Code is trivially simple (single file, obvious structure)
  • You already know where everything is
  • Real-time debugging (use systematic-debugging)

Read the full file on GitHub · 321 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. 6d ago First seen · 321 lines · 40 tokens per session scan A 054178360f5e

Subscribe to this mod's changes

code-research is a skill published in the GitHub repository oyi77/1ai-skills (12 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 2,672 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-30.

Related

Other skills, from other repositories

agent-communication-protocol

Open protocol for AI agent interoperability enabling standardized communication between agents, applications, and humans across different frameworks.

majiayu000/claude-skill-registry · 25 tokens

agent-creation-skill

Procedural guide for creating new agents from templates when project complexity requires delegation.

majiayu000/claude-skill-registry · 0 tokens

agent-development-pack

Curated bundle for building, testing, and coordinating AI agent systems. Includes multi-agent orchestration, agent testing, cross-agent handoff, MCP server building, and prompt engineering. Use when developing AI agent workflows or multi-agent systems.

organvm-iv-taxis/a-i--skills · 51 tokens

orchestration

Multi-agent orchestration authority — agent memory protocols, task delegation, SOUL/AGENTS patterns, session startup, inter-agent communication, OpenClaw workspace coordination, and agent lifecycle management.

LuuOW/meridian-mcp · 41 tokens

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

python-feature-lifecycle

Guidance for package and feature lifecycle in the Agent Framework Python codebase, including stage meanings, feature-stage decorators, feature enums, and how to move APIs from one stage to the next.

microsoft/agent-framework · 43 tokens