mission-engine-worker
БесплатноБез исполняемых скриптовНе проверенBuilds mission engine modules, orchestration wiring, plugin system, headless execution, and code review infrastructure
от oimiragieo★ 48 звёзд на GitHubОб этом скилле
Mission Engine Worker
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
When to Use This Skill
Use for features that implement the mission engine subsystem and production infrastructure:
- Mission orchestrator wiring (dispatch loop, handoff pipeline, milestone gates)
- Plugin marketplace (manifest, registry, resolver, loader, CLI)
- Headless execution engine (autonomy tiers, output formats, permission enforcement)
- Code review system (diff engine, severity matrix, 2-pass pipeline)
- Mission workspace provisioning and state management
- features.json state machine and precondition DAG
- state.json mutex and lock management
- Handoff directory watching and processing
- Worker-to-features dispatching and persona injection
- Friction loop engine
- Validation contract parsing and state gatekeeper
- Scrutiny reviewer auto-spawn and milestone gates
- services.yaml command registry
- init.sh bootstrap system
- Readiness scoring engine and auto-remediation
Work Procedure
1. Understand the Feature
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.
2. Write Tests FIRST (TDD Red Phase)
Before writing ANY implementation code:
- Create test file in
tests/mission/(ortests/services/,tests/readiness/as appropriate) - Use
node:testwithdescribe()andit()blocks - Use
assertfromnode:assert/strict - Write tests that cover ALL assertions in the feature's
fulfillsarray - Run tests with
node --test <test-file>to confirm they FAIL (red phase)
Test file conventions:
- Filename:
<module-name>.test.cjs - Use temp directories for filesystem tests (clean up in
after()) - Mock external dependencies with manual stubs (no sinon/jest)
- Use
path.join()for all paths (Windows compatibility)
3. Implement the Module (TDD Green Phase)
- Create module in
.claude/lib/mission/(or.claude/lib/services/,.claude/lib/readiness/) - Use CommonJS:
module.exports = { ... } - Use AJV for all JSON schema validation
- Use atomic writes for state files: write to
.tmpthen rename - Use
path.normalize()for all file paths - Handle Windows-specific concerns:
fs.watchmay be unreliable on NTFS - provide polling fallback- Use
process.platform === 'win32'checks where needed - Use
whereinstead ofcommand -von Windows
- Run tests to confirm they PASS (green phase)
4. Verify Your Work
- Run the specific test file:
node --test tests/mission/<file>.test.cjs - Run the full test suite:
pnpm test(must not break existing tests) - Run format check:
pnpm format:check - If format fails, run:
pnpm formatthen re-check - Manually verify by requiring the module and calling key functions from a Node REPL or inline script
5. Check for Integration Issues
- Verify your module exports match what other modules expect to import
- Check that file paths used match the mission workspace structure
- Ensure no circular dependencies with existing
.claude/lib/modules
Example Handoff
{
"salientSummary": "Implemented features.json state machine with 5 valid transitions, precondition DAG evaluation, circular dependency detection, and atomic write safety. Wrote 14 test cases covering all VAL-FS assertions. All tests pass, pnpm test green, format:check clean.",
"whatWasImplemented": "Created .claude/lib/mission/features-state-machine.cjs with loadFeatures(), transitionFeature(), validateFeatures(), and getEligibleFeatures(). Uses AJV for schema validation, atomic write via writeFileSync to .tmp + renameSync. Topological sort for cycle detection. Full state transition matrix: pending->in_progress, in_progress->validating, validating->completed, in_progress->failed, failed->pending.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{
"command": "node --test tests/mission/features-state-machine.test.cjs",
"exitCode": 0,
"observation": "14 tests passing, 0 failing"
},
{ "command": "pnpm test", "exitCode": 0, "observation": "Full suite passes, no regressions" },
{ "command": "pnpm format:check", "exitCode": 0, "observation": "All files formatted" }
],
"interactiveChecks": [
{
"action": "Required module and called loadFeatures() with valid fixtures",
"observed": "Returns parsed features array with correct schema"
},
{
"action": "Called transitionFeature with invalid transition pending->completed",
"observed": "Throws INVALID_TRANSITION error as expected"
}
]
},
"tests": {
"added": [
{
"file": "tests/mission/features-state-machine.test.cjs",
"cases": [
{ "name": "pending to in_progress succeeds", "verifies": "VAL-FS-001" },
{ "name": "in_progress to
Установить mission-engine-worker в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mission-engine-worker?
Builds mission engine modules, orchestration wiring, plugin system, headless execution, and code review infrastructure
Как установить скилл mission-engine-worker?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mission-engine-worker запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic