---
name: deepseek-harness-worker
description: "Delegate tasks to real external DeepSeek Harness agent sessions (DSH_PLANNER, DSH_ARCHITECT, DSH_IMPLEMENTER, DSH_TESTER, DSH_CODE_REVIEWER, DSH_SECURITY_REVIEWER, DSH_DATABASE_REVIEWER, DSH_FIXER, DSH_VERIFIER) with automated Git Worktree snapshot isolation and distinct Orchestration Run IDs."
metadata:
origin: OpenCode-DSH
DeepSeek Harness External Agent Worker
Use this skill when delegating tasks to real external DeepSeek Harness agent processes with worktree snapshot isolation, Single-Writer enforcement, and structured Orchestration Run ID tracking.
1. Supported Specialist Roles
DSH_PLANNER: SOFT READ-ONLY architecture inspection and step-by-step implementation plan.
DSH_ARCHITECT: SOFT READ-ONLY system contract, API schema, and database design validation.
DSH_IMPLEMENTER: Bounded code implementation in isolated git worktree snapshot (.worktrees/dsh-*).
DSH_TESTER: Regression/unit/integration test creation and execution in isolated worktree.
DSH_CODE_REVIEWER: SOFT READ-ONLY independent git diff and code quality review.
DSH_SECURITY_REVIEWER: SOFT READ-ONLY OWASP Top 10, secrets, authentication, and injection audit.
DSH_DATABASE_REVIEWER: SOFT READ-ONLY schema, index, transaction, and migration audit.
DSH_FIXER: Surgical bug/defect correction in existing worktree based on verified reviewer findings.
DSH_VERIFIER: SOFT READ-ONLY / TEST RUNNER independent diff, test suite, and build verification.
2. Invocation Commands
Single Agent Run:
node "C:\Users\victo\.config\opencode\scripts\dsh-delegate.js" --role DSH_PLANNER --objective "<GOAL>" --targetPath "<DIR>"
Full Multi-Agent Pipeline:
node "C:\Users\victo\.config\opencode\scripts\dsh-team.js" --pipeline <COMPLEX|HIGH_RISK|HEAVY|AUDIT|REALITY_CHECK|FULL_ASSURANCE|COMPLIANCE_AUDIT|INFRA_OPS|STARTUP_MVP|ENTERPRISE_FEATURE|INCIDENT_RESPONSE|MCP_SERVER|CODE_ARCHAEOLOGY|SPATIAL_APP|AI_SECURITY_AUDIT|HARDCORE_SEC_AUDIT|UI_POLISH|RAG_PIPELINE|MOBILE_APP|PAYMENTS_BILLING|FULL_STACK_DEV|GIS_PIPELINE|GAME_DESIGN|HEALTHCARE_EVAL|GTM_LAUNCH|DEEP_RESEARCH> --objective "<GOAL>" --targetPath "<DIR>"
3. Worktree & Diff Isolation
- Dirty-Workspace Snapshot:
- Tracked modifications (
git diff HEAD --binary) are applied to the isolated worktree via git apply --binary.
- Safe untracked files are copied; secrets (
.env, credentials), backups, and build artifacts are strictly excluded.
- Base snapshot commit is created locally in the worktree.
- Isolated Diff:
- DSH diff is computed strictly as
DSH RESULT - BASE SNAPSHOT to isolate user uncommitted work from DeepSeek additions.
- No Automatic Merge:
- Outputs are returned to Antigravity Lead for independent ECC verification before any merge.
4. Universal Modular Architecture Mandate
All DSH roles automatically receive and enforce the 5-level Modular Architecture Hard Rule:
- Project → Domain → Feature → Use-case → Responsibility → File
- DSH_PLANNER: Produces granular use-case breakdowns (one file per business action).
- DSH_IMPLEMENTER: Writes code strictly in dedicated feature subfolders; no 4000-line monolithic files.
- DSH_CODE_REVIEWER: Audits diffs for modular boundaries, feature colocation, and public contracts.
5. Documentation-First & Sequential Execution Mandate
All DSH delegations must be micro-task bounded:
- Never open-ended: DSH never receives "Build module X". DSH receives MT-ID with explicit allowed files.
- Documentation discovery: DSH inspects relevant project-authored docs and verifies live reality before modifying code.
- Single active micro-task: Executes one micro-task at a time (Implement ➔ Test ➔ Diff Review ➔ DoD Verified).
- Discovery to Backlog: Unrelated bugs discovered during execution are logged to backlog, not fixed in active scope.
1---2name: deepseek-harness-worker3description: ---4---5---6name: deepseek-harness-worker7description: "Delegate tasks to real external DeepSeek Harness agent sessions (DSH_PLANNER, DSH_ARCHITECT, DSH_IMPLEMENTER, DSH_TESTER, DSH_CODE_REVIEWER, DSH_SECURITY_REVIEWER, DSH_DATABASE_REVIEWER, DSH_FIXER, DSH_VERIFIER) with automated Git Worktree snapshot isolation and distinct Orchestration Run IDs."8metadata:9 origin: OpenCode-DSH10---1112# DeepSeek Harness External Agent Worker1314Use this skill when delegating tasks to real external DeepSeek Harness agent processes with worktree snapshot isolation, Single-Writer enforcement, and structured Orchestration Run ID tracking.1516---1718## 1. Supported Specialist Roles1920- **`DSH_PLANNER`**: SOFT READ-ONLY architecture inspection and step-by-step implementation plan.21- **`DSH_ARCHITECT`**: SOFT READ-ONLY system contract, API schema, and database design validation.22- **`DSH_IMPLEMENTER`**: Bounded code implementation in isolated git worktree snapshot (`.worktrees/dsh-*`).23- **`DSH_TESTER`**: Regression/unit/integration test creation and execution in isolated worktree.24- **`DSH_CODE_REVIEWER`**: SOFT READ-ONLY independent git diff and code quality review.25- **`DSH_SECURITY_REVIEWER`**: SOFT READ-ONLY OWASP Top 10, secrets, authentication, and injection audit.26- **`DSH_DATABASE_REVIEWER`**: SOFT READ-ONLY schema, index, transaction, and migration audit.27- **`DSH_FIXER`**: Surgical bug/defect correction in existing worktree based on verified reviewer findings.28- **`DSH_VERIFIER`**: SOFT READ-ONLY / TEST RUNNER independent diff, test suite, and build verification.2930---3132## 2. Invocation Commands3334### Single Agent Run:35```powershell36node "C:\Users\victo\.config\opencode\scripts\dsh-delegate.js" --role DSH_PLANNER --objective "<GOAL>" --targetPath "<DIR>"37```3839### Full Multi-Agent Pipeline:40```powershell41node "C:\Users\victo\.config\opencode\scripts\dsh-team.js" --pipeline <COMPLEX|HIGH_RISK|HEAVY|AUDIT|REALITY_CHECK|FULL_ASSURANCE|COMPLIANCE_AUDIT|INFRA_OPS|STARTUP_MVP|ENTERPRISE_FEATURE|INCIDENT_RESPONSE|MCP_SERVER|CODE_ARCHAEOLOGY|SPATIAL_APP|AI_SECURITY_AUDIT|HARDCORE_SEC_AUDIT|UI_POLISH|RAG_PIPELINE|MOBILE_APP|PAYMENTS_BILLING|FULL_STACK_DEV|GIS_PIPELINE|GAME_DESIGN|HEALTHCARE_EVAL|GTM_LAUNCH|DEEP_RESEARCH> --objective "<GOAL>" --targetPath "<DIR>"42```4344---4546## 3. Worktree & Diff Isolation47481. **Dirty-Workspace Snapshot**:49 - Tracked modifications (`git diff HEAD --binary`) are applied to the isolated worktree via `git apply --binary`.50 - Safe untracked files are copied; secrets (`.env`, `credentials`), backups, and build artifacts are strictly excluded.51 - Base snapshot commit is created locally in the worktree.522. **Isolated Diff**:53 - DSH diff is computed strictly as `DSH RESULT - BASE SNAPSHOT` to isolate user uncommitted work from DeepSeek additions.543. **No Automatic Merge**:55 - Outputs are returned to Antigravity Lead for independent ECC verification before any merge.5657---5859## 4. Universal Modular Architecture Mandate6061All DSH roles automatically receive and enforce the 5-level Modular Architecture Hard Rule:62- **Project → Domain → Feature → Use-case → Responsibility → File**63- **DSH_PLANNER**: Produces granular use-case breakdowns (one file per business action).64- **DSH_IMPLEMENTER**: Writes code strictly in dedicated feature subfolders; no 4000-line monolithic files.65- **DSH_CODE_REVIEWER**: Audits diffs for modular boundaries, feature colocation, and public contracts.6667---6869## 5. Documentation-First & Sequential Execution Mandate7071All DSH delegations must be micro-task bounded:72- **Never open-ended**: DSH never receives "Build module X". DSH receives MT-ID with explicit allowed files.73- **Documentation discovery**: DSH inspects relevant project-authored docs and verifies live reality before modifying code.74- **Single active micro-task**: Executes one micro-task at a time (Implement ➔ Test ➔ Diff Review ➔ DoD Verified).75- **Discovery to Backlog**: Unrelated bugs discovered during execution are logged to backlog, not fixed in active scope.76777879808182838485