CommunityResearch & Data Analysisgithub.com

ebursztein/agent-skills

Orient in local codebases at the start of coding sessions and before refactors or complex code questions using scoped ast-grep outlines. Choose rg for exact text, ColGREP for behavioral discovery, and ast-grep for structural searches and transformations; not for web research.

What is agent-skills?

agent-skills is a Claude Code agent skill that orient in local codebases at the start of coding sessions and before refactors or complex code questions using scoped ast-grep outlines. Choose rg for exact text, ColGREP for behavioral discovery, and ast-grep for structural searches and transformations; not for web research.

Works with✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/ebursztein/agent-skills/tree/HEAD/skills/code-search

Installed? Explore more Research & Data Analysis skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Local code search

Installation and gotchas

Read setup and troubleshooting when tools are missing, installing this skill on another machine, checking acceleration, or updating it. Do not install or reconfigure tools just because an ordinary code task invokes this skill. The optional portable cgrep helper supplies search flags; platform-specific settings and their limits are documented in setup.

Start with orientation

At the start of a coding session, and before investigating a refactor or complex code question, read the repository's instructions and relevant project guidance, then use a scoped outline as the first code-navigation pass before broad source reads or implementation planning. Read the outline subguide.

Choose the smallest relevant package, directory or file; do not outline a whole monorepo by default. If the area is unknown, use filenames or a focused ColGREP query to find candidates, then outline them. Reuse an outline already current in this session; refresh affected files after structural edits. Simple exact lookups, small changes in already-understood code and non-code chats can proceed directly. This is a working habit, not a background process or an every-turn scan.

Choose the next tool

Choose from what is known about the target, and read only the relevant subguide. These guides belong to this skill, not separate skill registrations.

NeedToolSubguide
Session orientation, refactor surface or complex code investigationast-grep outlineOutline first
Exact string, error message, filename or simple identifier occurrencergExact search
Find an implementation from a description of behaviorColGREP / cgrepSemantic discovery
Syntax, relationships within code structure, repeatable syntax-based changesast-grepStructural search

Start with a narrow file or directory scope when the relevant area is known. It is normal to discover candidates with ColGREP, inspect a known symbol with rg, and refine a syntactic pattern with ast-grep. Do not run all three automatically. Use native agent tools for reading/editing files, tests and git operations.

Search results locate candidates; inspect the relevant source before making a behavioral claim. Do not treat syntactic matches as type-resolved references.

One canonical installation serves Codex and Claude Code. Maintain tool guidance here; do not reinstall standalone tool skills or activate duplicate search hooks.

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

Related Skills