map

A skill that creates an ARCHITECTURE.md file showing how wyx project specifications relate. It includes a Mermaid graph, a dependency table, and paths showing how data moves through the system.

In plain words
What is it for?
Mapping all wyx specifications, or only those under a chosen folder, and documenting relationships between concepts, pipelines, synchronisation specifications, and external systems.
Why use it?
It gives developers a single orientation document for understanding dependencies and reviewing the design of a project.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/jlifyio/wyx/map
Any agent
npx skills add jlifyio/wyx --skill map
Clone the repo
git clone --depth 1 https://github.com/jlifyio/wyx

Made for: Claude Code, Codex.

Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,487 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00060 $0.03487
Opus 5 $0.00030 $0.01743
Sonnet 5 $0.00012 $0.00697
Haiku 4.5 $0.00006 $0.00349

Measured yesterday against content hash 86d148f90855, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

map 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 yesterday.

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.

skills/map/SKILL.md · 205 lines

How it starts

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

Architecture Map Generation

Generate an architecture map — a synthesized view of all concept, pipeline, and sync specs in a project. The map shows how concepts relate to each other, where data flows, and which external systems are involved. It produces a single ARCHITECTURE.md with a Mermaid relationship graph, dependency matrix, and data flow paths. ARCHITECTURE.md is a human reference document for orientation and code review — it is not consumed by wyx hooks.

How to interpret $ARGUMENTS

Determine the mode from the argument:

  • Path (e.g. src/lib/server/): Scoped mode — only map specs found under this path. Useful for mapping a subsystem without noise from unrelated modules.
  • No arguments: Full project mode — find and map all wyx specs across the entire project. This is the most common usage. For projects with 15+ concepts, recommend scoped mode to keep the graph readable.
  • Zero specs found: Output "No wyx specs found. Run /wyx:concept first to create your first spec." and stop.

Pre-check: Skip if Clean

Before reading all specs, check if regeneration is needed:

  1. If ARCHITECTURE.md exists in the target directory, compare its modification time against all spec files
  2. Use find . -name "CONCEPT.md" -o -name "PIPELINE.md" -o -name "SYNCS.md" -newer ARCHITECTURE.md (scoped to path if given) to find specs modified since last generation
  3. If no spec file is newer, report: "ARCHITECTURE.md is up to date (generated: [date], no spec changes since)" and stop
  4. If any spec file is newer, run this section-level comparison — skip only after actually performing it, never as a blind skip:
    1. Read only the graph-contributing sections of the changed specs: ## interactions, ## dependencies, ## data boundary, ## coordination graph, and PIPELINE.md's ## purpose. These are exactly the graph-derivation sources in Step 2 — the set is intentionally identical so a skip never silences a real graph change.
    2. Compare the text of those sections via git diff — a textual comparison, never a rendered-graph judgment. Byte-identical watched text guarantees an identical derived graph.
    3. If the watched text changed, or ARCHITECTURE.md doesn't exist, proceed to Step 1.
    4. If byte-identical: insert or update a > Verified current on [today's date] line immediately below the > Generated by header in ARCHITECTURE.md. Leave the > Generated by line untouched — the graph was not regenerated, only re-confirmed. This edit bumps the file's mtime so the SessionStart staleness warning stops re-firing every session.
    5. Report: "ARCHITECTURE.md is up to date (graph sections unchanged — verified current [today's date])" and stop.

Read the full file on GitHub · 205 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. yesterday First seen · 205 lines · 60 tokens per session scan A 86d148f90855

Subscribe to this mod's changes

map is a skill published in the GitHub repository jlifyio/wyx (3 stars, last pushed 23d ago), licensed MIT. It adds 60 tokens to every session and 3,487 once invoked, about $0.0003 per session on Opus 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-08-31.