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…

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.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.svg" alt="Measured on agentmods" 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.
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 $0.00046 $0.00567
Sonnet 5 $0.00018 $0.00227
Haiku 4.5 $0.00009 $0.00113

Measured 6d ago against content hash 9179b1e4a2fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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. 6d 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 4d ago), licensed MIT. It adds 92 tokens to every session and 1,135 once invoked, about $0.0005 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-30.

Related

Other skills, from other repositories

mission-control

Interact with Mission Control — AI agent orchestration dashboard. Use when registering agents, managing tasks, syncing skills, or querying agent/task status via MC APIs.

builderz-labs/mission-control · 34 tokens

after-sales

Use when managing post-purchase experience, building customer loyalty, or increasing repeat purchases.

aAAaqwq/AGI-Super-Team · 19 tokens

afrexai-compliance-engine

Your AI compliance officer. Guides startups and scale-ups through SOC 2, ISO 27001, GDPR, HIPAA, and PCI DSS — from zero to audit-ready. No consultants needed.

aAAaqwq/AGI-Super-Team · 0 tokens

bankr

AI-powered crypto trading agent and LLM gateway via natural language. Use when the user wants to trade crypto, check portfolio balances, view token prices, transfer crypto, manage NFTs, use leverage, bet on Polymarket, deploy tokens, set up automated trading, sign and submit raw transactions, or access LLM models…

aAAaqwq/AGI-Super-Team · 96 tokens

competitive-offer-architect

Design irresistible offer packages with real salary benchmarks, negotiation playbooks, and competitive counter-strategies. Co-designed with Siku (司库). Includes total compensation calculator, negotiation scripts, and BATNA analysis.

aAAaqwq/AGI-Super-Team · 48 tokens

ai-viral-team-script-writing

A guide for writing short-video scripts and shot lists, including dialogue, camera direction, character actions, mood, music, hooks, and endings. A shot list describes what happens in each camera shot.

aAAaqwq/AGI-Super-Team · 169 tokens