learn-drawio-stylelisted
Install: claude install-skill mouadja02/arkitect
# Learn from a new architecture example
Folds user-designated `.drawio` files into the style knowledge behind the
`arkitect-drawio` skill. It only ever runs when the user asks for it — never
learn from a diagram just because you happened to read one.
Plugin root: `${CLAUDE_PLUGIN_ROOT}`. Work from
`${CLAUDE_PLUGIN_ROOT}/skills/arkitect-drawio`.
## Rules
- **Read-only.** Never modify, rename, move or reformat an example. Record its SHA-256
before and after and confirm they match.
- **Explicit designation only.** The user names the files. Do not scan directories for
candidates.
- **Nothing confidential enters the repository.** Labels, file names, paths, hostnames,
URLs and business strings stay out. `build-knowledge.mjs` enforces this — it emits
structural statistics, style tokens and digests only.
- **Preserve prior knowledge.** Use `--merge` so the record keeps its version history
instead of being replaced.
## Steps
1. Confirm each path exists and record hashes:
```bash
sha256sum "<example.drawio>"
```
2. Summarize it without pulling XML into context, and sanity-check the page inventory:
```bash
node scripts/analyze-drawio.mjs "<example.drawio>" --out /tmp/new-example.json
```
3. Look at it. Render and inspect the image before drawing conclusions about layout:
```powershell
./scripts/render-drawio.ps1 -Path "<example.drawio>" -All -OutDir .analysis/renders
```
4. Add it to the local source list (`.analysis/sources.local.json`, git