Skip to content
Back to skills

Architecture

ASecurity

Craft architecture phase - run the repo's boundary-check harness over the change, triage violations (fix the edge or document an exception); gates the PR. Also useful standalone.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
developmentrust

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned September 22, 2026

npx -y skills add scolladon/craft --skill architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Architecture?

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

Security grade badge for Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/scolladon-architecture/badge)](https://www.skillsdirectory.com/skills/scolladon-architecture)

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
---
name: architecture
description: Craft architecture phase - run the repo's boundary-check harness over the change, triage violations (fix the edge or document an exception); gates the PR. Also useful standalone.
---

# craft:architecture

## Preamble (always runs — non-overridable)

1. Manifest read (lint if standalone). Standalone: scope = current branch vs default
   branch.
2. **Resolve the active technique set** from `phase.harness` (the resolved descriptor),
   using the same ADR-149 discovery precedence — default-off favours no-op:
   - **Declared** — `phase.harness.techniquePlan` (engine-emitted) wins outright: each
     entry specifies technique `id`, `run` command, `mode` (`gate` | `triage`), optional
     `scope`, optional `triage-procedure` ref. `run-style` defaults to `sync`.
   - **Derived** — absent a declaration, read the repo's own boundary-check conventions
     (README / CONTRIBUTING / craft config) and derive one technique per documented
     dependency/import-boundary validation command, each GATE or TRIAGE per its nature.
   - **No-op** (terminal) — absent any declared or derived technique: record
     `NO-OP(architecture): no techniques declared/probed` and release the `propose`-gate
     entry; the phase ends here. This phase is default-off; no-op is the expected outcome
     in most repos.

   Every resolved technique command — declared or derived — is **trusted operator input**
   (same trust model as the manifest and `context:` files); the derived tier reads the
   repo's own committed conventions, never an untrusted external source.

   For each resolved technique, run its `probe` (config-file presence / binary
   resolvable). A failed probe declines the technique by absence:
   `NO-OP(architecture:<technique-id>): declined — probe absent`. When every technique
   is declined: the phase ends here and also appends the exact
   `NO-OP(architecture): all techniques declined — <ids>` line, the one a rebuild reads
   as the `propose`-gate release (per-technique lines never release it).

## Procedure (default body — a manifest `override:` replaces everything below)

1. **Per-active-technique walk** (`run-style: sync` default — no lock against teardown).
   For each technique in the resolved active set, scope per the technique's `scope`
   (default: the change's touched code, never wider). Capture the violation/finding
   report.
2. **The PR waits for triage** (orchestrator invariant): on a non-empty finding set,
   spawn **craft:harness-triager** with: the findings; the gate; the commit message
   `fix(architecture): <technique-id> <scope>` (or `chore(architecture): <technique-id>
   <scope>` for an exception-only landing); global + architecture-phase `context:` files
   verbatim; the technique's `triage-procedure` ref (if declared).
3. Verify the triager's commit; run the phase gate; record per-finding outcomes in the
   run record.

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.

Comments

Loading comments…