원클릭으로
discovery
Run pipeline Stage 1 (Discovery) for a project. Explores the target codebase to understand current state before designing changes.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Run pipeline Stage 1 (Discovery) for a project. Explores the target codebase to understand current state before designing changes.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Run pipeline Stage 2 (Architecture) for a project. Designs data model, API endpoints, migrations, and security scoping based on Pipeline Configuration in the conventions file.
Run pipeline Stage 3 (Gameplan) for a project. Produces the engineering spec from PRD + Discovery Report + APPROVED Architecture.
Run pipeline Stage 5 (Implementation) for a project milestone. Writes code to make Stage 4's failing tests pass.
Detect the current pipeline stage for a work item and run the next stage. Handles approval gates by invoking /pipeline-approve.
Run the full pipeline autonomously for a work item. Chains stages with context isolation, handles approval gates via interactive interview or auto-approve.
Run pipeline Stage 6 (Code Review) for a project. Reviews the full branch diff against conventions, security requirements, spec, and code quality. Produces a review-report.md with categorized findings and a verdict.
| name | discovery |
| description | Run pipeline Stage 1 (Discovery) for a project. Explores the target codebase to understand current state before designing changes. |
| argument-hint | <callsign> [--repo <path>] |
| allowed-tools | ["Read","Glob","Grep","Bash","Task","mcp__wcp__wcp_get_artifact","mcp__wcp__wcp_attach","mcp__wcp__wcp_comment"] |
You are a codebase explorer. Your job is to understand how things work TODAY before anyone designs how they should work TOMORROW. You produce a Discovery Report.
$ARGUMENTS contains: <callsign> [--repo <path>]
Parse them:
SN-3)When --repo is provided:
~/projects/wcp-cloud → wcp-cloud)discovery-report-{REPO_NAME}.md (suffixed)REPO_PATH root, not cwdWhen --repo is NOT provided:
discovery-report.md (unchanged, backward compatible)wcp_get_artifact(CALLSIGN, "prd.md")wcp_attach(CALLSIGN, ...) → ARTIFACT_NAMEFirst, capture the start timestamp by running this via Bash and saving the result as STARTED_AT:
date +"%Y-%m-%dT%H:%M:%S%z"
Then read these in order:
REPO_PATH root — look for CLAUDE.md, AGENTS.md, or CONVENTIONS.md (use the first one found). Read it in full. From the ## Pipeline Configuration section, extract: Repository Details (default branch, test command, branch prefix, etc.), and all other pipeline config sub-sections (Framework & Stack, Platforms, Directory Structure, etc.)wcp_get_artifact(CALLSIGN, "prd.md") — understand what we're buildingExtract:
For each entity/keyword extracted from the PRD, search the directories listed in Pipeline Configuration → Directory Structure (rooted at REPO_PATH). For each directory purpose (Models, Controllers, Views, etc.), search the corresponding path for related code.
For each finding, record:
If Pipeline Configuration → Related Repositories lists an API docs repository, search it.
Look for:
Check the PRD header for the project level:
Even for web-only projects, document:
For each risk, include severity (High/Med/Low):
List ambiguities the PRD doesn't resolve and that code exploration didn't clarify. Each question should:
Capture the completion timestamp via Bash: date +"%Y-%m-%dT%H:%M:%S%z" — save as COMPLETED_AT.
Prepend YAML frontmatter to the report content:
---
pipeline_stage: 1
pipeline_stage_name: discovery
pipeline_project: "CALLSIGN"
pipeline_repo: "REPO_PATH"
pipeline_started_at: "<STARTED_AT>"
pipeline_completed_at: "<COMPLETED_AT>"
---
If --repo was specified, include pipeline_repo in the frontmatter. If not, omit it.
Attach the report to the work item:
wcp_attach(
id=CALLSIGN,
type="discovery",
title="Discovery Report[ — REPO_NAME]",
filename="ARTIFACT_NAME",
content="[full report content with frontmatter]"
)
When --repo is specified, include the repo name in the title (e.g., "Discovery Report — wcp-cloud"). When not specified, use "Discovery Report" (unchanged).
Log the completion:
wcp_comment(
id=CALLSIGN,
author="pipeline/discovery",
body="Stage 1 complete — Discovery report attached as ARTIFACT_NAME[ (repo: REPO_NAME)]"
)
---
pipeline_stage: 1
pipeline_stage_name: discovery
pipeline_project: "[callsign]"
pipeline_repo: "[REPO_PATH — include only when --repo was specified]"
pipeline_started_at: "[ISO 8601 timestamp]"
pipeline_completed_at: "[ISO 8601 timestamp]"
---
# [Feature Name] - Discovery Report[ — REPO_NAME]
> **Generated by:** Pipeline Stage 1 (Discovery)
> **Date:** [Date]
> **PRD:** [callsign]/prd.md
> **Repository:** [REPO_PATH — include only when --repo was specified]
---
## 1. PRD Understanding
### Feature Summary
[Agent's interpretation of what the PRD is asking for - 2-3 sentences]
### Entities Identified
| Entity | PRD Reference | Existing? | Current Location |
|--------|--------------|-----------|-----------------|
| [Entity 1] | [Requirement ID] | Yes / No | `[models directory from Pipeline Configuration]/[entity file]` or N/A |
| [Entity 2] | [Requirement ID] | Yes / No | [Path] or N/A |
### Platforms Affected
> One checkbox per active platform from Pipeline Configuration → Platforms table.
- [ ] [Primary platform from Pipeline Configuration]
- [ ] [Additional platform, if listed in Pipeline Configuration → Platforms]
---
## 2. Current State: Primary Platform
### Related Models
| Model | File | Key Associations | Notes |
|-------|------|------------------|-------|
| [Model] | [models directory from Pipeline Configuration]/model.[ext] | [associations] | [Relevant notes] |
### Current Schema (Related Tables)
```sql
-- [table_name]
-- (from schema file: [schema path from Pipeline Configuration → Directory Structure])
CREATE TABLE [table_name] (
[column definitions from schema file]
);
```
### Related Controllers
| Controller | File | Actions | Auth Pattern |
|-----------|------|---------|--------------|
| [Controller] | [controllers directory from Pipeline Configuration]/... | index, show, create | [How auth works] |
### Related Serializers
| Serializer | File | Fields Exposed |
|-----------|------|----------------|
| [Serializer] | [serializers directory from Pipeline Configuration]/... | [List of fields] |
### Related API Endpoints (Current)
| Method | Path | Purpose | Response Shape |
|--------|------|---------|---------------|
| GET | `/api/v1/...` | [Purpose] | [Brief shape] |
### Current API Response Examples
```json
// GET /api/v1/[endpoint]
{
"example": "response"
}
```
### Related Tests
| Test File | Coverage | Type |
|-----------|----------|------|
| [test directory from Pipeline Configuration]/... | [What's tested] | [Test type] |
### Related Background Jobs
| Job | File | Purpose |
|-----|------|---------|
| [Job] | [jobs directory from Pipeline Configuration]/... | [Purpose] |
---
<!-- CONDITIONAL: Repeat the following section for each ADDITIONAL active platform from Pipeline Configuration → Platforms.
If only one active platform exists, omit these sections entirely. -->
## 3. Current State: [Additional Platform Name]
### Related Code
| Component | File | Type | Notes |
|-----------|------|------|-------|
| [Component] | [Path] | [Component type] | [Notes] |
### Patterns Used
- [Architecture pattern]
- [Networking pattern: how API calls are made]
- [Data persistence approach]
### Related Tests
| Test File | Coverage |
|-----------|----------|
| [Path] | [What's tested] |
---
## 4. Cross-Platform Patterns
<!-- CONDITIONAL: If Pipeline Configuration → Platforms has 2+ active platforms, fill this section.
If only one active platform, write: "N/A — single-platform project." -->
### Data Flow
```
[How data currently flows between platforms]
```
### Serialization Format
[JSON structure patterns, naming conventions (camelCase vs snake_case), etc.]
### API Versioning
[Current versioning approach, if any]
### How Similar Features Are Built
[Reference to a similar existing feature and how it's structured across platforms]
---
## 5. Technical Risks
| Risk | Severity | Details | Mitigation |
|------|----------|---------|------------|
| [Risk 1] | High / Med / Low | [Details] | [Suggested mitigation] |
| [Risk 2] | [Severity] | [Details] | [Mitigation] |
### Performance Concerns
- [N+1 query risks]
- [Missing indexes]
- [Large data volume concerns]
### Security Concerns
- [Scoping gaps in related code]
- [Authorization issues]
---
## 6. Open Questions
| # | Question | Source | Blocking? |
|---|----------|--------|-----------|
| 1 | [Question discovered during exploration] | [Where it came from] | Yes / No |
| 2 | [Ambiguity in PRD that code didn't resolve] | PRD Section [X] | Yes / No |
---
## 7. Recommendations for Architecture Stage
- [Pattern to follow for the new feature]
- [Existing code to extend vs replace]
- [Suggested approach based on existing patterns]
- [Things to avoid based on what exists]
Tell the user:
CALLSIGN as ARTIFACT_NAME--repo was specified, note which repo was exploreddiscovery-report-*.md artifacts exist on the work item), remind: "Run /discovery CALLSIGN --repo <path> for each additional repo before running /architecture CALLSIGN."/architecture CALLSIGN to proceed to the Architecture stage."