Validate custom agent file format and structure. Use after creating or editing an agent, before committing agent changes, or when an agent fails to load.
中文简介正在准备中。当前显示原文说明。
Test execution reference: framework detection (pytest/jest/vitest/go/cargo/junit) and correct run/coverage commands, plus failure-analysis steps. Use when running tests, analyzing test failures, or verifying coverage after code changes.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Director Mode Lite - Test Execution Reference
Detect the project's test framework, then use its runner:
| Language | Frameworks |
|---|---|
| JavaScript/TypeScript | Jest, Vitest, Mocha, Playwright |
| Python | pytest, unittest |
| Go | go test |
| Rust | cargo test |
| Java | JUnit, Maven, Gradle |
Check for configuration files:
jest.config.* → Jestvitest.config.* → Vitestpytest.ini or pyproject.toml → pytestgo.mod → go testCargo.toml → cargo testRun tests with the detected framework's command:
# JavaScript/TypeScript
npm test # or pnpm test / yarn test
# Python
pytest -v
# Go
go test ./...
# Rust
cargo test
For coverage, add the framework's coverage flag (for example pytest --cov, jest --coverage, go test -cover ./..., cargo tarpaulin).
For each failure, capture:
## Test Results
**Status**: 2 failed, 18 passed (90% pass rate)
### Failed Tests
#### 1. `user.test.ts` - should validate email format
- **Location**: `src/tests/user.test.ts:45`
- **Expected**: `false` for invalid email
- **Actual**: `true`
- **Root Cause**: Regex pattern missing check for domain
- **Fix**: Update regex in `validateEmail()` function
#### 2. `api.test.ts` - should return 401 for unauthorized
- **Location**: `src/tests/api.test.ts:78`
- **Expected**: Status 401
- **Actual**: Status 500
- **Root Cause**: Auth middleware throwing unhandled error
- **Fix**: Add try-catch in auth middleware
### Coverage Summary
- Statements: 85%
- Branches: 72%
- Functions: 90%
- Lines: 84%
When working with the /test-first command:
Cycle: Write Test → Run (Fail) → Implement → Run (Pass) → Refactor → Run (Pass)
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Validate custom agent file format and structure. Use after creating or editing an agent, before committing agent changes, or when an agent fails to load.
中文简介正在准备中。当前显示原文说明。
Generate custom agent from template. Use when creating a new subagent from scratch, or scaffolding an agent file with correct frontmatter.
中文简介正在准备中。当前显示原文说明。
List all available agents (core, expert, self-evolving). Use when the user asks what agents are available or runs /agents.
中文简介正在准备中。当前显示原文说明。
TDD-based autonomous development loop with checkpoint recovery and observability changelog
中文简介正在准备中。当前显示原文说明。
View and manage the runtime changelog for observability
中文简介正在准备中。当前显示原文说明。
Track development session events in a daily markdown changelog, including file changes, test results, and key decisions.
中文简介正在准备中。当前显示原文说明。