# Senior Architect

> Staff-engineer design reviews that start from repo facts: health snapshot, decision records, and a playbook for AI agents.

Senior Architect is a free AI agent skill on Agensi by Michal Burgermeister, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Michal Burgermeister](https://www.agensi.io/creators/michal-burgermeister)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Uses: 3
- Version: 1.0
- Last updated: 2026-10-16
- Security: scan passed (2026-10-16); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/senior-architect
- Tags: code-review, ai-agents, python, software-architecture, technical-debt

## About this skill

Technical debt and architectural rot kill products faster than competitors do. This skill provides the senior-level judgment needed to structure systems that remain maintainable for years, moving beyond simple code generation to strategic software design. It enforces a pragmatic, veteran approach to refactoring, schema design, and agentic workflows.

### What it does
- **Repo health audits** runs diagnostics to identify import cycles, code duplication, and god modules.
- **Architectural Decision Records** documents irreversible "one-way door" choices using a structured ADR format.
- **Complexity sizing** evaluates requirements to prevent premature abstraction or unnecessary microservices.
- **Agent system design** applies specific failure-mode patterns and context-engineering rules to LLM pipelines.
- **Anti-pattern detection** flags copy-paste drift, resume-driven development, and leaky abstractions.

### How it works
1. **Analyze** the current codebase facts using the `repo_health.py` tool to establish a baseline of technical debt.
2. **Review** proposed changes against the veteran playbook, focusing on maintenance cost and failure modes.
3. **Execute** architectural decisions by generating a numbered ADR that outlines context, options, and consequences.
4. **Refactor** complex modules into vertical slices or isolated boundaries based on the rule of three.

### Frameworks & tools
This skill includes custom Python scripts for repository analysis (`repo_health.py`) and ADR management (`adr_new.py`). It contains specific design wisdom for React state management, multi-tenant SaaS architectures, Supabase/PocketBase security, and MCP server implementations.

### Why this beats prompting it yourself
Generic prompts often result in "architecture astronaut" advice that is too academic for real-world shipping. This skill enforces a deterministic-first approach, quoting hard repo metrics before offering opinions and recording the "why" behind decisions so you do not repeat past mistakes.

### Use cases
- Splitting a monolithic file or god class into maintainable modules.
- Deciding between a single agent, multiple agents, or a simple script for a task.
- Designing a multi-tenant database schema with Row Level Security.
- Isolating legacy ERP or payment integrations behind anti-corruption layers.

### Known limitations
The repo health tool requires a Python 3 environment and access to the local filesystem. It focuses on structural patterns rather than language-specific syntax errors or linting.

## Requires

- Python 3.9+

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Senior Architect skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from a standard coding assistant?

The Senior Architect skill acts as a strategic layer for your development agent, using custom scripts to audit codebase health, document ADRs, and prevent 'architecture astronaut' patterns that lead to technical debt.

### What assets are included in this skill package?

The skill includes a suite of custom Python tools (`repo_health.py` and `adr_new.py`) along with a veteran design playbook that provides specific guidance for React, SaaS, and agentic workflows.

### What are the technical requirements for running the repository health tools?

The repo health diagnostics require a Python 3 environment and filesystem access; it is designed to work with any agentic framework that supports local tool execution and context engineering.

### Are there specific frameworks or technologies where this skill excels?

While it provides high-level architectural guidance for most stacks, it contains specialized, optimized design patterns for React state management, Supabase/PocketBase security, and MCP server implementations.

### Will this skill automatically recommend complex agent architectures for every task?

No, this skill is designed to prevent 'resume-driven development' by using a deterministic-first approach, prioritizing simple scripts and vertical slices over unnecessary microservices or complex agent swarms.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
