agentweaver: Skill for Claude Code

.github/skills/docs-diagram-iterate/SKILL.md

docs-diagram-iterate is a skill for Claude Code, Codex from sabbour/agentweaver. It costs 51 tokens per session (2,094 once invoked), scanned A, original, MIT.

A workflow for improving an existing Agentweaver documentation diagram by editing its draw.io source and reviewing repeated PNG renders. Draw.io is a tool for making editable diagrams.

In plain words
What is it for?
Use it to polish or correct an existing documentation diagram, check its arrows, and record the review passes.
Why use it?
It catches visual and structural problems while ensuring the editable source remains the source of truth rather than changing only an image.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is sabbour/agentweaver's own configuration. It tells Claude Code and Codex how to work on agentweaver itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentweaver configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/docs/inventory-diagrams.mjs --list --spec <name>.

Reuse

Borrowing it

Nothing to install: this file belongs to sabbour/agentweaver. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sabbour/agentweaver/dev/.github/skills/docs-diagram-iterate/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/sabbour/agentweaver

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docs-diagram-iterate

README.md
[![agentmods](https://agentmods.dev/badge/skills/sabbour/agentweaver/docs-diagram-iterate/github.svg)](https://agentmods.dev/skills/sabbour/agentweaver/docs-diagram-iterate)
Your own site
<a href="https://agentmods.dev/skills/sabbour/agentweaver/docs-diagram-iterate"><img src="https://agentmods.dev/badge/skills/sabbour/agentweaver/docs-diagram-iterate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docs-diagram-iterate

Your own site · 80×15
<a href="https://agentmods.dev/skills/sabbour/agentweaver/docs-diagram-iterate"><img src="https://agentmods.dev/badge/skills/sabbour/agentweaver/docs-diagram-iterate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,094 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.02094
Opus 5.5 $0.00020 $0.00838
Sonnet 5.5 $0.00010 $0.00419
Haiku 4.5 $0.00005 $0.00209

Measured 1mo ago against content hash efd0f7324243, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs-diagram-iterate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/check_xml_growth.py, scripts/validate_iteration_manifest.py, tests/test_check_xml_growth.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/docs-diagram-iterate/SKILL.md · 190 lines

How it starts

The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Iterate an Agentweaver documentation diagram

Treat the rendered PNG as the product and the uncompressed .drawio XML as its editable source. Never edit only the raster. Never claim to have inspected an image that you did not open.

Read references/review-checklist.md and use references/iteration-manifest.schema.json for the pass record.

Inventory and parallel-work protocol

Start by reading the diagram's entry from the area-sharded inventory:

node scripts/docs/inventory-diagrams.mjs --list --spec <name>

The entry fixes the stable source, editable draw.io, PNG, and hash paths and records the current retain, reuse, merge, remove, or redesign disposition. Claim the entry with --set <name> --owner <agent-id> before editing. Work only in the assigned area shard or explicitly disjoint diagram names, so independent docs-area agents do not contend on one inventory file.

Use repeated --spec selectors for a bounded batch. Use node scripts/docs/render-diagrams.mjs --area <area> --disposition redesign only for the area assigned to the current agent; never launch an unfiltered catalog render while parallel diagram work is active. Preserve every paths value in the inventory.

Hard repository boundary

Refine documentation artifacts only. Product surfaces are read-only references:

  • do not edit coordinator or cluster topology, workflow editor/viewer, product routing helpers, runtime APIs, or other shipped application behavior;
  • do not change packages/Agentweaver.Squad workflow definitions;
  • do not remove root dependencies used by non-documentation tooling;
  • a docs-only workflow-to-diagram generator may change, but product workflow semantics must remain unchanged.

Bulk and parallel operation

When refining several diagrams, use the inventory created by docs-diagram-pitch and select exact names or one owner_area:

python .github/skills/docs-diagram-pitch/scripts/diagram_inventory.py run `
  docs-diagram-inventory.json --repo . --area deep-dive --status queued --action render

Read the full file on GitHub · 190 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 190 lines · 51 tokens per session scan A efd0f7324243

Subscribe to this mod's changes

docs-diagram-iterate is a skill published in the GitHub repository sabbour/agentweaver (7 stars, last pushed today), licensed MIT. It adds 51 tokens to every session and 2,094 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.

Related

Other skills, from other repositories

ui-design-source

Use this skill when the user provides Figma material, design-export files, screenshots of design tools, PDFs, JSON, existing HTML or other UI source code, or asks for design-to-HTML/code fidelity. It adapts OpenDesign/Figma handoff discipline for UIDesigner without requiring a live source runtime.

Orkas-AI/Orkas · 3 tokens

design-system-importer

Use this when COMPOSE or an AUTO compose segment has any external reference media or style source: a reference image, reference video, DESIGN.md, brand guide, screenshot, existing website, design notes, or an explicit named visual direction.

Orkas-AI/Orkas · 4 tokens

ui-design-system

Use this skill when creating, extending, or auditing a product UI system. It adapts Better Design-style design-system discipline without requiring an external runtime package.

Orkas-AI/Orkas · 3 tokens

ui-controls-accessibility

Before rendering, turn every explicitly requested workflow outcome into a compact ledger: user outcome -> triggering control/event -> rendered state branch -> recovery/next action. Success and failure are separate outcomes. When a backend is unavailable but the outcome can be modeled locally, make both outcomes…

Orkas-AI/Orkas · 4 tokens

product-ui

Use this skill when UI design and UI implementation should happen together. It turns product context into usable frontend screens, components, layout decisions, design-system choices, accessibility rules, and visual polish.

Orkas-AI/Orkas · 2 tokens

image-canvas

Read this private ImageStudio skill only after route lock when the result has multiple meaningful visual regions, an explicit reading order, exact layout constraints, or references bound to regions. Skip it for a simple single-region image. If art direction is also needed, establish it with image-craft before…

Orkas-AI/Orkas · 3 tokens