PaperTool/.opencode/commands/replicate.md
hc 400caf2c00 feat(commands): add /replicate command
Entry point for paper replication workflow.
2026-03-31 17:45:07 +08:00

38 lines
911 B
Markdown

---
description: Start paper replication workflow
agent: paper-director
---
Start the paper replication workflow for the specified paper.
## Input
Paper file: $ARGUMENTS
If no file specified, ask the user to provide the path to a paper (Markdown file or paste text directly).
## Workflow
1. Validate paper file exists (if path provided)
2. Extract paper name from filename or ask user
3. Create workspace directory: `workspace/{paper_name}/`
4. Begin Phase 1: Paper Analysis
- Dispatch @paper-image-extractor
- Dispatch @paper-analyzer
5. Present Human Checkpoint with analysis summary
6. After approval, begin Phase 2: Code Generation (TDD)
7. Begin Phase 3: Verification
8. Present final replication report
## Example Usage
```
/replicate workspace/attention_is_all_you_need.md
```
Or without arguments:
```
/replicate
> Please provide the path to your paper or paste the content directly.
```