From distcompute
Apply the DistComputeSys2 overlay to the current project's System2 installation. Patches CLAUDE.md and agent persona files with distributed systems guidance.
How this skill is triggered — by the user, by Claude, or both
Slash command
/distcompute:apply [--dry-run] [--phase 1|2|3][--dry-run] [--phase 1|2|3]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are executing the /distcompute:apply skill. Follow these steps exactly.
You are executing the /distcompute:apply skill. Follow these steps exactly.
--dry-run: If passed, show what would be changed without modifying files.--phase <N>: Apply only a specific phase (1=architecture, 2=upstream, 3=enforcement). Default: all phases.CLAUDE.md exists at the project root and contains ## Operating principles.plugin/agents/spec-coordinator.md OR .claude/agents/spec-coordinator.mdplugin/agents/design-architect.md OR .claude/agents/design-architect.md
If neither location has agent files, inform the user: "System2 agent personas not found. Run /system2:init first, or specify the agent directory."Read the orchestrator patch from plugin/patches/orchestrator.md in the DistComputeSys2 plugin directory.
Find the ## Operating principles section in CLAUDE.md. Locate the last bullet point in that section.
If the section already contains "Domain-first boundaries" — skip (already applied).
Otherwise, append the patch content after the last existing bullet.
Read the design-architect patch from plugin/patches/design-architect.md.
Apply Patch 1: Find the Design constraints: section. Locate the end of the existing content (after the agentic components block or the last existing constraint). If the section already contains "Bounded context identification" — skip. Otherwise, append Patch 1 content.
Apply Patch 2: Find the required sections list for spec/design.md. After "Concurrency, Ordering, and Consistency", insert the two new section requirements. If "Bounded Contexts & Context Map" already exists — skip.
Apply Patch 3: Find "Alternatives Considered" in the required sections list. Append the domain fit / scale profile / simplicity assessment template. If "Domain fit:" already exists — skip.
Apply Patch 4: Find "Simplicity Budget" in the required sections list. Append the bounded context count and coordination mechanism items. If "Bounded context count" already exists — skip.
Read the spec-coordinator patch from plugin/patches/spec-coordinator.md.
Apply Patch 1: Find Before writing: numbered list. After step 4, insert step 5 (renumber if needed). If step 5 already contains "domain and scale characteristics" — skip.
Apply Patch 2: Find spec/context.md must include these sections: list. After "Open Questions", add "Domain Model Sketch" and "Communication & Scale Intent". If "Domain Model Sketch" already exists — skip.
Apply Patch 3: Find Style requirements: section. Append the three new bullets. If "polysemy" is already mentioned — skip.
Apply Patch 4: Add the domain/distribution constraints template to the Constraints & Invariants guidance. If "Domain model:" template already exists — skip.
Read the requirements-engineer patch from plugin/patches/requirements-engineer.md.
Apply Patch 1: Find the Guardrails: section. Append after the last existing guardrail bullet. If "Domain-Driven Design guardrails:" already exists — skip.
Apply Patch 2: Find the required sections list for spec/requirements.md. After "Performance & Scalability", insert the new section. If "Consistency & Domain Boundaries" already exists — skip.
Read the code-reviewer patch from plugin/patches/code-reviewer.md.
Apply Patch 1: Find Review checklist: section. Append after the last existing checklist item. If "Domain model integrity (DDD):" already exists — skip.
Apply Patch 2: Find Surface-area delta: section. Append the new items. If "Bounded context boundaries" already exists — skip.
Apply Patch 3: Find Future-change probe: section. Append the new items. If "bounded context boundaries" is already mentioned — skip.
Read the executor patch from plugin/patches/executor.md.
Find ## Anti-additive bias section. Insert the new section AFTER it (before ## Slop catalog if that exists). If ## Domain-driven implementation discipline already exists — skip.
After all patches are applied (or skipped):
--dry-run was passed, report what WOULD have been changed without writing files.This skill is idempotent. Running it multiple times on the same project will not duplicate content — each patch checks for sentinel text before applying.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub kwehden/distcomputesys2 --plugin distcompute