edgy-assessment
Comprehensive EDGY 23 Enterprise Design assessment: analysis, diagrams, and recommendations. Orchestrating skill that chains edgy-framework and edgy-diagram skills into a unified workflow. Locks PDF report layout via shared preamble (assets/pdf-preamble.md) while keeping analysis content adaptive per customer.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-19
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- edgy-assessment
- tags
- [ "edgy", "enterprise-design", "architecture", "analysis", "assessment", "diagram", "fi", "en", "fr", "de" ]
- agents
- [ "claude-code", "cursor", "vibe", "generic" ]
- inputs
- [ { "name": "mode", "type": "enum", "values": [ "assess", "extract-model" ], "default": "assess", "description": "assess = full outside-in assessment (Phases 1–5). extract-model = build edgy-model.json from an EXISTING analysis markdown and facet TXT files (older deliveries without a model), so that edgy-deep-dive can run on them.\n" }, { "name": "target", "type": "text", "description": "Company or organisation to assess (name and brief description)" }, { "name": "sources", "type": "text", "required": false, "description": "Information sources (URLs, documents, materials). If not provided, use public sources." }, { "name": "language", "type": "enum", "values": [ "fi", "en", "fr", "de" ], "default": "fi" } ]
- outputs
- [ { "type": "directory", "description": "Directory containing: 1 analysis MD, 1 edgy-model JSON, 4 facet TXTs, 4 drawio diagrams. The edgy-model.json is the context object for edgy-deep-dive follow-up analyses." } ]
- version
- 1.11.0
- category
- architecture
- languages
- [ "fi", "en", "fr", "de" ]
- description
- Comprehensive EDGY 23 Enterprise Design assessment: analysis, diagrams, and recommendations. Orchestrating skill that chains edgy-framework and edgy-diagram skills into a unified workflow. Locks PDF report layout via shared preamble (assets/pdf-preamble.md) while keeping analysis content adaptive per customer.
02 资源文件 25
- 资产文件assets/edgy-model.schema.json11.9 KB
- 资产文件assets/pdf-preamble.md4.8 KB
- 其他examples/acme-identity.drawio13.1 KB
- 参考文档examples/acme-identity.txt1.2 KB
- 参考文档examples/architecture-model.json11.5 KB
- 参考文档examples/intersection-edgy-analysis.md31.5 KB
- 资产文件examples/intersection-edgy-analysis.pdf257.5 KB
- 参考文档examples/model-diff/changes.md987 B
- 参考文档examples/model-diff/current-model.json2.8 KB
- 参考文档examples/model-diff/target-model.json3.1 KB
- 参考文档examples/model-diff/transition.txt1.5 KB
- 参考文档examples/reference-analysis-en.md8.8 KB
- 参考文档examples/reference-analysis.md8.9 KB
- 脚本scripts/edgy_model_diff.py19.2 KB
- 脚本scripts/edgy_model_to_archimate.py14.8 KB
- 脚本scripts/edgy_model_to_txt.py18.1 KB
- 脚本scripts/edgy_paths.py1.8 KB
- 脚本scripts/test_model_diff.py12.6 KB
- 脚本scripts/test_model_to_archimate.py5.8 KB
- 脚本scripts/test_model_to_txt.py10.6 KB
- 脚本scripts/validate_edgy_model.py12.0 KB
- 参考文档templates/analysis-template-de.md8.1 KB
- 参考文档templates/analysis-template-en.md7.4 KB
- 参考文档templates/analysis-template-fr.md8.5 KB
- 参考文档templates/analysis-template.md7.8 KB
03 SKILL.md 正文
EDGY 23 Enterprise Design Assessment
Purpose
This skill produces a comprehensive EDGY 23 assessment of a company or organisation. It combines analysis and visualisation into a unified workflow.
Use this skill when:
- You want to produce a full EDGY 23 assessment of a company
- You need both a written analysis and visual diagrams
- You want to identify coherence gaps and areas for improvement
This skill uses internally:
edgy-framework— for producing the analysisedgy-diagram— for generating diagrams
IMPORTANT: Produce all output in the language specified by the language parameter (default: fi). Select the appropriate analysis template by language.
Agent Instructions — Step-by-Step Workflow
CRITICAL: Read these instructions completely before starting
This assessment produces 9 files. Every phase is mandatory. DO NOT proceed to the next phase before the previous one is complete and meets quality requirements.
Mode extract-model — a model for an existing delivery
Older deliveries have an analysis markdown and four TXT files but no
edgy-model.json, so edgy-deep-dive cannot run on them. In this mode skip
Phases 1 and 3–5 and:
- Read
<company>-edgy-analysis.mdand the four<company>-*.txtfiles. - Fill
edgy-model.jsonfrom them: every element from the TXT files (name = part before-, description = the rest, tags from[…]),nature/levelfor capabilities from the analysis table, activecore_linksfrom the TXT relationships (only pairs in the 24-link table),coherencefrom section 5 (Strong/Good/Weak + contradictions + gaps),suggested_deep_divesfrom section 10 if present — otherwise derive at least three from sections 5 and 7 and mark"source_section"accordingly. - Validate:
python3 <edgy-assessment>/scripts/validate_edgy_model.py <company>-edgy-model.json. - Regenerate the TXT files from the model (
edgy_model_to_txt.py) and diff them against the originals; differences are findings about the old delivery, not errors to hide. - Deliver the model plus a short note listing what had to be inferred.
Phase 1: Data Collection
- Gather information about the target company from available sources (websites, public materials, user-provided documents)
- Identify the following:
- Company basics (name, size, founding year, industry)
- Purpose and values
- Services/products
- Customer segments
- Technologies and resources
- Organisational structure
- Competitive situation and differentiators
Minimum requirement: You must have sufficient information to fill at least 12 EDGY elements (Purpose, Story, Content, Capability, Asset, Process, Task, Channel, Journey, Organisation, Product, Brand).
Phase 2: EDGY Analysis (Markdown)
Select the analysis template by language parameter:
- fi:
templates/analysis-template.md - en:
templates/analysis-template-en.md - fr:
templates/analysis-template-fr.md - de:
templates/analysis-template-de.md
Produce the written analysis using the selected template.
Outputs: <company>-edgy-analysis.md and <company>-edgy-model.json
Phase 2a — PDF preamble injection (MANDATORY)
Every EDGY analysis MUST start with the canonical PDF preamble so that the report always renders with the same visual layout (frontmatter, CSS, legend, meta-table). Only the analysis content adapts per customer; the visual scaffolding is locked.
- Open
assets/pdf-preamble.mdand copy its entire contents to the very top of<company>-edgy-analysis.md(before section 1). - Replace every
{{...}}placeholder with a concrete value. The language-specific defaults are listed in the comment block at the top of the selected template — use those verbatim unless the user has overridden them. - Do NOT modify the
<style>block, thepdf_options:YAML, or the.meta-table,.legend, badge-shape and.edgy-badgestructures. These are the locked layout — touching them produces inconsistent reports. - The method label must be exactly "EDGY 23 Enterprise Design" (in the analysis language). Do NOT write "Enterprise Design in a Box" — that framework does not exist; it is an erroneous phrasing that was accidentally copied into earlier deliveries.
Quality gate before continuing — all greps must succeed against the analysis markdown:
F="<company>-edgy-analysis.md"
head -1 "$F" | grep -q "^---" # frontmatter must be the very first line
grep -q "^pdf_options:" "$F"
grep -q "<style>" "$F"
grep -q "\.edgy-badge" "$F"
grep -q 'class="legend"' "$F"
grep -q 'class="meta-table"' "$F"
! grep -q "{{" "$F" # no leftover placeholders
grep -Eq "^## (10\. )?(Ehdotetut jatkoanalyysit|Suggested deep-dive|Analyses approfondies|Vorgeschlagene Vertiefungs)" "$F" # section 10 present
The head -1 check is critical: gray-matter (the parser md-to-pdf uses)
only recognises YAML frontmatter when --- is the very first line of
the file. A preceding HTML comment or blank line silently breaks
pdf_options:, dropping the footer and margins without any error.
If any check fails, return to step 1.
edgy-model.json — Machine-readable EDGY model
After writing the analysis markdown, serialise the assessed EDGY model as JSON.
This file is the context object for edgy-deep-dive follow-up analyses.
{
"company": "Company Name",
"assessed_at": "2026-04-29T10:00:00",
"language": "fi",
"elements": {
"purpose": { "name": "...", "description": "...", "tags": [] },
"story": { "name": "...", "description": "...", "tags": [] },
"content": { "name": "...", "description": "...", "tags": [] },
"capability": [{ "name": "...", "description": "...", "nature": "Core|Enabling|Management", "level": "Strategic|Operational|Foundational" }],
"asset": [{ "name": "...", "description": "..." }],
"process": [{ "name": "...", "description": "..." }],
"task": [{ "name": "...", "description": "..." }],
"channel": [{ "name": "...", "description": "..." }],
"journey": { "name": "...", "description": "...", "stages": [] },
"organisation": { "name": "...", "description": "..." },
"product": [{ "name": "...", "description": "..." }],
"brand": { "name": "...", "description": "..." }
},
"core_links": [
{ "source": "organisation", "target": "capability", "verb_fi": "omistaa", "verb_en": "has" }
],
"coherence": {
"organisation": { "alignment": "Weak|Good|Strong", "contradictions": [], "gaps": [] },
"product": { "alignment": "Weak|Good|Strong", "contradictions": [], "gaps": [] },
"brand": { "alignment": "Weak|Good|Strong", "contradictions": [], "gaps": [] }
},
"suggested_deep_dives": [
{
"pair": ["capability", "organisation"],
"lens": "dependency",
"rationale": "...",
"priority": "High|Medium|Low",
"source_section": 5
}
]
}
organisation is one object (format 1.8, above). Format 1.9 (optional, for the
architecture views of edgy-diagram 2.8.0) adds: organisation as an object or an
array, elements.people, asset kind (application / platform / integration / data),
hosting, owner, time (Gartner TIME), criticality, master, capability gaps
({"products": "out_of_scope"} — the evidence status of an empty capability-view band:
not_investigated, out_of_scope, unknown, confirmed_absent), process band (management / core / support on
an L1 process, for the value chain), and relationships[] between element ids
({"source_id": "CAP-05", "target_id": "AST-02", "verb": "requires"}). A model that uses
any of these must say "schema_version": "1.9" — the validator rejects 1.9 structures in an
older model, and every 1.8 model keeps producing byte-identical TXT, diff and ArchiMate
output (tools/test_model_compat.py).
Format 1.10 (optional, for the realisation trace of edgy-diagram 2.9.0) adds:
-
journeyas an object or an array of journeys, each with anid; -
gapson the realisation-trace types, with these keys:Type gapskeysjourney tasks,channels,productstask products,channelschannel productsproduct capabilities,processes,organisationcapability the five above, plus organisationprocess resources,organisationasset, people organisation
A model that uses a journey array or one of these gaps must say
"schema_version": "1.10". A single journey with an id is still valid 1.9.
Migration 1.9 → 1.10. Change these together:
- Turn
"journey": {…}into"journey": [{…, "id": "JRN-01"}, …]. Keep the existing journey and its relationships, and give every journey an id. - Add the Experience links the trace walks to
relationships[]:- task → journey is part of;
- journey → channel traverses;
- task → channel uses;
- product → task serves;
- product → journey features in;
- product → channel offers;
- organisation → product makes;
- process → product creates.
- Record what you know is missing as
gaps(the statuses as above). - Set
"schema_version": "1.10"and validate.
1.9 and 1.8 models keep producing byte-identical output: the
compat-1.9 and compat-1.8 fixtures check this.
Validate the model before continuing — the schema lives in
assets/edgy-model.schema.json, the validator needs only the standard library:
python3 <edgy-assessment>/scripts/validate_edgy_model.py <company>-edgy-model.json # must print "valid"
<edgy-assessment> is this skill's directory: ~/.claude/skills/edgy-assessment
when installed, skills/architecture/edgy-assessment in a checkout. The same
holds for the other skills/… script paths in this file.
Rules:
elementsmust contain all 12 EDGY elements (Purpose, Story, Content, Capability, Asset, Process, Task, Channel, Journey, Organisation, Product, Brand)core_linkslists only links that are active in this company (not all 24 theoretical links)coherencemirrors the intersection analysis from section 5suggested_deep_divesmirrors section 10 of the analysis;source_sectionpoints to which analysis section grounds the rationale
Official 24 EDGY Core Links — Reference Table
CRITICAL: core_links MUST only contain pairs from this table. Every verb_en and verb_fi must match exactly. Do NOT invent pairs (e.g. organisation → asset, asset → channel are not core links). Do NOT use wrong verbs (e.g. "utilises" for process → capability — correct is "realises"). "ilmentää"/"embodies" belongs to product → brand, NOT brand → content.
<!-- edgy-links:begin format=assessment -->
| Source | Target | verb_en | verb_fi |
|---|---|---|---|
| story | purpose | contextualises | kontekstualisoi |
| content | purpose | expresses | ilmaisee |
| content | story | conveys | välittää |
| brand | story | evokes | herättää |
| brand | purpose | represents | edustaa |
| capability | asset | requires | vaatii |
| process | capability | realises | toteuttaa |
| process | asset | requires | vaatii |
| product | capability | requires | vaatii |
| process | product | creates | luo |
| task | journey | is part of | on osa |
| task | channel | uses | käyttää |
| journey | channel | traverses | kulkee |
| brand | task | supports | tukee |
| brand | journey | appears in | näkyy |
| organisation | purpose | pursues | tavoittelee |
| organisation | story | authors | kirjoittaa |
| organisation | capability | has | omistaa |
| organisation | process | performs | suorittaa |
| product | task | serves | palvelee |
| product | journey | features in | esiintyy |
| organisation | brand | builds | rakentaa |
| organisation | product | makes | valmistaa |
| product | brand | embodies | ilmentää |
| <!-- edgy-links:end --> |
Mandatory sections (all 10 must be filled):
- Executive summary — min 3 sentences, includes company basics and key analysis findings
- Identity facet — Purpose, Story, Content — each at least 2 sentences + analysis
- Architecture facet — Capability table (min 3 capabilities with nature/level classification), Asset (min 2), Process (min 2)
- Experience facet — Task (min 3 tasks), Channel (table min 2 channels), Journey (visualisation)
- Intersection elements — Organisation, Product, Brand — each with coherence assessment
- Strengths — min 3 numbered, justified
- Development areas and gaps — min 3 subsections, analytical
- Recommendations — table: #, Recommendation, EDGY element, Priority (High/Medium/Low)
- Diagrams — file listing as table
- Suggested deep-dive analyses — min 3 follow-up analyses with element pair, rationale, priority
Section 10 — Suggested deep-dive analyses
After completing sections 1–9, add a final section:
## Ehdotetut jatkoanalyysit
Nämä jatkoanalyysit on priorisoitu löydettyjen kehitysalueiden ja
koherenssiarvioiden perusteella. Käytä `edgy-deep-dive`-skilliä.
| # | Elementtipari | Linssi | Perustelu | Prioriteetti |
|---|---------------|--------|-----------|--------------|
| 1 | capability × organisation | dependency | Coherence Weak — org-rakenne ei tue kyvykkyyksiä | High |
| 2 | product × task | gaps | Product-task-linkitys epäselvä, 2 tehtävää ilman tuotetta | Medium |
| 3 | purpose × brand | alignment | Brändiviestintä ei vastaa tarkoitusta | Medium |
Rules:
- Every row must be grounded in specific finding from sections 1–9 (cite section number)
- Pair must use official EDGY element names: purpose, story, content, capability, asset, process, task, channel, journey, organisation, product, brand
- Lens must be one of: dependency, alignment, gaps, opportunities, all
- At least one row must have priority High
Quality Gate — Check before proceeding:
- [ ] Analysis is at least 150 lines
- [ ] All 10 sections are filled
- [ ] Capability table has nature/level classification
- [ ] Intersection elements have coherence check (Strong/Good/Weak + justification)
- [ ] Recommendations table has priority levels
- [ ] Suggested deep-dives table has min 3 rows with element pairs and rationale
- [ ] Analysis is company-specific, NOT generic
Anti-patterns — DO NOT do this:
- DO NOT write one-line descriptions for elements (e.g. "Purpose: To provide services")
- DO NOT skip coherence checks on intersection elements
- DO NOT give generic recommendations that fit any company
- DO NOT leave tables empty or single-row
- DO NOT write under 150 lines — that means the analysis is too shallow (this rule is for the full assessment only; reframings, summaries and target-state artefacts follow the length table in edgy-framework, and are never padded to a line count)
Phase 3: Facet TXT Files
Generate the four TXT files from the model — do not write them by hand:
python3 skills/architecture/edgy-assessment/scripts/edgy_model_to_txt.py <company>-edgy-model.json --prefix <company>
# when any facet has more than ~8 elements, or the all-facets map is unreadable:
python3 skills/architecture/edgy-assessment/scripts/edgy_model_to_txt.py <company>-edgy-model.json --prefix <company> --layout triad
This derives elements ("Name - Description" [tags] {id: …}) and the active
core links from edgy-model.json, so the diagrams can never disagree with
the analysis (an earlier review found reports with five capabilities and
diagrams with four). Edit the model, regenerate; never patch a TXT. The
format below documents what the script produces, and is the fallback when
Python is unavailable.
From the model to a transition map and to ArchiMate (optional, when the assessment compares two states or hands the model to an architecture team):
# current vs target model → transition map input (overlay tags) and a change table
python3 skills/architecture/edgy-assessment/scripts/edgy_model_diff.py current-model.json target-model.json \
--facet architecture --layout triad --out <company>-transition.txt --report <company>-changes.md
# the model as ArchiMate 3.1 Open Exchange XML (one view per facet map) for Archi and other tools
python3 skills/architecture/edgy-assessment/scripts/edgy_model_to_archimate.py <company>-edgy-model.json -o <company>.archimate.xml
The diff matches elements by id, then name, then a similar name (renamed),
and tags them keep, change, new or remove. A similar-name match can
pair two different short names ("Ticket sales" / "Ticket rules"): check every
renamed from … row of the change table, and give elements an id in both
models to avoid it; core links are compared
per type pair. With model format 1.9 the diff also compares asset attributes
and relationships[], and the transition TXT (default layout) draws only what
changes — changed elements, changed relationships and their endpoints, routed —
so it stays readable for a model with dozens of relationships; --full draws
everything; the change table always lists everything. replace and decide are judgements: set them by hand in
the transition TXT, never let the tool imply them. The ArchiMate export is
one-way — the EDGY model stays the source — and keeps the EDGY type of every
element in the property edgy:type (mapping table in the script's header
and in edgy-diagram references/export.md). Example pair:
examples/model-diff/ (fictional).
Layout block. An optional layout object in the model (legend,
card_width, equal_cards, group_columns, cards_per_row,
equal_group_width, align_groups, title, footnote) is written as
document keys into every TXT, so the four files share one legend placement,
card sizing and grid — edgy_lint.py --series (Phase 4) then reports
nothing. Set language in the model: the verbs and the legend render in
that language (W116 otherwise).
Primary element. A core link between two element types is drawn once,
between the primary element of each type: the one with "primary": true in
the model, otherwise the first of its type. Set the flag in the model when
the first element is not the one the story is about. --layout triad writes
map_type: triad into every TXT: the planned ring (edgy-diagram, EDGY
extension) with one primary per type and "Further <type>" panels for the
rest; links into a panel are reported on stderr, never drawn silently, and
the report's tables carry them.
Produce 4 text files in edgy-diagram skill input format:
<company>-identity.txt— Identity facet elements and relationships<company>-architecture.txt— Architecture facet elements and relationships<company>-experience.txt— Experience facet elements and relationships<company>-all-facets.txt— All elements and relationships
TXT file format:
Use the core link verb matching the language parameter (see edgy-framework core links table).
facet: identity
elements:
- purpose: "Element name - Detailed description" [tags]
- story: "Element name - Detailed description" [tags]
- content: "Element name - Detailed description" [tags]
- brand: "Brand name - Description" [tags]
- organisation: "Organisation name - Description" [tags]
relationships:
- "story" -> "purpose": "contextualises"
- "content" -> "purpose": "expresses"
- "content" -> "story": "conveys"
- "brand" -> "story": "evokes"
- "brand" -> "purpose": "represents"
- "organisation" -> "purpose": "pursues"
- "organisation" -> "story": "authors"
- "organisation" -> "brand": "builds"
Minimum requirement per file:
- Identity: min 3 core elements + 2 intersection elements + 5 relationships
- Architecture: min 7 elements (3 capability + 2 asset + 2 process) + 2 intersection elements + 5 relationships
- Experience: min 6 elements (3 task + 2 channel + 1 journey) + 2 intersection elements + 5 relationships
- All-facets: all facet elements combined + min 15 relationships
Phase 4: Drawio Diagrams (4 pcs)
Generate a drawio diagram for each TXT file with the edgy-diagram generator and lint the result:
G=${EDGY_DIAGRAM_SCRIPTS:-skills/documentation/edgy-diagram/scripts} # installed skills: ~/.claude/skills/edgy-diagram/scripts
python3 $G/edgy_generator.py <company>-identity.txt --output <company>-identity.drawio --preview --preset publication
python3 $G/edgy_lint.py <company>-identity.drawio # 0 errors required
# --preview wrote <company>-identity.svg (+ .png when Chromium is available) and <company>-identity.qa.json:
# open the image and check the preview checklist (edgy-diagram SKILL.md, "Preview loop") before moving on
# series check across the four files of this delivery (legend placement, margins, card widths, fonts):
python3 $G/edgy_lint.py --series <company>-identity.drawio <company>-architecture.drawio <company>-experience.drawio <company>-all-facets.drawio
--preset publication (native preset: 24 px margin, strip legend, W115 at a
160 mm column, title: / footnote: bands from the model's layout block) is
the image for the report; --preset presentation for slides. The
qa.json written next to each .drawio carries the counts, the lint, the
visual / layout / language checks and the preview size; its
visual_approval and semantic_approval stay null until a person sets
them in Phase 5 (the semantic one after Phase 4b).
Read every generator warning: a core-link verb on a wrong pair or a verb outside the vocabulary means the TXT file (and usually the analysis) is wrong — fix it there. Write drawio XML by hand only when Python cannot be executed, and lint the file as soon as it can. The XML specification below is the reference for that fallback and for reviewing generated output.
Outputs:
<company>-identity.drawio<company>-architecture.drawio<company>-experience.drawio<company>-all-facets.drawio
Diagram quality gate
The generator produces valid XML, shapes, palette, legend and layout; the
specification (XML structure, shapes, colours, legend) lives in the
edgy-diagram skill (references/xml-reference.md) and is not repeated
here. Before moving on, every one of the four files must pass:
edgy_lint.py— 0 errors (structure, layout, notation, semantics)edgy_lint.py --visualreports nothing: no edge passes through a box, no edge label lies on a box or another label (W111–W114 = 0). If it does, switch the TXT files to--layout triador fix the model; never patch the XML- preview looked at (
--preview/edgy_render.py) and the edgy-diagram Preview loop checklist passed: every edge visibly starts and ends, legend clear of content,all-facetspage height ≤ 1.2 × width, single-facet maps not taller than wide before any "Further" panels, facet containers visually separated (Identity above or left of Architecture and Experience), intersection elements between the facets they bridge - relationships use only the active core links from the model (a core-link verb on a wrong pair is a model error — fix the model, regenerate)
edgy_lint.py --seriesover the four files reports no W121: one legend placement, one content margin, one card width per type, one font size across the delivery (set the model'slayoutblock, never patch a file)
Structural maps (recommended, optional)
The four relationship views are the overview. When the assessment answers a question they cannot show, add a structural map from the same model and with the same ids (one disconnected second model is worse than none):
| Map | Question | How |
|---|---|---|
| Purpose map | How do strategy and focus areas hang together? | map_type: purpose; mission / vision as top purposes, focus areas as sub-purposes (contains), KPIs as Outcomes (measures) — see edgy-framework Strategy → EDGY |
| Capability map | What does the enterprise need to be able to do? | map_type: capability, one group: per analytical domain. State in the report that the grouping is analytical, not an organisation chart or an all-to-all dependency claim |
| Journey map | Where does the experience break between stages? | map_type: journey for the lifecycle stages plus a hand-off / failure table in the report — a stage chain alone carries little analytical depth |
Add a map only when it answers a useful question for this company; do not generate every map for every scope.
Architecture views (optional, model format 1.9)
When the scope includes the application landscape — applications, data,
owners, processes — record them in the model as format 1.9 (asset
kind, relationships[] between ids, see Phase 2) and draw the views from
it; never type them a second time:
python3 skills/architecture/edgy-assessment/scripts/edgy_model_to_txt.py <company>-edgy-model.json \
--prefix <company> --views all # or: application,process-chain,process-swimlane,capability,capability-matrix,crud-matrix,trace
python3 skills/documentation/edgy-diagram/scripts/edgy_generator.py <company>-views.txt \
--output <company>-views.drawio --preview [--present <company>-presentation.html]
<company>-views.txt has a draw: false model page and one page per view:
the application map grouped by capability, the value chain, one swimlane per
L1 process, one capability view per capability, and the capability ×
application and CRUD matrices (edgy-diagram references/architecture-views.md).
Read the generator's Note: lines and qa.json model_gaps[]: an empty
capability-view band is a model gap with an evidence status — report
not_investigated / unknown as open questions, confirmed_absent as a
finding, never the reverse. W124 (application without an owner) is a note;
set ownership: required on the view page when ownership is in scope.
Realisation trace (opt-in, edgy-diagram 2.9.0). --views trace adds the
trace pages: an index (journeys | organisations) and one page per element
with an id, from the journey down through tasks and channels, products,
capabilities, processes, assets and people to the organisations, and back
up; every card links to its own page, and in the presenter the trace is one
Trace card with drill-through. It is not part of --views all, because a
large model gives many pages (where: narrows them on a hand-written page).
It needs the Experience links (format 1.10, Migration 1.9 → 1.10 above):
when you extract a 1.10 model, emit serves, features in and offers
together with is part of, traverses and uses. An empty band below an
element is W129 with the same evidence statuses as W127.
--present writes one offline HTML of every view for a workshop; it carries
the model, so it stays in the engagement folder with the .drawio.
Phase 4b — Semantic review (MANDATORY for the purpose map; run on every map)
A purpose map that lints clean can still be wrong in meaning (actions as
Purposes, proposed metrics shown as confirmed, influences drawn as
contains). After the purpose map TXT is written (structural maps above)
and before its diagram is generated:
- Tag every Purpose with its provenance —
[confirmed](public source),[analytical](your interpretation) or[proposed](S004) — and every Outcome with{status: confirmed|proposed}(S003). Other element types may carry a tag; the review does not require it. For the four facet filesedgy_model_to_txt.pywrites the tags from the model'sprovenancefields; the purpose map is a structural map written from the same model (Phase 4 table), so its Outcomes and their{status: …}are written by the analyst — the model has no Outcome type. - Run the review and read every question:
S001 action as a Purpose, S002 Outcome measures nothing, S003 / S004 missing provenance, S005python3 skills/documentation/edgy-diagram/scripts/edgy_semantic_review.py <company>-purpose.txtcontainsthat may be an influence, S006 metric in a Purpose name. Fix the model, regenerate. Run it on the facet and structural map inputs too (one command, every TXT file): S007–S009 ask about capabilities named after systems or units, phrased as verbs or shaped like projects, S010 about tasks in the organisation's voice, S011 / S012 about outcomes that are actions or carry no measure (edgy-framework Formulating tasks, outcomes and the Experience facet). The generator's--qamanifest records the rule set (semantic_review.rule_set).python3 skills/documentation/edgy-diagram/scripts/edgy_semantic_review.py <company>-*.txt - Walk the checklist in edgy-framework Purpose map semantic review and
write the sign-off line into the report (section 9) and the delivery
note:
Semantic review: approved by <role>, <date> — S-findings answered: <n>— in the report's language; the template of each language (section 9) carries the equivalent line. The tool never approves; a person does. Zero findings is not a sign-off.
If Python is unavailable and the XML must be written by hand, follow the edgy-diagram inline example and lint it in the next environment that has Python; the file must still contain more than the two structural cells, one vertex per element, one edge with geometry per relationship, a legend, and exceed 1000 bytes.
Phase 5: Final Verification
Before completion, check ALL:
Files (10 pcs):
- [ ]
<company>-edgy-analysis.md— analysis, min 150 lines, all 10 sections - [ ]
<company>-edgy-model.json— machine-readable EDGY model with suggested deep-dives - [ ]
<company>-identity.txt— Identity facet input - [ ]
<company>-architecture.txt— Architecture facet input - [ ]
<company>-experience.txt— Experience facet input - [ ]
<company>-all-facets.txt— All facets input - [ ]
<company>-identity.drawio— Identity diagram, >1000 bytes - [ ]
<company>-architecture.drawio— Architecture diagram, >1000 bytes - [ ]
<company>-experience.drawio— Experience diagram, >1000 bytes - [ ]
<company>-all-facets.drawio— All-facets diagram, >1000 bytes
Quality:
- [ ] Analysis is company-specific, not generic
- [ ] All 9 analysis sections are filled
- [ ] Diagrams contain elements and relationships (are not empty)
- [ ] Colour palette follows EDGY 23 standard
- [ ] Relationships use official 24 core links
- [ ] Output language matches
languageparameter
Approvals (qa.json, one per diagram):
- [ ]
python3 $G/edgy_qa.py --require-approvals <company>-*.qa.jsonexits 0 — it lists the lint result and the two approvals on separate lines: zero lint findings is never an approval - [ ]
visual_approvalset by the person who looked at every preview, as"<name or role>, YYYY-MM-DD" - [ ]
semantic_approvalset by the person who answered the semantic review (Phase 4b) — for a delivery with a purpose map, after every S-finding has an answer in the report - [ ]
delivery_notescarries anything the reader must know (a layout option that was switched off, a warning that was accepted and why)
Layout quality:
- [ ]
edgy_lint.py --warnings-as-errors --visualpasses for all four drawio files (0 errors, no W111–W114) - [ ]
edgy_lint.py --seriesover the four files reports no W121; the layout rules W117–W120 report nothing or each finding is answered indelivery_notes - [ ] Every diagram was previewed (
--preview/edgy_render.py) and looked at; the preview checklist passed - [ ] No elements at negative coordinates in any drawio file
- [ ] No overlapping elements in any drawio file (min 10px gap)
- [ ] All element text fits within element boundaries (W101 = 0)
- [ ]
all-facetspage height ≤ 1.2 × width; facet containers visually separated - [ ] Final report pages looked at at the intended viewing size — the SVG alone is not enough: check
captions, page breaks and footer clearance on the PDF page, and run
edgy_lint.py --scale <report scale>(no W115 = every title, description and relation label stays ≥ 6 pt). Use--publicationfor the embedded image so a sparse map is not shrunk by empty canvas
Reference
See the examples/ directory for completed assessment examples:
reference-analysis.md(Finnish, lyhyt rakenne-esimerkki)reference-analysis-en.md(English)intersection-edgy-analysis.md+intersection-edgy-analysis.pdf— täysimittainen referenssi-PDF, joka osoittaa millaista raporttia käyttäjälle tulee tuottaa kun hän pyytää PDF-muotoista EDGY-analyysiä (kansilehti, sisällysluettelo, 12 elementin analyysi facet-kohtaisesti, intersection-elementit, suositukset, riskit, seuraavat askeleet).
Reference caveat: the intersection example is the visual layout
reference — colours, badges, legend, meta-table, footer. Its meta-table
"Method" row (line 54) still reads "EDGY 23 Enterprise Design in a Box
framework" — that wording is legacy and is preserved unchanged only
because it is a shipped customer deliverable. New analyses MUST use
METHOD_LABEL = "EDGY 23 Enterprise Design" (no "in a Box"); do not copy
the meta-table row verbatim from this reference.
Use these as quality and structure benchmarks.
PDF Report Generation
When the user requests a PDF report (pdf, raportti, report, --pdf),
the visual layout is locked by the shared preamble — only the
analysis content changes per customer.
-
Analysis markdown is already prepared by Phase 2 + Phase 2a. The file contains the canonical
pdf_options:frontmatter,<style>block, meta-table, legend and badge-shape row. If it does not, return to Phase 2a — do not proceed. -
Generate the four facet diagrams with the
edgy-diagramskill (identity,architecture,experience,all) as PNG so they can be embedded into the PDF. Engine order: draw.io CLI (--preset presentation, publication quality) when installed →--engine plantumlwhen Java and PlantUML are available →--engine native(pure Python SVG + headless Chromium PNG; approximate but always available). Never stop the pipeline because the draw.io CLI is missing. -
Canonical PDF conversion (only supported route):
md-to-pdf "<company>-edgy-analysis.md" \ --launch-options '{"args":["--no-sandbox"]}'Requires
md-to-pdf >= 5.x(Chromium-headless with clip-path + Flexbox support). Do NOT usepandocorweasyprint: their rendering of clip-path/Flexbox does not match the intersection-edgy reference layout. -
Pre-conversion quality gate (must all pass — same as Phase 2a):
F="<company>-edgy-analysis.md" grep -q "^pdf_options:" "$F" grep -q "<style>" "$F" grep -q "\.edgy-badge" "$F" grep -q 'class="legend"' "$F" grep -q 'class="meta-table"' "$F" ! grep -q "{{" "$F" -
Result must match the reference layout
examples/intersection-edgy-analysis.pdf: same margins, footer with company name and page number, identical CSS-rendered badges and coherence indicators, identical legend. Page count may differ by ±2 pages for similarly sized content; layout must be visually identical.
Dependencies
edgy-frameworkskill (for producing the analysis)edgy-diagramskill (for generating diagrams, colour palette and XML specification)