# Orc Discover

> Codebase discovery for orc planning workflow. Analyzes patterns without user interaction.

- **Type:** Skill
- **Install:** `agentstack add skill-qgolem-orc-orc-discover`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [qGolem](https://agentstack.voostack.com/s/qgolem)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [qGolem](https://github.com/qGolem)
- **Source:** https://github.com/qGolem/orc/tree/main/skills/orc-discover

## Install

```sh
agentstack add skill-qgolem-orc-orc-discover
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Orc Discover

Codebase exploration that runs forked (non-interactive).

## Input

- **$ARGUMENTS** — Plan slug

## Template

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

## Process

### Step 0: Validate Slug

Tree the plans directory at depth 1 to see existing plan directories:
```bash
tree .claude/plans -L 1 -d
```

Compare the tree output against the provided `$ARGUMENTS` slug. If the slug matches a directory exactly, proceed with that directory. If it doesn't match exactly but a visible directory is clearly the right one (typo, case variation, truncation), use that directory instead. Use the matched directory path for all subsequent steps.

### Step 1: Load Vision
```
Read .claude/plans/$ARGUMENTS/PROJECT.md
```
Extract search targets from vision.

### Step 2: Pattern Discovery

Use Glob and Grep. **Find 2-3 examples of each** (emphasized: depth matters):
- Similar existing functionality
- File/test naming conventions
- API/route patterns
- Error handling patterns

### Step 3: Convention Analysis

For discovered files, document with file:line references:
- Code style (naming, organization)
- Error handling approach
- Testing patterns

### Step 4: Integration Mapping

For each file to modify:
- Current purpose
- What will change
- Dependencies (via `rg "import.*filename"`)
- Risk level (H/M/L)

### Step 5: Write STATE.md

Write `.claude/plans/$ARGUMENTS/STATE.md` using template.

Include these required sections:
- **Current Phase** — Track progress state
- **Decisions Made** — Audit trail for architectural choices
- **Blockers** — Surface impediments early

## Constraint

Cannot use AskUserQuestion — forked context is non-interactive.

## Completion Criteria

- [ ] Found 2-3 examples of similar patterns
- [ ] Documented all files to modify with risk levels
- [ ] Identified integration points
- [ ] Surfaced risks with mitigations

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [qGolem](https://github.com/qGolem)
- **Source:** [qGolem/orc](https://github.com/qGolem/orc)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-qgolem-orc-orc-discover
- Seller: https://agentstack.voostack.com/s/qgolem
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
