Scout

From InugamiDev/ultrathink-oss · View interactive version

Scout is an AI agent skill from the GitHub repository InugamiDev/ultrathink-oss. Codebase reconnaissance and exploration -- map structure, find patterns, understand architecture

How to use this skill

Skill file

Scout Skill

Purpose

Perform systematic codebase reconnaissance to answer questions about structure, conventions, patterns, and architecture. Scout is the eyes and ears of the agent system -- it goes in first and reports back what it finds so that other skills (plan, debug, refactor, etc.) can make informed decisions.

Scout does not change code. It reads, maps, and reports.

Workflow

Mode 1: Full Reconnaissance (default for new codebases)

  1. Project structure scan
  1. Tech stack identification
  1. Architecture mapping
  1. Convention detection
  1. Produce the reconnaissance report using the template below.

Mode 2: Targeted Exploration (for specific questions)

  1. Parse the question -- What specifically is the user looking for?
  1. Search strategy
  1. Trace the feature/pattern
  1. Report findings with file paths, code snippets, and a summary of how the pieces connect.

Mode 3: Diff Reconnaissance (for understanding changes)

  1. Analyze recent changes -- What files have been modified recently?
  2. Map change impact -- What other files/features might be affected?
  3. Identify test coverage gaps -- Are the changed areas tested?
  4. Report risk areas -- Where are changes most likely to cause breakage?

Reconnaissance Report Template

# Codebase Reconnaissance: [Project Name]

## Overview
- **Type**: [monorepo | app | library | ...]
- **Primary language**: [language + version]
- **Framework**: [framework + version]
- **Architecture**: [pattern name]

## Tech Stack
| Category | Technology | Version | Notes |
|----------|-----------|---------|-------|
| Runtime | Node.js | 20.x | |
| Framework | Next.js | 14.x | App Router |
| Database | PostgreSQL | 15 | Via Prisma |
| ... | ... | ... | ... |

## Directory Structure

project/

├── src/ # Application source

│ ├── app/ # Next.js app router pages

│ ├── components/# Shared UI components

│ ├── lib/ # Utilities and shared logic

│ └── ...

├── tests/ # Test files

└── ...


## Key Entry Points
| Purpose | File | Notes |
|---------|------|-------|
| App entry | `src/app/layout.tsx` | Root layout |
| API routes | `src/app/api/` | REST endpoints |
| Database | `prisma/schema.prisma` | Data model |

## Conventions
- **File naming**: kebab-case for files, PascalCase for components
- **Imports**: Path aliases via `@/` prefix
- **Testing**: Jest + React Testing Library, tests co-located with source
- **Error handling**: [pattern description]

## Architecture Notes
[Key observations about how the system is structured]

## Notable Patterns
- [pattern 1]: [where and how it is used]
- [pattern 2]: [where and how it is used]

## Potential Concerns
- [concern 1]
- [concern 2]

Usage

Full reconnaissance

/scout

Targeted exploration

/scout Where is authentication handled?
/scout How does the payment flow work?
/scout Find all API endpoints

Focused on a directory

/scout Explore src/lib/

Change impact

/scout What would be affected if we change the User model?

Examples

Example: Feature exploration

Input: "/scout How does file upload work?"

Process:

  1. Grep for "upload", "file", "multer", "formdata" across codebase
  2. Find src/app/api/upload/route.ts -- the API endpoint
  3. Find src/components/FileUploader.tsx -- the UI component
  4. Find src/lib/storage.ts -- the storage abstraction
  5. Trace: Component calls API endpoint, which uses storage lib to write to S3
  6. Find tests/upload.test.ts -- tests exist

Output: Detailed map of the upload feature with file paths, data flow diagram, and notes about the S3 configuration.

Example: Architecture mapping

Input: "/scout"

Process:

  1. Read package.json -- Next.js 14, Prisma, Tailwind, etc.
  2. Scan directory structure -- feature-sliced design with app router
  3. Read tsconfig.json -- path aliases, strict mode
  4. Check for .env.example -- environment variables needed
  5. Read a few representative files to confirm patterns

Output: Full reconnaissance report with tech stack table, directory map, conventions, and notable findings.

Guidelines

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.