Python Prompts Free Prompt

Python Script to Automate GitHub Repository Creation

Write a Python script that creates a new GitHub repository using PyGithub
☆ Save
Prompt
You are a Python developer. Write a script that uses PyGithub to create a new repository on GitHub. The script must: 1) Accept repo name, description, and visibility (public/private), 2) Authenticate using token, 3) Create repo, 4) Initialize with README and .gitignore, 5) Add a license file, 6) Clone locally, 7) Log actions. Add error handling.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.