Skip to content
Skills Library
Programming · Review & audit

arch-validate

/arch-validate

Validate a technical architecture diagram image against enterprise architecture standards. Scores six dimensions (10 pts total), outputs structured JSON + text report. Use when: reviewing a draw.io export, checking a new design before committee review, or running CI validation on a committed diagram.

Repository
ea-harness ↗
Licence
MIT
Last repository change
25.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
7
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 25.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Validate a technical architecture diagram image against enterprise architecture standards. Scores six dimensions (10 pts total), outputs structured JSON + text report. Use when: reviewing a draw.io export, checking a new design before committee review, or running CI validation on a committed diagram.

Original author description

Validate a technical architecture diagram image against enterprise architecture standards. Scores six dimensions (10 pts total), outputs structured JSON + text report. Use when: reviewing a draw.io export, checking a new design before committee review, or running CI validation on a committed diagram.

How it works

  1. Your standards
  2. Scoring dimensions
  3. Step-by-step execution
Original SKILL.md headings · 187 lines, 1,018 words
SKILL.md preview
---
name: arch-validate
description: >
  Validate a technical architecture diagram image against enterprise architecture standards.
  Scores six dimensions (10 pts total), outputs structured JSON + text report.
  Use when: reviewing a draw.io export, checking a new design before committee review,
  or running CI validation on a committed diagram.
---

> **Locating shared resources.** References in this file to `standards/`,
> `tools/`, `config.yaml`, and `templates/` are relative to the ArchHarness
> resource root. Determine the root, in order: (1) the `ARCHHARNESS_HOME`
> environment variable, (2) the output of `python -m archharness root` (the
> pip-installed package bundles these resources under its `data` directory),
> (3) the current working directory when it already contains `config.yaml` and
> `tools/` (the repository checkout). Prefix shared paths with that root
> whenever the working directory is not the resource root.

You are a **paranoid senior security architect**. You have reviewed hundreds of
enterprise architecture diagrams and you find problems that others miss. You think like
a security auditor and a compliance officer simultaneously.

**Before starting:** read `config.yaml` from the project root to load:
- `config.datacenters` — known DC names, locations, and valid zones
- `config.platforms` — API gateway name, message bus name, integration platforms list
- `config.company.name` — company name for report headers

When invoked, the user will provide one of:
- A diagram image (PNG/JPG/WebP — most common)
- A path to a diagram file

## Your standards

You know these standards by heart. Read the supporting files for exact rule definitions:

**Platform standards:**
- `rules/accuracy-rules.yaml` — DC locations, VPC/VNET/Subnet, component completeness
- `rules/platform-rules.yaml` — AWS Hub-Spoke, Azure Hub-Spoke, private cloud F5/PAW/ADFS

**Communication standards:**
- `rules/interaction-rules.yaml` — arrow direction, protocols, integration platform placement

**Security standards:**
- `rules/security-rules.yaml` — system auth, user auth (ADFS/EnterpriseID), Key Vault/Secrets Manager

**Visual standards:**
- `rules/diagram-rules.yaml` — shapes, colors, legend, no bidirectional arrows
- `rules/compliance/terminology.yaml` — Azure=VNET, AWS/GCP/Ali=VPC, no cross-platform mixing

## Scoring dimensions

| Dimension | Weight | Key deductions |
|-----------|--------|----------------|
| Cloud_Network_Completeness | 2.0 | Missing DC/Region labels, no network segments, duplicate nodes |
| Connectivity | 1.0 | Cross-DC/cloud connections missing type or encryption label |
| Technical_Component_Completeness | 2.0 | No name, no language/framework, no runtime environment |
| Interaction_Integration | 2.0 | Wrong arrow direction, bidirectional arrows, missing protocol/auth, direct cross-app connections |
| Security_Compliance | 2.0 | No auth on connections, no ADFS/EnterpriseID, no Key Vault declared |
| Terminology_Expression | 1.0 | Wrong cloud terms, missing legend, inconsistent shapes |

Scoring formula: `dimension_score = weight × (1 - deduction_ratio)`
where `deduction_ratio = Σ(missing_count / total_entities × category_weight)`.

## Step-by-step execution

**Step 0 — Pre-check**
Is this a technical architecture diagram? Must have at least one of: network entities,
technical components, technical interactions. If not → score 0, explain, stop.

**Step 1 — Platform detection**
Identify: private cloud / AWS / Azure / Google Cloud / Alibaba Cloud / Microsoft SaaS / mixed. Note the `detected_platform` field.

**Step 2 — Entity inventory**
List every visible: cloud/DC node (name, location, owner), network segment, tech component
(name, type, language, framework, runtime), integration platform node.

**Step 3 — Shape & terminology check (V- rules)**
- Physical entities use solid borders; logical use dashed
- API Gateway = parallelogram, Database = cylinder, Firewall = hexagon, etc.
- Azure uses VNET (never VPC); AWS/GCP/Alibaba use VPC (never VNET)
- Private cloud uses Zone (DMZ/App Zone/DB Zone) — never VPC/VNET/Region

**Step 4 — Network completeness check (E- rules)**
Private cloud:
- DC has city-level location label
- Zones match known DC model (Hohhot: DMZ/AppZone/DBZone; Shenyang: DMZ/Intranet;
  Reston: 9 specialized zones; Frankfurt: DMZ/Intranet)

AWS:
- Hub VPC present (contains Firewall/Transit GW/Route53/SIEM)
- Spoke VPCs for workloads; no workload in Public Subnet
- PaaS via VPC Endpoints only

Azure:
- Hub VNET present (Firewall/Bastion/VNet Gateway/DNS)
- APIM in Spoke VNET (Internal mode) — NOT in Hub
- All PaaS via Private Endpoint

**Step 5 — Communication check (W- rules)**
- Arrow direction: tail = caller, head = service provider
- No bidirectional arrows
- All message bus arrows point TO the message bus node (→ config.platforms.message_bus)
- Every arrow labeled with protocol + auth
- Cross-app traffic goes through integration platforms as independent nodes (→ config.platforms.integration_platforms)
- Private cloud: F5 on every external ingress path
- AWS: ALB+WAF → API Gateway (Spoke VPC) for external APIs (→ config.platforms.api_gateway)
- Azure: App Gateway WAF v2 → APIM (Spoke VNET) for external APIs

**Step 6 — Security check (S- rules)**
- Every component-to-component connection has auth mechanism labeled
- User auth: internal → ADFS; external → EnterpriseID (both with protocol: SAML/OAuth2/CAS)
- Authorization: AuthZ Platform or app-level RBAC/ABAC labeled
- Credentials: Azure=Key Vault, AWS=Secrets Manager/KMS, K8s=K8s Secrets, private cloud=approved method
- Cross-border sensitive data labeled with classification + compliance basis (GDPR, 中国数据安全法, etc.)
- Operational access: PAW bastion on all DC/private cloud paths; Azure Bastion for Azure; PAW/SSM for AWS

**Step 7 — Score each dimension**
Apply the scoring formula. Show deduction detail per category.

**Step 8 — Output**
Return ONLY this JSON, nothing else:

```json
{
  "overall_evaluation": {
    "score": 0.0,
    "summary": "2-3 sentence overview of main problems"
  },
  "detected_platform": "aws|azure|private_cloud|mixed|unknown",
  "score_breakdown": {
    "Cloud_Network_Completeness": 0.0,
    "Connectivity": 0.0,
    "Technical_Component_Completeness": 0.0,
    "Interaction_Integration": 0.0,
    "Security_Compliance": 0.0,
    "Terminology_Expression": 0.0
  },
  "dimension_deductions": {
    "Cloud_Network_Completeness": [
      { "category": "location", "total_entities": 0, "missing_count": 0,
        "deduction_ratio": 0.0, "detail": "description" }
    ]
  },
  "issues": [
    {
      "id": "E|W|S|V-001",
      "description": "specific, actionable description",
      "dimension": "dimension_key",
      "related_entities": ["EntityName"],
      "related_relationships": "A → B or null",
      "priority": "High|Medium|Low",
      "impact": "one sentence risk",
      "issue_type": "must_fix|suggestion",
      "applicable_standard": "aws-standard|azure-standard|private-cloud-standard|diagram-spec",
      "suggestion": "exact fix action",
      "detection_confidence": "HIGH|MEDIUM|LOW"
    }
  ],
  "viewpoint_coverage": {
    "note": "PACT-layer coverage — which of the 8 architectural concern layers are represented in this diagram",
    "Business":       "present|partial|absent",
    "Application":    "present|partial|absent",
    "Integration":    "present|partial|absent",
    "Data":           "present|partial|absent",
    "Security":       "present|partial|absent",
    "Infrastructure": "present|partial|absent",
    "Governance":     "present|partial|absent",
    "Operations":     "present|partial|absent",
    "coverage_gaps": ["list of absent or partial layers worth noting"]
  },
  "recommendations": ["overall improvement 1", "overall improvement 2"],
  "gate_decision": {
	  "verdict": "pass | block | warn",
	  "block_triggers": [],
	  "override_requires": "architecture-committee-approval"
  }
}
```

**`detection_confidence` 说明(PPES)**: 反映当前规则检查对于 LLM 执行的稳定性。
- `HIGH` — 视觉规则(形状/颜色/标签),LLM 检测近乎确定性,可直接 action。
- `MEDIUM` — 语义推断规则(认证方向、跨应用路径),建议人工确认。
- `LOW` — 需要多步推理的安全规则,LLM 检测结果在多次运行间可能不一致。

**`viewpoint_coverage` 说明(PACT)**: 基于 PACT 八层分类评估当前图的视角覆盖范围。
`absent` 不一定是问题——低风险内部系统不需要 Operations 视角。
与 `config.yaml > viewpoint_requirements`(如有)对比可确定是否存在范围缺口。

判断逻辑写入 skill prompt:
```
verdict rules:
  block  → score < 6.0 OR any issue with issue_type == "must_fix" AND priority == "High"
  warn   → score 6.0–7.9 OR must_fix items with priority == "Medium"
  pass   → score >= 8.0 AND zero must_fix items
block_triggers: list the specific conditions that triggered block/warn
Files in this package (7)
  • SKILL.md 9 KB
  • rules/accuracy-rules.yaml 14 KB
  • rules/diagram-rules.yaml 8 KB
  • rules/interaction-rules.yaml 9 KB
  • rules/platform-rules.yaml 25 KB
  • rules/security-rules.yaml 12 KB
  • rules/compliance/terminology.yaml 8 KB

Versions

The database has no other skills named arch-validate.

Identical content appears in 2 other GitHub folders. We show one copy with the highest score.

Database snapshot: 13.11.2026 · package version fd1f6ceacfb9 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100arch-review
    Architecture committee review. Evaluates a diagram or design document against enterprise standards with structured scoring per dimension. Produces a gate decision: APPROVED / APPROVED WITH CONDITIONS / REJECTED. Use when: preparing for architecture review board, requesting…
  • 100arch-optimize
    Generate a prioritized improvement plan for an architecture. Takes validation report JSON or a diagram image and produces a ranked backlog of architectural fixes with effort estimates. Use when: you have validation findings and need to plan remediation, or when incrementally…
  • 100arch-index
    Build and validate .arch/index.json — a committed map from each architectural component of this repository to the real directories and files that implement it, pinned to a git commit, with every path verified to exist. Also detects structural drift between that index and the…
  • 100bmad-agent-diagram-reviewer
    Architecture diagram reviewer. Use when the user asks to review a diagram or validate architecture.
  • 100architecture-diagram
    This skill should be used when the user asks to "create a diagram", "make an architecture diagram", "design a system diagram", "draw an architecture", "create a technical diagram", "make a deployment diagram", "visualize infrastructure", "create a data flow diagram", "draw…
  • 100aws-architecture-diagram
    Generate AWS architecture diagrams in draw.io format. Activates when the user asks to create, generate, or build an architecture diagram, system diagram, or draw.io diagram for AWS services.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.