| File was renamed from aigc-director/CLAUDE.md |
| | |
| | | |
| | | ## Project Overview |
| | | |
| | | AIGC-Claw is an AI video generation system that transforms user ideas into complete videos through 6 stages: Script → Character/Scene Design → Storyboard → Reference Images → Video Generation → Post-production. |
| | | Video-Claw is an AI video generation system that transforms user ideas into complete videos through 6 stages: Script → Character/Scene Design → Storyboard → Reference Images → Video Generation → Post-production. |
| | | |
| | | This repository (`aigc-director/`) is an **OpenClaw Agent Skill** that wraps the actual code project: |
| | | - **aigc-claw/**: The actual code project containing the backend (Python FastAPI) and frontend (Next.js) |
| | | This repository (`video-claw/`) is an **OpenClaw Agent Skill** that wraps the actual code project: |
| | | - **video-claw/**: The actual code project containing the backend (Python FastAPI) and frontend (Next.js) |
| | | - **SKILL.md**: Workflow rules for the OpenClaw agent |
| | | - **references/**: API documentation |
| | | |
| | |
| | | |
| | | ### Backend |
| | | ```bash |
| | | cd aigc-claw/backend |
| | | cd video-claw/backend |
| | | source venv/bin/activate |
| | | python api_server.py |
| | | ``` |
| | | |
| | | ### Frontend |
| | | ```bash |
| | | cd aigc-claw/frontend |
| | | cd video-claw/frontend |
| | | npm install # first time only |
| | | npm run build |
| | | npm start |
| | |
| | | ## Architecture |
| | | |
| | | ### Backend Core |
| | | - **[orchestrator.py](aigc-claw/backend/core/orchestrator.py)**: Workflow engine managing the 6-stage state machine. Controls session state (pending/running/waiting/completed/completed), persists to `aigc-claw/backend/code/data/sessions/`, and coordinates agent execution. |
| | | - **[orchestrator.py](video-claw/backend/core/orchestrator.py)**: Workflow engine managing the 6-stage state machine. Controls session state (pending/running/waiting/completed/completed), persists to `video-claw/backend/code/data/sessions/`, and coordinates agent execution. |
| | | |
| | | - **[base_agent.py](aigc-claw/backend/core/agents/base_agent.py)**: Abstract base class for all stage agents. Defines `process(input_data, intervention)` interface that returns `{"payload": ..., "requires_intervention": bool, "completed": bool}`. |
| | | - **[base_agent.py](video-claw/backend/core/agents/base_agent.py)**: Abstract base class for all stage agents. Defines `process(input_data, intervention)` interface that returns `{"payload": ..., "requires_intervention": bool, "completed": bool}`. |
| | | |
| | | ### 6 Stage Agents |
| | | Each agent handles one workflow stage: |
| | |
| | | | VideoEditorAgent | editor_agent.py | post_production | |
| | | |
| | | ### Tool Clients |
| | | External API integrations in `aigc-claw/backend/models/`: |
| | | External API integrations in `video-claw/backend/models/`: |
| | | - **LLM clients**: llm_dashscope.py, llm_deepseek.py, llm_gpt.py, llm_gemini.py |
| | | - **Image clients**: image_dashscope.py, image_client.py (Seedream, Jimeng, Wan) |
| | | - **Video clients**: video_dashscope.py, video_kling.py (Wan, Kling) |
| | | - **VLM clients**: vlm_dashscope.py, vlm_gemini.py |
| | | |
| | | ### Data Storage |
| | | - Results: `aigc-claw/backend/code/result/` (image/, video/, script/) |
| | | - Session state: `aigc-claw/backend/code/data/sessions/{session_id}.json` |
| | | - Results: `video-claw/backend/code/result/` (image/, video/, script/) |
| | | - Session state: `video-claw/backend/code/data/sessions/{session_id}.json` |
| | | |
| | | ## Workflow (from SKILL.md) |
| | | |