Skip to content
Back to skills

Adr

ASecurity

> Superseded in part by [ADR-0074](0074-state-lives-in-the-tracker-found-by-search.md), [ADR-0079](0079-tooling-model-roles-tools-stages-in-packs.md) and [ADR-0086](0086-tools-on-request.md): rejections and settings no longer live under > `docs/refactoring/`, the tree is Roles, Tools and Stages in Packs, and Composer Audit leaves it for a Housekeeping > task. A missing tool is still a small candidate, never a baseline skill, and `git` the only hard requirement. > Amended by [ADR-0007](0007-re...

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
ai-agentsphpnoderefactoringgitsecurity

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 12, 2026

npx -y skills add Art4/continuous-refactoring --skill adr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Adr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Adr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/art4-adr/badge)](https://www.skillsdirectory.com/skills/art4-adr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Tooling tree instead of a baseline skill

> Superseded in part by [ADR-0074](0074-state-lives-in-the-tracker-found-by-search.md), [ADR-0079](0079-tooling-model-roles-tools-stages-in-packs.md) and [ADR-0086](0086-tools-on-request.md): rejections and settings no longer live under
> `docs/refactoring/`, the tree is Roles, Tools and Stages in Packs, and Composer Audit leaves it for a Housekeeping
> task. A missing tool is still a small candidate, never a baseline skill, and `git` the only hard requirement.

> Amended by [ADR-0007](0007-required-recommended-edges.md): tree edges split into **required** and **recommended**; Rector leaves the first wave and becomes suite nodes adopted in levels behind PHPStan (`docs/php-tooling-tree.md`).
>
> Amended by [ADR-0008](0008-generic-tool-tree-and-structural-scan-gate.md): `git` moves to a new generic root (`docs/tooling-tree.md`) alongside a new `loop-config` node; PHP's tree attaches beneath `loop-config` instead of `git` directly.
>
> Amended by [ADR-0010](0010-orchestrator-explicit-data-flow.md): "Scan files missing-tool and structural candidates together" no longer holds — `refactor-scan` proposes tree nodes but files nothing; issues are filed by `refactor-design` once a node is chosen.

The loop must work without a one-shot tooling onboarding. Language specialisation is a **tooling tree**: missing tools are small **candidates** (one reviewable MR each), not a `/refactor-baseline` pass that blocks the loop. Git is the only hard requirement — without it the suite does not run.

A fat floor delayed the first deepening and duplicated “setup” beside the loop. Incremental nodes keep MRs small; the MR outlook names the child the step unlocks. Fill gaps, never downgrade; an equivalent (Psalm for PHPStan, Pest for PHPUnit) fulfils the node. Rejecting a node is recorded under the target repo’s suite root (`docs/refactoring/`, default `out-of-scope/` — path overridable in that config) and closes only that subtree.

This amends ADR-0002: the loop stays language-neutral; PHP is still the first specialisation, delivered as the tree, not as a baseline-skill variant. It supersedes the file locations in ADR-0001: loop config and learned rejections live under `docs/refactoring/`, not `docs/agents/refactoring.md` / root `.out-of-scope/`. Domain ADRs stay in `docs/adr/`. Packages the suite introduces follow the target’s pinning policy; if none, caret ranges plus a committed lockfile.

## Considered Options

- **Keep `/refactor-baseline` as a start-gate** (thin or fat). Rejected: it is a second onboarding process; the loop cannot start until the floor exists.
- **Install a tool, config, and CI gate in one MR.** Rejected: too large to review; policy choices (level, fail-vs-warn) would be smuggled in as silent defaults.

## Consequences

The PHP tree has three tracks that share only git: **Composer-stack**, **standalone**, **scheduled**. First wave is Composer-stack plus a CI-runner node — not security, not DAST.

- **CI-runner** — missing only when there is no GitHub Actions or GitLab CI file. Forge from `git remote`. Existing pipeline (even deploy-only) fulfils the node; quality jobs are added later to *that* pipeline. Unknown CI (Jenkins, Circle, …): ask, do not record a rejection.
- **Composer** — `composer.json`, lockfile, install once CI can run it.
- Parallel children: **php-cs-fixer**, **Rector**, **PHPStan**, **composer audit**, **test runner** only if none exists.

Later wave (own tickets): secret detection, SAST, Trivy/Dependency-Check, DAST (needs a running instance; do not propose without one), composer-normalize/unused, coverage, mutation, analyzer plugins.

A parent node is thin: the tool is a dependency and runnable locally. Strictness, CI jobs, and ignore-lists are **children**. A CI job child has two parents: the tool and the CI-runner. If CI is not fulfilled, propose the CI-runner first; if CI was rejected, skip CI-job children and continue the tool’s other children.

**PHPStan** is the only tool whose child sequence is sketched here; the concrete steps are ticket 18. Sketch: (1) install, locally runnable, level 0, baseline file; (2) CI job if the CI-runner is fulfilled, else CI-runner or skip; then shrink the baseline, and when it is empty raise the level and re-baseline. Rector, CS-Fixer, and audit do **not** inherit that sequence from this ADR.

Scan files missing-tool and structural candidates together. Prioritise recommends an unblocked missing tree node when one exists; the human may pick a deepening. Implement and review use only fulfilled nodes.

`/refactor-baseline` is retired when the skills are updated to this ADR. Pinning, PHPStan levels, and other policy numbers are not defaults on the parent node — they are child candidates, specified when that child is designed.

Files in this skill

  • 0001-backlog-in-issue-tracker.md806 B
  • 0002-generic-core-php-first.md414 B
  • 0003-external-skill-references-carry-a-fallback.md1.6 KB
  • 0004-foundational-refactoring-rules.md2.2 KB
  • 0005-tooling-tree-not-baseline-skill.md4.7 KB
  • 0006-loop-delivers-remembered-merge-requests.md4 KB
  • 0007-required-recommended-edges.md2.4 KB
  • 0008-generic-tool-tree-and-structural-scan-gate.md8.5 KB
  • 0009-merge-request-outlook-and-delivered-label.md5.4 KB
  • 0010-orchestrator-explicit-data-flow.md11.7 KB
  • 0011-bookkeeping-goes-through-its-own-merge-request.md5.2 KB
  • 0012-remembered-merge-requests-follow-the-tracker.md5.6 KB
  • 0013-skill-reference-docs-live-under-skills.md3.6 KB
  • 0014-tooling-tree-parser-ships-under-refactor-scan.md4.3 KB
  • 0015-suite-merge-requests-always-stack.md4.7 KB
  • 0016-recommended-edges-gate-until-decided.md6.2 KB
  • 0017-php-structural-scan-aggregation-node.md6.7 KB
  • 0018-psalm-becomes-a-tree-node.md6.9 KB
  • 0019-static-analyzer-mutual-exclusion-and-taint-analysis-node.md21.2 KB
  • 0020-phpstan-level-0-rename-and-reference-extraction.md6.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.