hex-architect

hex-architect is a skill for Claude Code from grimoire-rs/grimoire. It costs 119 tokens per session (6,684 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 Code

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.

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 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,684 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.00119 $0.06684
Opus 5 $0.00060 $0.03342
Sonnet 5 $0.00024 $0.01337
Haiku 4.5 $0.00012 $0.00668

Measured yesterday against content hash 39e1b5aa301e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

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

How it starts

The opening of the file, as written. The whole thing — 501 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 lowxhigh. 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 · 501 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. yesterday 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 (10 stars, last pushed 2d ago), licensed Apache-2.0. It adds 119 tokens to every session and 6,684 once invoked, about $0.0006 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-09-08.

Related

Other skills, from other repositories

nft-standards

Implement NFT standards (ERC-721, ERC-1155) with proper metadata handling, minting strategies, and marketplace integration. Use when creating NFT contracts, building NFT marketplaces, or implementing digital asset systems.

wshobson/agents · 48 tokens

postgresql-table-design

Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features.

wshobson/agents · 37 tokens

parallel-feature-development

Coordinate parallel feature development with file ownership strategies, conflict avoidance rules, and integration patterns for multi-agent implementation. Use this skill when decomposing a large feature into independent work streams, when two or more agents need to implement different layers of the same system…

wshobson/agents · 105 tokens

istio-traffic-management

Configure Istio traffic management including routing, load balancing, circuit breakers, and canary deployments. Use when implementing service mesh traffic policies, progressive delivery, or resilience patterns.

wshobson/agents · 40 tokens

event-store-design

Design and implement event stores for event-sourced systems. Use when building event sourcing infrastructure, choosing event store technologies, or implementing event persistence patterns.

wshobson/agents · 33 tokens

projection-patterns

Build read models and projections from event streams. Use when implementing CQRS read sides, building materialized views, or optimizing query performance in event-sourced systems.

wshobson/agents · 36 tokens