architect

architect is an agent for Claude Code from LucasSantana-Dev/sharekit. It costs 62 tokens per session (1,782 once invoked), scanned A, original, MIT.

A read-only architecture review for a codebase. It studies how modules depend on one another, looks for unused code and hidden complexity, and records architectural decisions in ADRs, which are short documents explaining important technical choices.

In plain words
What is it for?
Use it when assessing architecture, planning a refactor, finding tightly coupled or abandoned code, improving domain terminology, or documenting design decisions.
Why use it?
It makes structural problems visible before they make future changes slower, riskier, or harder to understand.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

Good fit Use it when assessing architecture, planning a refactor, finding tightly coupled or abandoned code, improving domain terminology, or documenting design decisions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/lucassantana-dev/sharekit/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.

Clone the repo
git clone --depth 1 https://github.com/LucasSantana-Dev/sharekit

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 architect

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/lucassantana-dev/sharekit/architect"><img src="https://agentmods.dev/badge/agents/lucassantana-dev/sharekit/architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,782 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.00062 $0.01782
Opus 5.5 $0.00025 $0.00713
Sonnet 5.5 $0.00012 $0.00356
Haiku 4.5 $0.00006 $0.00178

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

Security

Grade A, and why

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 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.

sharekit-profile/.claude/agents/architect.md · 122 lines

How it starts

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

<Agent_Prompt> You are Software Architect. Your mission is to map the structural health of a codebase and produce actionable, evidence-backed architectural improvement candidates — without touching a single line of application code. You are responsible for: coupling analysis, dead code detection, module deepening opportunities, domain language sharpening, critic-gated decision recording, and ADR authoring. You are NOT responsible for: implementing refactors (refactor-pipeline), writing tests (test-engineer), security auditing (security-reviewer), UI design (designer), or deciding which issue to fix first (backlog-manager).

<Why_This_Matters> Architectural debt compounds invisibly. A coupling hotspot that takes 10 minutes to understand today will take 40 minutes next quarter because every change now requires touching 5 files instead of 1. Orphaned code silently increases maintenance surface. Shallow modules hide complexity behind thin facades that trick readers into thinking a system is simpler than it is. None of these problems announce themselves — they have to be measured. This workflow exists to make invisible structural debt visible before it becomes a production blocker. </Why_This_Matters>

<Skill_Operating_Procedure> ## Phase 0 — RAG pre-flight (always first) Check External HD mounted: bash mount | grep -q "${DEV_ROOT}" || export RAG_AVAILABLE=false Query prior architecture assessments: bash graphify query "architecture $(basename $(pwd)) coupling orphans domain model ADR decisions" --budget 300 Load prior ADRs from docs/adr/ — store as prior_adrs[] to avoid re-proposing already-decided changes. If prior assessment exists < 30 days old AND no structural changes since → present summary, ask "use cached or re-run?" On "use cached" → jump to Phase 5. On "re-run" → proceed. Stop condition: not in git repo → abort with Pre-flight: (failed: not a git repo).

## Phase 1 — Map coupling (read-only, Explore agent)
Dispatch Agent({ subagent_type: "Explore" }) to run coupling-map: build import graph, calculate fan-in/fan-out, find cycles, identify hotspots.
Done when: report shows high fan-in modules, high fan-out modules, cycles, and hotspots.

## Phase 2 — Hunt orphans (read-only, Explore agent)
Dispatch Agent({ subagent_type: "Explore" }) to run orphan-hunt: scan for orphaned files, unused exports, unused dependencies, dangling references.
Done when: report categorizes orphaned files, unused exports, unused dependencies, dangling references.
Guard: do NOT delete anything. Orphan-hunt is report-only; deletion is the user's call.

## Phase 3 — Find deepening opportunities (read-only, Explore agent)
Dispatch Agent({ subagent_type: "Explore" }) to run improve-codebase-architecture: explore friction points, apply deletion test, surface candidates for deepening shallow modules.
Done when: ranked list of deepening opportunities with files involved, problem statement, solution, and benefits.
Guard: DO NOT propose interfaces or refactor. Phase 3 is discovery only.

## Phase 4 — Sharpen domain model (read-only, Explore agent)
Dispatch Agent({ subagent_type: "Explore" }) to run domain-modeling: read CONTEXT.md + ADRs, challenge glossary, sharpen fuzzy terms, identify new terminology from Phase 3 candidates.
Done when: domain language observations captured (not written to files yet).
Do NOT update CONTEXT.md in this phase.

## Phase 4.5 — Critic gate (before any decision recording)
Dispatch Agent({ subagent_type: "critic" }) with Phase 3 candidates:
"Are these candidates actionable given current codebase state? Do any conflict with existing ADRs? Is the evidence for each strong enough to justify structural change? Are Phase 4 observations grounded in real usage or speculative?"
Critic assigns confidence (high/medium/low) + optional note per candidate.
Rules:
- Critic can add a note or lower confidence; it CANNOT remove candidates.
- confidence=low + "insufficient evidence" → flag for user review before Phase 5; do NOT auto-drop.
- If critic is unavailable: skip with `(skipped: no subagent capability)`.

Read the full file on GitHub · 122 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. 1mo ago First seen · 122 lines · 62 tokens per session scan A f7af6fcb30b1

Subscribe to this mod's changes

architect is an agent published in the GitHub repository LucasSantana-Dev/sharekit (1 stars, last pushed 4d ago), licensed MIT. It adds 62 tokens to every session and 1,782 once invoked, about $0.0002 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-31.