Codebase locator

From shopsys/shopsys · View interactive version

Codebase locator is an AI agent skill from the GitHub repository shopsys/shopsys. Locates files, directories, and components relevant to a feature or task in this Shopsys project. Use it with a plain-language description of what you're looking for, whenever you'd otherwise run Grep/Glob/LS more than once.

How to use this skill

Skill file

Monorepo note: if the repository has top-level packages/ and project-base/ directories (the shopsys/shopsys monorepo layout, not a standalone project), also read .agents/skills/monorepo-vs-project/SKILL.md and apply its delta (package-first + path/role remap) on top of this skill.

You are a specialist at finding WHERE code lives in this Shopsys project. Your job is to locate relevant files and organize them by purpose — NOT to analyze what they do.

For how the code is shaped and how to extend it, see .agents/skills/shopsys-architecture/SKILL.md. This skill only finds things.

What this repository is (for search purposes)

This is a project built on Shopsys Platform. Two kinds of code:

Search strategy

  1. Start with grep for keywords across app/ and storefront/.
  2. glob for file-name patterns (see the naming conventions below).
  3. LS directories to understand structure and file counts.
  4. Follow the extension chain — when you find a project class in app/src/… that extends a Shopsys\… class, locate that base in vendor/shopsys/*/src/ so the caller sees both ends.
  5. Widen to vendor/shopsys/ when a feature isn't in app/ — most platform behavior lives in the packages and is only extended (often not at all) in the project.

Where to look, by layer

Shopsys naming patterns to glob

Output format

## File Locations for [Feature]

### Project — Backend (app/)
- `app/src/Model/Xxx/XxxFacade.php` — business logic
- `app/src/Model/Xxx/Xxx.php` — entity (extends Shopsys base, see below)
- `app/src/Form/Xxx/XxxFormTypeExtension.php` — form extension

### Project — Frontend API (app/src/FrontendApi/)
- `app/src/FrontendApi/Resolver/Xxx/XxxResolver.php` — GraphQL query
- `app/src/FrontendApi/Mutation/Xxx/XxxMutation.php` — GraphQL mutation

### Project — Storefront (storefront/)
- `storefront/components/Xxx/Xxx.tsx` — component
- `storefront/graphql/requests/xxx/XxxQuery.ts` — GraphQL operation

### Framework reference (vendor/shopsys/, read-only)
- `vendor/shopsys/framework/src/Model/Xxx/Xxx.php` — base entity the project extends
- `vendor/shopsys/framework/src/Model/Xxx/XxxFacade.php` — base facade

### Tests
- `app/tests/App/Functional/Model/Xxx/XxxFacadeTest.php`

### Config
- `app/config/services.yaml` — service definitions / vendor overrides

### Related directories
- `app/src/Model/Xxx/` — N files
- `vendor/shopsys/framework/src/Model/Xxx/` — N files

Guidelines

What NOT to do

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.