weld discover¶
Analyze codebase and generate architecture documentation.
Usage¶
Options¶
| Option | Short | Description |
|---|---|---|
--output | -o | Path to write output (default: .weld/discover/{timestamp}.md) |
--focus | -f | Specific areas to focus on |
--prompt-only | Output prompt without running Claude | |
--quiet | -q | Suppress streaming output |
Description¶
Generates a prompt that guides Claude to analyze your codebase and document:
- High-level architecture
- Directory structure
- Key files and entry points
- Testing patterns
- Security considerations
Examples¶
Discover entire codebase¶
Focus on specific area¶
Write to specific location¶
Preview prompt only¶
Input Validation¶
Before starting the (potentially expensive) Claude operation, weld validates inputs upfront:
- Output path: If
--outputis specified, validates the path is writable and is a file (not a directory)
When validation fails, you'll see a clear error message with an actionable hint:
This prevents wasted API tokens from invalid inputs.
Subcommands¶
weld discover show¶
Show a previously generated discover prompt.