contribution-worker
Implements OSS MCP contribution flow features using CHIEF_ENGINEER workflow patterns — TDD, IPC contracts, store creation, UI wiring
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Implements OSS MCP contribution flow features using CHIEF_ENGINEER workflow patterns — TDD, IPC contracts, store creation, UI wiring
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Route Rebel app verification to the cheapest reliable path, then launch, drive, or screenshot the Electron app when the selected recipe requires it.
Removes bundled MCP connector infrastructure from rebel-app and updates catalog
Removes dead bundled MCP connector code and updates build/package configuration
Fixes startup migration ordering, reconnect UI flows, and updates tests for migrated connectors
Ports a bundled MCP connector to the mcp-servers repo as an OSS npm package
Creates and modifies skill files, workflow docs, reference docs, CI workflows, and TypeScript scripts following existing rebel-system and repo patterns.
| name | contribution-worker |
| description | Implements OSS MCP contribution flow features using CHIEF_ENGINEER workflow patterns — TDD, IPC contracts, store creation, UI wiring |
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
Features related to the OSS MCP contribution flow:
None — this worker uses unit tests and validate:fast only.
docs/plans/260410_oss_mcp_integration_forward_plan.md — the forward plan is the canonical reference. Find the P-section matching your feature and read it thoroughly, including any referenced decisions (D1-D9)..factory/library/architecture.md for system architecture context.preconditions, expectedBehavior, and verificationSteps from features.json.Before writing any code, investigate the codebase patterns you'll need to follow:
src/shared/ipc/contracts.ts and an existing channel groupsrc/core/services/communityEventsStore.ts as the patternsrc/main/services/githubAuthService.ts as the pattern (DO NOT MODIFY)handleConfigureWithRebel pattern in src/renderer/App.tsxWrite failing tests BEFORE implementation:
__tests__/ directory following existing naming conventionsexpectedBehavior itemsnpm run test -- --grep '<pattern>' to confirm tests fail (red)src/core/ (platform-agnostic, no electron imports)src/main/ (OAuth deep-links, file permissions)src/shared/ipc/channels/getStore() pattern, registered in ALL_STORE_VERSIONSlog.warn({ data }, 'message') not log.warn('message', { data })npm run test — full test suite must passnpm run validate:fast — all validators must passnpm run validate:ipc explicitlyvalidate:store-versions catches missing registrationsnpx tsc --noEmit on specific files if neededany types were introduced{
"salientSummary": "Implemented ConnectorContribution store in src/core/ with full CRUD, lazy getStore(), registered CONTRIBUTION_STORE_VERSION in ALL_STORE_VERSIONS. Added 3 IPC read channels (contribution:list, contribution:get-by-session, contribution:get) with Zod schemas. Ran npm test (all passing), validate:fast green, validate:ipc green.",
"whatWasImplemented": "ConnectorContribution persistent store with ContributionStatus type (10 states), createDefaultState(), CRUD methods (createContribution, getContribution, getContributionBySession, updateContribution, listContributions), acknowledgedEvents array for per-surface dismissal tracking. IPC channels registered in contracts.ts, handlers in contributionHandlers.ts, preload bridge exposes contributionApi.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{ "command": "npm run test -- --grep 'contribution'", "exitCode": 0, "observation": "12 tests passing covering store CRUD, default state, IPC handlers, Zod validation" },
{ "command": "npm run validate:fast", "exitCode": 0, "observation": "All validators pass including validate:store-versions and validate:ipc" }
],
"interactiveChecks": []
},
"tests": {
"added": [
{
"file": "src/core/services/__tests__/contributionStore.test.ts",
"cases": [
{ "name": "creates store with correct default state", "verifies": "VAL-STATE-1" },
{ "name": "CRUD operations work correctly", "verifies": "VAL-STATE-4" },
{ "name": "acknowledgedEvents tracks per-surface dismissals", "verifies": "VAL-STATE-8" }
]
},
{
"file": "src/main/ipc/__tests__/contributionHandlers.test.ts",
"cases": [
{ "name": "contribution:list returns all contributions", "verifies": "VAL-STATE-7" },
{ "name": "contribution:get-by-session returns correct record", "verifies": "VAL-STATE-7" }
]
}
]
},
"discoveredIssues": []
}