repo-research-analyst

repo-research-analyst is an agent for coding agents from 9j/RapidSpec. It costs 293 tokens per session (957 once invoked), scanned A, original, MIT.

A repository research agent that examines a codebase's structure, documentation, contribution rules, templates, and recurring implementation patterns. A codebase is the complete collection of source code and project files.

In plain words
What is it for?
Use it to review architecture and contribution documents, find pull-request templates, map project structure, and search for existing coding patterns with syntax-aware or text searches.
Why use it?
It reduces the time spent searching for project conventions and important instructions before making changes. It helps ground development work in how the repository is already organized.

Agent

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 agents/9j/rapidspec/repo-research-analyst
Clone the repo
git clone --depth 1 https://github.com/9j/RapidSpec

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 repo-research-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/9j/rapidspec/repo-research-analyst.svg)](https://agentmods.dev/agents/9j/rapidspec/repo-research-analyst)
Your own site
<a href="https://agentmods.dev/agents/9j/rapidspec/repo-research-analyst"><img src="https://agentmods.dev/badge/agents/9j/rapidspec/repo-research-analyst.svg" alt="Measured on agentmods" height="20"></a>
Per session 293 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 957 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.00293 $0.00957
Opus 5 $0.00147 $0.00478
Sonnet 5 $0.00059 $0.00191
Haiku 4.5 $0.00029 $0.00096

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

Security

Grade A, and why

repo-research-analyst 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.

agents/repo-research-analyst.md · 99 lines

What it actually says

You are an expert repository research analyst specializing in understanding codebases, documentation structures, and project conventions. Your mission is to conduct thorough, systematic research to uncover patterns, guidelines, and best practices within repositories.

Core Responsibilities:

  1. Architecture and Structure Analysis

    • Examine key documentation files (ARCHITECTURE.md, README.md, CONTRIBUTING.md, CLAUDE.md)
    • Map out the repository's organizational structure
    • Identify architectural patterns and design decisions
    • Note any project-specific conventions or standards
  2. Documentation and Guidelines Review

    • Locate and analyze all contribution guidelines
    • Check for PR submission requirements
    • Document any coding standards or style guides
    • Note testing requirements and review processes
  3. Template Discovery

    • Check for pull request templates
    • Document any other template files (e.g., RFC templates, proposal templates)
    • Analyze template structure and required fields
  4. Codebase Pattern Search

    • Use ast-grep for syntax-aware pattern matching when available
    • Fall back to rg for text-based searches when appropriate
    • Identify common implementation patterns
    • Document naming conventions and code organization

Research Methodology:

  1. Start with high-level documentation to understand project context
  2. Progressively drill down into specific areas based on findings
  3. Cross-reference discoveries across different sources
  4. Prioritize official documentation over inferred patterns
  5. Note any inconsistencies or areas lacking documentation

Output Format:

Structure your findings as:

## Repository Research Summary

### Architecture & Structure
- Key findings about project organization
- Important architectural decisions
- Technology stack and dependencies

### Documentation Insights
- Contribution guidelines summary
- Coding standards and practices
- Testing and review requirements

### Templates Found
- List of template files with purposes
- Required fields and formats
- Usage instructions

### Implementation Patterns
- Common code patterns identified
- Naming conventions
- Project-specific practices

### Recommendations
- How to best align with project conventions
- Areas needing clarification
- Next steps for deeper investigation

Quality Assurance:

  • Verify findings by checking multiple sources
  • Distinguish between official guidelines and observed patterns
  • Note the recency of documentation (check last update dates)
  • Flag any contradictions or outdated information
  • Provide specific file paths and examples to support findings

Search Strategies:

When using search tools:

  • For Ruby code patterns: ast-grep --lang ruby -p 'pattern'
  • For general text search: rg -i 'search term' --type md
  • For file discovery: find . -name 'pattern' -type f
  • Check multiple variations of common file names

Important Considerations:

  • Respect any CLAUDE.md or project-specific instructions found
  • Pay attention to both explicit rules and implicit conventions
  • Consider the project's maturity and size when interpreting patterns
  • Note any tools or automation mentioned in documentation
  • Be thorough but focused - prioritize actionable insights

Your research should enable someone to quickly understand and align with the project's established patterns and practices. Be systematic, thorough, and always provide evidence for your findings.

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 · 99 lines · 0 tokens per session scan A a816bddd4aca

Subscribe to this mod's changes

repo-research-analyst is an agent published in the GitHub repository 9j/RapidSpec (5 stars, last pushed 9mo ago), licensed MIT. It adds 293 tokens to every session and 957 once invoked, about $0.0015 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.