project-structure
The standard for how a repo is laid out and how files/modules are named, so every project looks the same and generated code has an obvious right place. Use when creating a new file, module, or directory, deciding where something goes, naming a file/folder, scaffolding a new repo, or reviewing whether code is well-organized. Counters the AI-slop failure mode of sprawling, inconsistently-placed, god-everything files.
What this skill does
# Project structure ## The rule Every repo follows the same shape, so any project is navigable on sight and generated code has one obvious home. Three principles, in priority order: 1. **Consistency across repos beats local cleverness.** A developer (or agent) dropped into any of our projects should find things in the same places. Don't invent a new layout per repo. 2. **Colocate by feature, not by type.** Group code by what it does (`auth/`, `billing/`), not by technical kind (`controllers/`, `services/`, `utils/` at the top level). A feature's code, tests, and types live together. 3. **One module, one responsibility.** A file that needs "and" to describe it is two files. New behavior gets a new well-named module, not another 50 lines bolted onto a god-file. ## Reference layouts These are the baseline. Adapt the names to the project, not the shape. **Python** ``` repo/ ├── src/<package>/ # the package; feature subpackages inside │ ├── <feature>/ # colocated: logic + its types │ └── __init__.py ├── tests/ # mirrors src/ layout ├── pyproject.toml # deps + ruff + mypy config (single source) ├── justfile # the check recipes (verify/fix) — shared by hooks + CI ├── lefthook.yml # git-hook dispatcher ├── .github/workflows/ ├── docs/ ├── README.md └── CLAUDE.md # project conventions for agents ``` **TS / Node** ``` repo/ ├── src/ │ └── <feature>/ # feature.ts + feature.test.ts + feature.types.ts together ├── package.json # deps + scripts (lint, typecheck, test, format:check) ├── tsconfig.json ├── eslint config + prettier config ├── justfile # the check recipes (verify/fix) — shared by hooks + CI ├── lefthook.yml # git-hook dispatcher ├── .github/workflows/ ├── docs/ ├── README.md └── CLAUDE.md ``` Monorepos: one `packages/<name>/` per package, each following the above internally. ## Naming conventions - **Directories & files:** match the ecosystem's norm and be consistent — `snake_case.py` for Python, `kebab-case.ts` or `camelCase.ts` for TS (pick one per repo and hold it). Test files sit next to their subject (`foo.test.ts`) or mirror in `tests/`. - **No junk-drawer names.** `utils`, `helpers`, `misc`, `common`, `stuff` are smells — they accrete unrelated code. Name by what lives there (`formatting.ts`, `date.ts`). A shared module is fine when it has a real, nameable responsibility. - **One public thing per file, named for the file.** `parse_manifest.py` exports `parse_manifest`; don't bury it in `helpers.py`. ## Why This is an anti-slop guardrail that linters can't enforce. AI-generated code defaults to sprawl: a new endpoint becomes another branch in a 600-line `routes.ts`; a helper lands in `utils.ts` next to ten unrelated helpers; the same project gets a different layout every time. The cost shows up later — nobody can find anything, every file does five things, and review can't tell what changed. A fixed structure removes the decision: there's one right place for the new thing, so generated code lands there instead of wherever the model felt like. And uniform repos mean the skills, hooks, and CI in this suite (which assume `.github/workflows/`, `justfile`, `lefthook.yml`, `src/`) work everywhere without per-repo fiddling. ## How to apply ### When creating a new file or module Ask: does this responsibility already have a home? If yes, extend it. If no, make a new well-named module in the right feature directory — never widen a god-file or drop it in `utils`. ### When scaffolding a new repo Lay down the reference structure first (`src/`, `tests/`, `docs/`, `.github/`, `.claude/`, `README.md`, `CLAUDE.md`). `project-workflow`'s `/project-init` installs the tooling into this shape. ### When reviewing Flag: top-level type-folders (`controllers/`/`services/`) instead of feature colocation; `utils`/`misc` junk drawers; files that do unrelated things; a layout that doesn't match the org's other repos. (Complexity and dead-code within a file are caught mechanically by skylos/fallow — this skill is about *placement and organization*, the part tools can't judge.) ## Related - `quality-stack-setup` (project-workflow) — installs tooling into this structure. - skylos / fallow (`quality-workflow`) — catch the mechanical side (dead code, complexity, clones) that pairs with good structure.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.