Skip to content
Back to skills

Analyzing Architecture

ASecurity

Detects repository context, maps dependencies (enterprise-specific or general), and generates/persists architectural documentation.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 24, 2026
ai-agentsgoawsgitapidatabasedocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add tkolleh/skills --skill analyzing-architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Analyzing Architecture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Analyzing Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tkolleh-analyzing-architecture/badge)](https://www.skillsdirectory.com/skills/tkolleh-analyzing-architecture)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: analyzing-architecture
description: Detects repository context, maps dependencies (enterprise-specific or general), and generates/persists architectural documentation.
disable-model-invocation: true
license: MIT
compatibility: "Optional CLIs: gh (repo metadata), src (enterprise Sourcegraph discovery)."
metadata:
  audience: developers
  tools: "gh, src, diagram, gortex, graphiti, structured-memory"
---

## What I do
I analyze the current repository to determine its origin and architecture. If it is hosted on a private enterprise Sourcegraph instance, I execute a deep internal discovery protocol using the /sourcegraph-search skill. Otherwise, I perform a comprehensive local audit of language, frameworks, and public dependencies.

## When to use me
Trigger this skill immediately upon entering a new repository or when the user asks "How does this system work?", "What is the architecture", "What are the system dependencies?", or "What should I know to work on this codebase?".

## Operational Workflow

### Phase 1: Context Detection
Run `gh repo view --json url` or inspect the local `.git/config` to check the remote host.
- **IF host is a private enterprise Sourcegraph instance:** Proceed to Phase 2 (Enterprise Protocol).
- **OTHERWISE:** Proceed to Phase 3 (General Protocol).

### Phase 2: Enterprise Sourcegraph Discovery Protocol
Use `src search` to map the ecosystem. Adapt the repo patterns to your organization's Sourcegraph instance:
1. **Contracts:** Search for the organization's interface definition contracts repository for Thrift IDL, Proto schema, GraphQL, etc...
2. **Message Queues:** Search for message broker (e.g., Kafka) infrastructure-as-code repositories.
3. **Cloud/IAM:** Search for cloud infrastructure bootstrap or service provisioning repositories.
4. **Data Pipelines:** Search for ETL job or data pipeline deployer repositories.
5. **Data Stores:** Search for database schema or storage infrastructure repositories.

### Phase 3: General Discovery Protocol
1. **Identify Project Type:** Detect primary language (e.g., `package.json`, `build.sbt`, `go.mod`).
2. **Scan Local Entry Points:** Use Gortex (or native code search) to find Main classes, server initializations, or API routes.
3. **Map Local Dependencies:** Parse dependency files to identify external services (e.g., AWS SDKs, database drivers, third-party APIs).

### Phase 4: Documentation & Persistence
1. **Generate `AGENT.md`:** Create or update the root `AGENT.md`.
2. **Visualize:** Call the `diagram` skill to generate a system map.
3. **Mandatory Memory Save:** You MUST save the summarized project architecture (business goal, technical stack, and key dependencies) to your long-term memory. This ensures you do not need to re-run the full discovery in future sessions.

## Constraints
* **Evidence-Based:** Every dependency listed must be cited with its `src` search result or local file reference.
* **Privacy:** Never save sensitive strings, keys, or secrets to memory.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.