Skip to content
Back to skills

Orc Scout

ASecurity

Phase-scoped codebase discovery and cross-phase context bridge.

  • 5 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 27, 2026
developmentbashtestinggit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add qGolem/orc --skill orc-scout --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Orc Scout?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Orc Scout
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qgolem-orc-scout/badge)](https://www.skillsdirectory.com/skills/qgolem-orc-scout)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Phase-scoped codebase discovery and cross-phase context bridge.
argument-hint: [slug] [phase-num]
allowed-tools:
  - Read
  - Write
  - Glob
  - Grep
  - Bash(git log:*)
  - Bash(wc:*)
  - Bash(tree:*)
  - Bash(madge:*)
model: inherit
context: fork
hooks: {}
user-invocable: false
---

# Orc Scout

Phase-scoped codebase discovery that runs forked (non-interactive). Explores files referenced in PLAN.md and their surrounding code. For phases > 1, reads prior phase artifacts for cross-phase awareness.

## Input

- **$ARGUMENTS** — `{slug} {phase-num}` (e.g., `my-feature 2`)

## Template

See [templates/SCOUT.md](templates/SCOUT.md) for output format.

## Process

### Step 1: Parse Arguments and Locate Phase

```
slug = first word of $ARGUMENTS
phase_num = second word of $ARGUMENTS
```

Find phase directory:
```
Glob .claude/plans/{slug}/phases/0{phase_num}-*/PLAN.md
```

Read the matched PLAN.md.

### Step 2: Extract Target Files

From PLAN.md, collect all target files:
- `files_modified` from frontmatter
- `must_haves.artifacts` paths
- `<files>` sections from each task

Deduplicate into a single list.

### Step 3: Analyze Each Target File

For each target file:

**Existence & size:**
```
Glob for the file path
Bash: wc -l {file}
```

**Imports (what it depends on):**
```
Grep: import.*from in the file
```

**Imported by (what depends on it):**
```
Grep: import.*{filename} across src/
```

**Related tests:**
```
Glob: **/{basename}.test.* and **/{basename}.spec.*
```

**Dependency graph:**
```
Bash: madge --depends {file}
```

### Step 4: Analyze Target Directories

For each unique directory containing target files:
```
Bash: tree -L 2 -P '*.ts' {target-dir}
```

### Step 5: Discover Conventions

From the target files and their neighbors, document:
- Naming conventions (files, exports, variables)
- Error handling patterns
- Testing patterns (framework, mocking, location)
- Import organization

Include `file:line` references for each convention.

### Step 6: Cross-Phase Context (phase > 1 only)

If phase_num > 1, read prior phase artifacts:
```
Glob .claude/plans/{slug}/phases/0{prior}-*/PROGRESS-*.md  → Read each match
Glob .claude/plans/{slug}/phases/0{prior}-*/SUMMARY-*.md   → Read each match
Glob .claude/plans/{slug}/phases/0{prior}-*/IMPL-VERIFICATION.md  → Read if exists

Fallback: If PROGRESS-*.md not found, try reading PROGRESS.md (single-executor phases)
Fallback: If SUMMARY-*.md not found, try reading SUMMARY.md (single-executor phases)
```

For each prior phase:
- Extract deliverables and key files modified
- Identify files that overlap with current phase targets
- Note patterns established by prior phases

### Step 7: Write SCOUT.md

Write `.claude/plans/{slug}/phases/0{N}-{name}/SCOUT.md` using the template.

Fill all sections. For phase 1, omit the "Prior Phases" section.

## Constraint

Cannot use AskUserQuestion — forked context is non-interactive.

## Completion Criteria

- [ ] All target files from PLAN.md analyzed (existence, size, imports, importers, tests)
- [ ] `madge --depends` run on key files
- [ ] `tree` run on target directories
- [ ] Conventions documented with `file:line` references
- [ ] Cross-phase context included (if phase > 1)
- [ ] SCOUT.md written to phase directory

Files in this skill

  • SKILL.md3.2 KB
  • templates/SCOUT.md1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.