/platform-architecture:bytedesk-architecture-sync working-tree | audit [--base origin/develop] | refresh | partition <service>from platform-architecture
Structurizr C4 drift gate for ByteDesk Platform. Use when editing src/ByteDesk.* services, shared contracts/infra, or Helm service topology; before commit or PR when architecture-relevant paths change; when pre-commit or Stop hook reports architecture-sync violations; or when updating docs/architecture/workspace.dsl. Wraps architecture-sync.mjs and platform-local Structurizr DSL validation.
Ships in platform-architecture. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Keep docs/architecture/workspace.dsl aligned with code changes. The pre-commit
hook blocks arch-relevant commits without a staged diagram update — this skill
teaches agents to fix drift before the hook fires.
Partitions live in docs/architecture/anchors.yaml. Common anchors:
| Partition key | Typical paths |
|---|---|
gateway | src/ByteDesk.Gateway/** |
identity | src/ByteDesk.Identity/** |
sales | src/ByteDesk.Sales/** |
tools | src/ByteDesk.Tools/** |
shared-contracts | src/ByteDesk.Shared.Contracts/** |
shared-infrastructure | src/ByteDesk.Shared.Infrastructure/** |
Run architecture-sync --mode working-tree to see which
partitions your staged diff touches.
architecture-sync --mode working-tree
git diff --name-only origin/develop... # PR audit
If output is empty / "ok", no diagram update required for this change.
For surgical changes (new container, relationship, tag):
docs/architecture/workspace.dsl.architecture-sync --mode audit.For large or new-service changes:
git diff -- docs/architecture/workspace.dsl before commit to review wire-shape changes.Stage both code and diagram:
git add docs/architecture/workspace.dsl # or fragments/*.dsl
git add src/ByteDesk.<Service>/...
architecture-sync --mode refresh
git add docs/architecture/.arch-sync-state.json
Only refresh when partition coverage or anchor globs changed — not on every one-line relationship fix.
architecture-sync --mode audit --base origin/develop
bash scripts/testing/local-test.sh architecture-sync
| Situation | Skill |
|---|---|
| Pre-implementation plan review | /bytedesk-architect (C4 impact bucket) |
| Full codebase decomposition | /bytedesk-architecture-decompose |
| Ship with diagram diff | /bytedesk-pr-ready §3c |
| Landed + diagram on develop | /bytedesk-worktree-operator landed |
workspace.dsl / fragments/ staged..arch-sync-state.json or anchors.yaml to satisfy the gate.workspace.json or .structurizr/ — generated/local only.What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/bytedesk-adrArchitecture Decision Record (ADR) creation for the ByteDesk Platform. Use this skill whenever an architectural or design decision needs to be documented — new patterns, technology choices, cross-service contracts, infrastructure decisions, or any choice that future engineers (or future Claude sessions) need to understand. Invoke when the user says "write ADR", "create architecture decision", "document this decision", "ADR for", "record why we chose", "document our approach to", or when a significant technical choice is made during implementation./bytedesk-architecture-decomposeApplication decomposition → Structurizr C4 modeling orchestrator. Use for partition-scoped codebase analysis (C1–C3), incremental diagram growth, ADR-constrained modeling, and indexed progress across iterations. Uses graphify + architecture-sync for platform work.Other plugins' skills for the same job
npx claudepluginhub bytedeskai/bytedesk-marketplace --plugin platform-architecture