analyzing-architecture
Skill1 starsChanged 3 months agoMITView on GitHub
Detects repository context, maps dependencies (enterprise-specific or general), and generates/persists architectural documentation.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- microsoft/github-copilot-modernizationtheir own version, first seen Sep 22, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- microsoft/github-copilot-modernization★ 48same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository22 other files it gives its agents.
- alloy-structural-analysisSkill
- color-accessibilitySkill
- daily-briefingSkill
- design-docSkill
- diagramSkill
- eng-career-goals-writerSkill
- gh-repo-managementSkill
- git-commit-helperSkill
- jiraSkill
- jqSkill
- morphirSkill
- newrelic-cliSkill
- oli-storage-managerSkill
- project-instructorSkill
- qmd-searchSkill
- rigorous-reviewSkill
- save-zkSkill
- scalaSkill
- smart-initSkill
- sourcegraph-searchSkill
- structured-memorySkill
- visualizeSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Run gh repo view --json url or inspect the local .git/config to check the remote host.
- Very specific: line 25
Use src search to map the ecosystem.
- Distinctive: line 26
Contracts: Search for the organization's interface definition contracts repository for Thrift IDL, Proto schema, GraphQL, etc...
- Distinctive: line 27
Message Queues: Search for message broker (e.g., Kafka) infrastructure-as-code repositories.
- Distinctive: line 28
Cloud/IAM: Search for cloud infrastructure bootstrap or service provisioning repositories.
- Distinctive: line 29
Data Pipelines: Search for ETL job or data pipeline deployer repositories.
- Distinctive: line 30
Data Stores: Search for database schema or storage infrastructure repositories.
- Very specific: line 34
Scan Local Entry Points: Use serena.search_code to find Main classes, server initializations, or API routes.
- Very specific: line 38
Generate
AGENT.md: Create or update the root AGENT.md. - Very specific: line 39
Visualize: Call the diagramming-d2 skill to generate a system map.
- Very specific: line 43
Evidence-Based: Every dependency listed must be cited with its src search result or local file reference.
- Distinctive: line 44
Privacy: Never save sensitive strings, keys, or secrets to memory.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:
- Contracts: Search for the organization's interface definition contracts repository for Thrift IDL, Proto schema, GraphQL, etc...
- Message Queues: Search for message broker (e.g., Kafka) infrastructure-as-code repositories.
- Cloud/IAM: Search for cloud infrastructure bootstrap or service provisioning repositories.
- Data Pipelines: Search for ETL job or data pipeline deployer repositories.
- Data Stores: Search for database schema or storage infrastructure repositories.
Phase 3: General Discovery Protocol
- Identify Project Type: Detect primary language (e.g.,
package.json,build.sbt,go.mod). - Scan Local Entry Points: Use
serena.search_codeto find Main classes, server initializations, or API routes. - Map Local Dependencies: Parse dependency files to identify external services (e.g., AWS SDKs, database drivers, third-party APIs).
Phase 4: Documentation & Persistence
- Generate
AGENT.md: Create or update the rootAGENT.md. - Visualize: Call the
diagramming-d2skill to generate a system map. - 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
srcsearch result or local file reference. - Privacy: Never save sensitive strings, keys, or secrets to memory.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

