用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/oimiragieo/agent-studio --skill integration-test-worker命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Agent frontmatter enhancements — disallowedTools, mcpServers scoping, fork_eligible field
Context management — pre-compact persistence, threshold alignment, microcompact/circuit breaker detection
Hook enhancements — updatedInput for bash safety prefixes, suppressOutput for verbose blocks, denial-based routing feedback
正在显示 SKILL.md
基于 SOC 职业分类
| name | integration-test-worker |
| description | Builds cross-area integration tests for the mission engine module system |
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
Use for features that build integration tests wiring multiple mission engine modules together:
Read the feature's description, expectedBehavior, and verificationSteps carefully. Cross-reference with the validation contract assertions listed in fulfills to understand exactly what behavior must be verified.
Read AGENTS.md for the EXACT state machine transitions and event names. Using wrong state names will cause test failures.
Before writing any code, read the actual module source files to understand:
Key modules to reference:
.claude/lib/mission/features-state-machine.cjs — VALID_TRANSITIONS, FeaturesStateMachine class.claude/lib/mission/friction-loop.cjs — FrictionLoopEngine, event names.claude/lib/mission/worker-features-dispatcher.cjs — dispatchFeature function.claude/lib/mission/scrutiny-reviewer.cjs — ScrutinyReviewer class.claude/lib/mission/milestone-gate.cjs — MilestoneGate class.claude/lib/mission/workspace-provisioner.cjs — provisionWorkspace function.claude/lib/mission/handoff-watcher.cjs — HandoffWatcher class.claude/lib/mission/persona-injector.cjs — composePersona function.claude/lib/services/services-registry.cjs — ServicesRegistry class.claude/lib/services/bootstrap-system.cjs — BootstrapSystem class.claude/lib/readiness/readiness-scorer.cjs — ReadinessScorer classBefore writing ANY helper/infrastructure code:
tests/integration/node:test with describe() and it() blocksassert from node:assert/strictnode --test <test-file> to confirm they FAIL (red phase)Test file conventions:
cross-area.test.cjs, e2e-pipeline.test.cjs)after())path.join() for all paths (Windows compatibility)describe() block should map to one validation assertion IDIf the feature requires shared helpers (mock factory, test pipeline):
tests/integration/helpers/module.exports = { ... }If the feature is purely tests (no new helpers needed):
node --test tests/integration/<file>.test.cjspnpm test (must not break existing tests)pnpm format:checknode scripts/format-tracked.mjs --write then re-check{
"salientSummary": "Built shared mock factory with createMockDb, createMockBudget, createMockEnqueue, createMockWorker. Wrote 12 test cases covering all 4 stubs' recording, configurability, and isolation. All tests pass, pnpm test green, format:check clean.",
"whatWasImplemented": "tests/integration/helpers/mock-factory.cjs with 4 factory functions. Each returns a configurable stub that records invocations. createMockWorker writes synthetic handoff JSON to a specified directory. All stubs have independent state per instantiation.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{
"command": "node --test tests/integration/helpers/mock-factory.test.cjs",
"exitCode": 0,
"observation": "12 tests pass, 0 fail"
},
{
"command": "pnpm test",
"exitCode": 0,
"observation": "457 tests pass including 12 new integration tests"
}