arch

arch is a skill for Claude Code, Codex from tonydzi/second-brain-starter-kit. It costs 86 tokens per session (1,079 once invoked), scanned C, original, MIT.

A read-only inventory and health check for an entire automation system, including its files, scripts, scheduled tasks, databases, servers, hooks, skills, and dashboards. It reports what exists and what is broken or disconnected.

In plain words
What is it for?
Use it to view overall health, list broken parts, find dead code, or run a fresh scan after changing shared infrastructure.
Why use it?
It provides one current map of the system before infrastructure changes and helps detect failed components, unused scripts, or missing connections afterward.

Skill for Claude CodeCodex

Part of the second-brain-skills plugin — 57 skills shipped together

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/tonydzi/second-brain-starter-kit/arch
Any agent
npx skills add tonydzi/second-brain-starter-kit --skill arch
Clone the repo
git clone --depth 1 https://github.com/tonydzi/second-brain-starter-kit

Made for: Claude Code, Codex.

Or install second-brain-skills, the plugin that ships this one along with the rest of its 57 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/arch.svg)](https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/arch)
Your own site
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/arch"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/arch.svg" alt="Measured on agentmods" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,079 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00086 $0.01079
Opus 5 $0.00043 $0.00540
Sonnet 5 $0.00017 $0.00216
Haiku 4.5 $0.00009 $0.00108

Measured 4d ago against content hash 892eff4a13f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

arch scanned grade C with 1 finding 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 4d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- RECONSTRUCTED 2026-06-24 on hub HUB-1 from the live engine ($IMPORTS_ROOT/arch) + memory system-architect, because the authoritative SKILL.md lives only on laptop LAPTOP-1 (~/.claude/skills/arch, not synced). When t
skills/arch/SKILL.md · 68 lines

How it starts

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

/arch — System Architect (the map and health of the whole system)

One place that knows what the system is made of, what is healthy, what fell over — and tests it. Deterministic, 0 tokens, READ-ONLY. This is RECALL for the infrastructure layer: look BEFORE changing shared infrastructure, rescan AFTER.

Engine: $IMPORTS_ROOT/arch/ (git-backed in _imports). The source of truth is system.db (built by the nightly scan at 05:45). Dashboard _Dashboards\System-Health.html, MOC 00-System\_System-MOC.md, auto-inventory 00-System\System-Automations.md (replaces the manual [[automation-inventory]]).

Commands

# status (default) — health summary + score
python "$IMPORTS_ROOT/arch/arch_status.py"

# only what is broken / red
python "$IMPORTS_ROOT/arch/arch_status.py" broken

# dead code — scripts wired to nothing
python "$IMPORTS_ROOT/arch/arch_status.py" dead
  • /archarch_status.py (status).
  • /arch brokenarch_status.py broken.
  • /arch deadarch_status.py dead.
  • /arch scan (force a fresh scan, AFTER an infrastructure change) → rebuild the catalog:
    cd /d $IMPORTS_ROOT/arch
    python sys_scan.py && python sys_coverage.py && python build_system_docs.py && python build_arch_map.py && python sys_check.py
    
    (That is the run_architect.cmd pipeline minus the final vault_backup.py. The full nightly run = run_architect.cmd, scheduled task "System Architect Nightly" at 05:45.)

When to use it (STANDING — an always-loaded rule)

  • BEFORE adding/removing/changing shared infrastructure (a scheduled task, an _imports script, an MCP, a DB, a hook, a skill, a pipeline) → /arch / /arch broken: what exists and what depends on it — will I break a neighbour?
  • AFTER the change → /arch scan, so the map does not fall behind reality.
  • RED → deal with the red first; result!=0 on a task does not always mean "broken" (a benign lock collision happens — check the source). Never delete an active/critical asset before understanding its dependencies.

Read the full file on GitHub · 68 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. 4d ago First seen · 68 lines · 86 tokens per session scan C 892eff4a13f3

Subscribe to this mod's changes

arch is a skill published in the GitHub repository tonydzi/second-brain-starter-kit (5 stars, last pushed 4d ago), licensed MIT. It adds 86 tokens to every session and 1,079 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

wiki-ingest

Ingest supplied source material into an Obsidian vault with provenance and claim tracking: pasted text, files staged in the selected vault's inbox or .raw archive, or explicitly approved URLs. Use for a single source or bounded batch, not for saving an assistant answer. Triggers: ingest, ingest this file, ingest this…

AgriciDaniel/claude-obsidian · 88 tokens

autoresearch

Run a bounded, source-grounded research loop, draft a cited dossier, and optionally propose a separately reviewed canonical vault merge. Use when the user wants autonomous or deep research that may access the public web. Triggers: /autoresearch, autoresearch, research this topic, deep dive into, investigate, find…

AgriciDaniel/claude-obsidian · 80 tokens

canvas

Create, inspect, and update Obsidian JSON Canvas boards with text, file, link, group, and edge nodes. Use for canvas status, canvas lists, visual maps, zones, spatial layouts, adding vault notes or media to a .canvas file, and requests such as create canvas, add to canvas, or put this on the canvas.

AgriciDaniel/claude-obsidian · 72 tokens

wiki-retrieve

Build and query a vault-local contextual BM25 retrieval index with optional multilingual Nomic cosine reranking; use for retrieve, hybrid retrieval, BM25, rerank, contextual retrieval, chunk search, vault search, semantic search, find relevant passages, or retrieval diagnostics. Derived caches stay under .vault-meta…

AgriciDaniel/claude-obsidian · 81 tokens

wiki

Initialize, adopt, and route work for a separate Obsidian knowledge vault through the portable claude-obsidian core. Use for vault setup, scaffolding, workspace selection, cross-project configuration, or choosing the correct wiki sub-skill. Triggers: /wiki, set up wiki, scaffold vault, create knowledge base, adopt…

AgriciDaniel/claude-obsidian · 84 tokens

defuddle

Plan and, with explicit network consent, use an optional external Defuddle cleaner to extract article-like HTTPS pages as Markdown. Use for defuddle, clean this URL, strip page clutter, readable Markdown from a web page, or preparing a web source for later wiki ingestion.

AgriciDaniel/claude-obsidian · 57 tokens