Skip to content

4 Solution Strategy

The fundamental choices behind this repository, in short and with their sources: what a topic is made of (4.1), where each part lives (4.2), the decision records (4.3) and the approaches that serve the qualities of 1.2 (4.4).

4.1 A topic is made of the same kinds of parts

Every topic—the machines, git and GitHub, the AI SDLC, a stack—is built from the same kinds of parts: docs, rules, skills, agents, hooks, templates, scripts and settings fragments. A plugin carries all but the docs to a session; what each part is and how it gets there is SPEC.md (SPEC.md) §3, how rules get there is provisional (D-1, until OQ-2 is investigated). This repository is the plugin marketplace <owner>; a repository enables the plugins it needs instead of copying their parts (setup/marketplace.md).

4.2 Split by who runs it

The top-level folders are split by who runs what is in them (root CLAUDE.md (CLAUDE.md), "Layout"):

Path Run by Holds
scripts/linux/ a person, in a terminal bash for the Linux host that runs Claude Code as systemd user units (the scripts)
scripts/windows/ a person, in a terminal PowerShell for the owner's workstation (README (scripts/windows/README.md))
scripts/ci/ CI and the git hooks the checks (ci/checks.md)
plugins/<name>/ Claude Code, which loads them the plugins of the marketplace (plugins/)
servers/<name>/ a host, as a service in a container image the servers, each with its pinned dependencies and its own tests, such as the hello-world MCP server (servers/hello-mcp/README.md)
systemd/ the host's systemd the unit and the drop-in, version-controlled so the host is reproducible
.claude-plugin/marketplace.json Claude Code the marketplace manifest: this repository is the marketplace, called <owner>
.github/ GitHub CI, the AI reviewers' instructions, CODEOWNERS and the branch ruleset (ci/checks.md)
.claude/ Claude Code, in this repository this repository's own rules and skills for agents working on it, such as skill-audit
docs/ readers this documentation
SPEC.md readers the goals, requirements and qualities this repository must meet

Every script is linted and formatted before each commit (ruff, shfmt, shellcheck, PSScriptAnalyzer, through pre-commit); the setup once per clone is in stacks/claude.md.

A script that has to work on both platforms belongs in the cross-platform environment check instead: one script for Windows and Linux in the dev-env plugin (dev-env README (plugins/dev-env/README.md)).

4.3 Decision records

The decisions are recorded in docs/adr/ (docs/adr/README.md) (chapter 9). A record whose status is Proposed waits for the owner's decision; where a working default runs meanwhile, the Status column says so.

ADR Topic Status
0001 (docs/adr/0001-hosting-console-and-mcp.md) Hosting, identity and domains of the console and the MCP server: both published on the development domain on Cloudflare, behind Cloudflare Access, in place of Cloud Run with IAP accepted
0002 (docs/adr/0002-sast-and-secret-scanning.md) SAST and secret scanning before the merge proposed; Semgrep CE locally and in CI, with Gitleaks before the push, runs as the working default
0003 (docs/adr/0003-console-technology.md) Console technology for the agent dashboard proposed
0004 (docs/adr/0004-artifact-backups.md) Where the backups of claude.ai artifacts live in a repository proposed; the maintenance task's layout under docs/artifacts/ is the working default
0005 (docs/adr/0005-cost-source.md) Source of the agent dashboard's cost and token figures by role proposed
0006 (docs/adr/0006-public-docs-site.md) The public docs site: generator, hosting and the gate proposed; MkDocs with the Material theme on GitHub Pages, behind the gate, runs as the working default
0007 (docs/adr/0007-merge-queue-and-organization.md) A merge queue in the organization, or merging behind main proposed

4.4 Approaches and the qualities they serve

Approach What it means Serves Source
One marketplace, plugins enabled per repository a skill, rule or template exists once, here; a repository enables the plugin Q-1 SPEC.md (SPEC.md) §1, setup/marketplace.md
Version bump and auto-update a copy on a machine is replaced when a plugin's version changes, and CI refuses a plugin change without a bump Q-2 setup/marketplace.md
Detail on demand a plugin's always-on rules stay short; skills load only when a task needs them Q-8 SPEC.md (SPEC.md) D-1
Project values read at run time a plugin names no repository, board or person; what differs per repository is read from that repository's CLAUDE.md or settings Q-10 SPEC.md (SPEC.md) REQ-6
The script constraints the rules every script is written under: pwsh 7 on Linux too, no escalation, idempotent, staged and active reported apart, no token in the chat or on a command line Q-3 to Q-7 chapter 2
Tokens stay on the machines a repository's coordinator and workers run in a sandbox of their own, where no token enters the VM: the sandbox proxy puts the real value into requests Q-4 setup/linux-host.md, setup/secrets.md
One environment check for both platforms one script checks and repairs the environment on Windows and Linux Q-3 root CLAUDE.md (CLAUDE.md), "Layout"; 4.2
Checked before the merge every pull request passes the machine checks and the AI reviews; the plugin manifests are validated strictly Q-9 ci/checks.md, sdlc/quality-gate.md
One language everything here is English: scripts, comments, output, commit messages, branch names Q-11 root CLAUDE.md (CLAUDE.md), "Language"
GitHub as the shared memory every piece of work is an issue; agents claim issues, report and open pull requests there; a coordinator hands issues to workers, each in its own worktree — the repository's README (README.md), sdlc/parallel-work.md
The owner decides at the gates a routine pull request is merged under written rules; a real decision—scope, security, architecture, CI and the rules themselves—goes to the owner on one decision page — sdlc/decisions.md