hex-architect

hex-architect is a skill for Claude Code, Codex from grimoire-rs/grimoire. It costs 126 tokens per session (6,706 once invoked), scanned A, original, Apache-2.0.

An architecture decision workflow that researches options, designs systems, examines trade-offs, and produces architecture decision records or system designs. An ADR is a written record of an important technical choice and its reasoning.

In plain words
What is it for?
Use it for system designs, architecture decisions, trade-off comparisons, one-way decisions, C4-level diagrams, and ADRs.
Why use it?
It gives difficult design choices a structured review process, including checks for risks and non-functional requirements such as reliability or performance.

Skill for Claude CodeCodex

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions subagents; installed under .agents/ (shared by several agents); mentions Codex.

Good fit Use it for system designs, architecture decisions, trade-off comparisons, one-way decisions, C4-level diagrams, and ADRs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/grimoire-rs/grimoire/hex-architect
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 grimoire-rs/grimoire --skill hex-architect
Clone the repo
git clone --depth 1 https://github.com/grimoire-rs/grimoire

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 hex-architect

README.md
[![agentmods](https://agentmods.dev/badge/skills/grimoire-rs/grimoire/hex-architect/github.svg)](https://agentmods.dev/skills/grimoire-rs/grimoire/hex-architect)
Your own site
<a href="https://agentmods.dev/skills/grimoire-rs/grimoire/hex-architect"><img src="https://agentmods.dev/badge/skills/grimoire-rs/grimoire/hex-architect/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 hex-architect

Your own site · 80×15
<a href="https://agentmods.dev/skills/grimoire-rs/grimoire/hex-architect"><img src="https://agentmods.dev/badge/skills/grimoire-rs/grimoire/hex-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,706 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.00126 $0.06706
Opus 5.5 $0.00050 $0.02682
Sonnet 5.5 $0.00025 $0.01341
Haiku 4.5 $0.00013 $0.00671

Measured 21d ago against content hash 449f93eb81fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hex-architect 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 21d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • hex-plan — 86% identical, 554 lines differ
.agents/skills/hex-architect/SKILL.md · 500 lines

How it starts

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

hex-architect — Architecture Orchestrator

Thin dispatcher. It parses arguments, classifies the decision's tier, resolves overlays, runs the single meta-plan approval gate, announces the resolved config, and hands off to the matching tier file. The phase plans live in the five tier-<tier>.md files; the shared vocabulary (tiers, the Review-Fix Loop, worker roles, model classes, the memory file) lives in the hex-core reference library and is linked here, never copied.

Shared contracts: protocol.md · workers.md · models.md · memory.md. If hex-core is not installed: grim add ghcr.io/michael-herwig/arcana/hex-core:latest.

Argument syntax

/hex-architect [tier] <decision> [flags]
  • tier (optional): low | medium | high | xhigh | max | auto. Default auto — the classifier picks low … xhigh. max is explicit only — --tier=max, or a plan whose Status block says Tier: max; the classifier never emits it (protocol.md).

  • decision — free text: a question to decide, a component or feature that needs a design, or a one-way-door choice to evaluate. Unlike /hex-plan, hex-architect does not resolve GitHub issues or PRs itself — paste the relevant conversation into the prompt when the decision originates there. A path naming a drained discussion artifact instead engages the fast path — see § A discussion dossier as <decision>.

  • flags (before the decision, by convention):

    • --research=skip|1|3 — override the research-axis count (see overlays.md).
    • --axes=<comma-separated> — name the research axes explicitly, skipping the interactive picker at the gate (still shown there for confirmation).
    • --adversary / --no-adversary — force the cross-model design-artifact pass on or off.
    • --artifact=inline|adr|system-design — override the artifact form.
    • --dry-run — make the meta-plan gate block for explicit approval and stop there (preview only, no workers launched).

Read the full file on GitHub · 500 lines

Files

What ships with it

7 files 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. 21d ago Changed · -2 lines · +7 tokens per session 449f93eb81fc
  2. 1mo ago Changed · +1 lines cb7f88057cee
  3. 1mo ago First seen · 501 lines · 119 tokens per session scan A 39e1b5aa301e

Subscribe to this mod's changes

hex-architect is a skill published in the GitHub repository grimoire-rs/grimoire (14 stars, last pushed today), licensed Apache-2.0. It adds 126 tokens to every session and 6,706 once invoked, about $0.0005 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-08.