# Archwhere

> Keep your architecture map and code in sync using the archwhere MCP server for automated mapping and validation.

Archwhere is a free AI agent skill on Agensi by Tapas Kar, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Tapas Kar](https://www.agensi.io/creators/tapas-kar)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/archwhere
- Tags: ai-agents, architecture-as-code, mcp-server, documentation-automation, code-quality

## About this skill

Maintaining a clean architecture map is a constant struggle as codebases evolve. This skill ensures your architecture documentation and `architecture.json` stay synchronized with every code change you make.

### What it does
- **Architectural mapping** identifies which logical components and kinds (core, security, infra) are affected by specific file changes.
- **Automated scaffolding** generates an initial `arch/architecture.json` model from existing repo structures.
- **Constraint enforcement** validates that all files are mapped and dependencies align with declared architectural rules.
- **Change documentation** updates `ARCHITECTURE.md` and user flows automatically when models or processes shift.
- **Workflow compliance** formats PR titles by component and flags changes to security-sensitive zones for human review.

### How it works
1. **Analyze impact** by running `what_touches` on your planned file changes to see which components are affected.
2. **Execute changes** and update the `arch/architecture.json` globs or dependencies if new modules are added.
3. **Validate state** using the `check` command to ensure no files are left unmapped and no rules are broken.
4. **Document shifts** by regenerating the `ARCHITECTURE.md` and updating user-visible flows in the map.

### Frameworks & tools
This skill utilizes the `archwhere` MCP server and CLI. It manages JSON-based architecture maps and integrates with git-based workflows for PR naming and review flagging.

### Why this beats prompting it yourself
Generic prompts often lose track of file-to-component mappings in large repos. This skill provides a specialized loop that forces validation via the `archwhere` CLI, ensuring your agent never "hallucinates" the system boundary or forgets to document a new module.

### Use cases
- Scaffold an architecture map for a legacy repo with no existing documentation.
- Verify that a refactor hasn't accidentally leaked logic into a security-sensitive component.
- Automatically update a project's `ARCHITECTURE.md` after a major backend restructuring.
- Identify which team or owner needs to review a PR based on component watch patterns.

### Known limitations
The MCP server is read-only unless explicitly started with the `--write` flag. It requires a structured `arch/architecture.json` file to function effectively.

## Requires

- archwhere
- Node.js

## 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 Archwhere 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

### What specific problem does Archwhere solve for development teams?

Archwhere automates the synchronization between your codebase and its architectural documentation. It prevents 'architecture drift' by ensuring that every file change is mapped to a logical component and that all dependencies adhere to your defined structural rules.

### Which AI agents and environments are compatible with this skill?

This skill requires the Archwhere CLI and is designed to work with any AI agent that supports the Model Context Protocol (MCP). It integrates seamlessly into Git-based workflows to assist with pull request naming and component-based reviews.

### Can I use Archwhere on an existing project that doesn't have an architecture map yet?

Yes, Archwhere includes an automated scaffolding feature that analyzes your existing repository structure to generate an initial 'architecture.json' model, making it easy to document legacy projects.

### Does the agent have permission to modify my architecture files automatically?

Archwhere operates in a read-only state by default for safety. To allow the agent to update your 'architecture.json' or 'ARCHITECTURE.md' files during a workflow, the MCP server must be started with the '--write' flag enabled.

### How does Archwhere ensure that new code changes don't break my architecture rules?

By using the 'check' command through the MCP server, the skill validates that every file in your repo is mapped and that no new code violates your component boundaries, flagging errors immediately if rules are broken.

---

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.
