Agent skill
repo-structure-canonical-structure
Sub-skill of repo-structure: Canonical Structure (+1).
Install this agent skill to your Project
npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/workspace-hub/repo-structure/canonical-structure
SKILL.md
Canonical Structure (+1)
Canonical Structure
repo/
src/
<package_name>/ ← installed package root (snake_case)
__init__.py ← required at every level
common/ ← cross-cutting utilities
modules/ ← domain feature modules
<domain>/
__init__.py
core.py ← main logic
utils.py ← helpers
cli/ ← command-line entrypoints (if any)
tests/
<domain>/ ← mirrors src/<package>/<domain>/
unit/
integration/
fixtures/
docs/
config/
scripts/
data/
reports/ ← gitignored (generated)
pyproject.toml ← required at repo root
pytest.ini ← required; must include pythonpath = src
Rules
- One package per
src/—src/contains exactlysrc/<package_name>/. No other Python packages atsrc/other_package/level. __init__.pyrequired at every directory that is a Python package.pythonpath = srcinpytest.ini— never rely on PYTHONPATH env variable for CI.- Tests mirror src —
tests/<domain>/maps tosrc/<package>/<domain>/. Do NOT usetests/modules/<domain>/wrapper — themodules/level is redundant. - No loose scripts at root — ad-hoc
.pyfiles at repo root belong inscripts/orsrc/<package>/cli/orsrc/<package>/tools/.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-complete-milestone
Archive completed milestone and prepare for next version
gsd-reapply-patches
Reapply local modifications after a GSD update
gsd-verify-work
Validate built features through conversational UAT
gsd-thread
Manage persistent context threads for cross-session work
clinical-trial-protocol
Generate clinical trial protocols for medical devices or drugs through a modular, waypoint-based architecture with research-only and full protocol modes.
single-cell-rna-qc
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Didn't find tool you were looking for?