Agent skill

Structure Codebase

by citypaul in citypaul/.dotfiles

Design, audit, and evolve physical source and package structures that expose real architectural boundaries while keeping related behavior together.

Custom licenceAuto-check passedFrontend & Design

Install Structure Codebase

skills CLI
$ npx skills add citypaul/.dotfiles --skill structure-codebase -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install citypaul/.dotfiles structure-codebase --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/citypaul/.dotfiles.git skills-src && mkdir -p .claude/skills && cp -r skills-src/claude/.claude/skills/structure-codebase .claude/skills/structure-codebase && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
structure-codebase
GitHub stars
739
Token cost
~4.4k tokens
SKILL.md length
2,106 words
Files
7 (incl. references)
Skills in repo
44
Repo updated
First seen
Licence
Custom licence

At a glance

Design, audit, and evolve physical source and package structures that expose real architectural boundaries while keeping related behavior together.

  • Works in 5 steps: Preserve the Requested Scope → Inspect Before Naming → Select the Smallest Honest Shape → …
  • Reviewing repository trees
  • SKILL.md covers Core Model, Keep the Axes Distinct, Workflow and Visible Hexagonal Backends, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Structure Codebase is an agent skill from citypaul/.dotfiles. Design, audit, and evolve physical source and package structures that expose real architectural boundaries while keeping related behavior together. Use when creating or reviewing repository trees, deciding where files or packages belong, reducing flat folders, organizing by feature, route, screen, use case, bounded context, workflow or endpoint, structuring frontend state/data/UI ownership and design systems, making hexagonal inside/outside boundaries visible, locating ports, adapters and composition roots…

Its SKILL.md is about 4.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including reference files (for example `agents/openai.yaml`, `references/backend-patterns.md` and `references/enforcement-and-migration.md`).

It sits in Frontend & Design, covering Domain-driven design, Design systems and Design review and critique.

When your agent uses it

  • Reviewing repository trees
  • Deciding where files
  • Packages belong
  • Reducing flat folders

Example prompts

  • “/structure-codebase”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Preserve the Requested Scope
  2. Inspect Before Naming
  3. Select the Smallest Honest Shape
  4. Test Whether a Hexagon Is Earned
  5. Produce the Structure and Its Rules Together

What it can do on your machine

Read from SKILL.md and the folder at commit cd4028d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Structure Codebase loads about 4.4k tokens when it runs, and up to ~15k if it reads all its reference files. Until then it costs about 222 tokens; SKILL.md has 2,106 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~222
When it runs · the whole SKILL.md, loaded when a task matches
~4.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~15k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 2,106 words (~4,410 tokens).

“Design the source tree as a truthful map of meaning, ownership, runtime boundaries, and change cohesion. Do not start from a universal template. Select the lightest structure that makes this project's real seams easy to see and mechanically difficult to…”

— opening of SKILL.md by citypaul, Custom licence
name
structure-codebase

Read the full SKILL.md on GitHub

Files

SKILL.md and 6 other files (references) in claude/.claude/skills/structure-codebase of citypaul/.dotfiles.

  • SKILL.md
  • agents/openai.yaml
  • references/backend-patterns.md
  • references/enforcement-and-migration.md
  • references/frontend-patterns.md
  • references/research-notes.md
  • references/visible-hexagon.md

Open the folder on GitHubat commit cd4028d

Compare with similar skills

Structure Codebase next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Structure Codebase compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Structure Codebase this skillcitypaul/.dotfiles739—~4.4kAutomated safety check: PassCustom licence
DESIGN.md Spec Reviewdifferent-ai/openwork24k—~1.4kAutomated safety check: PassCustom licence
Impeccablemims-harvard/OptimusKG1463 repos~5.5kAutomated safety check: PassApache-2.0
Frontend Designudecode/plate17k—~3.6kAutomated safety check: PassCustom licence
Visualizedisplay-dev/visualize131—~7.4kAutomated safety check: PassMIT
Web Design EngineerConardLi/garden-skills13k—~8.8kAutomated safety check: PassMIT

Similar skills

  • DESIGN.md Spec Review

    different-ai/openwork

    Advisory review of a diff that flags user-facing UI changes breaking numbered rules in the repository's DESIGN.md, reporting at medium or low severity only.

    24k GitHub stars~1.4k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Impeccable

    mims-harvard/OptimusKG

    Create distinctive, production-grade frontend interfaces with high design quality.

    146 GitHub starsUsed in 3 repos~5.5k tokens
    Frontend & DesignAuto-check passed
  • Frontend Design

    udecode/plate

    Build web interfaces with genuine design quality, not AI slop.

    17k GitHub stars~3.6k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Visualize

    display-dev/visualize

    Generate beautiful, on-brand HTML artifacts — reports, diagrams, diff reviews, slide decks, plans, recaps, dashboards.

    131 GitHub stars~7.4k tokensUpdated 21 days ago
    Frontend & DesignAuto-check passed
  • Web Design Engineer

    ConardLi/garden-skills

    Builds polished browser-rendered HTML, CSS, JavaScript and React pages, dashboards, prototypes and slide decks, aiming for a stunning rather than merely functional result.

    13k GitHub stars~8.8k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • Design Craft

    kipperacademy/skillpper

    Opinionated product-design skill for building, reviewing, polishing, and iterating on landing pages, apps, dashboards, AI products, design systems, and brand touchpoints.

    113 GitHub stars~3.8k tokensUpdated yesterday
    Frontend & DesignAuto-check passed

More from citypaul/.dotfiles

All 44 skills in this repo
  • Find Skills

    citypaul/.dotfiles

    Discover and, with authorization, install agent skills from the open skills ecosystem.

    739 GitHub stars~2.5k tokensUpdated 5 days ago
    Auto-check passed
  • Render Code Shape

    citypaul/.dotfiles

    Render the shape of code — module boundaries, the types that cross them, signatures, and a cited call graph — for code that already exists or a change about to be built.

    739 GitHub stars~2.5k tokensUpdated 5 days ago
    Auto-check passed
  • Test Design Reviewer

    citypaul/.dotfiles

    Review test quality using Dave Farley's eight properties of good tests.

    739 GitHub stars~1k tokensUpdated 5 days ago
    Auto-check passed
  • Characterisation Tests

    citypaul/.dotfiles

    A skill your agent uses when modifying existing code that lacks tests and you need to document its actual current behavior before making changes -- the legacy code dilemma where you need tests to…

    739 GitHub stars~3.6k tokensUpdated 5 days ago
    Auto-check passed
  • CI Debugging

    citypaul/.dotfiles

    Systematic CI/CD failure diagnosis using hypothesis-first investigation, local reproduction, and environment delta analysis.

    739 GitHub stars~1.5k tokensUpdated 5 days ago
    Auto-check: notes
  • Double Check

    citypaul/.dotfiles

    Get a rigorous read-only second opinion on finished work through the host's available reviewer capabilities, preferably from a different model provider.

    739 GitHub stars~3.6k tokensUpdated 5 days ago
    Auto-check passed

Questions about Structure Codebase

What does Structure Codebase do?

Design, audit, and evolve physical source and package structures that expose real architectural boundaries while keeping related behavior together. dotfiles. Design, audit, and evolve physical source and package structures that expose real architectural boundaries while keeping related behavior together.

When should I use Structure Codebase?

Structure Codebase fits situations like: reviewing repository trees; deciding where files; packages belong; reducing flat folders.

How do I install Structure Codebase in Claude Code?

Run `npx skills add citypaul/.dotfiles --skill structure-codebase -a claude-code`. Or copy the skill folder (claude/.claude/skills/structure-codebase in citypaul/.dotfiles) into .claude/skills/structure-codebase in your project. Claude Code loads it when a task matches its description.

How do I install Structure Codebase in Codex?

Run `npx skills add citypaul/.dotfiles --skill structure-codebase -a codex`. Or copy the skill folder (claude/.claude/skills/structure-codebase in citypaul/.dotfiles) into .agents/skills/structure-codebase in your project. Codex loads it when a task matches its description.

Can I use Structure Codebase in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add citypaul/.dotfiles --skill structure-codebase -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/structure-codebase, .gemini/skills/structure-codebase, .github/skills/structure-codebase and .opencode/skills/structure-codebase in your project.

What does Structure Codebase need to run?

SKILL.md names no scripts, command-line tools or credentials: Structure Codebase is instructions for the agent only.

Does Structure Codebase access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Structure Codebase safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Structure Codebase use?

Structure Codebase has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Structure Codebase use?

About 4.4k tokens (SKILL.md is roughly 18k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.

What are the alternatives to Structure Codebase?

Skills that share tags, products or a category with Structure Codebase: DESIGN.md Spec Review (different-ai/openwork, 24k stars), Impeccable (mims-harvard/OptimusKG, 146 stars), Frontend Design (udecode/plate, 17k stars) and Visualize (display-dev/visualize, 131 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Structure Codebase?

citypaul (a GitHub user) maintains it in citypaul/.dotfiles, which has 739 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on October 2, 2026.

Source: citypaul/.dotfiles on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.