DeerFlow Smoke Test Skill
This skill guides the Agent through DeerFlow's full end-to-end smoke test workflow, including code updates, deployment (supporting both Docker and local installation modes), service availability verification, and health checks.
Deployment Mode Selection
This skill supports two deployment modes:
- Local installation mode (recommended, especially when network issues occur) - Run all services directly on the local machine
- Docker mode - Run all services inside Docker containers
Selection strategy:
- If the user explicitly asks for Docker mode, use Docker
- If network issues occur (such as slow image pulls), automatically switch to local mode
- Default to local mode whenever possible
Structure
smoke-test/
├── SKILL.md ← You are here - core workflow and logic
├── scripts/
│ ├── check_docker.sh ← Check the Docker environment
│ ├── check_local_env.sh ← Check local environment dependencies
│ ├── frontend_check.sh ← Frontend page smoke check
│ ├── pull_code.sh ← Pull the latest code
│ ├── deploy_docker.sh ← Docker deployment
│ ├── deploy_local.sh ← Local deployment
│ └── health_check.sh ← Service health check
├── references/
│ ├── SOP.md ← Standard operating procedure
│ └── troubleshooting.md ← Troubleshooting guide
└── templates/
├── report.local.template.md ← Local mode smoke test report template
└── report.docker.template.md ← Docker mode smoke test report template
Standard Operating Procedure (SOP)
Phase 1: Code Update Check
- Confirm current directory - Verify that the current working directory is the DeerFlow project root
- Check Git status - See whether there are uncommitted changes
- Pull the latest code - Use
git pull origin main to get the latest updates
- Confirm code update - Verify that the latest code was pulled successfully
Phase 2: Deployment Mode Selection and Environment Check
Choose deployment mode:
- Ask for user preference, or choose automatically based on network conditions
- Default to local installation mode
Local mode environment check:
- Check Node.js version - Requires 22+
- Check pnpm - Package manager
- Check uv - Python package manager
- Check nginx - Reverse proxy
- Check required ports - Confirm that ports 2026, 3000, and 8001 are not occupied
Docker mode environment check (if Docker is selected):
- Check whether Docker is installed - Run
docker --version
- Check Docker daemon status - Run
docker info
- Check Docker Compose availability - Run
docker compose version
- Check required ports - Confirm that port 2026 is not occupied
Phase 3: Configuration Preparation
- Check whether config.yaml exists
- If it does not exist, run
make config to generate it
- If it already exists, check whether it needs an upgrade with
make config-upgrade
- Check the .env file
- Verify that required environment variables are configured
- Especially model API keys such as
OPENAI_API_KEY
Phase 4: Deployment Execution
Local mode deployment:
- Check dependencies - Run
make check
- Install dependencies - Run
make install
- (Optional) Pre-pull the sandbox image - If needed, run
make setup-sandbox
- Start services - Run
make start (production mode)
- Wait for startup - Give all services enough time to start completely (90-120 seconds recommended)
Docker mode deployment (if Docker is selected):
- Initialize Docker environment - Run
make docker-init
- Start Docker services - Run
make up (production mode)
- Wait for startup - Give all containers enough time to start completely (60 seconds recommended)
Phase 5: Service Health Check
Local mode health check:
- Check process status - Confirm that Gateway, Frontend, and Nginx processes are all running
- Check frontend service - Visit
http://localhost:2026 and verify that the page loads
- Check API Gateway - Verify the
http://localhost:2026/health endpoint
- Check LangGraph-compatible API - Verify the
/api/langgraph/* route exposed by Gateway
- Frontend route smoke check - Run
bash .agent/skills/smoke-test/scripts/frontend_check.sh to verify key routes under /workspace. The script auto-detects whether authentication is enabled and, if so, registers / logs in a smoke-test user so the real pages are verified rather than the login redirect.
Docker mode health check (when using Docker):
- Check container status - Run
docker ps and confirm that all containers are running
- Check frontend service - Visit
http://localhost:2026 and verify that the page loads
- Check API Gateway - Verify the
http://localhost:2026/health endpoint
- Check LangGraph-compatible API - Verify the
/api/langgraph/* route exposed by Gateway
- Frontend route smoke check - Run
bash .agent/skills/smoke-test/scripts/frontend_check.sh to verify key routes under /workspace. The script auto-detects whether authentication is enabled and, if so, registers / logs in a smoke-test user so the real pages are verified rather than the login redirect.
Optional Functional Verification
- List available models - Verify that model configuration loads correctly
- List available skills - Verify that the skill directory is mounted correctly
- Simple chat test - Send a simple message to verify the end-to-end flow
Phase 6: Generate Test Report
- Collect all test results - Summarize execution status for each phase
- Record encountered issues - If anything fails, record the error details
- Generate the final report - Use the template that matches the selected deployment mode to create the complete test report, including overall conclusion, detailed key test cases, and explicit frontend page / route results
- Provide follow-up recommendations - Offer suggestions based on the test results
Execution Rules
- Follow the sequence - Execute strictly in the order described above
- Idempotency - Every step should be safe to repeat
- Error handling - If a step fails, stop and report the issue, then provide troubleshooting suggestions
- Detailed logging - Record the execution result and status of each step
- User confirmation - Ask for confirmation before potentially risky operations such as overwriting config
- Mode preference - Prefer local mode to avoid network-related issues
- Template requirement - The final report must use the matching template under
templates/; do not output a free-form summary instead of the template-based report
- Report clarity - The execution summary must include the overall pass/fail conclusion plus per-case result explanations, and frontend smoke check results must be listed explicitly in the report
- Optional phase handling - If functional verification is not executed, do not present it as a separate skipped phase in the final report
Known Acceptable Warnings
The following warnings can appear during smoke testing and do not block a successful result:
- Feishu/Lark SSL errors in Gateway logs (certificate verification failure) can be ignored if that channel is not enabled
- Warnings in Gateway logs about missing methods in the custom checkpointer, such as
adelete_for_runs or aprune, do not affect the core functionality
- The
frontend_check.sh script automatically handles authentication. When auth is enabled it registers / logs in a smoke-test user (smoke-test@deerflow.dev by default) to verify the real /workspace/* pages. The registration may produce a log entry from the auth provider, which is expected and harmless.
Key Tools
Use the following tools during execution:
- bash - Run shell commands
- present_file - Show generated reports and important files
- task_tool - Organize complex steps with subtasks when needed
Success Criteria
Smoke test pass criteria (local mode):
Smoke test pass criteria (Docker mode):
Read Reference Files
Before starting execution, read the following reference files:
references/SOP.md - Detailed step-by-step operating instructions
references/troubleshooting.md - Common issues and solutions
templates/report.local.template.md - Local mode test report template
templates/report.docker.template.md - Docker mode test report template
1---2name: smoke-test3description: "End-to-end smoke test skill for DeerFlow. Guides through: 1) Pulling latest code, 2) Docker OR Local installation and deployment (user preference, default to Local if Docker network issues), 3) Service availability verification, 4) Health check, 5) Final test report. Use when the user says \"run smoke test\", \"smoke test deployment\", \"verify installation\", \"test service availability\", \"end-to-end test\", or similar."4metadata:5 source: https://skillmd.com/skills/peteedoo/smoke-test6---78# DeerFlow Smoke Test Skill910This skill guides the Agent through DeerFlow's full end-to-end smoke test workflow, including code updates, deployment (supporting both Docker and local installation modes), service availability verification, and health checks.1112## Deployment Mode Selection1314This skill supports two deployment modes:15- **Local installation mode** (recommended, especially when network issues occur) - Run all services directly on the local machine16- **Docker mode** - Run all services inside Docker containers1718**Selection strategy**:19- If the user explicitly asks for Docker mode, use Docker20- If network issues occur (such as slow image pulls), automatically switch to local mode21- Default to local mode whenever possible2223## Structure2425```26smoke-test/27├── SKILL.md ← You are here - core workflow and logic28├── scripts/29│ ├── check_docker.sh ← Check the Docker environment30│ ├── check_local_env.sh ← Check local environment dependencies31│ ├── frontend_check.sh ← Frontend page smoke check32│ ├── pull_code.sh ← Pull the latest code33│ ├── deploy_docker.sh ← Docker deployment34│ ├── deploy_local.sh ← Local deployment35│ └── health_check.sh ← Service health check36├── references/37│ ├── SOP.md ← Standard operating procedure38│ └── troubleshooting.md ← Troubleshooting guide39└── templates/40 ├── report.local.template.md ← Local mode smoke test report template41 └── report.docker.template.md ← Docker mode smoke test report template42```4344## Standard Operating Procedure (SOP)4546### Phase 1: Code Update Check47481. **Confirm current directory** - Verify that the current working directory is the DeerFlow project root492. **Check Git status** - See whether there are uncommitted changes503. **Pull the latest code** - Use `git pull origin main` to get the latest updates514. **Confirm code update** - Verify that the latest code was pulled successfully5253### Phase 2: Deployment Mode Selection and Environment Check5455**Choose deployment mode**:56- Ask for user preference, or choose automatically based on network conditions57- Default to local installation mode5859**Local mode environment check**:601. **Check Node.js version** - Requires 22+612. **Check pnpm** - Package manager623. **Check uv** - Python package manager634. **Check nginx** - Reverse proxy645. **Check required ports** - Confirm that ports 2026, 3000, and 8001 are not occupied6566**Docker mode environment check** (if Docker is selected):671. **Check whether Docker is installed** - Run `docker --version`682. **Check Docker daemon status** - Run `docker info`693. **Check Docker Compose availability** - Run `docker compose version`704. **Check required ports** - Confirm that port 2026 is not occupied7172### Phase 3: Configuration Preparation73741. **Check whether config.yaml exists**75 - If it does not exist, run `make config` to generate it76 - If it already exists, check whether it needs an upgrade with `make config-upgrade`772. **Check the .env file**78 - Verify that required environment variables are configured79 - Especially model API keys such as `OPENAI_API_KEY`8081### Phase 4: Deployment Execution8283**Local mode deployment**:841. **Check dependencies** - Run `make check`852. **Install dependencies** - Run `make install`863. **(Optional) Pre-pull the sandbox image** - If needed, run `make setup-sandbox`874. **Start services** - Run `make start` (production mode)885. **Wait for startup** - Give all services enough time to start completely (90-120 seconds recommended)8990**Docker mode deployment** (if Docker is selected):911. **Initialize Docker environment** - Run `make docker-init`922. **Start Docker services** - Run `make up` (production mode)933. **Wait for startup** - Give all containers enough time to start completely (60 seconds recommended)9495### Phase 5: Service Health Check9697**Local mode health check**:981. **Check process status** - Confirm that Gateway, Frontend, and Nginx processes are all running992. **Check frontend service** - Visit `http://localhost:2026` and verify that the page loads1003. **Check API Gateway** - Verify the `http://localhost:2026/health` endpoint1014. **Check LangGraph-compatible API** - Verify the `/api/langgraph/*` route exposed by Gateway1025. **Frontend route smoke check** - Run `bash .agent/skills/smoke-test/scripts/frontend_check.sh` to verify key routes under `/workspace`. The script auto-detects whether authentication is enabled and, if so, registers / logs in a smoke-test user so the real pages are verified rather than the login redirect.103104**Docker mode health check** (when using Docker):1051. **Check container status** - Run `docker ps` and confirm that all containers are running1062. **Check frontend service** - Visit `http://localhost:2026` and verify that the page loads1073. **Check API Gateway** - Verify the `http://localhost:2026/health` endpoint1084. **Check LangGraph-compatible API** - Verify the `/api/langgraph/*` route exposed by Gateway1095. **Frontend route smoke check** - Run `bash .agent/skills/smoke-test/scripts/frontend_check.sh` to verify key routes under `/workspace`. The script auto-detects whether authentication is enabled and, if so, registers / logs in a smoke-test user so the real pages are verified rather than the login redirect.110111### Optional Functional Verification1121131. **List available models** - Verify that model configuration loads correctly1142. **List available skills** - Verify that the skill directory is mounted correctly1153. **Simple chat test** - Send a simple message to verify the end-to-end flow116117### Phase 6: Generate Test Report1181191. **Collect all test results** - Summarize execution status for each phase1202. **Record encountered issues** - If anything fails, record the error details1213. **Generate the final report** - Use the template that matches the selected deployment mode to create the complete test report, including overall conclusion, detailed key test cases, and explicit frontend page / route results1224. **Provide follow-up recommendations** - Offer suggestions based on the test results123124## Execution Rules125126- **Follow the sequence** - Execute strictly in the order described above127- **Idempotency** - Every step should be safe to repeat128- **Error handling** - If a step fails, stop and report the issue, then provide troubleshooting suggestions129- **Detailed logging** - Record the execution result and status of each step130- **User confirmation** - Ask for confirmation before potentially risky operations such as overwriting config131- **Mode preference** - Prefer local mode to avoid network-related issues132- **Template requirement** - The final report must use the matching template under `templates/`; do not output a free-form summary instead of the template-based report133- **Report clarity** - The execution summary must include the overall pass/fail conclusion plus per-case result explanations, and frontend smoke check results must be listed explicitly in the report134- **Optional phase handling** - If functional verification is not executed, do not present it as a separate skipped phase in the final report135136## Known Acceptable Warnings137138The following warnings can appear during smoke testing and do not block a successful result:139- Feishu/Lark SSL errors in Gateway logs (certificate verification failure) can be ignored if that channel is not enabled140- Warnings in Gateway logs about missing methods in the custom checkpointer, such as `adelete_for_runs` or `aprune`, do not affect the core functionality141- The `frontend_check.sh` script automatically handles authentication. When auth is enabled it registers / logs in a smoke-test user (`smoke-test@deerflow.dev` by default) to verify the real `/workspace/*` pages. The registration may produce a log entry from the auth provider, which is expected and harmless.142143## Key Tools144145Use the following tools during execution:1461471. **bash** - Run shell commands1482. **present_file** - Show generated reports and important files1493. **task_tool** - Organize complex steps with subtasks when needed150151## Success Criteria152153Smoke test pass criteria (local mode):154- [x] Latest code is pulled successfully155- [x] Local environment check passes (Node.js 22+, pnpm, uv, nginx)156- [x] Configuration files are set up correctly157- [x] `make check` passes158- [x] `make install` completes successfully159- [x] `make dev` starts successfully160- [x] All service processes run normally161- [x] Frontend page is accessible162- [x] Frontend route smoke check passes (`/workspace` key routes)163- [x] API Gateway health check passes164- [x] Test report is generated completely165166Smoke test pass criteria (Docker mode):167- [x] Latest code is pulled successfully168- [x] Docker environment check passes169- [x] Configuration files are set up correctly170- [x] `make docker-init` completes successfully171- [x] `make up` completes successfully172- [x] All Docker containers run normally173- [x] Frontend page is accessible174- [x] Frontend route smoke check passes (`/workspace` key routes)175- [x] API Gateway health check passes176- [x] Test report is generated completely177178## Read Reference Files179180Before starting execution, read the following reference files:1811. `references/SOP.md` - Detailed step-by-step operating instructions1822. `references/troubleshooting.md` - Common issues and solutions1833. `templates/report.local.template.md` - Local mode test report template1844. `templates/report.docker.template.md` - Docker mode test report template