Logo vun Scout

Scout

Organisatioun
Rune-kit
scout

Fast codebase scanner. Use when any skill needs codebase context. Finds files, patterns, dependencies, project structure. Pure read-only — never modifies files.

Iwwersiicht

EditeurRune-kit
Repositoryrune
Skill-Nummscout
Stären
88
Forks
26
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum Rune-kit op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Scout an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/Rune-kit/rune/tree/master/skills/scout
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Rune-kit/rune.git /tmp/rune
mkdir -p .claude/skills
cp -r /tmp/rune/skills/scout .claude/skills/scout
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Scout an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Scout automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Scout net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

scout

Fast, lightweight codebase scanning. Scout is the eyes of the Rune ecosystem.

Instructions

When invoked, perform these steps:

Phase 1: Structure Scan

Map the project layout:

  1. Use Glob with **/* to understand directory structure
  2. Use Bash to run ls on key directories (root, src, lib, app)
  3. Identify framework by detecting these files:
    • package.json → Node.js/TypeScript
    • Cargo.toml → Rust
    • pyproject.toml / setup.py → Python
    • go.mod → Go
    • pom.xml / build.gradle → Java
TodoWrite: [
  { content: "Scan project structure", status: "in_progress" },
  { content: "Run targeted file search", status: "pending" },
  { content: "Map dependencies", status: "pending" },
  { content: "Detect conventions", status: "pending" },
  { content: "Generate codebase map (if full scan)", status: "pending" },
  { content: "Generate scout report", status: "pending" }
]

Phase 2: Targeted Search (Search-First)

Search-first principle: Before building anything new, scout checks if a solution already exists — in the codebase, in package registries, or in available MCP servers.

Adopt / Extend / Compose / Build decision matrix:

When scout finds the caller's target domain, classify the situation:

ADOPT     — Exact match exists (in codebase, npm, PyPI, MCP). Use as-is.
EXTEND    — Partial match exists. Extend/configure existing solution.
COMPOSE   — Multiple pieces exist. Wire them together.
BUILD     — Nothing suitable exists. Build from scratch.

Report the classification to the calling skill. This informs Phase 2 (PLAN) in cook — ADOPT and EXTEND are vastly cheaper than BUILD.

Quick checks before deep search:

  1. Grep the codebase for existing implementations of the target functionality
  2. Check package.json / pyproject.toml / Cargo.toml for relevant installed packages
  3. If the task involves external data/APIs: note available MCP servers that might help

Based on the scan request, run focused searches:

  1. Use Glob to find files matching the target domain:
    • Auth domain: **/*auth*, **/*login*, **/*session*
    • API domain: **/*.controller.*, **/*.route.*, **/*.handler.*
    • Data domain: **/*.model.*, **/*.schema.*, **/*.entity.*
  2. Use Grep to search for specific patterns:
    • Function names: pattern: "function <name>" or "def <name>"
    • Class definitions: pattern: "class <Name>"
    • Import statements: pattern: "import.*<module>" or "from <module>"
  3. Use Read to examine the most relevant files (max 10 files, prioritize by relevance)

Verification gate: At least 1 relevant file found, OR confirm the target does not exist.

Info Saturation Detection (Know When to Stop)

Scout's default is "max 10 file reads" — but the real question is whether additional reads are productive. Track saturation across Phase 2 searches:

Entity tracking: As you scan files, extract key entities (function names, class names, imports, API endpoints, config keys). Maintain a running set of discovered entities.

SignalThresholdMeaningAction
New entity ratioLast 2 file reads added <2 new entitiesSearch is exhausted for this domainSTOP scanning, move to Phase 3
Content similarityLast 2 files share >70% of the same imports/patternsFiles are in the same module, redundant readsSkip remaining files in this directory
Query variation3+ Glob/Grep queries with different patterns all return the same filesAll search angles convergeDomain is fully mapped, proceed

When saturation detected: Emit in Scout Report:

### Saturation
- Reached after [N] file reads — last 2 reads added [M] new entities
- Recommendation: synthesize_and_report (further scanning unlikely to yield new insights)

Why: Without saturation detection, scout reads its full budget of 10 files even when 3 files already contain everything needed. This wastes context tokens and delays the calling skill. Early saturation detection returns control faster.

Phase 3: Dependency Mapping

  1. Use Grep to find import/require/use statements in identified files
  2. Map which modules depend on which (A → imports → B)
  3. Identify the blast radius of potential changes: which files import the target file

Phase 4: Convention Detection

  1. Check for config files using Glob:
    • .eslintrc*, eslint.config.* → ESLint rules
    • tsconfig.json → TypeScript config
    • .prettierrc* → Prettier config
    • ruff.toml, .ruff.toml → Python linter
  2. Check naming conventions by reading 2-3 representative source files
  3. Find existing tests with Glob: **/*.test.*, **/*.spec.*, **/test_*
  4. Determine test framework: jest.config.*, vitest.config.*, pytest.ini

Phase 4.5: Zoom-Out Mode

Triggered by mode="zoom-out" from the caller, OR auto-triggered by listening on agent.stuck signal (emitted by fix after 2+ failed attempts on the same file, or by debug after 3+ disproved hypothesis cycles).

When activated, scout produces a 3-layer ascent map:

LayerWhat it includesCap
L0 (target)The stuck file's symbols + immediate importsunlimited
L1 (siblings)Files in the same directory + their public exports8 files
L2 (callers/neighbors)Modules that import L0's exports + neighboring modules in the same domain8 modules

Output is a Mermaid diagram, NOT just a file list — visual is the value-add when an agent is stuck.

Bounded — L2 ascent caps at 8 modules. If exceeded, collapse to "showing top 8 by import-frequency". Never blow past the cap silently.

After emitting the map, scout returns to its normal Phase 6 (Generate Report) with the zoom-out section as the primary output.

The Mermaid map is a working artifact for a stuck agent. When a polished visual is needed for docs or a handoff, diagram can redraw the same graph as editorial HTML — suggested_next: diagram.

Phase 5: Codebase Map (Optional)

When called by cook, team, onboard, or autopsy (skills that need full project understanding), generate a structured codebase map:

  1. Create .rune/codebase-map.md with:
markdown
## Codebase Map
Generated: [timestamp]

### Module Boundaries
| Module | Directory | Public API | Dependencies | Domain |
|--------|-----------|-----------|--------------|--------|
| auth | src/auth/ | login(), logout(), verify() | database, config | Authentication |
| api | src/api/ | routes, middleware | auth, database | HTTP Layer |

### Dependency Graph (Mermaid)
```mermaid
graph LR
  api --> auth
  api --> database
  auth --> database
  auth --> config

Domain Ownership

DomainModulesKey Files
Authenticationauth, sessionsrc/auth/login.ts, src/auth/verify.ts
Data Layerdatabase, modelssrc/db/schema.ts, src/models/

2. Derive modules from directory structure (top-level `src/` subdirectories, or detected framework conventions)
3. Public API = exported functions/classes from each module's index/entry file
4. Dependencies = import statements between modules (from Phase 3)
5. Domain = inferred from module name + file contents (auth, payments, frontend, infra, data, config, etc.)

**Skip this phase** when called by skills that only need targeted search (debug, fix, review, sentinel).

### Phase 6: Generate Report

Produce structured output for the calling skill. Update TodoWrite to completed.

## Constraints

- **Read-only**: NEVER use Edit, Write, or Bash with destructive commands. Exception: Phase 5 may write `.rune/codebase-map.md` when called by cook, team, onboard, or autopsy
- **Fast**: Max 10 file reads per scan. Prioritize by relevance score
- **Focused**: Only scan what is relevant to the request, not the entire codebase
- **No side effects**: Do not cache, store, or modify anything

## Error Recovery

- If `Glob` returns 0 results: try broader pattern, then report "not found"
- If a file fails to `Read`: skip it, note in report, continue with remaining files
- If project type is ambiguous: check multiple config files, report all candidates

## Calls (outbound)

None — pure scanner using Glob, Grep, Read, and Bash tools directly. Does not invoke other skills.

## Called By (inbound)

- `plan` (L2): scan codebase before planning
- `debug` (L2): find related code for root cause analysis
- `review` (L2): find related code for context during review
- `fix` (L2): understand dependencies before changing code
- `cook` (L1): Phase 1 UNDERSTAND — scan codebase
- `team` (L1): understand full project scope
- `sentinel` (L2): scan changed files for security issues
- `preflight` (L2): find affected code paths
- `onboard` (L2): full project scan for CLAUDE.md generation
- `autopsy` (L2): comprehensive health assessment
- `surgeon` (L2): scan module before refactoring
- `marketing` (L2): scan codebase for feature descriptions
- `safeguard` (L2): scan module boundaries before adding safety net
- `audit` (L2): Phase 0 project structure and stack discovery
- `db` (L2): find schema and migration files
- `design` (L2): scan UI component library and design tokens
- `perf` (L2): find hotpath files and performance-critical code
- `review-intake` (L2): scan codebase for review context
- `skill-forge` (L2): scan existing skills for patterns when creating new skills
- `ba` (L2): scan existing codebase for context before requirements elicitation
- `retro` (L2): scan commit history and codebase for retrospective analysis
- `graft` (L2): scan target codebase before grafting code from external repo
- `docs` (L2): scan codebase structure for documentation generation
- `logic-guardian` (L2): scan business logic modules for protection mapping
- `adversary` (L2): scan codebase before red-team analysis
- `improve-architecture` (L2): re-scan target module + callers when input context is stale

## Output Format

Scout Report

  • Project: [name] | Framework: [detected] | Language: [detected]
  • Files: [count] | Test Framework: [detected]

Relevant Files

FileWhy RelevantLOC
path/to/file[reason][lines]

Dependencies

  • module-a → imports → module-b

Conventions

  • Naming: [pattern detected]
  • File structure: [pattern]
  • Test pattern: [pattern]

Search-First Assessment

  • Classification: ADOPT | EXTEND | COMPOSE | BUILD
  • Existing solution: [what was found, if any]
  • Recommendation: [brief rationale]

Observations

  • [pattern or potential issue noticed]

## Returns

| Artifact | Format | Location |
|----------|--------|----------|
| Scout Report | Markdown (inline) | Emitted to calling skill |
| Codebase map | Markdown | `.rune/codebase-map.md` (when called by cook, team, onboard, autopsy) |

## Sharp Edges

Known failure modes for this skill. Check these before declaring done.

| Failure Mode | Severity | Mitigation |
|---|---|---|
| Reading all files instead of targeted search (50+ files scanned) | MEDIUM | Max 10 file reads enforced — prioritize by relevance to the caller's domain |
| Reporting "nothing found" without trying a broader pattern | MEDIUM | Try broader glob first (e.g. `**/*auth*` → `**/auth*` → `**/*login*`), then report not found |
| Wrong framework detection affects all downstream planning | HIGH | Check multiple config files; report all candidates if ambiguous, don't guess |
| Missing dependency blast radius in Phase 3 | MEDIUM | Phase 3 is mandatory — callers need to know what else imports the target |

## Done When

- Project structure mapped (directory layout, entry points)
- Framework detected from config files (or "ambiguous" with candidates listed)
- Targeted file search completed for the caller's domain
- Dependency blast radius identified for target files
- Conventions detected (naming, test framework, linting config)
- Codebase map written to `.rune/codebase-map.md` (when called by cook, team, onboard, autopsy)
- Scout Report emitted in structured format with Relevant Files table

## Cost Profile

~500-2000 tokens input, ~200-500 tokens output. Always haiku. Cheapest skill in the mesh.

**Scope guardrail**: Do not expand the scan to unrelated modules or write files beyond `.rune/codebase-map.md` unless explicitly delegated by the parent agent.

Heefeg gestallte Froen

Wat mécht de KI-Skill Scout?

Fast codebase scanner. Use when any skill needs codebase context. Finds files, patterns, dependencies, project structure. Pure read-only — never modifies files.

Firwat Scout op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Scout besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Scout an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Rune-kit/rune/tree/master/skills/scout an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Scout benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Scout benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Scout domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Scout gratis?

Jo. De Skill gëtt vum Rune-kit ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇