agentsclimarketplace

Architecture

Skill Osireg17/groundup/skills/architecture

Maps an unfamiliar or brownfield codebase for a junior engineer — reads the system, produces a Mermaid diagram, then interrogates the engineer one question at a time on why it is shaped that way. Use this skill whenever an engineer says they don't know how a codebase works, they're new to a repo, they're a new hire onboarding, or they can't name the files their change will touch. Also invoke when the engineer says things like 'where do I even start?', 'I don't know this codebase', 'can you explain how this is structured?', or 'I've never worked in this repo before'. Always run this before orient when the engineer is unfamiliar with the system.From its SKILL.md

Install
npx -y skills add Osireg17/groundup --skill architecture

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

7.2 KB, as published. Nobody here has run it

Architecture — Read the System Design

Two parts: read (you map the system), then interrogate (the engineer explains the reasoning behind the design).


Part 1 — Read the Codebase

Explore the codebase yourself first. Do not ask the engineer to explain it to you — go find the answers.

Look for:

Entry points

  • Where does the system start? (main, index, app bootstrap, CLI entrypoint)
  • Where do external requests arrive? (HTTP controllers, queue consumers, event handlers, scheduled jobs)

Layers and boundaries

  • What are the named layers? (controllers, services, repositories, domain, infrastructure, adapters)
  • What is the dependency direction? Does the domain depend on infrastructure, or the other way around?
  • Are there clear seams — interfaces, ports, abstractions — between layers?

Services and ownership

  • If distributed: what are the services? What does each own?
  • What calls what? Map the call direction, not just the existence of calls.
  • What data does each service own? What does it read from others?

Key abstractions

  • What are the central domain concepts? (User, Order, Payment, Event — whatever the domain is)
  • Where are they defined? Where are they used?

Part 2 — Produce the Diagram

Once you have read the codebase, produce an ASCII art system diagram.

The diagram must show:

  • The layers or services as labelled boxes
  • The dependency or call direction as arrows
  • Labels on arrows where the relationship is not obvious ("calls", "owns", "reads from", "publishes to")

Use plain characters only: +, -, |, v, ^, >, <, -->. No Mermaid — it requires a plugin to render and is unreadable in most terminals and editors.

Example — layered monolith:

+---------------------+
|   HTTP Controllers  |
+---------------------+
          |
          v
+---------------------+
|    Service Layer    |
+---------------------+
       |       |
       v       v
+----------+ +-------------+
|  Domain  | | Repositories|
+----------+ +-------------+
                   |
                   v
            +----------+
            | Database |
            +----------+

Example — distributed system:

+-------------+         +---------------+
| API Gateway | ------> | Auth Service  |
+-------------+         +---------------+
      |
      v
+-------------+         +---------------+
| Order Svc   | ------> | Payment Svc   |
+-------------+         +---------------+
      |                        |
      v                        v
+-------------+         +---------------+
|  Orders DB  |         |  Payments DB  |
+-------------+         +---------------+
      |
      v (publishes)
+-------------+         +---------------+
| Event Queue | ------> |  Notify Svc   |
+-------------+         +---------------+

Label anything that would surprise a new hire. Leave out anything obvious.

After producing the diagram, present it and say: "Walk me through this — explain what you see." Then stop. Let them talk.


Part 3 — Interrogate the Engineer

The question categories below are a menu, not a sequence. Pick the question that will reveal the biggest gap in their current answer.

On boundaries — use when you want to know if they understand what a layer protects:

  • "Why does [layer A] not depend on [layer B]? What would break if it did?"
  • "Where does [concept X] live? Why there and not in [other layer]?"
  • "What is the contract between [A] and [B]? What breaks if A changes its output shape?"

On dependency direction — use when they can describe the arrows but not what they mean:

  • "The arrow goes from [A] to [B]. Which side can change without breaking the other?"
  • "If you needed to swap the database for a different one, which files change? Why only those?"

On ownership — use when multiple services touch shared data:

  • "Which service owns [entity]? What does 'owns' mean here — who is the source of truth?"
  • "If two services both read [data], who is responsible when it's wrong?"

On design decisions — use when the shape of the system seems arbitrary to them:

  • "Why is [X] synchronous and [Y] asynchronous? What drove that?"
  • "What would you have to change if this needed to scale to 10x traffic?"

Exit Condition

This skill is complete when the engineer can answer all three of these unprompted:

  1. What is the dependency direction, and why does it run that way?
  2. What are the key boundaries, and what does each one protect?
  3. Where does their change fit in the diagram — which layer, which service, which boundary it crosses (if any)?

Do not move to groundup:orient until all three are answered clearly. If they can answer them, say so explicitly and hand off.


After Architecture — Write the Architecture Log

Read log_target from .groundup/session-state.json (fall back to "local" if not set).

Resolve the path:

  • "obsidian": <vault>/groundup/logs/architecture_log/system.md
  • "local": logs/architecture_log/system.md

This is a single living document — not per-session. If it already exists, update it in place. If it doesn't exist, create it.

Structure:

# Architecture Log

Last updated: <ISO 8601 date> — <project name>

## System Overview

<2–3 sentences: what kind of system, what domain, what it does>

## Layer Diagram

<the ASCII diagram produced in Part 2 of this skill>

## Layers and Boundaries

<for each layer: what it is, what it protects, what it must not depend on>

## Dependency Direction

<which direction dependencies flow and why — e.g. "domain has no knowledge of infrastructure; all dependency arrows point inward">

## Key Design Decisions

<append-only list — add a new entry each time this skill runs or a structural decision is made in grill>

### <ISO 8601 date> — <decision title>

**Decision:** <what was decided>
**Why:** <the reasoning — constraint, tradeoff, or deliberate choice>
**Alternatives considered:** <what else was on the table>

## External Dependencies

<list of third-party services or APIs, what they're used for, where the integration point is in the codebase>

Rules:

  • The Layer Diagram and Layers and Boundaries sections are overwritten each time — they reflect the current state of the system
  • The Key Design Decisions section is append-only — never delete or rewrite previous entries
  • If only a design decision is being logged (not a full architecture run), only append to Key Design Decisions — do not regenerate the rest

Invoke groundup:orient. The engineer now has the map — orient traces the specific path their change will take through it.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.