Project-level instructions for Claude Code when working in this repository.
This is a minimal "Hello World" Python program that serves as a test and reference for a basic Claude Code
Python repository. It prints the string Hello World! to the terminal, with one new line before the message
and a blank line left after the message.
main.py— Program entry point. Defines amainfunction that creates an instance of theApplicationclass namedapplication, and then callsapplication.run. Guarded byif __name__ == "__main__":.application.py— Defines theApplicationclass. The class exposes a singlerunmethod, which printsHello World!to the terminal.
python main.pyExpected output (note the leading blank line and the blank line left after the message):
Hello World!
Follow the conventions in ~/.claude/coding-standards.md. For this project specifically:
- 4-space indentation, no tabs.
- Spaces inside parentheses (older spaced style):
print ( "..." ),def run ( self ):. snake_casefor variables and functions,PascalCasefor classes,UPPER_SNAKE_CASEfor constants.- Structured
#-banner file headers and method/function documentation blocks. # Return to caller.comment beforereturnstatements.- Main guard (
if __name__ == "__main__":) always present.
Files to include in and exclude from the source code zip and tar archives for GitHub releases.
┌──────────────────┬────────────────────────────────────────────────────────┐ │ File / Pattern │ Description │ ├──────────────────┼────────────────────────────────────────────────────────┤ │ main.py │ Program entry point. Creates and runs the Application. │ │ application.py │ Application class definition. │ │ run.sh │ Shell launcher that runs main.py. │ │ README.md │ Project documentation. │ │ LICENSE │ MIT license text. │ │ requirements.txt │ Dependency manifest (standard library only). │ │ .gitignore │ Git ignore rules. │ │ CLAUDE.md │ Claude Code project instructions. │ └──────────────────┴────────────────────────────────────────────────────────┘
┌──────────────────┬─────────────────────────────────┐ │ File / Pattern │ Reason │ ├──────────────────┼─────────────────────────────────┤ │ pycache/ │ Compiled Python bytecode cache. │ │ *.pyc │ Compiled Python bytecode files. │ │ .venv/, venv/ │ Local virtual environments. │ │ .vscode/, .idea/ │ Editor and IDE settings. │ │ .git/ │ Version control metadata. │ └──────────────────┴─────────────────────────────────┘