/project-orchestration-skills:setup-adrsfrom project-orchestration-skills
Creates foundational Architecture Decision Records (ADRs) for new projects, covering decision methodology, development practices, technology stack, and operations. Use after bootstrapping a project or standardizing ADR practices.
Ships in project-orchestration-skills. 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.
Read when SKILL.md points to them; scripts run unread.
Create the foundational Architecture Decision Record (ADR) sequence for a new project.
bootstrap-project skillEvery project should have these foundational ADRs:
| ADR | Purpose | Scope | Critical For |
|---|---|---|---|
| ADR-0001 | HOW TO DECIDE | Decision methodology | All projects |
| ADR-0002 | HOW TO DEVELOP | Development practices | All projects |
| ADR-0003 | WHAT TECH | Technology stack | All projects |
| ADR-0004 | HOW TO OPERATE | Operations practices | Infrastructure, Hybrid (optional) |
Note: ADR-0004 is only needed for Infrastructure and Hybrid projects. Skip it for pure development projects (libraries, CLI tools, web apps without self-hosting concerns).
ADRs serve the Contribution audience category (maintainers, contributors, future architects). They provide the "understanding-oriented" content in Diátaxis terms, explaining why decisions were made.
If a SPARK Audience Registry exists for the project, tag ADRs with the registry's identifier for the Contribution audience:
---
audience: contribution # or the project's registry ID for maintainers/contributors
---
Pattern Reference: See AUDIENCE-DRIVEN ARTIFACTS
Before creating ADRs, check for existing ones to prevent conflicts:
# Check highest ADR number
ls docs/adr/*.md 2>/dev/null | grep -E '[0-9]{4}-' | sort -V | tail -1
# If no ADRs exist, start with 0001
Filename: NNNN-title-with-hyphens.md (e.g., 0001-record-architecture-decisions.md)
Title: # N. Title using adr-tools format (e.g., # 1. Record Architecture Decisions). This format is required for Structurizr !adrs integration.
Create docs/adr/0001-record-architecture-decisions.md:
# 1. Record Architecture Decisions
Date: [YYYY-MM-DD]
## Status
Accepted
## Context
[Project name] requires a systematic approach to documenting significant architectural and technical decisions. As the project evolves, we need to maintain a clear record of why decisions were made, what alternatives were considered, and what trade-offs were accepted.
This is especially important for AI-assisted development, where decisions made in one session need to be understood in future sessions.
## Decision
We will use Architecture Decision Records (ADRs) to document significant architectural decisions.
**ADR Location**: All ADRs stored in `docs/adr/` directory
**ADR Format**: Following the format established by Michael Nygard:
- **Title**: Short noun phrase (ADR-NNNN: Title)
- **Status**: Proposed, Accepted, Deprecated, Superseded
- **Context**: Forces at play, including technical, business, and social
- **Decision**: The response to these forces
- **Consequences**: Resulting context after applying the decision
**Numbering**: Sequential four-digit format (0001, 0002, ...) with no gaps
**What Warrants an ADR**:
- Technology stack choices
- Architectural patterns adopted
- Build/deployment approaches
- Integration decisions
- Security-related choices
- Decisions that would be costly to reverse
## Consequences
**Positive**:
- Clear record of why decisions were made
- Context preserved for future maintainers and AI assistants
- Reduced repeated discussions about settled decisions
- Audit trail for architectural evolution
**Negative**:
- Overhead of writing and maintaining ADRs
- Risk of ADRs becoming outdated if not maintained
## References
- [Documenting Architecture Decisions](https://cognitect.com/blog/2011/11/15/documenting-architecture-decisions) - Michael Nygard
- [ADR GitHub Organization](https://adr.github.io/)
Create docs/adr/0002-adopt-development-best-practices.md:
Scale the detail to the project. A small CLI tool needs ~100 lines; a multi-subsystem application may need 300-700 lines. Include only sections that apply.
# 2. Adopt Development Best Practices
Date: [YYYY-MM-DD]
## Status
Accepted
## Context
[Project name] is a [type] project using [technology stack]. We need consistent development practices that enable high-quality, maintainable code while supporting AI-assisted development workflows.
This project follows [AI-Assisted Project Orchestration patterns](https://github.com/jrjsmrtn/ai-assisted-project-orchestration).
## Decision
### 1. Testing Strategy
- **Framework**: [ecosystem-specific: ExUnit, pytest, cargo test, etc.]
- **Approach**: TDD — Red-Green-Refactor cycle
- **Coverage target**: >80% for core logic
- **Test organization**:
- `test/unit/` or `test/[app]/` — unit tests (fast, isolated)
- `test/integration/` — integration tests (slower, may require external services)
[For Elixir: add property-based testing with StreamData if applicable]
[For Elixir: add contract tests if defining behaviours]
### 2. BDD with Gherkin (user-facing projects)
[Include this section for Web, GUI, TUI, CLI projects. Omit for libraries and infrastructure.]
- **Gherkin feature files**: `features/` or `test/features/`
- **Step definitions**: `features/step_definitions/` or `test/features/step_definitions/`
- **BDD framework**: [confirm during bootstrap — e.g., Cucumber for Elixir, Behave or pytest-bdd for Python]
- **Browser automation**: [Playwright for web projects]
- **Tagging**: `@wip`, `@smoke`, `@slow` for selective execution
### 3. Semantic Versioning
- Follow [SemVer 2.0.0](https://semver.org/)
- During development: 0.1.x (increment patch per sprint/milestone)
- No stable 1.0 until [condition: "Phase N complete", "production-ready", etc.]
- Version location: [where the version is defined in the project]
### 4. Git Workflow
- **Gitflow-based**: `main`, `develop`, `feature/*`, `release/*`, `hotfix/*`
- **Conventional Commits**: `feat:`, `fix:`, `refactor:`, `docs:`, `test:`, `chore:`
- `main` tracks releases, `develop` is the integration branch
### 5. Change Documentation
- **Keep a Changelog** format in `CHANGELOG.md`
- Categories: Added, Changed, Deprecated, Removed, Fixed, Security
- Updated with each version bump
### 6. Architecture as Code
- **C4 DSL** models in `docs/architecture/`
- Validated and inspected with the consolidated `structurizr/structurizr` container (`validate` and `inspect` subcommands)
- Rendered with the same image's `local` subcommand for review
### 7. Documentation Framework
**Diátaxis** structure in `docs/`:
- `tutorials/` — learning-oriented
- `howto/` — problem-oriented
- `reference/` — information-oriented
- `explanation/` — understanding-oriented
ADRs in `docs/adr/`, sprint plans in `docs/sprints/`, roadmap in `docs/roadmap/`.
### 8. Sprint-Based Development
- Lightweight sprints aligned with roadmap phases
- Sprint plans in `docs/sprints/sprint-NNNN-plan.md`
- Retrospectives in `docs/sprints/sprint-NNNN-retrospective.md` (or `.yml`)
- Roadmap in `docs/roadmap/roadmap.md`
### 9. Formatting and Editor Configuration
- **Editor configuration**: `.editorconfig` for consistent whitespace across editors
- **Markdown formatting**: dprint (preferred) or prettier
- **Code formatting**: [ecosystem-specific: mix format, ruff format, cargo fmt, etc.]
### 10. Quality Automation
**Git hooks** — lefthook (preferred) or pre-commit framework:
**Pre-commit** (fast, <30s):
- Code formatting check
- Markdown formatting check (dprint)
- Secret scanning (gitleaks)
**Pre-push** (thorough):
- Linting / static analysis ([mix credo, ruff check, eslint, etc.])
- Type checking ([Dialyzer, mypy, tsc, etc.])
- Dependency scanning ([mix deps.audit, pip-audit, npm audit, cargo audit, etc.])
- Fast tests (exclude slow/integration)
**CI** should run all pre-commit + pre-push checks, plus integration tests and coverage.
### 11. Licensing and Copyright
*(Enforce for projects intended for open-source release; skip for closed-source/private ones.)*
- **REUSE compliance** ([reuse.software](https://reuse.software/)) for machine-readable copyright and license declarations
- SPDX headers (`SPDX-FileCopyrightText`, `SPDX-License-Identifier`) on source files
- License texts in `LICENSES/` directory, bulk/vendored annotations in `REUSE.toml`
- **Enforced, not just prescribed**: `reuse lint` runs as a git hook and a CI job (`fsfe/reuse-action`) — see `setup-git-hooks`. Third-party/transitive license compatibility is covered by the mixed-license aggregate analysis where applicable.
### 12. Code Conventions
[Project-specific patterns that AI and human contributors should follow. Examples:]
- [Struct definition ordering, validation patterns, error handling conventions]
- [Test addresses: RFC 5737 for IPs, RFC 7042 for MACs, RFC 2606 for domains]
- [Naming conventions, module organization]
[Omit this section if no project-specific conventions exist yet.]
## Consequences
**Positive**:
- Consistent practices across development sessions
- AI assistants have clear guidance on standards
- Quality gates catch issues early
- Automated enforcement reduces review burden
**Negative**:
- Initial setup overhead for tooling
- [Ecosystem-specific: Dialyzer PLT build time, mypy strictness ramp-up, etc.]
## References
- [AI-Assisted Project Orchestration](https://github.com/jrjsmrtn/ai-assisted-project-orchestration)
- [Ecosystem-specific documentation links]
Ecosystem-specific guidance (confirm choices during project bootstrap):
For Elixir projects, expand sections with:
For Python projects, expand sections with:
For Rust projects, expand sections with:
For mature/security-sensitive projects, add:
Create docs/adr/0003-[technology-stack-name].md:
# 3. Use [Technology Stack]
Date: [YYYY-MM-DD]
## Status
Accepted
## Context
[Project name] requires [describe the technical needs].
Key requirements:
- [Requirement 1]
- [Requirement 2]
- [Requirement 3]
We evaluated several technology options for [specific technical domain].
## Decision
We will use [Technology Stack] for [project name].
**Core Technologies**:
- **Language**: [e.g., Elixir 1.18+, Python 3.12+]
- **Framework**: [e.g., Phoenix 1.7+, FastAPI]
- **Database**: [e.g., PostgreSQL 16+]
- **Additional**: [other key technologies]
**Rationale**:
- [Reason 1 with evidence]
- [Reason 2 with evidence]
- [Reason 3 with evidence]
**Alternatives Considered**:
| Option | Pros | Cons | Decision |
|--------|------|------|----------|
| [Option A] | [pros] | [cons] | Selected |
| [Option B] | [pros] | [cons] | Rejected |
| [Option C] | [pros] | [cons] | Rejected |
## Consequences
**Positive**:
- [Benefit 1]
- [Benefit 2]
**Negative**:
- [Trade-off 1]
- [Trade-off 2]
**Risks**:
- [Risk and mitigation]
## References
- [Relevant documentation links]
- [Comparison articles if applicable]
Skip for pure development projects. Only create for Infrastructure or Hybrid projects.
Create docs/adr/0004-operations-best-practices.md:
Scope varies by project type:
# 4. Operations Best Practices
Date: [YYYY-MM-DD]
## Status
Accepted
## Context
[For Infrastructure]: This project manages infrastructure that requires systematic
operational practices for reliability, maintainability, and effective troubleshooting.
[For Development]: This application requires operational guidelines for deployment,
monitoring, and incident response.
## Decision
### Deployment
**Method**: [Ansible, Docker/Podman, Kubernetes, manual, etc.]
**Environments**: [production, staging, development]
**Process**:
1. [Deployment step 1]
2. [Deployment step 2]
**Rollback**: [How to rollback if deployment fails]
### Monitoring and Alerting
**What we monitor**:
- [Service health]
- [Resource utilization]
- [User-facing metrics]
**Tools**: [Prometheus, Grafana, etc.]
**Alerting**: [When and how alerts trigger]
### [Infrastructure Projects] Extended Operations
#### Backup and Recovery
- **Scope**: [What is backed up]
- **Frequency**: [Backup schedule]
- **Retention**: [How long kept]
- **Recovery testing**: [How often tested]
#### Security and Access
- **Access control**: [Who has access, how managed]
- **Authentication**: [Method]
- **Network security**: [Firewall, VPN, etc.]
- **Update management**: [Patching approach]
#### Troubleshooting
- **Logs**: [Where logs are, how to access]
- **Common issues**: [Link to runbooks]
- **Escalation**: [When to escalate, to whom]
#### Change Management
- **Process**: [How changes are planned and executed]
- **Documentation**: [Changes documented where]
- **Rollback plan**: [Required for each change]
### [Development Projects] Operational Basics
- **Environments**: dev, staging, production
- **Logging**: [Where logs go, log levels]
- **Error tracking**: [Error reporting service]
- **Health checks**: [Endpoint, expected response]
## Consequences
**Positive**:
- Systematic operational practices documented
- AI assistants consider operational constraints
- Troubleshooting guided by documentation
- Knowledge transfer for operations
**Negative**:
- Documentation overhead
- Requires discipline to maintain
## References
- [System Architecture](../architecture/) - C4 model
- [Runbooks](../howto/) - Operational procedures
Create docs/adr/index.yml — YAML is safe inside the ADR directory because Structurizr's !adrs importer only processes *.md files:
# Architecture Decision Records — [Project Name]
foundational:
- id: 1
file: 0001-record-architecture-decisions.md
title: Record Architecture Decisions
purpose: HOW TO DECIDE
status: Accepted
- id: 2
file: 0002-adopt-development-best-practices.md
title: Adopt Development Best Practices
purpose: HOW TO DEVELOP
status: Accepted
- id: 3
file: 0003-[tech-stack].md
title: "Use [Technology Stack]"
purpose: WHAT TECH
status: Accepted
# ADR-0004 only for Infrastructure/Hybrid projects:
# - id: 4
# file: 0004-operations-best-practices.md
# title: Operations Best Practices
# purpose: HOW TO OPERATE
# status: Accepted
Do not create a README.md inside docs/adr/ — the adrtools importer parses every .md file and will fail on non-ADR markdown files.
Section 11 covers the project's own license (REUSE/SPDX). This covers third-party licensing for projects that vendor, bundle, statically link, or ship a container/WASM image containing others' code — whether or not it is distributed publicly. The floor depends on how the artifact is distributed, and a project that is only self-hosted today can become one that is redistributed or run as a service without any dependency changing. Produce a LICENSING.md and record the decision in an ADR.
A permissive wrapper does not make the shipped artifact permissive. Identify the copyleft floor — the most restrictive license governing the aggregate:
libversion).LICENSING.md structure (cross-check the component table against the CycloneDX SBOM's per-component license summary from setup-container-security / wrapup-sprint):
# Licensing
This repository's own files are licensed **[SPDX]** (see [LICENSE](LICENSE)).
The **shipped artifact is a mixed-license aggregate** — it [bundles/vendors/statically links]
third-party components. Its **copyleft floor is [SPDX]** because [component] is [license]-only.
## Bundled components
| Component | Version | License | SPDX | Type |
|-----------|---------|---------|------|------|
| [name] | [ver] | [license] | `[SPDX]` | Permissive / Copyleft / Source-available |
## Obligations by how you use it
| Use | Obligation |
|-----|------------|
| Self-hosted / internal | Attribution only (if the floor stays permissive) |
| Redistribute the artifact | Offer copyleft components' source; comply with each component's terms |
| Offer as a network service (SaaS) | AGPL §13 source-offer, if any AGPL component is present |
## Attribution / source
- [component] — [upstream URL] ([license])
---
_License identification and how the licenses interact — not legal advice._
Record the copyleft-floor conclusion and the intended distribution mode (self-host / redistribute / SaaS) in an ADR, so a later pivot re-triggers the review.
A proprietary or internal-only project records this too. "Internal use" is a distribution mode, not an exemption: write down where "internal" ends (for example a subsidiary, a contractor, a customer's environment), because the table above does not decide it. The first sentence of the template describes a project whose own files carry an SPDX licence; a proprietary project states its own terms there instead. The bundled-components and obligations tables stay as they are.
This skill creates:
docs/adr/index.yml (ADR index — YAML is safe inside adr/, only *.md is parsed by !adrs)docs/adr/0001-record-architecture-decisions.md (HOW TO DECIDE)docs/adr/0002-adopt-development-best-practices.md (HOW TO DEVELOP)docs/adr/0003-[technology-stack].md (WHAT TECH)docs/adr/0004-operations-best-practices.md (HOW TO OPERATE — Infrastructure/Hybrid only)LICENSING.md + an ADR recording the copyleft floor and the intended distribution modeRun the check; do not read the list. Copy this skill's scripts/check-adrs.sh and run it from the project
root (scripts/check-adrs.sh, or scripts/check-adrs.sh path/to/adr for another directory). It only
reads, and it runs under the bash 3.2 that macOS ships.
The script is scripts/check-adrs.sh, in this skill's directory. Copy it into the project as scripts/check-adrs.sh rather than retyping it, and run it from the repository root.
Exit codes: 0 every check passed (warnings do not fail); 1 at least one failed. It checks:
NNNN-kebab-title.md; the first line is # N. Title with N the file's
number (the adr-tools form Structurizr's !adrs needs; a leading HTML comment such as an SPDX header is
skipped); Date: is a real calendar date and not in the future; ## Status begins with Proposed,
Accepted, Rejected, Deprecated, Superseded or Amended (markdown emphasis and a trailing date or period are
fine); ## Context, ## Decision and ## Consequences exist; no template placeholder such as
[Project name] or [Option A] is left.README.md or other non-ADR markdown (the importer fails on it); numbers are
unique and 0001 to 0003 exist (a gap warns); ADR-0003 mentions the alternatives considered; an
operations ADR-0004 exists when CLAUDE.md's Category is Infrastructure or Hybrid, and a Development
project does not carry one (its ADR-0004 may be any decision, so only an operations ADR-0004 fails).docs/adr/index.yml: present; each entry's file exists and its id, title and status agree with
the ADR; ADR-0001 to 0003 are listed. Other ADRs not listed only warn.What it does not check, and you must: that ADR-0002 fits the project's technology stack (it can only tell that the template was filled in), and that ADR-0003's reasoning is sound (only that alternatives are mentioned). ADR-0003 is the technology-stack ADR this skill creates: a project whose log was not made by it, with a different decision at 0003, will fail that one check, as it should.
Tested against fixtures with each fault planted (33 cases, under both bash 5 and 3.2). Run against real
ADR logs: three pass (portfolio, miller, mmd2tex); bomdive's index lists ADR-0011 as Proposed
though the ADR is Accepted (real drift); jam's ADR-0003 says outright that the language was not
re-evaluated, so it names no alternatives. It first reported four real logs as failing for formats the
skill itself permits (a trailing period in the status, bold status with a date, an SPDX comment above the
heading), which is why those are now fixtures. Not yet run in CI.
bootstrap-project - Should be run firstsetup-git-hooks - Implements practices from ADR-0002setup-architecture-as-code - Implements architecture-as-code from ADR-0002What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/analyze-projectConduct SPARK methodology analysis for new project inception. Use at the beginning of a new project, when evaluating significant features, before bootstrap-project to validate viability, or when pivoting an existing project./bootstrap-projectBootstrap a new project at a chosen graduation tier (t0 minimum, t1 decision-tracked, t2 full pattern language) following AI-Assisted Project Orchestration best practices. Use when starting a new software project, promoting an existing project to a higher tier, or converting an existing project for AI-assisted development./graduate-backlogGraduate a project's in-repo backlog (roadmap phases, sprint deliverables, ADRs) onto a forge issue tracker at a thin-hybrid default, once the backlog outgrows a single contributor. Use when a team needs to see and claim work that currently lives only in docs/roadmap and docs/sprints, when a repo has a mature in-repo roadmap but an empty tracker, when open-sourcing a project, or when deciding what work should stay in-repo versus live on a GitHub, GitLab, Codeberg/Forgejo, or self-hosted internal tracker./harden-github-actionsHarden GitHub Actions CI/CD workflows for supply-chain security — SHA-pin actions, least-privilege token permissions, verified toolchain installs, OpenSSF Scorecard, and SLSA provenance. Use when adding or auditing GitHub Actions workflows, before making a repository public, when a supply-chain review flags CI gaps, or when standardizing CI hardening across GitHub projects. GitHub-specific by design — GitLab CI and Forgejo Actions are out of scope./harden-gitlab-ciHarden GitLab CI/CD pipelines for supply-chain security — SHA-pin `include:` and CI/CD components, scope the `CI_JOB_TOKEN` allowlist, protect and mask variables, pin job image digests, and use `id_tokens`/OIDC instead of long-lived secrets. Use when adding or auditing a `.gitlab-ci.yml`, before making a GitLab project public, when a supply-chain review flags CI gaps, or when standardizing pipeline hardening across GitLab projects (gitlab.com or self-hosted). GitLab-specific by design — for GitHub Actions use `harden-github-actions`; Forgejo/Gitea Actions are out of scope./plan-sprintCreate a sprint plan for a new development cycle. Use when starting a new sprint, after completing wrapup-sprint, or when initializing Sprint 1 for a new project.project-orchestration-skills@jrjsmrtn-skills is listed by jrjsmrtn/jrjsmrtn-skills — review the source before installing
npx claudepluginhub jrjsmrtn/jrjsmrtn-skills --plugin project-orchestration-skillsOther plugins' skills for the same job