[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M784MKYSR7WGT1KEW12W605P":3,"skill-same:01M784MKYSR7WGT1KEW12W605P":194},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":65,"commitSha":66,"skillDirectory":67,"forksCount":68,"repositoryHtmlUrl":69,"repositoryHomepageUrl":6,"ownerHtmlUrl":70,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":71,"install":72,"resources":85},"01M784MKYSR7WGT1KEW12W605P","edgy-assessment",null,"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\u002Fpdf-preamble.md) while keeping analysis content adaptive per customer.","Rahola\u002Fedgy-skills","Rahola","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20344242?v=4","01M784MGJXTM1QWBCF4635ZW7X","Roope Ahola","01M784MGKX2JMBT2CBX1NBNTJX",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: edgy-assessment\nversion: \"1.11.0\"\ndescription: >\n  Comprehensive EDGY 23 Enterprise Design assessment: analysis, diagrams, and recommendations.\n  Orchestrating skill that chains edgy-framework and edgy-diagram skills into a unified workflow.\n  Locks PDF report layout via shared preamble (assets\u002Fpdf-preamble.md) while keeping analysis\n  content adaptive per customer.\ncategory: architecture\ntags: [edgy, enterprise-design, architecture, analysis, assessment, diagram, fi, en, fr, de]\nlanguages: [fi, en, fr, de]\nagents:\n  - claude-code\n  - cursor\n  - vibe\n  - generic\ninputs:\n  - name: mode\n    type: enum\n    values: [assess, extract-model]\n    default: assess\n    description: >\n      assess = full outside-in assessment (Phases 1–5). extract-model = build\n      edgy-model.json from an EXISTING analysis markdown and facet TXT files\n      (older deliveries without a model), so that edgy-deep-dive can run on them.\n  - name: target\n    type: text\n    description: Company or organisation to assess (name and brief description)\n  - name: sources\n    type: text\n    required: false\n    description: Information sources (URLs, documents, materials). If not provided, use public sources.\n  - name: language\n    type: enum\n    values: [fi, en, fr, de]\n    default: fi\noutputs:\n  - type: directory\n    description: >\n      Directory containing: 1 analysis MD, 1 edgy-model JSON, 4 facet TXTs, 4 drawio diagrams.\n      The edgy-model.json is the context object for edgy-deep-dive follow-up analyses.\n---\n\n# EDGY 23 Enterprise Design Assessment\n\n## Purpose\n\nThis skill produces a comprehensive EDGY 23 assessment of a company or organisation. It combines analysis and visualisation into a unified workflow.\n\nUse this skill when:\n- You want to produce a full EDGY 23 assessment of a company\n- You need both a written analysis and visual diagrams\n- You want to identify coherence gaps and areas for improvement\n\n**This skill uses internally:**\n- `edgy-framework` — for producing the analysis\n- `edgy-diagram` — for generating diagrams\n\n**IMPORTANT:** Produce all output in the language specified by the `language` parameter (default: fi). Select the appropriate analysis template by language.\n\n## Agent Instructions — Step-by-Step Workflow\n\n### CRITICAL: Read these instructions completely before starting\n\nThis 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.\n\n---\n\n### Mode `extract-model` — a model for an existing delivery\n\nOlder deliveries have an analysis markdown and four TXT files but no\n`edgy-model.json`, so `edgy-deep-dive` cannot run on them. In this mode skip\nPhases 1 and 3–5 and:\n\n1. Read `\u003Ccompany>-edgy-analysis.md` and the four `\u003Ccompany>-*.txt` files.\n2. Fill `edgy-model.json` from them: every element from the TXT files\n   (name = part before ` - `, description = the rest, tags from `[…]`),\n   `nature`\u002F`level` for capabilities from the analysis table, active\n   `core_links` from the TXT relationships (only pairs in the 24-link table),\n   `coherence` from section 5 (Strong\u002FGood\u002FWeak + contradictions + gaps),\n   `suggested_deep_dives` from section 10 if present — otherwise derive at\n   least three from sections 5 and 7 and mark `\"source_section\"` accordingly.\n3. Validate: `python3 \u003Cedgy-assessment>\u002Fscripts\u002Fvalidate_edgy_model.py \u003Ccompany>-edgy-model.json`.\n4. Regenerate the TXT files from the model (`edgy_model_to_txt.py`) and diff\n   them against the originals; differences are findings about the old\n   delivery, not errors to hide.\n5. Deliver the model plus a short note listing what had to be inferred.\n\n### Phase 1: Data Collection\n\n1. Gather information about the target company from available sources (websites, public materials, user-provided documents)\n2. Identify the following:\n   - Company basics (name, size, founding year, industry)\n   - Purpose and values\n   - Services\u002Fproducts\n   - Customer segments\n   - Technologies and resources\n   - Organisational structure\n   - Competitive situation and differentiators\n\n**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).\n\n---\n\n### Phase 2: EDGY Analysis (Markdown)\n\nSelect the analysis template by `language` parameter:\n- **fi**: `templates\u002Fanalysis-template.md`\n- **en**: `templates\u002Fanalysis-template-en.md`\n- **fr**: `templates\u002Fanalysis-template-fr.md`\n- **de**: `templates\u002Fanalysis-template-de.md`\n\nProduce the written analysis using the selected template.\n\n**Outputs:** `\u003Ccompany>-edgy-analysis.md` and `\u003Ccompany>-edgy-model.json`\n\n#### Phase 2a — PDF preamble injection (MANDATORY)\n\nEvery EDGY analysis MUST start with the canonical PDF preamble so that\nthe report always renders with the same visual layout (frontmatter, CSS,\nlegend, meta-table). Only the analysis content adapts per customer; the\nvisual scaffolding is locked.\n\n1. Open `assets\u002Fpdf-preamble.md` and copy its entire contents to the\n   very top of `\u003Ccompany>-edgy-analysis.md` (before section 1).\n2. Replace **every** `{{...}}` placeholder with a concrete value. The\n   language-specific defaults are listed in the comment block at the\n   top of the selected template — use those verbatim unless the user\n   has overridden them.\n3. **Do NOT modify** the `\u003Cstyle>` block, the `pdf_options:` YAML, or\n   the `.meta-table`, `.legend`, badge-shape and `.edgy-badge`\n   structures. These are the locked layout — touching them produces\n   inconsistent reports.\n4. The method label must be exactly **\"EDGY 23 Enterprise Design\"**\n   (in the analysis language). Do NOT write \"Enterprise Design in a\n   Box\" — that framework does not exist; it is an erroneous phrasing\n   that was accidentally copied into earlier deliveries.\n\nQuality gate before continuing — all greps must succeed against the\nanalysis markdown:\n\n```bash\nF=\"\u003Ccompany>-edgy-analysis.md\"\nhead -1 \"$F\" | grep -q \"^---\"       # frontmatter must be the very first line\ngrep -q \"^pdf_options:\"      \"$F\"\ngrep -q \"\u003Cstyle>\"            \"$F\"\ngrep -q \"\\.edgy-badge\"       \"$F\"\ngrep -q 'class=\"legend\"'     \"$F\"\ngrep -q 'class=\"meta-table\"' \"$F\"\n! grep -q \"{{\"               \"$F\"   # no leftover placeholders\ngrep -Eq \"^## (10\\. )?(Ehdotetut jatkoanalyysit|Suggested deep-dive|Analyses approfondies|Vorgeschlagene Vertiefungs)\" \"$F\"   # section 10 present\n```\n\nThe `head -1` check is critical: gray-matter (the parser md-to-pdf uses)\nonly recognises YAML frontmatter when `---` is the **very first line** of\nthe file. A preceding HTML comment or blank line silently breaks\n`pdf_options:`, dropping the footer and margins without any error.\n\nIf any check fails, return to step 1.\n\n#### edgy-model.json — Machine-readable EDGY model\n\nAfter writing the analysis markdown, serialise the assessed EDGY model as JSON.\nThis file is the context object for `edgy-deep-dive` follow-up analyses.\n\n```json\n{\n  \"company\": \"Company Name\",\n  \"assessed_at\": \"2026-04-29T10:00:00\",\n  \"language\": \"fi\",\n  \"elements\": {\n    \"purpose\":      { \"name\": \"...\", \"description\": \"...\", \"tags\": [] },\n    \"story\":        { \"name\": \"...\", \"description\": \"...\", \"tags\": [] },\n    \"content\":      { \"name\": \"...\", \"description\": \"...\", \"tags\": [] },\n    \"capability\":   [{ \"name\": \"...\", \"description\": \"...\", \"nature\": \"Core|Enabling|Management\", \"level\": \"Strategic|Operational|Foundational\" }],\n    \"asset\":        [{ \"name\": \"...\", \"description\": \"...\" }],\n    \"process\":      [{ \"name\": \"...\", \"description\": \"...\" }],\n    \"task\":         [{ \"name\": \"...\", \"description\": \"...\" }],\n    \"channel\":      [{ \"name\": \"...\", \"description\": \"...\" }],\n    \"journey\":      { \"name\": \"...\", \"description\": \"...\", \"stages\": [] },\n    \"organisation\": { \"name\": \"...\", \"description\": \"...\" },\n    \"product\":      [{ \"name\": \"...\", \"description\": \"...\" }],\n    \"brand\":        { \"name\": \"...\", \"description\": \"...\" }\n  },\n  \"core_links\": [\n    { \"source\": \"organisation\", \"target\": \"capability\", \"verb_fi\": \"omistaa\", \"verb_en\": \"has\" }\n  ],\n  \"coherence\": {\n    \"organisation\": { \"alignment\": \"Weak|Good|Strong\", \"contradictions\": [], \"gaps\": [] },\n    \"product\":      { \"alignment\": \"Weak|Good|Strong\", \"contradictions\": [], \"gaps\": [] },\n    \"brand\":        { \"alignment\": \"Weak|Good|Strong\", \"contradictions\": [], \"gaps\": [] }\n  },\n  \"suggested_deep_dives\": [\n    {\n      \"pair\": [\"capability\", \"organisation\"],\n      \"lens\": \"dependency\",\n      \"rationale\": \"...\",\n      \"priority\": \"High|Medium|Low\",\n      \"source_section\": 5\n    }\n  ]\n}\n```\n\n`organisation` is one object (format 1.8, above). Format **1.9** (optional, for the\narchitecture views of edgy-diagram 2.8.0) adds: `organisation` as an object **or an\narray**, `elements.people`, asset `kind` (application \u002F platform \u002F integration \u002F data),\n`hosting`, `owner`, `time` (Gartner TIME), `criticality`, `master`, capability `gaps`\n(`{\"products\": \"out_of_scope\"}` — the evidence status of an empty capability-view band:\n`not_investigated`, `out_of_scope`, `unknown`, `confirmed_absent`), process `band` (`management` \u002F `core` \u002F `support` on\nan L1 process, for the value chain), and `relationships[]` between element ids\n(`{\"source_id\": \"CAP-05\", \"target_id\": \"AST-02\", \"verb\": \"requires\"}`). A model that uses\nany of these must say `\"schema_version\": \"1.9\"` — the validator rejects 1.9 structures in an\nolder model, and every 1.8 model keeps producing byte-identical TXT, diff and ArchiMate\noutput (tools\u002Ftest_model_compat.py).\n\nFormat **1.10** (optional, for the realisation trace of edgy-diagram 2.9.0) adds:\n- `journey` as an object **or an array** of journeys, each with an `id`;\n- `gaps` on the realisation-trace types, with these keys:\n\n  | Type | `gaps` keys |\n  |------|-------------|\n  | journey | `tasks`, `channels`, `products` |\n  | task | `products`, `channels` |\n  | channel | `products` |\n  | product | `capabilities`, `processes`, `organisation` |\n  | capability | the five above, plus `organisation` |\n  | process | `resources`, `organisation` |\n  | asset, people | `organisation` |\n\nA model that uses a journey array or one of these gaps must say\n`\"schema_version\": \"1.10\"`. A single journey with an `id` is still valid 1.9.\n\n**Migration 1.9 → 1.10.** Change these together:\n1. Turn `\"journey\": {…}` into `\"journey\": [{…, \"id\": \"JRN-01\"}, …]`. Keep\n   the existing journey and its relationships, and give every journey an id.\n2. Add the Experience links the trace walks to `relationships[]`:\n   - task → journey *is part of*;\n   - journey → channel *traverses*;\n   - task → channel *uses*;\n   - product → task *serves*;\n   - product → journey *features in*;\n   - product → channel *offers*;\n   - organisation → product *makes*;\n   - process → product *creates*.\n3. Record what you know is missing as `gaps` (the statuses as above).\n4. Set `\"schema_version\": \"1.10\"` and validate.\n\n1.9 and 1.8 models keep producing byte-identical output: the\n`compat-1.9` and `compat-1.8` fixtures check this.\n\n**Validate the model** before continuing — the schema lives in\n`assets\u002Fedgy-model.schema.json`, the validator needs only the standard library:\n\n```bash\npython3 \u003Cedgy-assessment>\u002Fscripts\u002Fvalidate_edgy_model.py \u003Ccompany>-edgy-model.json     # must print \"valid\"\n```\n\n`\u003Cedgy-assessment>` is this skill's directory: `~\u002F.claude\u002Fskills\u002Fedgy-assessment`\nwhen installed, `skills\u002Farchitecture\u002Fedgy-assessment` in a checkout. The same\nholds for the other `skills\u002F…` script paths in this file.\n\nRules:\n- `elements` must contain all 12 EDGY elements (Purpose, Story, Content, Capability, Asset, Process, Task, Channel, Journey, Organisation, Product, Brand)\n- `core_links` lists only links that are *active* in this company (not all 24 theoretical links)\n- `coherence` mirrors the intersection analysis from section 5\n- `suggested_deep_dives` mirrors section 10 of the analysis; `source_section` points to which analysis section grounds the rationale\n\n#### Official 24 EDGY Core Links — Reference Table\n\n**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ää\"\u002F\"embodies\"` belongs to `product → brand`, NOT `brand → content`.\n\n\u003C!-- edgy-links:begin format=assessment -->\n| Source | Target | verb_en | verb_fi |\n| -------- | -------- | --------- | --------- |\n| story | purpose | contextualises | kontekstualisoi |\n| content | purpose | expresses | ilmaisee |\n| content | story | conveys | välittää |\n| brand | story | evokes | herättää |\n| brand | purpose | represents | edustaa |\n| capability | asset | requires | vaatii |\n| process | capability | realises | toteuttaa |\n| process | asset | requires | vaatii |\n| product | capability | requires | vaatii |\n| process | product | creates | luo |\n| task | journey | is part of | on osa |\n| task | channel | uses | käyttää |\n| journey | channel | traverses | kulkee |\n| brand | task | supports | tukee |\n| brand | journey | appears in | näkyy |\n| organisation | purpose | pursues | tavoittelee |\n| organisation | story | authors | kirjoittaa |\n| organisation | capability | has | omistaa |\n| organisation | process | performs | suorittaa |\n| product | task | serves | palvelee |\n| product | journey | features in | esiintyy |\n| organisation | brand | builds | rakentaa |\n| organisation | product | makes | valmistaa |\n| product | brand | embodies | ilmentää |\n\u003C!-- edgy-links:end -->\n\n#### Mandatory sections (all 10 must be filled):\n\n1. **Executive summary** — min 3 sentences, includes company basics and key analysis findings\n2. **Identity facet** — Purpose, Story, Content — each at least 2 sentences + analysis\n3. **Architecture facet** — Capability table (min 3 capabilities with nature\u002Flevel classification), Asset (min 2), Process (min 2)\n4. **Experience facet** — Task (min 3 tasks), Channel (table min 2 channels), Journey (visualisation)\n5. **Intersection elements** — Organisation, Product, Brand — each with coherence assessment\n6. **Strengths** — min 3 numbered, justified\n7. **Development areas and gaps** — min 3 subsections, analytical\n8. **Recommendations** — table: #, Recommendation, EDGY element, Priority (High\u002FMedium\u002FLow)\n9. **Diagrams** — file listing as table\n10. **Suggested deep-dive analyses** — min 3 follow-up analyses with element pair, rationale, priority\n\n#### Section 10 — Suggested deep-dive analyses\n\nAfter completing sections 1–9, add a final section:\n\n```markdown\n## Ehdotetut jatkoanalyysit\n\nNämä jatkoanalyysit on priorisoitu löydettyjen kehitysalueiden ja\nkoherenssiarvioiden perusteella. Käytä `edgy-deep-dive`-skilliä.\n\n| # | Elementtipari | Linssi | Perustelu | Prioriteetti |\n|---|---------------|--------|-----------|--------------|\n| 1 | capability × organisation | dependency | Coherence Weak — org-rakenne ei tue kyvykkyyksiä | High |\n| 2 | product × task | gaps | Product-task-linkitys epäselvä, 2 tehtävää ilman tuotetta | Medium |\n| 3 | purpose × brand | alignment | Brändiviestintä ei vastaa tarkoitusta | Medium |\n```\n\nRules:\n- Every row must be grounded in specific finding from sections 1–9 (cite section number)\n- Pair must use official EDGY element names: purpose, story, content, capability, asset, process, task, channel, journey, organisation, product, brand\n- Lens must be one of: dependency, alignment, gaps, opportunities, all\n- At least one row must have priority High\n\n#### Quality Gate — Check before proceeding:\n- [ ] Analysis is at least 150 lines\n- [ ] All 10 sections are filled\n- [ ] Capability table has nature\u002Flevel classification\n- [ ] Intersection elements have coherence check (Strong\u002FGood\u002FWeak + justification)\n- [ ] Recommendations table has priority levels\n- [ ] Suggested deep-dives table has min 3 rows with element pairs and rationale\n- [ ] Analysis is company-specific, NOT generic\n\n#### Anti-patterns — DO NOT do this:\n- DO NOT write one-line descriptions for elements (e.g. \"Purpose: To provide services\")\n- DO NOT skip coherence checks on intersection elements\n- DO NOT give generic recommendations that fit any company\n- DO NOT leave tables empty or single-row\n- 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)\n\n---\n\n### Phase 3: Facet TXT Files\n\n**Generate the four TXT files from the model — do not write them by hand:**\n\n```bash\npython3 skills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Fedgy_model_to_txt.py \u003Ccompany>-edgy-model.json --prefix \u003Ccompany>\n# when any facet has more than ~8 elements, or the all-facets map is unreadable:\npython3 skills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Fedgy_model_to_txt.py \u003Ccompany>-edgy-model.json --prefix \u003Ccompany> --layout triad\n```\n\nThis derives elements (`\"Name - Description\" [tags] {id: …}`) and the active\ncore links from `edgy-model.json`, so the diagrams can never disagree with\nthe analysis (an earlier review found reports with five capabilities and\ndiagrams with four). Edit the model, regenerate; never patch a TXT. The\nformat below documents what the script produces, and is the fallback when\nPython is unavailable.\n\n**From the model to a transition map and to ArchiMate** (optional, when the\nassessment compares two states or hands the model to an architecture team):\n\n```bash\n# current vs target model → transition map input (overlay tags) and a change table\npython3 skills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Fedgy_model_diff.py current-model.json target-model.json \\\n    --facet architecture --layout triad --out \u003Ccompany>-transition.txt --report \u003Ccompany>-changes.md\n# the model as ArchiMate 3.1 Open Exchange XML (one view per facet map) for Archi and other tools\npython3 skills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Fedgy_model_to_archimate.py \u003Ccompany>-edgy-model.json -o \u003Ccompany>.archimate.xml\n```\n\nThe diff matches elements by id, then name, then a similar name (renamed),\nand tags them `keep`, `change`, `new` or `remove`. A similar-name match can\npair two different short names (\"Ticket sales\" \u002F \"Ticket rules\"): check every\n`renamed from …` row of the change table, and give elements an `id` in both\nmodels to avoid it; core links are compared\nper type pair. With model format 1.9 the diff also compares asset attributes\nand `relationships[]`, and the transition TXT (default layout) draws only what\nchanges — changed elements, changed relationships and their endpoints, routed —\nso it stays readable for a model with dozens of relationships; `--full` draws\neverything; the change table always lists everything. `replace` and `decide` are judgements: set them by hand in\nthe transition TXT, never let the tool imply them. The ArchiMate export is\none-way — the EDGY model stays the source — and keeps the EDGY type of every\nelement in the property `edgy:type` (mapping table in the script's header\nand in edgy-diagram `references\u002Fexport.md`). Example pair:\n`examples\u002Fmodel-diff\u002F` (fictional).\n\n**Layout block.** An optional `layout` object in the model (`legend`,\n`card_width`, `equal_cards`, `group_columns`, `cards_per_row`,\n`equal_group_width`, `align_groups`, `title`, `footnote`) is written as\ndocument keys into every TXT, so the four files share one legend placement,\ncard sizing and grid — `edgy_lint.py --series` (Phase 4) then reports\nnothing. Set `language` in the model: the verbs and the legend render in\nthat language (W116 otherwise).\n\n**Primary element.** A core link between two element *types* is drawn once,\nbetween the primary element of each type: the one with `\"primary\": true` in\nthe model, otherwise the first of its type. Set the flag in the model when\nthe first element is not the one the story is about. `--layout triad` writes\n`map_type: triad` into every TXT: the planned ring (edgy-diagram, EDGY\nextension) with one primary per type and \"Further \u003Ctype>\" panels for the\nrest; links into a panel are reported on stderr, never drawn silently, and\nthe report's tables carry them.\n\nProduce 4 text files in edgy-diagram skill input format:\n\n1. **`\u003Ccompany>-identity.txt`** — Identity facet elements and relationships\n2. **`\u003Ccompany>-architecture.txt`** — Architecture facet elements and relationships\n3. **`\u003Ccompany>-experience.txt`** — Experience facet elements and relationships\n4. **`\u003Ccompany>-all-facets.txt`** — All elements and relationships\n\n#### TXT file format:\n\nUse the core link verb matching the `language` parameter (see edgy-framework core links table).\n\n```\nfacet: identity\n\nelements:\n  - purpose: \"Element name - Detailed description\" [tags]\n  - story: \"Element name - Detailed description\" [tags]\n  - content: \"Element name - Detailed description\" [tags]\n  - brand: \"Brand name - Description\" [tags]\n  - organisation: \"Organisation name - Description\" [tags]\n\nrelationships:\n  - \"story\" -> \"purpose\": \"contextualises\"\n  - \"content\" -> \"purpose\": \"expresses\"\n  - \"content\" -> \"story\": \"conveys\"\n  - \"brand\" -> \"story\": \"evokes\"\n  - \"brand\" -> \"purpose\": \"represents\"\n  - \"organisation\" -> \"purpose\": \"pursues\"\n  - \"organisation\" -> \"story\": \"authors\"\n  - \"organisation\" -> \"brand\": \"builds\"\n```\n\n**Minimum requirement per file:**\n- Identity: min 3 core elements + 2 intersection elements + 5 relationships\n- Architecture: min 7 elements (3 capability + 2 asset + 2 process) + 2 intersection elements + 5 relationships\n- Experience: min 6 elements (3 task + 2 channel + 1 journey) + 2 intersection elements + 5 relationships\n- All-facets: all facet elements combined + min 15 relationships\n\n---\n\n### Phase 4: Drawio Diagrams (4 pcs)\n\nGenerate a drawio diagram for each TXT file **with the edgy-diagram generator** and lint the result:\n\n```bash\nG=${EDGY_DIAGRAM_SCRIPTS:-skills\u002Fdocumentation\u002Fedgy-diagram\u002Fscripts}   # installed skills: ~\u002F.claude\u002Fskills\u002Fedgy-diagram\u002Fscripts\npython3 $G\u002Fedgy_generator.py \u003Ccompany>-identity.txt --output \u003Ccompany>-identity.drawio --preview --preset publication\npython3 $G\u002Fedgy_lint.py \u003Ccompany>-identity.drawio      # 0 errors required\n# --preview wrote \u003Ccompany>-identity.svg (+ .png when Chromium is available) and \u003Ccompany>-identity.qa.json:\n# open the image and check the preview checklist (edgy-diagram SKILL.md, \"Preview loop\") before moving on\n# series check across the four files of this delivery (legend placement, margins, card widths, fonts):\npython3 $G\u002Fedgy_lint.py --series \u003Ccompany>-identity.drawio \u003Ccompany>-architecture.drawio \u003Ccompany>-experience.drawio \u003Ccompany>-all-facets.drawio\n```\n\n`--preset publication` (native preset: 24 px margin, strip legend, W115 at a\n160 mm column, `title:` \u002F `footnote:` bands from the model's layout block) is\nthe image for the report; `--preset presentation` for slides. The\n`qa.json` written next to each `.drawio` carries the counts, the lint, the\nvisual \u002F layout \u002F language checks and the preview size; its\n`visual_approval` and `semantic_approval` stay `null` until a person sets\nthem in Phase 5 (the semantic one after Phase 4b).\n\nRead every generator warning: a core-link verb on a wrong pair or a verb\noutside the vocabulary means the TXT file (and usually the analysis) is\nwrong — fix it there. Write drawio XML by hand only when Python cannot be\nexecuted, and lint the file as soon as it can. The XML specification below is\nthe reference for that fallback and for reviewing generated output.\n\n**Outputs:**\n1. `\u003Ccompany>-identity.drawio`\n2. `\u003Ccompany>-architecture.drawio`\n3. `\u003Ccompany>-experience.drawio`\n4. `\u003Ccompany>-all-facets.drawio`\n\n#### Diagram quality gate\n\nThe generator produces valid XML, shapes, palette, legend and layout; the\nspecification (XML structure, shapes, colours, legend) lives in the\nedgy-diagram skill (`references\u002Fxml-reference.md`) and is **not repeated\nhere**. Before moving on, every one of the four files must pass:\n\n- `edgy_lint.py` — 0 errors (structure, layout, notation, semantics)\n- `edgy_lint.py --visual` reports nothing: no edge passes through a box, no\n  edge label lies on a box or another label (W111–W114 = 0). If it does,\n  switch the TXT files to `--layout triad` or fix the model; never patch\n  the XML\n- preview looked at (`--preview` \u002F `edgy_render.py`) and the edgy-diagram\n  *Preview loop* checklist passed: every edge visibly starts and ends,\n  legend clear of content, **`all-facets` page height ≤ 1.2 × width**,\n  single-facet maps not taller than wide before any \"Further\" panels,\n  facet containers visually separated (Identity above or left of\n  Architecture and Experience), intersection elements between the facets\n  they bridge\n- relationships use only the active core links from the model (a core-link\n  verb on a wrong pair is a model error — fix the model, regenerate)\n- `edgy_lint.py --series` over the four files reports no W121: one legend\n  placement, one content margin, one card width per type, one font size\n  across the delivery (set the model's `layout` block, never patch a file)\n\n#### Structural maps (recommended, optional)\n\nThe four relationship views are the overview. When the assessment answers\na question they cannot show, add a structural map **from the same model and\nwith the same ids** (one disconnected second model is worse than none):\n\n| Map | Question | How |\n|-----|----------|-----|\n| Purpose map | How do strategy and focus areas hang together? | `map_type: purpose`; mission \u002F vision as top purposes, focus areas as sub-purposes (`contains`), KPIs as Outcomes (`measures`) — see edgy-framework *Strategy → EDGY* |\n| 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 |\n| Journey map | Where does the experience break between stages? | `map_type: journey` for the lifecycle stages plus a hand-off \u002F failure table in the report — a stage chain alone carries little analytical depth |\n\nAdd a map only when it answers a useful question for this company; do not\ngenerate every map for every scope.\n\n#### Architecture views (optional, model format 1.9)\n\nWhen the scope includes the application landscape — applications, data,\nowners, processes — record them in the model as format **1.9** (asset\n`kind`, `relationships[]` between ids, see Phase 2) and draw the views from\nit; never type them a second time:\n\n```bash\npython3 skills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Fedgy_model_to_txt.py \u003Ccompany>-edgy-model.json \\\n    --prefix \u003Ccompany> --views all          # or: application,process-chain,process-swimlane,capability,capability-matrix,crud-matrix,trace\npython3 skills\u002Fdocumentation\u002Fedgy-diagram\u002Fscripts\u002Fedgy_generator.py \u003Ccompany>-views.txt \\\n    --output \u003Ccompany>-views.drawio --preview [--present \u003Ccompany>-presentation.html]\n```\n\n`\u003Ccompany>-views.txt` has a `draw: false` model page and one page per view:\nthe application map grouped by capability, the value chain, one swimlane per\nL1 process, one capability view per capability, and the capability ×\napplication and CRUD matrices (edgy-diagram `references\u002Farchitecture-views.md`).\nRead the generator's `Note:` lines and `qa.json` `model_gaps[]`: an empty\ncapability-view band is a **model gap** with an evidence status — report\n`not_investigated` \u002F `unknown` as open questions, `confirmed_absent` as a\nfinding, never the reverse. W124 (application without an owner) is a note;\nset `ownership: required` on the view page when ownership is in scope.\n\n**Realisation trace (opt-in, edgy-diagram 2.9.0).** `--views trace` adds the\ntrace pages: an index (journeys | organisations) and one page per element\nwith an id, from the journey down through tasks and channels, products,\ncapabilities, processes, assets and people to the organisations, and back\nup; every card links to its own page, and in the presenter the trace is one\nTrace card with drill-through. It is not part of `--views all`, because a\nlarge model gives many pages (`where:` narrows them on a hand-written page).\nIt needs the Experience links (format 1.10, *Migration 1.9 → 1.10* above):\nwhen you extract a 1.10 model, emit *serves*, *features in* and *offers*\ntogether with *is part of*, *traverses* and *uses*. An empty band below an\nelement is **W129** with the same evidence statuses as W127.\n`--present` writes one offline HTML of every view for a workshop; it carries\nthe model, so it stays in the engagement folder with the `.drawio`.\n\n#### Phase 4b — Semantic review (MANDATORY for the purpose map; run on every map)\n\nA purpose map that lints clean can still be wrong in meaning (actions as\nPurposes, proposed metrics shown as confirmed, influences drawn as\n`contains`). After the purpose map TXT is written (structural maps above)\nand before its diagram is generated:\n\n1. Tag every **Purpose** with its provenance — `[confirmed]` (public\n   source), `[analytical]` (your interpretation) or `[proposed]` (S004) —\n   and every **Outcome** with `{status: confirmed|proposed}` (S003). Other\n   element types may carry a tag; the review does not require it.\n   For the four facet files `edgy_model_to_txt.py` writes the tags from the\n   model's `provenance` fields; the purpose map is a structural map written\n   from the same model (Phase 4 table), so its Outcomes and their\n   `{status: …}` are written by the analyst — the model has no Outcome\n   type.\n2. Run the review and read every question:\n   ```bash\n   python3 skills\u002Fdocumentation\u002Fedgy-diagram\u002Fscripts\u002Fedgy_semantic_review.py \u003Ccompany>-purpose.txt\n   ```\n   S001 action as a Purpose, S002 Outcome measures nothing, S003 \u002F S004\n   missing provenance, S005 `contains` that may be an influence, S006 metric\n   in a Purpose name. Fix the **model**, regenerate.\n   Run it on the facet and structural map inputs too (one command, every\n   TXT file): S007–S009 ask about capabilities named after systems or units,\n   phrased as verbs or shaped like projects, S010 about tasks in the\n   organisation's voice, S011 \u002F S012 about outcomes that are actions or carry\n   no measure (edgy-framework *Formulating tasks, outcomes and the Experience\n   facet*). The generator's `--qa` manifest records the rule set\n   (`semantic_review.rule_set`).\n   ```bash\n   python3 skills\u002Fdocumentation\u002Fedgy-diagram\u002Fscripts\u002Fedgy_semantic_review.py \u003Ccompany>-*.txt\n   ```\n3. Walk the checklist in edgy-framework *Purpose map semantic review* and\n   write the sign-off line into the report (section 9) and the delivery\n   note: `Semantic review: approved by \u003Crole>, \u003Cdate> — S-findings answered: \u003Cn>`\n   — in the report's language; the template of each language (section 9)\n   carries the equivalent line. The tool never approves; a person does.\n   Zero findings is not a sign-off.\n\nIf Python is unavailable and the XML must be written by hand, follow the\nedgy-diagram inline example and lint it in the next environment that has\nPython; the file must still contain more than the two structural cells, one\nvertex per element, one edge with geometry per relationship, a legend, and\nexceed 1000 bytes.\n\n---\n\n### Phase 5: Final Verification\n\nBefore completion, check ALL:\n\n#### Files (10 pcs):\n- [ ] `\u003Ccompany>-edgy-analysis.md` — analysis, min 150 lines, all 10 sections\n- [ ] `\u003Ccompany>-edgy-model.json` — machine-readable EDGY model with suggested deep-dives\n- [ ] `\u003Ccompany>-identity.txt` — Identity facet input\n- [ ] `\u003Ccompany>-architecture.txt` — Architecture facet input\n- [ ] `\u003Ccompany>-experience.txt` — Experience facet input\n- [ ] `\u003Ccompany>-all-facets.txt` — All facets input\n- [ ] `\u003Ccompany>-identity.drawio` — Identity diagram, >1000 bytes\n- [ ] `\u003Ccompany>-architecture.drawio` — Architecture diagram, >1000 bytes\n- [ ] `\u003Ccompany>-experience.drawio` — Experience diagram, >1000 bytes\n- [ ] `\u003Ccompany>-all-facets.drawio` — All-facets diagram, >1000 bytes\n\n#### Quality:\n- [ ] Analysis is company-specific, not generic\n- [ ] All 9 analysis sections are filled\n- [ ] Diagrams contain elements and relationships (are not empty)\n- [ ] Colour palette follows EDGY 23 standard\n- [ ] Relationships use official 24 core links\n- [ ] Output language matches `language` parameter\n\n#### Approvals (`qa.json`, one per diagram):\n- [ ] `python3 $G\u002Fedgy_qa.py --require-approvals \u003Ccompany>-*.qa.json` exits 0 — it lists the lint result and\n      the two approvals on **separate lines**: zero lint findings is never an approval\n- [ ] `visual_approval` set by the person who looked at every preview, as `\"\u003Cname or role>, YYYY-MM-DD\"`\n- [ ] `semantic_approval` set by the person who answered the semantic review (Phase 4b) — for a delivery\n      with a purpose map, after every S-finding has an answer in the report\n- [ ] `delivery_notes` carries anything the reader must know (a layout option that was switched off, a\n      warning that was accepted and why)\n\n#### Layout quality:\n- [ ] `edgy_lint.py --warnings-as-errors --visual` passes for all four drawio files (0 errors, no W111–W114)\n- [ ] `edgy_lint.py --series` over the four files reports no W121; the layout rules W117–W120 report nothing or each finding is answered in `delivery_notes`\n- [ ] Every diagram was previewed (`--preview` \u002F `edgy_render.py`) and looked at; the preview checklist passed\n- [ ] No elements at negative coordinates in any drawio file\n- [ ] No overlapping elements in any drawio file (min 10px gap)\n- [ ] All element text fits within element boundaries (W101 = 0)\n- [ ] `all-facets` page height ≤ 1.2 × width; facet containers visually separated\n- [ ] **Final report pages looked at at the intended viewing size** — the SVG alone is not enough: check\n      captions, page breaks and footer clearance on the PDF page, and run `edgy_lint.py --scale \u003Creport scale>`\n      (no W115 = every title, description and relation label stays ≥ 6 pt). Use `--publication` for the\n      embedded image so a sparse map is not shrunk by empty canvas\n\n---\n\n## Reference\n\nSee the `examples\u002F` directory for completed assessment examples:\n- `reference-analysis.md` (Finnish, lyhyt rakenne-esimerkki)\n- `reference-analysis-en.md` (English)\n- `intersection-edgy-analysis.md` + `intersection-edgy-analysis.pdf` —\n  **täysimittainen referenssi-PDF**, joka osoittaa millaista raporttia\n  käyttäjälle tulee tuottaa kun hän pyytää PDF-muotoista EDGY-analyysiä\n  (kansilehti, sisällysluettelo, 12 elementin analyysi facet-kohtaisesti,\n  intersection-elementit, suositukset, riskit, seuraavat askeleet).\n\n**Reference caveat:** the intersection example is the **visual layout\nreference** — colours, badges, legend, meta-table, footer. Its meta-table\n\"Method\" row (line 54) still reads \"EDGY 23 Enterprise Design in a Box\nframework\" — that wording is **legacy** and is preserved unchanged only\nbecause it is a shipped customer deliverable. New analyses MUST use\n`METHOD_LABEL = \"EDGY 23 Enterprise Design\"` (no \"in a Box\"); do not copy\nthe meta-table row verbatim from this reference.\n\nUse these as quality and structure benchmarks.\n\n## PDF Report Generation\n\nWhen the user requests a PDF report (`pdf`, `raportti`, `report`, `--pdf`),\nthe visual layout is **locked** by the shared preamble — only the\nanalysis content changes per customer.\n\n1. **Analysis markdown is already prepared** by Phase 2 + Phase 2a. The\n   file contains the canonical `pdf_options:` frontmatter, `\u003Cstyle>`\n   block, meta-table, legend and badge-shape row. If it does not, return\n   to Phase 2a — do not proceed.\n\n2. **Generate the four facet diagrams** with the `edgy-diagram` skill\n   (`identity`, `architecture`, `experience`, `all`) as PNG so they can be\n   embedded into the PDF. Engine order: draw.io CLI (`--preset presentation`,\n   publication quality) when installed → `--engine plantuml` when Java and\n   PlantUML are available → `--engine native` (pure Python SVG + headless\n   Chromium PNG; approximate but always available). Never stop the pipeline\n   because the draw.io CLI is missing.\n\n3. **Canonical PDF conversion (only supported route):**\n   ```bash\n   md-to-pdf \"\u003Ccompany>-edgy-analysis.md\" \\\n     --launch-options '{\"args\":[\"--no-sandbox\"]}'\n   ```\n   Requires `md-to-pdf >= 5.x` (Chromium-headless with clip-path +\n   Flexbox support). Do NOT use `pandoc` or `weasyprint`: their\n   rendering of clip-path\u002FFlexbox does not match the\n   intersection-edgy reference layout.\n\n4. **Pre-conversion quality gate** (must all pass — same as Phase 2a):\n   ```bash\n   F=\"\u003Ccompany>-edgy-analysis.md\"\n   grep -q \"^pdf_options:\"      \"$F\"\n   grep -q \"\u003Cstyle>\"            \"$F\"\n   grep -q \"\\.edgy-badge\"       \"$F\"\n   grep -q 'class=\"legend\"'     \"$F\"\n   grep -q 'class=\"meta-table\"' \"$F\"\n   ! grep -q \"{{\"               \"$F\"\n   ```\n\n5. **Result must match** the reference layout\n   `examples\u002Fintersection-edgy-analysis.pdf`: same margins, footer with\n   company name and page number, identical CSS-rendered badges and\n   coherence indicators, identical legend. Page count may differ by\n   ±2 pages for similarly sized content; layout must be visually\n   identical.\n\n## Dependencies\n\n- `edgy-framework` skill (for producing the analysis)\n- `edgy-diagram` skill (for generating diagrams, colour palette and XML specification)\n","# EDGY 23 Enterprise Design Assessment\n\n## Purpose\n\nThis skill produces a comprehensive EDGY 23 assessment of a company or organisation. It combines analysis and visualisation into a unified workflow.\n\nUse this skill when:\n- You want to produce a full EDGY 23 assessment of a company\n- You need both a written analysis and visual diagrams\n- You want to identify coherence gaps and areas for improvement\n\n**This skill uses internally:**\n- `edgy-framework` — for producing the analysis\n- `edgy-diagram` — for generating diagrams\n\n**IMPORTANT:** Produce all output in the language specified by the `language` parameter (default: fi). Select the appropriate analysis template by language.\n\n## Agent Instructions — Step-by-Step Workflow\n\n### CRITICAL: Read these instructions completely before starting\n\nThis 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.\n\n---\n\n### Mode `extract-model` — a model for an existing delivery\n\nOlder deliveries have an analysis markdown and four TXT files but no\n`edgy-model.json`, so `edgy-deep-dive` cannot run on them. In this mode skip\nPhases 1 and 3–5 and:\n\n1. Read `\u003Ccompany>-edgy-analysis.md` and the four `\u003Ccompany>-*.txt` files.\n2. Fill `edgy-model.json` from them: every element from the TXT files\n   (name = part before ` - `, description = the rest, tags from `[…]`),\n   `nature`\u002F`level` for capabilities from the analysis table, active\n   `core_links` from the TXT relationships (only pairs in the 24-link table),\n   `coherence` from section 5 (Strong\u002FGood\u002FWeak + contradictions + gaps),\n   `suggested_deep_dives` from section 10 if present — otherwise derive at\n   least three from sections 5 and 7 and mark `\"source_section\"` accordingly.\n3. Validate: `python3 \u003Cedgy-assessment>\u002Fscripts\u002Fvalidate_edgy_model.py \u003Ccompany>-edgy-model.json`.\n4. Regenerate the TXT files from the model (`edgy_model_to_txt.py`) and diff\n   them against the originals; differences are findings about the old\n   delivery, not errors to hide.\n5. Deliver the model plus a short note listing what had to be inferred.\n\n### Phase 1: Data Collection\n\n1. Gather information about the target company from available sources (websites, public materials, user-provided documents)\n2. Identify the following:\n   - Company basics (name, size, founding year, industry)\n   - Purpose and values\n   - Services\u002Fproducts\n   - Customer segments\n   - Technologies and resources\n   - Organisational structure\n   - Competitive situation and differentiators\n\n**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).\n\n---\n\n### Phase 2: EDGY Analysis (Markdown)\n\nSelect the analysis template by `language` parameter:\n- **fi**: `templates\u002Fanalysis-template.md`\n- **en**: `templates\u002Fanalysis-template-en.md`\n- **fr**: `templates\u002Fanalysis-template-fr.md`\n- **de**: `templates\u002Fanalysis-template-de.md`\n\nProduce the written analysis using the selected template.\n\n**Outputs:** `\u003Ccompany>-edgy-analysis.md` and `\u003Ccompany>-edgy-model.json`\n\n#### Phase 2a — PDF preamble injection (MANDATORY)\n\nEvery EDGY analysis MUST start with the canonical PDF preamble so that\nthe report always renders with the same visual layout (frontmatter, CSS,\nlegend, meta-table). Only the analysis content adapts per customer; the\nvisual scaffolding is locked.\n\n1. Open `assets\u002Fpdf-preamble.md` and copy its entire contents to the\n   very top of `\u003Ccompany>-edgy-analysis.md` (before section 1).\n2. Replace **every** `{{...}}` placeholder with a concrete value. The\n   language-specific defaults are listed in the comment block at the\n   top of the selected template — use those verbatim unless the user\n   has overridden them.\n3. **Do NOT modify** the `\u003Cstyle>` block, the `pdf_options:` YAML, or\n   the `.meta-table`, `.legend`, badge-shape and `.edgy-badge`\n   structures. These are the locked layout — touching them produces\n   inconsistent reports.\n4. The method label must be exactly **\"EDGY 23 Enterprise Design\"**\n   (in the analysis language). Do NOT write \"Enterprise Design in a\n   Box\" — that framework does not exist; it is an erroneous phrasing\n   that was accidentally copied into earlier deliveries.\n\nQuality gate before continuing — all greps must succeed against the\nanalysis markdown:\n\n```bash\nF=\"\u003Ccompany>-edgy-analysis.md\"\nhead -1 \"$F\" | grep -q \"^---\"       # frontmatter must be the very first line\ngrep -q \"^pdf_options:\"      \"$F\"\ngrep -q \"\u003Cstyle>\"            \"$F\"\ngrep -q \"\\.edgy-badge\"       \"$F\"\ngrep -q 'class=\"legend\"'     \"$F\"\ngrep -q 'class=\"meta-table\"' \"$F\"\n! grep -q \"{{\"               \"$F\"   # no leftover placeholders\ngrep -Eq \"^## (10\\. )?(Ehdotetut jatkoanalyysit|Suggested deep-dive|Analyses approfondies|Vorgeschlagene Vertiefungs)\" \"$F\"   # section 10 present\n```\n\nThe `head -1` check is critical: gray-matter (the parser md-to-pdf uses)\nonly recognises YAML frontmatter when `---` is the **very first line** of\nthe file. A preceding HTML comment or blank line silently breaks\n`pdf_options:`, dropping the footer and margins without any error.\n\nIf any check fails, return to step 1.\n\n#### edgy-model.json — Machine-readable EDGY model\n\nAfter writing the analysis markdown, serialise the assessed EDGY model as JSON.\nThis file is the context object for `edgy-deep-dive` follow-up analyses.\n\n```json\n{\n  \"company\": \"Company Name\",\n  \"assessed_at\": \"2026-04-29T10:00:00\",\n  \"language\": \"fi\",\n  \"elements\": {\n    \"purpose\":      { \"name\": \"...\", \"description\": \"...\", \"tags\": [] },\n    \"story\":        { \"name\": \"...\", \"description\": \"...\", \"tags\": [] },\n    \"content\":      { \"name\": \"...\", \"description\": \"...\", \"tags\": [] },\n    \"capability\":   [{ \"name\": \"...\", \"description\": \"...\", \"nature\": \"Core|Enabling|Management\", \"level\": \"Strategic|Operational|Foundational\" }],\n    \"asset\":        [{ \"name\": \"...\", \"description\": \"...\" }],\n    \"process\":      [{ \"name\": \"...\", \"description\": \"...\" }],\n    \"task\":         [{ \"name\": \"...\", \"description\": \"...\" }],\n    \"channel\":      [{ \"name\": \"...\", \"description\": \"...\" }],\n    \"journey\":      { \"name\": \"...\", \"description\": \"...\", \"stages\": [] },\n    \"organisation\": { \"name\": \"...\", \"description\": \"...\" },\n    \"product\":      [{ \"name\": \"...\", \"description\": \"...\" }],\n    \"brand\":        { \"name\": \"...\", \"description\": \"...\" }\n  },\n  \"core_links\": [\n    { \"source\": \"organisation\", \"target\": \"capability\", \"verb_fi\": \"omistaa\", \"verb_en\": \"has\" }\n  ],\n  \"coherence\": {\n    \"organisation\": { \"alignment\": \"Weak|Good|Strong\", \"contradictions\": [], \"gaps\": [] },\n    \"product\":      { \"alignment\": \"Weak|Good|Strong\", \"contradictions\": [], \"gaps\": [] },\n    \"brand\":        { \"alignment\": \"Weak|Good|Strong\", \"contradictions\": [], \"gaps\": [] }\n  },\n  \"suggested_deep_dives\": [\n    {\n      \"pair\": [\"capability\", \"organisation\"],\n      \"lens\": \"dependency\",\n      \"rationale\": \"...\",\n      \"priority\": \"High|Medium|Low\",\n      \"source_section\": 5\n    }\n  ]\n}\n```\n\n`organisation` is one object (format 1.8, above). Format **1.9** (optional, for the\narchitecture views of edgy-diagram 2.8.0) adds: `organisation` as an object **or an\narray**, `elements.people`, asset `kind` (application \u002F platform \u002F integration \u002F data),\n`hosting`, `owner`, `time` (Gartner TIME), `criticality`, `master`, capability `gaps`\n(`{\"products\": \"out_of_scope\"}` — the evidence status of an empty capability-view band:\n`not_investigated`, `out_of_scope`, `unknown`, `confirmed_absent`), process `band` (`management` \u002F `core` \u002F `support` on\nan L1 process, for the value chain), and `relationships[]` between element ids\n(`{\"source_id\": \"CAP-05\", \"target_id\": \"AST-02\", \"verb\": \"requires\"}`). A model that uses\nany of these must say `\"schema_version\": \"1.9\"` — the validator rejects 1.9 structures in an\nolder model, and every 1.8 model keeps producing byte-identical TXT, diff and ArchiMate\noutput (tools\u002Ftest_model_compat.py).\n\nFormat **1.10** (optional, for the realisation trace of edgy-diagram 2.9.0) adds:\n- `journey` as an object **or an array** of journeys, each with an `id`;\n- `gaps` on the realisation-trace types, with these keys:\n\n  | Type | `gaps` keys |\n  |------|-------------|\n  | journey | `tasks`, `channels`, `products` |\n  | task | `products`, `channels` |\n  | channel | `products` |\n  | product | `capabilities`, `processes`, `organisation` |\n  | capability | the five above, plus `organisation` |\n  | process | `resources`, `organisation` |\n  | asset, people | `organisation` |\n\nA model that uses a journey array or one of these gaps must say\n`\"schema_version\": \"1.10\"`. A single journey with an `id` is still valid 1.9.\n\n**Migration 1.9 → 1.10.** Change these together:\n1. Turn `\"journey\": {…}` into `\"journey\": [{…, \"id\": \"JRN-01\"}, …]`. Keep\n   the existing journey and its relationships, and give every journey an id.\n2. Add the Experience links the trace walks to `relationships[]`:\n   - task → journey *is part of*;\n   - journey → channel *traverses*;\n   - task → channel *uses*;\n   - product → task *serves*;\n   - product → journey *features in*;\n   - product → channel *offers*;\n   - organisation → product *makes*;\n   - process → product *creates*.\n3. Record what you know is missing as `gaps` (the statuses as above).\n4. Set `\"schema_version\": \"1.10\"` and validate.\n\n1.9 and 1.8 models keep producing byte-identical output: the\n`compat-1.9` and `compat-1.8` fixtures check this.\n\n**Validate the model** before continuing — the schema lives in\n`assets\u002Fedgy-model.schema.json`, the validator needs only the standard library:\n\n```bash\npython3 \u003Cedgy-assessment>\u002Fscripts\u002Fvalidate_edgy_model.py \u003Ccompany>-edgy-model.json     # must print \"valid\"\n```\n\n`\u003Cedgy-assessment>` is this skill's directory: `~\u002F.claude\u002Fskills\u002Fedgy-assessment`\nwhen installed, `skills\u002Farchitecture\u002Fedgy-assessment` in a checkout. The same\nholds for the other `skills\u002F…` script paths in this file.\n\nRules:\n- `elements` must contain all 12 EDGY elements (Purpose, Story, Content, Capability, Asset, Process, Task, Channel, Journey, Organisation, Product, Brand)\n- `core_links` lists only links that are *active* in this company (not all 24 theoretical links)\n- `coherence` mirrors the intersection analysis from section 5\n- `suggested_deep_dives` mirrors section 10 of the analysis; `source_section` points to which analysis section grounds the rationale\n\n#### Official 24 EDGY Core Links — Reference Table\n\n**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ää\"\u002F\"embodies\"` belongs to `product → brand`, NOT `brand → content`.\n\n\u003C!-- edgy-links:begin format=assessment -->\n| Source | Target | verb_en | verb_fi |\n| -------- | -------- | --------- | --------- |\n| story | purpose | contextualises | kontekstualisoi |\n| content | purpose | expresses | ilmaisee |\n| content | story | conveys | välittää |\n| brand | story | evokes | herättää |\n| brand | purpose | represents | edustaa |\n| capability | asset | requires | vaatii |\n| process | capability | realises | toteuttaa |\n| process | asset | requires | vaatii |\n| product | capability | requires | vaatii |\n| process | product | creates | luo |\n| task | journey | is part of | on osa |\n| task | channel | uses | käyttää |\n| journey | channel | traverses | kulkee |\n| brand | task | supports | tukee |\n| brand | journey | appears in | näkyy |\n| organisation | purpose | pursues | tavoittelee |\n| organisation | story | authors | kirjoittaa |\n| organisation | capability | has | omistaa |\n| organisation | process | performs | suorittaa |\n| product | task | serves | palvelee |\n| product | journey | features in | esiintyy |\n| organisation | brand | builds | rakentaa |\n| organisation | product | makes | valmistaa |\n| product | brand | embodies | ilmentää |\n\u003C!-- edgy-links:end -->\n\n#### Mandatory sections (all 10 must be filled):\n\n1. **Executive summary** — min 3 sentences, includes company basics and key analysis findings\n2. **Identity facet** — Purpose, Story, Content — each at least 2 sentences + analysis\n3. **Architecture facet** — Capability table (min 3 capabilities with nature\u002Flevel classification), Asset (min 2), Process (min 2)\n4. **Experience facet** — Task (min 3 tasks), Channel (table min 2 channels), Journey (visualisation)\n5. **Intersection elements** — Organisation, Product, Brand — each with coherence assessment\n6. **Strengths** — min 3 numbered, justified\n7. **Development areas and gaps** — min 3 subsections, analytical\n8. **Recommendations** — table: #, Recommendation, EDGY element, Priority (High\u002FMedium\u002FLow)\n9. **Diagrams** — file listing as table\n10. **Suggested deep-dive analyses** — min 3 follow-up analyses with element pair, rationale, priority\n\n#### Section 10 — Suggested deep-dive analyses\n\nAfter completing sections 1–9, add a final section:\n\n```markdown\n## Ehdotetut jatkoanalyysit\n\nNämä jatkoanalyysit on priorisoitu löydettyjen kehitysalueiden ja\nkoherenssiarvioiden perusteella. Käytä `edgy-deep-dive`-skilliä.\n\n| # | Elementtipari | Linssi | Perustelu | Prioriteetti |\n|---|---------------|--------|-----------|--------------|\n| 1 | capability × organisation | dependency | Coherence Weak — org-rakenne ei tue kyvykkyyksiä | High |\n| 2 | product × task | gaps | Product-task-linkitys epäselvä, 2 tehtävää ilman tuotetta | Medium |\n| 3 | purpose × brand | alignment | Brändiviestintä ei vastaa tarkoitusta | Medium |\n```\n\nRules:\n- Every row must be grounded in specific finding from sections 1–9 (cite section number)\n- Pair must use official EDGY element names: purpose, story, content, capability, asset, process, task, channel, journey, organisation, product, brand\n- Lens must be one of: dependency, alignment, gaps, opportunities, all\n- At least one row must have priority High\n\n#### Quality Gate — Check before proceeding:\n- [ ] Analysis is at least 150 lines\n- [ ] All 10 sections are filled\n- [ ] Capability table has nature\u002Flevel classification\n- [ ] Intersection elements have coherence check (Strong\u002FGood\u002FWeak + justification)\n- [ ] Recommendations table has priority levels\n- [ ] Suggested deep-dives table has min 3 rows with element pairs and rationale\n- [ ] Analysis is company-specific, NOT generic\n\n#### Anti-patterns — DO NOT do this:\n- DO NOT write one-line descriptions for elements (e.g. \"Purpose: To provide services\")\n- DO NOT skip coherence checks on intersection elements\n- DO NOT give generic recommendations that fit any company\n- DO NOT leave tables empty or single-row\n- 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)\n\n---\n\n### Phase 3: Facet TXT Files\n\n**Generate the four TXT files from the model — do not write them by hand:**\n\n```bash\npython3 skills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Fedgy_model_to_txt.py \u003Ccompany>-edgy-model.json --prefix \u003Ccompany>\n# when any facet has more than ~8 elements, or the all-facets map is unreadable:\npython3 skills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Fedgy_model_to_txt.py \u003Ccompany>-edgy-model.json --prefix \u003Ccompany> --layout triad\n```\n\nThis derives elements (`\"Name - Description\" [tags] {id: …}`) and the active\ncore links from `edgy-model.json`, so the diagrams can never disagree with\nthe analysis (an earlier review found reports with five capabilities and\ndiagrams with four). Edit the model, regenerate; never patch a TXT. The\nformat below documents what the script produces, and is the fallback when\nPython is unavailable.\n\n**From the model to a transition map and to ArchiMate** (optional, when the\nassessment compares two states or hands the model to an architecture team):\n\n```bash\n# current vs target model → transition map input (overlay tags) and a change table\npython3 skills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Fedgy_model_diff.py current-model.json target-model.json \\\n    --facet architecture --layout triad --out \u003Ccompany>-transition.txt --report \u003Ccompany>-changes.md\n# the model as ArchiMate 3.1 Open Exchange XML (one view per facet map) for Archi and other tools\npython3 skills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Fedgy_model_to_archimate.py \u003Ccompany>-edgy-model.json -o \u003Ccompany>.archimate.xml\n```\n\nThe diff matches elements by id, then name, then a similar name (renamed),\nand tags them `keep`, `change`, `new` or `remove`. A similar-name match can\npair two different short names (\"Ticket sales\" \u002F \"Ticket rules\"): check every\n`renamed from …` row of the change table, and give elements an `id` in both\nmodels to avoid it; core links are compared\nper type pair. With model format 1.9 the diff also compares asset attributes\nand `relationships[]`, and the transition TXT (default layout) draws only what\nchanges — changed elements, changed relationships and their endpoints, routed —\nso it stays readable for a model with dozens of relationships; `--full` draws\neverything; the change table always lists everything. `replace` and `decide` are judgements: set them by hand in\nthe transition TXT, never let the tool imply them. The ArchiMate export is\none-way — the EDGY model stays the source — and keeps the EDGY type of every\nelement in the property `edgy:type` (mapping table in the script's header\nand in edgy-diagram `references\u002Fexport.md`). Example pair:\n`examples\u002Fmodel-diff\u002F` (fictional).\n\n**Layout block.** An optional `layout` object in the model (`legend`,\n`card_width`, `equal_cards`, `group_columns`, `cards_per_row`,\n`equal_group_width`, `align_groups`, `title`, `footnote`) is written as\ndocument keys into every TXT, so the four files share one legend placement,\ncard sizing and grid — `edgy_lint.py --series` (Phase 4) then reports\nnothing. Set `language` in the model: the verbs and the legend render in\nthat language (W116 otherwise).\n\n**Primary element.** A core link between two element *types* is drawn once,\nbetween the primary element of each type: the one with `\"primary\": true` in\nthe model, otherwise the first of its type. Set the flag in the model when\nthe first element is not the one the story is about. `--layout triad` writes\n`map_type: triad` into every TXT: the planned ring (edgy-diagram, EDGY\nextension) with one primary per type and \"Further \u003Ctype>\" panels for the\nrest; links into a panel are reported on stderr, never drawn silently, and\nthe report's tables carry them.\n\nProduce 4 text files in edgy-diagram skill input format:\n\n1. **`\u003Ccompany>-identity.txt`** — Identity facet elements and relationships\n2. **`\u003Ccompany>-architecture.txt`** — Architecture facet elements and relationships\n3. **`\u003Ccompany>-experience.txt`** — Experience facet elements and relationships\n4. **`\u003Ccompany>-all-facets.txt`** — All elements and relationships\n\n#### TXT file format:\n\nUse the core link verb matching the `language` parameter (see edgy-framework core links table).\n\n```\nfacet: identity\n\nelements:\n  - purpose: \"Element name - Detailed description\" [tags]\n  - story: \"Element name - Detailed description\" [tags]\n  - content: \"Element name - Detailed description\" [tags]\n  - brand: \"Brand name - Description\" [tags]\n  - organisation: \"Organisation name - Description\" [tags]\n\nrelationships:\n  - \"story\" -> \"purpose\": \"contextualises\"\n  - \"content\" -> \"purpose\": \"expresses\"\n  - \"content\" -> \"story\": \"conveys\"\n  - \"brand\" -> \"story\": \"evokes\"\n  - \"brand\" -> \"purpose\": \"represents\"\n  - \"organisation\" -> \"purpose\": \"pursues\"\n  - \"organisation\" -> \"story\": \"authors\"\n  - \"organisation\" -> \"brand\": \"builds\"\n```\n\n**Minimum requirement per file:**\n- Identity: min 3 core elements + 2 intersection elements + 5 relationships\n- Architecture: min 7 elements (3 capability + 2 asset + 2 process) + 2 intersection elements + 5 relationships\n- Experience: min 6 elements (3 task + 2 channel + 1 journey) + 2 intersection elements + 5 relationships\n- All-facets: all facet elements combined + min 15 relationships\n\n---\n\n### Phase 4: Drawio Diagrams (4 pcs)\n\nGenerate a drawio diagram for each TXT file **with the edgy-diagram generator** and lint the result:\n\n```bash\nG=${EDGY_DIAGRAM_SCRIPTS:-skills\u002Fdocumentation\u002Fedgy-diagram\u002Fscripts}   # installed skills: ~\u002F.claude\u002Fskills\u002Fedgy-diagram\u002Fscripts\npython3 $G\u002Fedgy_generator.py \u003Ccompany>-identity.txt --output \u003Ccompany>-identity.drawio --preview --preset publication\npython3 $G\u002Fedgy_lint.py \u003Ccompany>-identity.drawio      # 0 errors required\n# --preview wrote \u003Ccompany>-identity.svg (+ .png when Chromium is available) and \u003Ccompany>-identity.qa.json:\n# open the image and check the preview checklist (edgy-diagram SKILL.md, \"Preview loop\") before moving on\n# series check across the four files of this delivery (legend placement, margins, card widths, fonts):\npython3 $G\u002Fedgy_lint.py --series \u003Ccompany>-identity.drawio \u003Ccompany>-architecture.drawio \u003Ccompany>-experience.drawio \u003Ccompany>-all-facets.drawio\n```\n\n`--preset publication` (native preset: 24 px margin, strip legend, W115 at a\n160 mm column, `title:` \u002F `footnote:` bands from the model's layout block) is\nthe image for the report; `--preset presentation` for slides. The\n`qa.json` written next to each `.drawio` carries the counts, the lint, the\nvisual \u002F layout \u002F language checks and the preview size; its\n`visual_approval` and `semantic_approval` stay `null` until a person sets\nthem in Phase 5 (the semantic one after Phase 4b).\n\nRead every generator warning: a core-link verb on a wrong pair or a verb\noutside the vocabulary means the TXT file (and usually the analysis) is\nwrong — fix it there. Write drawio XML by hand only when Python cannot be\nexecuted, and lint the file as soon as it can. The XML specification below is\nthe reference for that fallback and for reviewing generated output.\n\n**Outputs:**\n1. `\u003Ccompany>-identity.drawio`\n2. `\u003Ccompany>-architecture.drawio`\n3. `\u003Ccompany>-experience.drawio`\n4. `\u003Ccompany>-all-facets.drawio`\n\n#### Diagram quality gate\n\nThe generator produces valid XML, shapes, palette, legend and layout; the\nspecification (XML structure, shapes, colours, legend) lives in the\nedgy-diagram skill (`references\u002Fxml-reference.md`) and is **not repeated\nhere**. Before moving on, every one of the four files must pass:\n\n- `edgy_lint.py` — 0 errors (structure, layout, notation, semantics)\n- `edgy_lint.py --visual` reports nothing: no edge passes through a box, no\n  edge label lies on a box or another label (W111–W114 = 0). If it does,\n  switch the TXT files to `--layout triad` or fix the model; never patch\n  the XML\n- preview looked at (`--preview` \u002F `edgy_render.py`) and the edgy-diagram\n  *Preview loop* checklist passed: every edge visibly starts and ends,\n  legend clear of content, **`all-facets` page height ≤ 1.2 × width**,\n  single-facet maps not taller than wide before any \"Further\" panels,\n  facet containers visually separated (Identity above or left of\n  Architecture and Experience), intersection elements between the facets\n  they bridge\n- relationships use only the active core links from the model (a core-link\n  verb on a wrong pair is a model error — fix the model, regenerate)\n- `edgy_lint.py --series` over the four files reports no W121: one legend\n  placement, one content margin, one card width per type, one font size\n  across the delivery (set the model's `layout` block, never patch a file)\n\n#### Structural maps (recommended, optional)\n\nThe four relationship views are the overview. When the assessment answers\na question they cannot show, add a structural map **from the same model and\nwith the same ids** (one disconnected second model is worse than none):\n\n| Map | Question | How |\n|-----|----------|-----|\n| Purpose map | How do strategy and focus areas hang together? | `map_type: purpose`; mission \u002F vision as top purposes, focus areas as sub-purposes (`contains`), KPIs as Outcomes (`measures`) — see edgy-framework *Strategy → EDGY* |\n| 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 |\n| Journey map | Where does the experience break between stages? | `map_type: journey` for the lifecycle stages plus a hand-off \u002F failure table in the report — a stage chain alone carries little analytical depth |\n\nAdd a map only when it answers a useful question for this company; do not\ngenerate every map for every scope.\n\n#### Architecture views (optional, model format 1.9)\n\nWhen the scope includes the application landscape — applications, data,\nowners, processes — record them in the model as format **1.9** (asset\n`kind`, `relationships[]` between ids, see Phase 2) and draw the views from\nit; never type them a second time:\n\n```bash\npython3 skills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Fedgy_model_to_txt.py \u003Ccompany>-edgy-model.json \\\n    --prefix \u003Ccompany> --views all          # or: application,process-chain,process-swimlane,capability,capability-matrix,crud-matrix,trace\npython3 skills\u002Fdocumentation\u002Fedgy-diagram\u002Fscripts\u002Fedgy_generator.py \u003Ccompany>-views.txt \\\n    --output \u003Ccompany>-views.drawio --preview [--present \u003Ccompany>-presentation.html]\n```\n\n`\u003Ccompany>-views.txt` has a `draw: false` model page and one page per view:\nthe application map grouped by capability, the value chain, one swimlane per\nL1 process, one capability view per capability, and the capability ×\napplication and CRUD matrices (edgy-diagram `references\u002Farchitecture-views.md`).\nRead the generator's `Note:` lines and `qa.json` `model_gaps[]`: an empty\ncapability-view band is a **model gap** with an evidence status — report\n`not_investigated` \u002F `unknown` as open questions, `confirmed_absent` as a\nfinding, never the reverse. W124 (application without an owner) is a note;\nset `ownership: required` on the view page when ownership is in scope.\n\n**Realisation trace (opt-in, edgy-diagram 2.9.0).** `--views trace` adds the\ntrace pages: an index (journeys | organisations) and one page per element\nwith an id, from the journey down through tasks and channels, products,\ncapabilities, processes, assets and people to the organisations, and back\nup; every card links to its own page, and in the presenter the trace is one\nTrace card with drill-through. It is not part of `--views all`, because a\nlarge model gives many pages (`where:` narrows them on a hand-written page).\nIt needs the Experience links (format 1.10, *Migration 1.9 → 1.10* above):\nwhen you extract a 1.10 model, emit *serves*, *features in* and *offers*\ntogether with *is part of*, *traverses* and *uses*. An empty band below an\nelement is **W129** with the same evidence statuses as W127.\n`--present` writes one offline HTML of every view for a workshop; it carries\nthe model, so it stays in the engagement folder with the `.drawio`.\n\n#### Phase 4b — Semantic review (MANDATORY for the purpose map; run on every map)\n\nA purpose map that lints clean can still be wrong in meaning (actions as\nPurposes, proposed metrics shown as confirmed, influences drawn as\n`contains`). After the purpose map TXT is written (structural maps above)\nand before its diagram is generated:\n\n1. Tag every **Purpose** with its provenance — `[confirmed]` (public\n   source), `[analytical]` (your interpretation) or `[proposed]` (S004) —\n   and every **Outcome** with `{status: confirmed|proposed}` (S003). Other\n   element types may carry a tag; the review does not require it.\n   For the four facet files `edgy_model_to_txt.py` writes the tags from the\n   model's `provenance` fields; the purpose map is a structural map written\n   from the same model (Phase 4 table), so its Outcomes and their\n   `{status: …}` are written by the analyst — the model has no Outcome\n   type.\n2. Run the review and read every question:\n   ```bash\n   python3 skills\u002Fdocumentation\u002Fedgy-diagram\u002Fscripts\u002Fedgy_semantic_review.py \u003Ccompany>-purpose.txt\n   ```\n   S001 action as a Purpose, S002 Outcome measures nothing, S003 \u002F S004\n   missing provenance, S005 `contains` that may be an influence, S006 metric\n   in a Purpose name. Fix the **model**, regenerate.\n   Run it on the facet and structural map inputs too (one command, every\n   TXT file): S007–S009 ask about capabilities named after systems or units,\n   phrased as verbs or shaped like projects, S010 about tasks in the\n   organisation's voice, S011 \u002F S012 about outcomes that are actions or carry\n   no measure (edgy-framework *Formulating tasks, outcomes and the Experience\n   facet*). The generator's `--qa` manifest records the rule set\n   (`semantic_review.rule_set`).\n   ```bash\n   python3 skills\u002Fdocumentation\u002Fedgy-diagram\u002Fscripts\u002Fedgy_semantic_review.py \u003Ccompany>-*.txt\n   ```\n3. Walk the checklist in edgy-framework *Purpose map semantic review* and\n   write the sign-off line into the report (section 9) and the delivery\n   note: `Semantic review: approved by \u003Crole>, \u003Cdate> — S-findings answered: \u003Cn>`\n   — in the report's language; the template of each language (section 9)\n   carries the equivalent line. The tool never approves; a person does.\n   Zero findings is not a sign-off.\n\nIf Python is unavailable and the XML must be written by hand, follow the\nedgy-diagram inline example and lint it in the next environment that has\nPython; the file must still contain more than the two structural cells, one\nvertex per element, one edge with geometry per relationship, a legend, and\nexceed 1000 bytes.\n\n---\n\n### Phase 5: Final Verification\n\nBefore completion, check ALL:\n\n#### Files (10 pcs):\n- [ ] `\u003Ccompany>-edgy-analysis.md` — analysis, min 150 lines, all 10 sections\n- [ ] `\u003Ccompany>-edgy-model.json` — machine-readable EDGY model with suggested deep-dives\n- [ ] `\u003Ccompany>-identity.txt` — Identity facet input\n- [ ] `\u003Ccompany>-architecture.txt` — Architecture facet input\n- [ ] `\u003Ccompany>-experience.txt` — Experience facet input\n- [ ] `\u003Ccompany>-all-facets.txt` — All facets input\n- [ ] `\u003Ccompany>-identity.drawio` — Identity diagram, >1000 bytes\n- [ ] `\u003Ccompany>-architecture.drawio` — Architecture diagram, >1000 bytes\n- [ ] `\u003Ccompany>-experience.drawio` — Experience diagram, >1000 bytes\n- [ ] `\u003Ccompany>-all-facets.drawio` — All-facets diagram, >1000 bytes\n\n#### Quality:\n- [ ] Analysis is company-specific, not generic\n- [ ] All 9 analysis sections are filled\n- [ ] Diagrams contain elements and relationships (are not empty)\n- [ ] Colour palette follows EDGY 23 standard\n- [ ] Relationships use official 24 core links\n- [ ] Output language matches `language` parameter\n\n#### Approvals (`qa.json`, one per diagram):\n- [ ] `python3 $G\u002Fedgy_qa.py --require-approvals \u003Ccompany>-*.qa.json` exits 0 — it lists the lint result and\n      the two approvals on **separate lines**: zero lint findings is never an approval\n- [ ] `visual_approval` set by the person who looked at every preview, as `\"\u003Cname or role>, YYYY-MM-DD\"`\n- [ ] `semantic_approval` set by the person who answered the semantic review (Phase 4b) — for a delivery\n      with a purpose map, after every S-finding has an answer in the report\n- [ ] `delivery_notes` carries anything the reader must know (a layout option that was switched off, a\n      warning that was accepted and why)\n\n#### Layout quality:\n- [ ] `edgy_lint.py --warnings-as-errors --visual` passes for all four drawio files (0 errors, no W111–W114)\n- [ ] `edgy_lint.py --series` over the four files reports no W121; the layout rules W117–W120 report nothing or each finding is answered in `delivery_notes`\n- [ ] Every diagram was previewed (`--preview` \u002F `edgy_render.py`) and looked at; the preview checklist passed\n- [ ] No elements at negative coordinates in any drawio file\n- [ ] No overlapping elements in any drawio file (min 10px gap)\n- [ ] All element text fits within element boundaries (W101 = 0)\n- [ ] `all-facets` page height ≤ 1.2 × width; facet containers visually separated\n- [ ] **Final report pages looked at at the intended viewing size** — the SVG alone is not enough: check\n      captions, page breaks and footer clearance on the PDF page, and run `edgy_lint.py --scale \u003Creport scale>`\n      (no W115 = every title, description and relation label stays ≥ 6 pt). Use `--publication` for the\n      embedded image so a sparse map is not shrunk by empty canvas\n\n---\n\n## Reference\n\nSee the `examples\u002F` directory for completed assessment examples:\n- `reference-analysis.md` (Finnish, lyhyt rakenne-esimerkki)\n- `reference-analysis-en.md` (English)\n- `intersection-edgy-analysis.md` + `intersection-edgy-analysis.pdf` —\n  **täysimittainen referenssi-PDF**, joka osoittaa millaista raporttia\n  käyttäjälle tulee tuottaa kun hän pyytää PDF-muotoista EDGY-analyysiä\n  (kansilehti, sisällysluettelo, 12 elementin analyysi facet-kohtaisesti,\n  intersection-elementit, suositukset, riskit, seuraavat askeleet).\n\n**Reference caveat:** the intersection example is the **visual layout\nreference** — colours, badges, legend, meta-table, footer. Its meta-table\n\"Method\" row (line 54) still reads \"EDGY 23 Enterprise Design in a Box\nframework\" — that wording is **legacy** and is preserved unchanged only\nbecause it is a shipped customer deliverable. New analyses MUST use\n`METHOD_LABEL = \"EDGY 23 Enterprise Design\"` (no \"in a Box\"); do not copy\nthe meta-table row verbatim from this reference.\n\nUse these as quality and structure benchmarks.\n\n## PDF Report Generation\n\nWhen the user requests a PDF report (`pdf`, `raportti`, `report`, `--pdf`),\nthe visual layout is **locked** by the shared preamble — only the\nanalysis content changes per customer.\n\n1. **Analysis markdown is already prepared** by Phase 2 + Phase 2a. The\n   file contains the canonical `pdf_options:` frontmatter, `\u003Cstyle>`\n   block, meta-table, legend and badge-shape row. If it does not, return\n   to Phase 2a — do not proceed.\n\n2. **Generate the four facet diagrams** with the `edgy-diagram` skill\n   (`identity`, `architecture`, `experience`, `all`) as PNG so they can be\n   embedded into the PDF. Engine order: draw.io CLI (`--preset presentation`,\n   publication quality) when installed → `--engine plantuml` when Java and\n   PlantUML are available → `--engine native` (pure Python SVG + headless\n   Chromium PNG; approximate but always available). Never stop the pipeline\n   because the draw.io CLI is missing.\n\n3. **Canonical PDF conversion (only supported route):**\n   ```bash\n   md-to-pdf \"\u003Ccompany>-edgy-analysis.md\" \\\n     --launch-options '{\"args\":[\"--no-sandbox\"]}'\n   ```\n   Requires `md-to-pdf >= 5.x` (Chromium-headless with clip-path +\n   Flexbox support). Do NOT use `pandoc` or `weasyprint`: their\n   rendering of clip-path\u002FFlexbox does not match the\n   intersection-edgy reference layout.\n\n4. **Pre-conversion quality gate** (must all pass — same as Phase 2a):\n   ```bash\n   F=\"\u003Ccompany>-edgy-analysis.md\"\n   grep -q \"^pdf_options:\"      \"$F\"\n   grep -q \"\u003Cstyle>\"            \"$F\"\n   grep -q \"\\.edgy-badge\"       \"$F\"\n   grep -q 'class=\"legend\"'     \"$F\"\n   grep -q 'class=\"meta-table\"' \"$F\"\n   ! grep -q \"{{\"               \"$F\"\n   ```\n\n5. **Result must match** the reference layout\n   `examples\u002Fintersection-edgy-analysis.pdf`: same margins, footer with\n   company name and page number, identical CSS-rendered badges and\n   coherence indicators, identical legend. Page count may differ by\n   ±2 pages for similarly sized content; layout must be visually\n   identical.\n\n## Dependencies\n\n- `edgy-framework` skill (for producing the analysis)\n- `edgy-diagram` skill (for generating diagrams, colour palette and XML specification)\n",{"name":5,"tags":24,"agents":35,"inputs":40,"outputs":58,"version":62,"category":27,"languages":63,"description":64},[25,26,27,28,29,30,31,32,33,34],"edgy","enterprise-design","architecture","analysis","assessment","diagram","fi","en","fr","de",[36,37,38,39],"claude-code","cursor","vibe","generic",[41,48,52,55],{"name":42,"type":43,"values":44,"default":45,"description":47},"mode","enum",[45,46],"assess","extract-model","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":49,"type":50,"description":51},"target","text","Company or organisation to assess (name and brief description)",{"name":53,"type":50,"required":20,"description":54},"sources","Information sources (URLs, documents, materials). If not provided, use public sources.",{"name":56,"type":43,"values":57,"default":31},"language",[31,32,33,34],[59],{"type":60,"description":61},"directory","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.","1.11.0",[31,32,33,34],"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\u002Fpdf-preamble.md) while keeping analysis content adaptive per customer.\n","main","511bd269dc3dabd710d5897c5df7681d818a3625","skills\u002Farchitecture\u002Fedgy-assessment",0,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills","https:\u002F\u002Fgithub.com\u002FRahola","2026-10-19 17:50:29",{"source":8,"skillName":5,"commands":73,"prompt":83,"zipAvailable":84},[74,77,80],{"tool":75,"command":76},"npx","npx skills add Rahola\u002Fedgy-skills --skill edgy-assessment",{"tool":78,"command":79},"bunx","bunx skills add Rahola\u002Fedgy-skills --skill edgy-assessment",{"tool":81,"command":82},"pnpm","pnpm dlx skills add Rahola\u002Fedgy-skills --skill edgy-assessment","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002FSKILL.md",true,[86,92,96,102,108,112,116,120,124,128,132,136,140,144,150,154,158,162,166,170,174,178,182,186,190],{"path":87,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"assets\u002Fedgy-model.schema.json","ASSET","资产文件",12150,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fassets\u002Fedgy-model.schema.json",{"path":93,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":94,"sourceHtmlUrl":95},"assets\u002Fpdf-preamble.md",4936,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fassets\u002Fpdf-preamble.md",{"path":97,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":100,"sourceHtmlUrl":101},"examples\u002Facme-identity.drawio","OTHER","其他",13445,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fexamples\u002Facme-identity.drawio",{"path":103,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":106,"sourceHtmlUrl":107},"examples\u002Facme-identity.txt","REFERENCE","参考文档",1232,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fexamples\u002Facme-identity.txt",{"path":109,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":110,"sourceHtmlUrl":111},"examples\u002Farchitecture-model.json",11785,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fexamples\u002Farchitecture-model.json",{"path":113,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":114,"sourceHtmlUrl":115},"examples\u002Fintersection-edgy-analysis.md",32272,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fexamples\u002Fintersection-edgy-analysis.md",{"path":117,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":118,"sourceHtmlUrl":119},"examples\u002Fintersection-edgy-analysis.pdf",263730,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fexamples\u002Fintersection-edgy-analysis.pdf",{"path":121,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":122,"sourceHtmlUrl":123},"examples\u002Fmodel-diff\u002Fchanges.md",987,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fexamples\u002Fmodel-diff\u002Fchanges.md",{"path":125,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":126,"sourceHtmlUrl":127},"examples\u002Fmodel-diff\u002Fcurrent-model.json",2854,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fexamples\u002Fmodel-diff\u002Fcurrent-model.json",{"path":129,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":130,"sourceHtmlUrl":131},"examples\u002Fmodel-diff\u002Ftarget-model.json",3206,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fexamples\u002Fmodel-diff\u002Ftarget-model.json",{"path":133,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":134,"sourceHtmlUrl":135},"examples\u002Fmodel-diff\u002Ftransition.txt",1538,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fexamples\u002Fmodel-diff\u002Ftransition.txt",{"path":137,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":138,"sourceHtmlUrl":139},"examples\u002Freference-analysis-en.md",8972,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fexamples\u002Freference-analysis-en.md",{"path":141,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":142,"sourceHtmlUrl":143},"examples\u002Freference-analysis.md",9160,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fexamples\u002Freference-analysis.md",{"path":145,"resourceType":146,"resourceTypeDesc":147,"sizeBytes":148,"sourceHtmlUrl":149},"scripts\u002Fedgy_model_diff.py","SCRIPT","脚本",19672,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Fedgy_model_diff.py",{"path":151,"resourceType":146,"resourceTypeDesc":147,"sizeBytes":152,"sourceHtmlUrl":153},"scripts\u002Fedgy_model_to_archimate.py",15178,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Fedgy_model_to_archimate.py",{"path":155,"resourceType":146,"resourceTypeDesc":147,"sizeBytes":156,"sourceHtmlUrl":157},"scripts\u002Fedgy_model_to_txt.py",18522,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Fedgy_model_to_txt.py",{"path":159,"resourceType":146,"resourceTypeDesc":147,"sizeBytes":160,"sourceHtmlUrl":161},"scripts\u002Fedgy_paths.py",1861,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Fedgy_paths.py",{"path":163,"resourceType":146,"resourceTypeDesc":147,"sizeBytes":164,"sourceHtmlUrl":165},"scripts\u002Ftest_model_diff.py",12915,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Ftest_model_diff.py",{"path":167,"resourceType":146,"resourceTypeDesc":147,"sizeBytes":168,"sourceHtmlUrl":169},"scripts\u002Ftest_model_to_archimate.py",5975,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Ftest_model_to_archimate.py",{"path":171,"resourceType":146,"resourceTypeDesc":147,"sizeBytes":172,"sourceHtmlUrl":173},"scripts\u002Ftest_model_to_txt.py",10816,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Ftest_model_to_txt.py",{"path":175,"resourceType":146,"resourceTypeDesc":147,"sizeBytes":176,"sourceHtmlUrl":177},"scripts\u002Fvalidate_edgy_model.py",12305,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Fscripts\u002Fvalidate_edgy_model.py",{"path":179,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":180,"sourceHtmlUrl":181},"templates\u002Fanalysis-template-de.md",8270,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Ftemplates\u002Fanalysis-template-de.md",{"path":183,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":184,"sourceHtmlUrl":185},"templates\u002Fanalysis-template-en.md",7612,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Ftemplates\u002Fanalysis-template-en.md",{"path":187,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":188,"sourceHtmlUrl":189},"templates\u002Fanalysis-template-fr.md",8678,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Ftemplates\u002Fanalysis-template-fr.md",{"path":191,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":192,"sourceHtmlUrl":193},"templates\u002Fanalysis-template.md",8013,"https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Fskills\u002Farchitecture\u002Fedgy-assessment\u002Ftemplates\u002Fanalysis-template.md",[195,201,207,213,219,225],{"skillNo":196,"name":197,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":198,"categories":199,"keywords":200,"publishedAt":19},"01M784QCQ9RS33B79PPE4BTGRQ","fx-z","https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Ftools\u002Ffixtures\u002Fskills\u002Ffx-z\u002FSKILL.md",[],[],{"skillNo":202,"name":203,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":204,"categories":205,"keywords":206,"publishedAt":19},"01M784QA58YX5YDAFM3ZX5TEQQ","fx-y","https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Ftools\u002Ffixtures\u002Fskills\u002Ffx-y\u002FSKILL.md",[],[],{"skillNo":208,"name":209,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":210,"categories":211,"keywords":212,"publishedAt":19},"01M784Q7B642A6WFJ0X5FBM1EK","fx-x","https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Ftools\u002Ffixtures\u002Fskills\u002Ffx-x\u002FSKILL.md",[],[],{"skillNo":214,"name":215,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":216,"categories":217,"keywords":218,"publishedAt":19},"01M784Q4AQVCVDAWQPAN1M1VCG","fx-w","https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Ftools\u002Ffixtures\u002Fskills\u002Ffx-w\u002FSKILL.md",[],[],{"skillNo":220,"name":221,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":222,"categories":223,"keywords":224,"publishedAt":19},"01M784Q239PJGYYCGN0X3AQW1Q","fx-top","https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Ftools\u002Ffixtures\u002Fskills\u002Ffx-top\u002FSKILL.md",[],[],{"skillNo":226,"name":227,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":228,"categories":229,"keywords":230,"publishedAt":19},"01M784PZD95CXDA4T4PRRFR1BY","fx-plugin","https:\u002F\u002Fgithub.com\u002FRahola\u002Fedgy-skills\u002Fblob\u002Fmain\u002Ftools\u002Ffixtures\u002Fskills\u002Ffx-plugin\u002FSKILL.md",[],[]]