Skip to content
Back to skills

Ki Diagrams

ASecurity

Create, audit or refresh a repository's living Archify diagrams: committed sources and SVGs, the manifest, privacy, type choice and freshness. Use to keep diagrams that explain a system; use `ki-authoring` for prose and `ki-guides` for where a guide embeds a figure.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
ai-agentsgogit

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add knowledgeislands/ki-agent-backpack --skill ki-diagrams --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ki Diagrams?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ki Diagrams
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/knowledgeislands-ki-diagrams/badge)](https://www.skillsdirectory.com/skills/knowledgeislands-ki-diagrams)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ki-diagrams
ki-document-type: skill@2026-11-17T00:55:00Z
ki-kind: governance
ki-applicability: declaration-only
ki-guild: authoring
ki-depends-on: []
ki-shared-modules: [diagram-receipts, staged-diagram-receipts]
ki-shared-dependencies: [ki-skills:rubric]
description: >
  Create, audit or refresh a repository's living Archify diagrams: committed sources and SVGs, the
  manifest, privacy, type choice and freshness. Use to keep diagrams that explain a system; use
  `ki-authoring` for prose and `ki-guides` for where a guide embeds a figure.
compatibility: >
  Optional: the Archify Agent Skill (installed through Rig) to author or regenerate a diagram, and a
  system Google Chrome or Chromium (or `ARCHIFY_CHROME`) to export its SVG. AUDIT needs neither.
argument-hint: 'audit [dir] | conform [dir] | help | educate [dir] | refresh'
---

# Knowledge Islands Diagrams standard

You are applying the **Knowledge Islands Diagrams standard** - one consistent way to keep diagrams that explain a system: traced from the code, committed as a source and a self-contained SVG, listed in one manifest, refreshed when what they draw changes, and built in a marked working folder. Read [the Diagrams standard](references/standard-diagrams.md) before authoring, auditing or refreshing a set; [the rubric](references/rubric.md) publishes its checkable criteria, [exemplars](references/exemplars.md) point at a conforming set, and [sources](references/sources.md) records the tooling evidence.

## What this skill owns

1. **The diagram standard** - Archify as the tool, the committed forms under `docs/diagrams/`, the `diagrams.toml` manifest and its reader-facing `_index.md`, naming, and the privacy rules.
2. **The choice of diagram type and tool** - which of Archify's ten types answers a given question, the owner's tool preference order for each kind of diagram, and the sketch-in-Mermaid, beautify-in-Archify step.
3. **Regeneration and freshness** - how a diagram is rebuilt from its source and re-exported, and when it is stale.
4. **The SVG exporter** - [`scripts/export-svg.ts`](scripts/export-svg.ts) wraps Archify's own `export-svg` command for the `dual`, `light` and `dark` forms, writing them as Archify writes them, and refuses a result that is not an SVG or carries an external reference. It paints only the KI-theme and KI-night forms itself, `--form ki` and `--form ki-night`: static SVGs with no stylesheet, variables or embedded fonts, painted from vendored Knowledge Islands design tokens and drawn with KI glyphs, in the system Chrome, headless, over the same route Archify's browser gate uses, for design reports and plain previewers.
5. **The build command** - [`scripts/build-html.ts`](scripts/build-html.ts) finalizes every listed diagram's interactive HTML in one local command, copies it to `docs/diagrams/` with its receipt for a diagram with `commit_html = true`, and with `--svg` re-exports each SVG; `--check` verifies every committed viewer's receipt without rendering.
6. **The mechanical checker** - `ki repo audit --skill ki-diagrams` checks that the manifest and files agree, including committed HTML and its receipt only under `commit_html`, that each committed viewer's receipt matches its source and HTML, that no committed file carries a local path or file URL, that each SVG is self-contained, and, from read-only Git history, whether a traced path changed since a diagram was last checked. It runs on committed files alone, without Archify or a browser.

Archify itself, its schemas and its viewer stay upstream. Prose style stays with `ki-authoring`, and where a guide may embed a diagram stays with `ki-guides`.

## Operating modes

Carries the universal **AUDIT · CONFORM · EDUCATE · REFRESH**. Invoked as `help` / `-h` / `?`, it explains itself and stops - the generated HELP block (name, purpose, invocation, modes, off-ramps), taking no action. With no mode it does the same, then, in an interactive session only, offers the mode choice through the host's question tool, prompting for any `argument-hint` target the chosen mode shows.

### Mode EDUCATE

→ Read [references/mode-educate.md](references/mode-educate.md)

### Mode AUDIT

→ Read [references/mode-audit.md](references/mode-audit.md)

### Mode CONFORM

→ Read [references/mode-conform.md](references/mode-conform.md)

### Mode REFRESH

→ Read [references/mode-refresh.md](references/mode-refresh.md)

## Notes

- **No diagram set is mandatory** - a repository adopts the skill by declaring `[skills.ki-diagrams]` and keeps the diagrams that answer its readers' questions. EDUCATE recommends a starter set per repository shape.
- **Without Archify** - AUDIT still runs. EDUCATE, REFRESH and the exporter stop with the install instruction: add `[skill.archify]` (source `tt-a1i/archify`) to the Rig skills configuration and apply it.
- `ki` host owns findings, dry-run publication, reporting, and post-conform verification; judgment aspects are counted as unevaluated rather than emitted as synthetic mechanical findings.

Files in this skill

  • SKILL.md4.8 KB
  • assets/_index.md539 B
  • assets/diagrams.toml694 B
  • references/exemplars.md1.8 KB
  • references/mode-audit.md1.5 KB
  • references/mode-conform.md1.2 KB
  • references/mode-educate.md1.7 KB
  • references/mode-refresh.md1.7 KB
  • references/rubric.md8.4 KB
  • references/sources.md5.8 KB
  • references/standard-diagrams.md29.1 KB
  • scripts/build-html.test.ts7 KB
  • scripts/build-html.ts11.6 KB
  • scripts/export-svg.test.ts6.7 KB
  • scripts/export-svg.ts18.2 KB
  • scripts/internal/chrome.test.ts3.5 KB
  • scripts/internal/chrome.ts16 KB
  • scripts/internal/ki-design-glyphs.test.ts2.6 KB
  • scripts/internal/ki-design-glyphs.ts3.4 KB
  • scripts/internal/tessera-tokens.test.ts1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.