arch-map

arch-map is a skill for Claude Code, Codex from bearded-illirian/trailmark. It costs 92 tokens per session (1,135 once invoked), scanned A, original, MIT.

A tool that links files or written project documents to matching architecture entries. Architecture entries describe the main parts of a software system.

In plain words
What is it for?
Use it to map files, briefs, or specifications to architecture items and carry those references from larger work items down to smaller ones.
Why use it?
It keeps technical documents connected to the parts of the system they describe without replacing existing links.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to map files, briefs, or specifications to architecture items and carry those references from larger work items down to smaller ones.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bearded-illirian/trailmark/arch-map
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.

Any agent
npx skills add bearded-illirian/trailmark --skill arch-map
Clone the repo
git clone --depth 1 https://github.com/bearded-illirian/trailmark

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 arch-map

README.md
[![agentmods](https://agentmods.dev/badge/skills/bearded-illirian/trailmark/arch-map/github.svg)](https://agentmods.dev/skills/bearded-illirian/trailmark/arch-map)
Your own site
<a href="https://agentmods.dev/skills/bearded-illirian/trailmark/arch-map"><img src="https://agentmods.dev/badge/skills/bearded-illirian/trailmark/arch-map/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 arch-map

Your own site · 80×15
<a href="https://agentmods.dev/skills/bearded-illirian/trailmark/arch-map"><img src="https://agentmods.dev/badge/skills/bearded-illirian/trailmark/arch-map.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,135 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 121
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00092 $0.01135
Opus 5.5 $0.00037 $0.00454
Sonnet 5.5 $0.00018 $0.00227
Haiku 4.5 $0.00009 $0.00113

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

Security

Grade A, and why

arch-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 1mo ago.

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.

adapters/codex/.agents/skills/arch-map/SKILL.md · 161 lines

How it starts

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

Arch-Map Protocol

Maps an artifact onto architecture elements from an arch_items catalog. Fully automatic — does not ask the user, does not block the task.


Step 1 — Find platform DB

DB_PATH=$(find {projects_root} -name "platform.sqlite" -path "*/data/platform/*" | head -1)

Not found or empty:

Arch-map: platform.sqlite not found — arch_ref = null

End protocol. Continue task execution.


Step 2 — Load arch_items

sqlite3 "$DB_PATH" \
  "SELECT item_type, slug, title, description, url, path
   FROM arch_items WHERE path != '' OR title != '';"

Step 3 — Determine mode and find matches

file-mode (fast-track / pipeline)

Source: files_to_modify from plan-first.

For each file: check whether arch_item.path is a substring of the file path or the file path starts with arch_item.path.

feature-mode (brief / spec)

Source: full text of the artifact.

For each arch_item check: does arch_item.slug, arch_item.title, or arch_item.url appear in the artifact text (case-insensitive).

Collect unique matches. Format: {item_type}/{slug}.


Step 4 — Show result

Matches found:

Arch-map (file-mode):
  api/billing      → api/billing/    [OK]
  page_front/auth  → src/pages/auth/ [WIP]
arch_ref: api/billing,page_front/auth

No matches:

Arch-map: no matches found — arch_ref = null

Step 5 — Add arch_ref column (if missing)

sqlite3 {routing_db} \
  "ALTER TABLE artifacts ADD COLUMN arch_ref TEXT;" 2>/dev/null || true

Step 5.5 — Save result to log

Write {log_dir}/arch-map.md with task, date, mode, full result output, arch_ref value. If {log_dir} unknown — skip without error.


Step 6 — Merge and write arch_ref

arch_ref not null:

  1. Read current: SELECT arch_ref FROM artifacts WHERE id = '{artifact_id}';
  2. Combine current + new → split by comma, deduplicate, join back
  3. Write: UPDATE artifacts SET arch_ref = '{merged}', updated_at = '{date}' WHERE id = '{artifact_id}';

Read the full file on GitHub · 161 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 161 lines · 92 tokens per session scan A 9179b1e4a2fb

Subscribe to this mod's changes

arch-map is a skill published in the GitHub repository bearded-illirian/trailmark (19 stars, last pushed 1mo ago), licensed MIT. It adds 92 tokens to every session and 1,135 once invoked, about $0.0004 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-08-30.