Skip to content
Back to skills

Project Structure

ASecurity

Seshat, how to organize the files of a code project (game, website, tool) so it is clear to re-read and costs as few tokens as possible in each new conversation. Read only when creating a new code project, when the user asks to tidy, structure or reorganize a project, or asks how to organize a project to save tokens. Complements the plugin base rules.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgogit

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add 0Aqua/Seshat --skill project-structure --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Project Structure?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Project Structure
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/0aqua-project-structure/badge)](https://www.skillsdirectory.com/skills/0aqua-project-structure)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: project-structure
description: 'Seshat, how to organize the files of a code project (game, website, tool) so it is clear to re-read and costs as few tokens as possible in each new conversation. Read only when creating a new code project, when the user asks to tidy, structure or reorganize a project, or asks how to organize a project to save tokens. Complements the plugin base rules.'
---

# Project structure (code projects)

Goal: every conversation starts from zero. It must find what it needs while reading as LITTLE as possible.
Golden rule: **each piece of information in one place only, and you know where without searching.**

## 0. Priorities and limits (respect these first)
- Priorities, subagents, team projects, "finished" parts: see the plugin base rules (priorities, "Before coding")
  (they always win over this skill).
- This skill says WHAT to aim for. It forces nothing: on an existing project, nothing is moved, split, renamed or
  deleted without the user's agreement (see part 7).
- Names and folders that already exist in the project are KEPT (e.g. `app/PROJECT_NOTES.md`, `app/tests/`).
  The names below are only for a new project or an element that does not exist yet.

## 1. Base files (at the root)
- `CLAUDE.md`: short (aim for under 60 lines): project goal in 2 lines, absolute rules, where things are,
  test command, how to deliver.
  A user rule is NEVER deleted. To shorten, a detail may only be moved to the notes, with the user's agreement.
- Notes file (`NOTES.md` if none exists). Sections, in this order:
  1. **Status**: what works, what remains (a few lines).
  2. **Code map**: one line per file: `path`: role; key functions or parts.
  3. **Decisions**: user choices to respect (1 line each).
  4. **Pitfalls**: what already broke and why.
  These are the sections the handoff (handoff skill) updates.
  Notes file that already exists: it keeps its format; add a missing section (e.g. code map)
  only if the user agrees.
- No duplicates: information in `CLAUDE.md` is not repeated in the notes, and vice versa.

## 2. Folders (new project)
Organize by role, with simple, stable names:
- code (e.g. `src/`, or the game folder), split by theme;
- `tests/`: the tests and their run script;
- `scripts/`: tools kept so they are not redone (drawing, generation, conversion, zip...);
- `references/`: images or examples given by the user (to follow exactly);
- `archives/`: old notes and old files (never read unless needed);
- test outputs and temporary screenshots: folder ignored by git (`.gitignore`).
  Never remove an already tracked file from git without asking.

## 3. File size and splitting
- One file = one theme (drawing, logic, sounds, menus, data...).
- Aim for under 400 lines (about 20 KB) per code file.
- Existing bigger file: PROPOSE the split in 1 line; do it only if the user agrees,
  preferably in a dedicated conversation. Never in the middle of another task.
- New part (mode, page, level): a new file; if a template exists (`_modele.*`), copy it.
- Data (settings, texts, lists, levels) separate from the code when it is simple to do.

## 4. Readable without reading everything (for code we write or change)
- At the top of code files we create: 2 or 3 comment lines: role of the file.
  (Not in files that do not accept comments, such as JSON or images.)
- Easy-to-search section markers, in the style the project already uses (otherwise `// === [name] ===`).
- Clear, unique names so a search (grep) hits the right place (`drawFurso` rather than `draw2`).
- Dead code: delete it only if a search proves it is used nowhere, and only in a file already being worked on.
  When in doubt, leave it.
- Hook points between parts marked with a fixed word (e.g. `[game modes]`) and listed in the code map.

## 5. Economical tests
- A single command to test everything, written in `CLAUDE.md`.
- Short output: "OK" or the list of errors. To shorten an existing test, add a short mode;
  never remove a check.
- A non-regression test for each "finished" part.

## 6. Upkeep (at each delivery)
- File created, moved or split: update the code map (if the project has one).
- Very long notes (more than about 200 lines): MOVE the old history (never the decisions or pitfalls
  still useful) to the project's archive folder (`archives/` if it has none). Nothing is deleted.
  Do it only if the user agrees.

## 7. Moving, renaming or splitting without breaking anything
Only with the user's agreement, then in this order:
1. NEVER rename a file recognized by its name by the program or the user (skins, images, sounds,
   files expected in a zip, public links...).
2. Search for ALL references to the file (HTML, code, tests, zip or build scripts, docs, `CLAUDE.md`, notes).
3. Move with `git mv` (keeps history), update each reference.
4. Run all tests + non-regression; same result as before, otherwise undo.
5. Update the code map; one separate commit per reorganization, clear message.

## 8. Applying
- **New code project**: set up parts 1, 2 and 5 from the start.
- **Existing project**: propose in 1 to 3 lines the most worthwhile changes (usually: code map,
  short tests), do only what the user accepts, following part 7.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.