Back to home@240xu

tech-lead-skill

Evidence-driven planning and safe change-control skill for OpenCode

Stars
0
Language
JavaScript
Created
Aug 24, 2026
Updated
Aug 26, 2026
GitHub repo

Introduction

Tech Lead Skill

English | 简体中文

An evidence-driven planning and delivery skill for software, infrastructure, research, reverse-engineering, and operations work.

What It Solves

Many plans fail in one of two ways: they are vague and cannot guide execution, or they are over-detailed and become false after the first environmental change. This skill keeps the plan coarse until evidence justifies detail, then continuously revises it against observed reality.

The control loop is:

goal -> constraints/assumptions -> L0/L1/L2 plan -> execute -> observe evidence
     -> revise -> choose CONTINUE / PAUSE / SCOPE-DOWN / PIVOT / STOP

Core Features

  • PLAN and EXECUTE modes with a clear boundary between planning and side effects.
  • Progressive disclosure: L0 architecture, L1 milestones, L2 executable focus.
  • Goal, metric, fact, assumption, decision, risk, dependency, and evidence ledgers.
  • Protected asset handling for source, user data, configuration, secrets, runtime state, and generated artifacts.
  • Minimal mutation protocol: READ -> CLASSIFY -> PROTECT -> CHANGE -> VERIFY -> RECONCILE -> ROLLBACK/RECORD.
  • Evidence levels E0-E4, from model inference to observed user outcomes.
  • Failure re-planning, stagnation circuit breaker, rollback discipline, and real-state reconciliation.
  • Optional adversarial review for high-impact or irreversible changes.
  • Git-backed and non-Git project-state recovery.
  • Release-readiness checks for public documentation and skill publishing.
  • Runtime discipline rules for external dependency health, silent failure classes, automation guardrails, idempotent batch jobs, and fallback ladders.

Install

npm (GitHub-hosted, no registry account needed)

npm i -g github:240xu/tech-lead-skill
tech-lead-skill          # installs into ~/.config/opencode/skills/tech-lead

One-shot without a global install:

npx github:240xu/tech-lead-skill

The installer is idempotent: repeated runs back up existing files as *.bak-<timestamp> first. Use --target <dir> to choose another destination, --check to verify an installed copy against the package (hash + version drift), --dry-run to preview without writing, and --uninstall to remove. Uninstall removes only manifest-managed files — user files and *.bak-* backups are kept.

--check exit codes: 0 clean, 1 drift detected, 2 usage/refusal error.

DeepSeek Harness plugin (read-only tools)

Ships on the DSH plugin market (npm) as ONE self-contained package, dsh-themis — named after the goddess of divine order: gates as verdicts, evidence weighed, releases audited. Install into any profile:

dsh plugin --profile headless add dsh-themis

22 registered entry points in a single artifact: 21 read-only governance tools plus a capability-discovery tool (tech_lead_capabilities) that lists only what this bundle actually registers (the original nine audits plus context validation, evidence graph/freshness analysis, progress decisions, critical-path/impact analysis, resume reconciliation, gate planning/aggregation/reopen checks, and mutation preview). Tools compute over caller-supplied JSON only — no filesystem writes, no subprocesses, no network access. The earlier split packages (dsh-tech-lead-{core,plugin,bundle}) are deprecated in favor of this one. Source checkouts remain supported: build via node scripts/build-market-package.mjs then dsh plugin add packages/dsh-themis. The root npm package distributes the skill and installer only.

dsh plugin --profile headless add /path/to/tech-lead-skill/packages/dsh-themis
dsh --profile headless --dump-config   # verify the tech-lead-tools row is present

Output families and limits:

  • The twelve strengthened tools return a tech-lead.result.v1 envelope (discriminator: meta.schema); the original nine tools return their bare domain shapes for backward compatibility.
  • Rendered output is clamped: finding/error arrays are capped at 500 entries with a FINDINGS_TRUNCATED warning; caller-echo arrays (evidence/targets/expectedDiff/verification/items) collapse into {truncated,total} beyond 100 entries; any OTHER array inside data (including computed results such as criticalPath) is head-sliced at 1000 entries while keeping its shape; subtrees deeper than 64 levels collapse into a DEPTH_LIMIT marker; payloads above 256 KB switch to compact serialization. Legacy bare top-level arrays slice silently at 500 (no warning field exists on that shape).

See docs/superpowers/specs/2026-08-25-dsh-tech-lead-system.md for the architecture and permission matrix.

Manual

Copy skill/SKILL.md and the skill/templates/ directory into the skills directory of your OpenCode-compatible environment:

~/.config/opencode/skills/tech-lead/

The skill is triggered by project construction, system building, implementation plans, deployment, migration, release, recovery, restructuring, operations work, and other substantial planning requests. It can also be loaded explicitly.

Lifecycle results are valid analyses

PAUSE, PIVOT, SCOPE-DOWN and STOP from tech_lead_progress_decide are returned as ok:true analyses with data.outcome; a not-yet-passed gate returns ok:true with data.verdict/data.pass. ok:false is reserved for malformed input, over-budget payloads (INPUT_TOO_LARGE, ITEM_LIMIT_EXCEEDED) and incomplete safety scans (SCAN_INCOMPLETE). Decision tools attach a deterministic data.guidance.nextActions[]; every action carries reason codes, a finding reference and a doneWhen predicate. Heuristic suggestions appear only under explicit guidanceMode:"heuristic".

Four-tool starter loop

  1. tech_lead_classify — copy the returned tier into your snapshot's current.tier.
  2. tech_lead_context_validate — validate the full inline snapshot (schema tech-lead.context.v1; canonical example: tests/fixtures/starter-context.v1.json).
  3. tech_lead_evidence_lint — pass the snapshot's evidence array as a JSON string; findings are advisory.
  4. tech_lead_progress_decide — feed the same snapshot; read data.outcome, then follow data.guidance.

Operating Modes

PLAN

Use for intake, goal definition, architecture, decomposition, risk analysis, and verification design. PLAN does not edit files or run side-effecting commands.

EXECUTE

Use after the L2 scope is clear. Execute only the smallest approved mutation, record the change, verify behavior, reconcile actual state, and update the plan.

Protected Assets

ClassDefault handling
SOURCEInspectable diff, tests, and restore point
USER_DATARead-only by default; write only to an explicit target with recovery
CONFIGRead current state, make the smallest change, reload, verify
SECRETNever place in plans, logs, ordinary backups, or diffs
RUNTIMEInspect live state before restart, kill, replace, or migration
GENERATEDPrefer regeneration; do not treat as the source of truth

Evidence Levels

  • E0: model inference; hypothesis only.
  • E1: static inspection, grep, or configuration inspection.
  • E2: local command or unit test; local behavior only.
  • E3: integration test, real process, or real endpoint.
  • E4: user acceptance, real business result, or production observation.

Templates

  • templates/intake.md: goal, constraints, assets, risk, and completion level.
  • templates/plan.md: L0/L1/L2 plan and current focus.
  • templates/change-record.md: one EXECUTE mutation and its reconciliation.
  • templates/round.md: one planning iteration and its outcome.
  • templates/state.json: canonical resumable state projection.
  • templates/gate-review.md and templates/gate-verdict.md: independent review and decision records.
  • templates/release-check.md: publication inventory, scans, remote verification, and limitations.

Scope

This is an engineering planning skill. It focuses on correctness of planning, safe handling of user files and code changes, evidence quality, rollback, and real-environment reconciliation. It intentionally stays focused on project-level engineering work rather than organization-wide process design.

Limitations

  • The prose judgment layer stays non-mechanical by design; only the source-checkout DSH bundle adds a machine-checkable read-only runtime for context, evidence, progress, gates, release/install audits, recovery, and mutation preview.
  • Inside the prose skill itself (without the bundle), evidence freshness and state reconciliation remain operator/agent responsibilities.
  • The skill does not provide a sandbox; untrusted code must not be executed unless an actual isolated execution environment is already available.
  • MCP candidates should be selected only after observing repeated real-project violations.

Notes

The executable skill body (SKILL.md) is authored in Simplified Chinese; coding agents execute it correctly regardless of the conversation language. Templates are English and agent-facing. Documentation translations cover this README and the technical guide.

Version

Current version: v5.5.2.

See docs/TECHNICAL_GUIDE.md for the full operating model and docs/AUDIT_REPORT.md for the publication audit.