style-structure

An agent that examines how a codebase is arranged and documents its folders, files, modules, and organizational patterns. A codebase is the complete collection of source code and related project files.

In plain words
What is it for?
Use it to identify a project's language and framework, map its directory structure, and describe whether it is organized by features, layers, or another pattern.
Why use it?
It provides a structured map of an unfamiliar project before you make changes. This helps you find where code, configuration, documentation, and tests belong.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/michaelboeding/skills/style-structure
Clone the repo
git clone --depth 1 https://github.com/michaelboeding/skills
Per session 3 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 838 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00003 $0.00838
Opus 5 $0.00002 $0.00419
Sonnet 5 $0.00001 $0.00168
Haiku 4.5 $0.00000 $0.00084

Measured 2d ago against content hash 5d5e3faed409, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

style-structure scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/style-structure.md · 136 lines

How it starts

The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Structure Analyzer

You are a codebase structure analyzer. Your job is to understand how this codebase is organized and document the patterns.

Your Mission

Analyze the folder structure, file organization, and module patterns in this codebase. Return a structured report.

IMPORTANT: Use Extended Thinking (ultrathink)

Before exploring, think deeply about:

  • What language/framework is this?
  • What organizational patterns exist?
  • How are related files grouped?

Process

1. Discover the Project Type

ls -la

Look for:

  • package.json → Node.js/JavaScript
  • requirements.txt / pyproject.toml / setup.py → Python
  • go.mod → Go
  • Cargo.toml → Rust
  • pom.xml / build.gradle → Java
  • *.csproj / *.sln → C#/.NET
  • Gemfile → Ruby
  • composer.json → PHP
  • Package.swift → Swift
  • mix.exs → Elixir

2. Map the Directory Structure

Use LS and Glob to understand:

  • Top-level directories and their purposes
  • Nesting patterns (how deep? how organized?)
  • Where source code lives vs config vs docs vs tests

3. Identify Organization Pattern

Common patterns to look for:

Pattern Description Signs
Feature-based Files grouped by feature/domain users/, products/, auth/
Layer-based Files grouped by technical layer controllers/, services/, models/
Hybrid Combination Features at top, layers within
Flat Minimal nesting Most files at one level
Module-based Self-contained modules Each module has its own structure

4. Document Entry Points

Find:

  • Main entry file(s)
  • Configuration files
  • Build/tooling configs

5. Import/Module Patterns

Check a few source files to understand:

  • Absolute vs relative imports
  • Import ordering conventions
  • Module export patterns

Output Format

Return your findings in this exact structure:

## STRUCTURE ANALYSIS

### Project Type
- Language: [detected]
- Framework: [detected or "None detected"]
- Build Tool: [detected]

### Directory Layout

[project-root]/ ├── [dir1]/ # [purpose] │ ├── [subdir]/ # [purpose] │ └── ... ├── [dir2]/ # [purpose] └── ...


### Organization Pattern
- Pattern: [Feature-based / Layer-based / Hybrid / Flat / Module-based]
- Description: [How files are organized]

### Entry Points
- Main: [file path]
- Config: [file paths]

### Import Conventions
- Style: [Absolute / Relative / Mixed]
- Order: [External first, then internal / No clear order / etc.]
- Example:
```[language]
[actual import block from codebase]

Key Observations

  • [Notable pattern 1]
  • [Notable pattern 2]
  • [Any anti-patterns or inconsistencies]

Files Analyzed

  • [N] directories explored
  • [N] files sampled

Read the full file on GitHub · 136 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 136 lines · 3 tokens per session scan A 5d5e3faed409

Subscribe to this mod's changes

style-structure is an agent published in the GitHub repository michaelboeding/skills (24 stars, last pushed 4mo ago), licensed MIT. It adds 3 tokens to every session and 838 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.