choplin/my-agent-skills/codebase-structure

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Designs a target codebase structure from a shared domain and use-case model, assigning semantic ownership and choosing capability, consistency, resource, representation, module, and dependency boundaries. Applies when starting a project or reshaping an architecture whose concepts and boundaries are not yet decided — laying out packages, deciding what owns what, or settling how modules may depend on each other.

Install

npx vskill@latest install choplin/my-agent-skills/codebase-structure

SKILL.md

Codebase Structure

Load the codebase-structure-base skill. Read its references/knowledge/reviewability-goal.md, references/procedures/concept-model.md, and references/knowledge/boundary-forces.md resources before selecting boundaries.

1. Model concepts and use cases

Treat a type as more than an input/output container. Make each meaningful type express a concept, its valid states, and the operations that belong to it.

  • Discover domain concepts and use cases from the product language, types,

schemas, APIs, tests, and procedures. Prefer the shared domain vocabulary to technical mechanism names.

  • Identify invalid states and prevent them through types, constructors,

visibility, or validation at a clear boundary where practical.

  • Place rules, transformations, and state transitions with the concept that

owns their meaning. Do not centralize unrelated rules in a generic service, store, model, or util module.

  • Keep behavior near its semantic owner. Pure functions may own a concept's

behavior when they operate on its explicit type; do not force OO patterns.

  • Reserve use-case code for coordination across concepts: input validation,

authorization or existence checks, transaction boundaries, and ordering multiple domain operations.

Fill only the relevant rows in the base skill's concept and use-case model. Update the model when discovery changes it rather than bending it to match the current code.

2. Select boundaries from the model

Apply the base skill's boundary forces independently, then align them only where a shared invariant or representative change requires cohesion. Start with direct concrete dependencies. Add a port only for a concrete change-isolation, substitution, or test-control need, and shape it around the consumer's capability.

When an external integration combines external-system discovery or identity, application-specific selection or normalization, and coordinated persistence, read the base skill's references/knowledge/integration-boundaries.md.

3. Map the target structure

Choose names that fit the repository. Treat concept code, use-case code, external adapters, transport code, and composition code as responsibilities, not required directories or layers.

Record a proportional model-to-code map containing:

  • each relevant concept's semantic owner and public operations;
  • each use case's entry point, result, and required capabilities;
  • each consistency and resource-lifecycle owner;
  • each external representation and mapping boundary;
  • the composition root and allowed dependency directions;
  • behavioral evidence and intentionally unresolved decisions.

Prefer types, imports, visibility, public surfaces, tests, and mechanically enforced dependency rules as evidence. Do not make prose the only place where the architecture is visible.

4. Falsify before concluding

Use codebase-structure-review to challenge the target with representative changes and verify boundary closure, static legibility, traceability, and review locality. Revise the design or record missing evidence; do not present an unreviewed target as complete.

5. Apply implementation-specific guidance

Identify the implementation languages and apply the matching installed lang-reference-<language> skill when available. Use it for language-specific style, idioms, and verification.

Identify the application kind and apply the matching installed app-reference-<kind> skill when available. Use it for platform architecture, framework recommendations, rendering or state boundaries, and platform-specific verification.

Keep this skill language- and platform-agnostic. Repository configuration and established conventions take precedence. Do not invent guidance when no matching reference exists.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/choplin/my-agent-skills/codebase-structure/badge)](https://verified-skill.com/skills/choplin/my-agent-skills/codebase-structure)

Something wrong with this skill or its page? Tell us.