architect

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

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 agents/lucassantana-dev/sharekit/architect
Clone the repo
git clone --depth 1 https://github.com/LucasSantana-Dev/sharekit

Made for: Claude Code.

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. 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.00062 $0.01782
Opus 5 $0.00031 $0.00891
Sonnet 5 $0.00012 $0.00356
Haiku 4.5 $0.00006 $0.00178

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

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. yesterday 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 yesterday), licensed MIT. It adds 62 tokens to every session and 1,782 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens