kans-vitepress-documentation
Scaffoldt of her-aligneert een VitePress sub-site voor een solution binnen de kans-uitwerken-hub. Mode met wireframe-embed of zonder. Idempotent — theme/config-bestanden worden her-aligneert naar het huidige patroon; solution-content (01-probleem/, ... 05-gtm/) wordt nooit aangeraakt. Wired ook automatisch het hub-niveau (srcExclude, nav-dropdown, SUB_SITES-set, landing features).
What this skill does
# Kans VitePress Documentation
Je scaffoldt of her-aligneert een VitePress sub-site voor een solution volgens het standaard-patroon van de kans-uitwerken-hub. Je output zijn bestanden op disk (sub-site + hub-wiring), geen prose.
## Positioning
Deze skill is de verplichte laatste stap van `kans-uitwerken`, ongeacht bij welk spoor de pipeline eindigt. Kan ook standalone worden aangeroepen om:
- een nieuwe sub-site op te zetten voor een bestaande `solutions/<slug>/`-map
- een bestaande sub-site te her-aligneren met het huidige patroon (idempotent)
Niet van toepassing op:
- solutions die binnen de hub worden gerenderd (geen eigen `.vitepress/`). Dat pad scaffoldt deze skill niet.
- solution-content zelf (01-probleem/, 02-markt/, 03-mvp/, 04-prototype/, 05-gtm/). Die blijft onaangeraakt.
## Kerncontext
- **Hub-project**: wordt vooraf gedetecteerd via een zoektocht naar `/.vitepress/config.mts` met `srcExclude` dat `solutions/`-paden bevat.
- **Workspaces**: de hub's `package.json` MOET `solutions/*` én (indien mode = with-wireframe) `solutions/*/04-prototype/wireframe-app` als workspaces hebben. Deze skill controleert dat maar past het niet aan (hub-eigenaar-verantwoordelijkheid).
- **Taal**: Nederlandse output + copy.
- **Fail-fast**: bij ontbrekende hub-structuur stop met `Cannot proceed`.
## Input-handling
Accepteer één van:
1. **Volledige argumenten**: `<slug> --title "…" --tagline "…" --mode with-wireframe`
2. **Alleen slug**: `<slug>` — zoek in `solutions/<slug>/README.md` + `index.md` naar bestaande `TITLE` en `TAGLINE`; vraag ontbrekende waarden via interview
3. **Geen argument**: interview-modus — vraag slug, titel, tagline, mode, opportunity-ref
**Mode-detectie** (als niet opgegeven):
- Bestaat `solutions/<slug>/04-prototype/wireframe-app/package.json`? → `with-wireframe`
- Anders → `without-wireframe`
**Brand-color** (optioneel):
- Verplicht NIET aanwezig → fallback naar neutrale palette (grijs-blauw, zie Kleur-defaults)
- Accepteert één hex (bv. `#4a6fa5`) → genereer 5-stops palette (50/100/500/600/700) door HSL-shifting
- Accepteert benoemde kleur: `blue`, `green`, `purple`, `amber`, `teal`, `rose`, `slate` → gebruik vooringestelde palette
### Kleur-defaults
| Naam | 50 | 100 | 500 | 600 | 700 | Comment |
|---|---|---|---|---|---|---|
| neutral (default) | `#edf2f9` | `#d6e0ee` | `#4a6fa5` | `#3a5e94` | `#2c4b7a` | grijs-blauw |
| blue | `#eff6ff` | `#dbeafe` | `#3b82f6` | `#2563eb` | `#1d4ed8` | helder blauw |
| green | `#ecfdf5` | `#d1fae5` | `#10b981` | `#059669` | `#047857` | teal-groen |
| purple | `#faf5ff` | `#f3e8ff` | `#a855f7` | `#9333ea` | `#7e22ce` | violet |
| amber | `#fffbeb` | `#fef3c7` | `#f59e0b` | `#d97706` | `#b45309` | warm amber |
| teal | `#f0fdfa` | `#ccfbf1` | `#14b8a6` | `#0d9488` | `#0f766e` | koel teal |
| rose | `#fff1f2` | `#ffe4e6` | `#f43f5e` | `#e11d48` | `#be123c` | zacht rood |
| slate | `#f8fafc` | `#f1f5f9` | `#64748b` | `#475569` | `#334155` | leisteen |
## Fase 0 — Hub-detectie
1. Start vanuit CWD; zoek `/.vitepress/config.mts` of parent-dirs tot root.
2. Valideer:
- `/.vitepress/config.mts` bestaat en bevat `srcExclude` (Array)
- `/.vitepress/theme/index.ts` bestaat en bevat `const SUB_SITES = new Set([...])`
- `/package.json` bestaat met `"workspaces": ["solutions/*", "solutions/*/04-prototype/wireframe-app"]` (of superset)
- `/index.md` bestaat met `features:` frontmatter-sectie
3. Bij ontbrekende structuur: stop met:
```
## Cannot proceed
**Reason**: hub-project niet gevonden of niet correct geconfigureerd.
**Missing**: [specifiek bestand + regel]
**Action**: run deze skill vanuit een kans-uitwerken-hub, of stel de ontbrekende structuur eerst op.
```
## Fase 1 — Slug-validatie
1. Vereist patroon: `^[a-z][a-z0-9-]{2,40}$` (lowercase, cijfers, koppelteken; geen underscores/spaties)
2. Controleer `solutions/<slug>/` bestaat; zo niet, stop:
```
## Cannot proceed
**Reason**: `solutions/<slug>/` bestaat niet.
**Action**: maak eerst de solution-map via kans-uitwerken.
```
3. Bij her-alignement (sub-site bestond al): lees bestaande titel/tagline uit `solutions/<slug>/index.md` of `README.md` voor verdere invulling.
## Fase 2 — Mode-bepaling
1. **Expliciet opgegeven** (`--mode …`): gebruik die.
2. **Afgeleid** via `04-prototype/wireframe-app/package.json`:
- Aanwezig → `with-wireframe`
- Afwezig → `without-wireframe`
3. Log de keuze expliciet in de output.
## Fase 3 — Sub-site scaffold / re-align
Bepaal per bestand: `create` (nieuw) of `update` (bestaand, diff-check).
### Te schrijven bestanden
Relatief aan `solutions/<slug>/`:
| Pad | Template | Always-overwrite |
|---|---|---|
| `.vitepress/config.mts` | `config.mts.template` | Ja (her-aligneert) |
| `.vitepress/theme/index.ts` | `theme-index.ts.template` | Ja |
| `.vitepress/theme/custom.css` | `theme-custom.css.template` | Ja |
| `.vitepress/theme/MainHeader.vue` | `MainHeader.vue` (literal copy) | Ja |
| `.vitepress/theme/AppearanceToggle.vue` | `AppearanceToggle.vue` (literal copy) | Ja |
| `package.json` | `package.json.{mode}.template` | Ja |
| `index.md` | `index.md.template` | **Nee** — alleen aanmaken als niet bestaat; anders skippen (behoudt eigenaar-aanpassingen) |
| `04-prototype/wireframe.md` | `wireframe.md.template` — alleen bij `with-wireframe` | Ja |
### Template-substitutie
Variabelen die in templates worden vervangen:
| Placeholder | Bron | Voorbeeld |
|---|---|---|
| `{{SLUG}}` | argument | `zangles-platform` |
| `{{TITLE}}` | argument of titelizerd-slug | `Zangles-Platform` |
| `{{TAGLINE}}` | argument of default | `Geïntegreerd online-zangles-platform voor docent + student` |
| `{{HERO_TEXT}}` | argument of default | `Alle zangles-tools in één` |
| `{{DESCRIPTION}}` | uit tagline | (gelijk aan tagline) |
| `{{DOMAIN}}` | argument of `[niet gespecificeerd]` | `Zang` |
| `{{MARKET}}` | argument of `[niet gespecificeerd]` | `Nederland` |
| `{{FOOTER_MESSAGE}}` | auto-genereerd | `<title> — solution-exploratie (<slug>)` |
| `{{OPPORTUNITY_LINK}}` | `--opportunity` of `#` | `../../opportunities/zangles-platform-2026-04-22/` |
| `{{BRAND_50}}` ... `{{BRAND_700}}` | uit kleur-keuze | zie tabel |
| `{{COLOR_NAME_COMMENT}}` | naam of hex | `blue (helder blauw)` |
| `{{WIREFRAME_SRC_EXCLUDE}}` | bij `with-wireframe`: `,\n '04-prototype/wireframe-app/**'`; anders: lege string | — |
| `{{WIREFRAME_SIDEBAR_ITEM}}` | bij `with-wireframe`: `,\n { text: '🎨 Wireframe (live)', link: '/04-prototype/wireframe' }`; anders: lege string | — |
| `{{HERO_WIREFRAME_ACTION}}` | bij `with-wireframe`: extra action-block; anders: lege string | — |
| `{{PROTOTYPE_DETAILS}}` | bij `with-wireframe`: verwijst naar live wireframe; anders: spec-only-tekst | — |
### Idempotentie-protocol
Voor elk bestand dat "Always-overwrite: Ja":
1. **Bestaat het**? Lees huidige inhoud.
2. **Genereer target**-inhoud via template + substitutie.
3. **Diff**: als huidige inhoud ≠ target → toon `[update]` + korte samenvatting van het verschil (aantal regels gewijzigd), dan schrijf.
4. Als gelijk → log `[unchanged]`.
5. **Bestaat niet** → log `[create]` en schrijf.
Voor `index.md`: alleen schrijven als het bestand niet bestaat (`[create]` of `[skip — exists]`).
## Fase 4 — Hub-wiring
Pas 4 bestanden aan in het hub-root:
### 4.1 `/.vitepress/config.mts` — srcExclude
Zoek de `srcExclude: [...]`-array. Check of `'solutions/<slug>/**'` al aanwezig is.
- Aanwezig → log `[unchanged]`
- Afwezig → voeg alfabetisch gesorteerd toe binnen het `solutions/*`-blok en log `[added]`
### 4.2 `/.vitepress/config.mts` — nav 'Uitgewerkt'-dropdown
Zoek `{ text: 'Uitgewerkt', items: [ … ] }` (of vergelijkbaar; afhankelijk van hub-versie). Check of een entry met `link: '/solutions/<slug>/'` bestaat.
- Aanwezig → log `[unchanged]`
- Afwezig → voeg toe onderin de items-lijst (met `rel: 'external'`), log `[added]`
Als geen 'Uitgewerkt'-dropdown bestaat: voeg er één toe.
### 4.3 `/.vitepress/theme/index.ts` Related in Ads & Marketing
ads
IncludedMulti-platform paid advertising audit and optimization skill. Analyzes Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, and Apple Ads. 250+ checks with scoring, parallel agents, industry templates, and AI creative generation.
banana
IncludedAI image generation Creative Director powered by Google Gemini Nano Banana models. Use this skill for ANY request involving image creation, editing, visual asset production, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, visual for my anything, and all /banana commands. Handles text-to-image, image editing, multi-turn creative sessions, batch workflows, and brand presets.
rpg-migration-analyzer
IncludedAnalyzes legacy RPG (Report Program Generator) programs from AS/400 and IBM i systems for migration to modern Java applications. Extracts business logic from RPG III/IV/ILE source code, identifies data structures (D-specs), file operations (F-specs), program dependencies (CALLB/CALLP), and converts RPG constructs to Java equivalents. Generates migration reports, complexity estimates, and Java implementation strategies with POJO classes, JPA entities, and service methods. Use when modernizing AS/400 or IBM i legacy systems, analyzing RPG source files (.rpg, .rpgle, .RPGLE), converting RPG to Java, mapping data specifications to Java classes, planning legacy system migration, or when user mentions RPG analysis, Report Program Generator, RPG III/IV/ILE, AS/400 modernization, IBM i migration, packed decimal conversion, or mainframe application rewrite.
brand-library-architect
IncludedBuild a complete brand library for a product — visual asset render pipeline, brand documentation set (BRAND, COPY, MANIFESTO, BIOS, FAQ, GLOSSARY, TONE, PRICING), open-source convention files (README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT), and a self-contained press kit. This skill should be used when the user asks to "build a brand library / brand kit / press kit / brand assets" for a product, "set up a brand library workflow," "create a positioning manifesto plus visual identity," or any combination of brand documentation + visual asset pipeline. Apply phase-by-phase or run end-to-end. Templates are product-agnostic and use {{TOKEN}} placeholders the skill prompts the user to fill.
writing-tech-post
IncludedAuthors engineering blog posts end-to-end: launch deep-dives, incident postmortems, architecture migrations, performance case studies, tutorials, AI/agent system writeups, security disclosures, and research-to-product translations. Picks the correct archetype, plans the abstraction ladder, enforces an evidence cadence (diagrams, benchmarks, profiles, traces, code, ablations), tunes voice against publisher house styles (Datadog, Vercel, GitHub, AWS, Meta, Cloudflare, Jane Street), and runs a pre-publish gate for narrative momentum and disclosure ethics. Use when drafting a new engineering post, restructuring a draft that feels flat, deciding which evidence form belongs where, validating that depth and product context are balanced, or preparing a postmortem, migration, or performance narrative for external publication. Do not use for API reference documentation, README authoring, marketing copy, release notes, generic SEO content, ghost-written executive thought leadership, or non-engineering long-form essays.
blog-google
IncludedGoogle API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity analysis for E-E-A-T, YouTube video search for embedding, and Google Ads Keyword Planner. Progressive feature availability based on credential tier (API key, OAuth/service account, GA4, Ads). Shares config with claude-seo at ~/.config/claude-seo/google-api.json. Use when user says "google data", "page speed", "core web vitals", "search console", "indexation", "GA4", "keyword research", "nlp entities", "blog performance", "youtube search", "google api setup".