From 400caf2c00f1198632020c71124020c50ce8ed05 Mon Sep 17 00:00:00 2001 From: hc <1328308360@qq.com> Date: Tue, 31 Mar 2026 17:45:07 +0800 Subject: [PATCH] feat(commands): add /replicate command Entry point for paper replication workflow. --- .opencode/commands/replicate.md | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .opencode/commands/replicate.md diff --git a/.opencode/commands/replicate.md b/.opencode/commands/replicate.md new file mode 100644 index 0000000..cbbe72f --- /dev/null +++ b/.opencode/commands/replicate.md @@ -0,0 +1,37 @@ +--- +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. +```