Guide · Agent skill
How to use the Python Project Structure agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The Python Project Structure skill is a written set of Python organization guidelines that an AI agent follows when you ask it to start a project or reorganize code. It covers directory layouts, how to split code into focused files, how to define public interfaces with __all__, and when to use absolute imports. This guide explains what the skill does, how to install it, how to trigger it, and what to watch for.
Quick start
- 1Download the ZIP. Download the python-project-structure skill ZIP from this page.
- 2Unzip into a skills folder. Unzip it into ~/.claude/skills/ for personal use, or into your project's .claude/skills/ folder.
- 3Or upload it in the Claude apps. Go to Settings → Capabilities → Skills and upload the skill.
- 4Describe your Python task. Ask in plain language, for example to set up a new project or organize modules.
- 5Review the proposed layout. Check the suggested directories, __all__ lists and import style before accepting changes.
- 6Apply changes in small steps. Move code gradually and keep your changes in version control.
What is an agent skill, and what does this one make the agent do?
An agent skill is a folder containing a SKILL.md file with instructions that an AI agent can read and apply when a request matches the skill's description. This one is named python-project-structure and is described as covering Python project organization, module architecture, and public API design.
Once installed, the agent uses these guidelines when you set up a new project or organize modules. It can suggest a directory layout such as src/ with tests/ beside it, keep each file focused on one concept, define each package's public interface with __all__, prefer shallow folder structures, and use absolute imports.
- Suggests layouts such as a src/ package folder with tests/ next to it and a pyproject.toml and README.md at the top
- Recommends splitting files that handle several unrelated responsibilities or grow beyond roughly 300-500 lines
- Defines public APIs with __all__ and keeps unlisted names internal by convention
- Prefers flat folder structures and adds sub-packages only for genuine sub-domains
- Chooses between colocated tests and a parallel tests/ directory, applied consistently
How do you install the python-project-structure skill?
Download the skill ZIP from this page. Then choose one of the two install locations below. A personal skill is available across your projects, while a project skill applies only to the project that contains it.
Unzip the download into ~/.claude/skills/ for a personal install, or into your project's .claude/skills/ folder for a project install. You can also upload the skill in the Claude apps under Settings → Capabilities → Skills.
- Personal: unzip into ~/.claude/skills/
- Project: unzip into the .claude/skills/ folder inside your project
- Claude apps: Settings → Capabilities → Skills, then upload the skill
How do you trigger the skill with a natural request?
You do not need a special command. The agent decides to use a skill when your request matches its description, which mentions setting up new projects, organizing modules, defining public interfaces with __all__, and planning directory layouts. Describe what you are trying to do in plain language and mention the Python context.
If the agent does not seem to apply the guidance, name the topic directly, for example by asking it to follow the python-project-structure skill.
What are some example requests?
These examples match the situations listed in the skill's description. Adjust the details to your own project.
- Set up a new Python package for an internal billing library and suggest a directory layout.
- Reorganize this Python app, where services and models are tangled together, into clearer modules.
- Define __all__ for the public interface of my services package.
- Should my tests sit next to the code or in a parallel tests/ folder for this project?
- Plan the folder structure for a Python API with services, models and repositories.
What do you need before using it?
The skill lists no required tools, does not run scripts, and does not use the network. It is a set of written guidelines. You do need an AI agent setup that supports skills, and the skill is specific to Python, so it is only useful for Python code.
Because the guidance is opinionated, review suggested changes before applying them, especially in an existing codebase.
- No listed requirements
- Runs scripts: no
- Uses network: no
- Works only on Python projects
What should you check for safety and fit?
The skill itself does not execute code or contact the internet, so it has no scripting or network behaviour to audit. Its effect comes from the changes the agent proposes and makes in your files, so read those changes before accepting them.
It may conflict with a structure your team already uses. A large reorganization applied without review can be disruptive, so ask the agent for a plan first and move code in small steps.
- Ask for a plan before large file moves
- Keep changes in version control so you can revert them
- Check that renamed imports still work across the project
What tips help you get better results?
Give the agent context about your project's size, whether it is a library or an application, and any structure you want to keep. The skill's guidance is most useful when the agent knows the goal.
- Say whether you are building a library or an application, since the skill covers reusable library packages too
- Share your current folder tree when reorganizing
- State if you want to keep an existing layout, so the agent does not override it
- Ask for __all__ lists to be reviewed against what each module actually needs to export
What people use it for
- Starting a new Python package with a src/ layout and a tests/ folder
- Splitting a large, tangled module into focused files with clear responsibilities
- Defining __all__ for a package so its public interface is explicit
- Deciding between colocated tests and a parallel test directory
- Planning a layered or domain-driven folder structure for a growing application
Frequently asked questions
What is the python-project-structure skill?
It is an agent skill from the wshobson/agents collection that gives an AI agent Python organization guidelines. It covers project layouts, module splitting, __all__ public APIs and import style. It is a written guide the agent applies, and it does not run anything on its own.
How do I install the python-project-structure skill?
Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use, or into your project's .claude/skills/ folder. You can also upload it in the Claude apps under Settings → Capabilities → Skills.
Does this skill need anything else installed?
The skill lists no requirements. It does not run scripts and does not use the network. You still need an AI agent setup that supports skills.
Is the python-project-structure skill free?
The skill is published under the MIT licence. The source material does not state pricing for the wider platform, so check the page for any details on your agent setup.
Does the skill work with non-Python projects?
No. The guidance is specific to Python conventions, so it is not suited to other languages.
Will the agent restructure my whole project automatically?
The skill gives guidance, and the agent proposes and makes changes based on it. Large reorganizations can be disruptive if applied without review, so ask for a plan first and check each change.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
This skill suits developers starting a new Python package, teams untangling a growing codebase, and students learning project and API structure. It is less suitable for non-Python work or for projects with an established structure the team wants to keep, since its advice may conflict with that layout.
Download the skill