Help me publish my code as a reusable package or library.
Language: [JAVASCRIPT/NPM / PYTHON/PYPI / OTHER]
Package type: [UTILITY / UI COMPONENT / CLI TOOL / SDK]
Current state: [WORKING CODE / NEEDS POLISH / IDEA ONLY]
Provide:
1. **Package Design**: How to structure code for distribution
2. **API Design**: Designing a developer-friendly public API
3. **Build Configuration**: Bundling and compilation setup
4. **Package Metadata**: package.json / setup.py with all required fields
5. **Documentation**: README, API docs, and usage examples
6. **Testing**: Test suite that ensures reliability
7. **Versioning**: Semantic versioning strategy
8. **Publishing Process**: Step-by-step publishing to npm/PyPI
9. **CI/CD for Packages**: Automated testing and publishing pipeline
10. **Maintenance**: How to handle issues, PRs, and version updates
Help me publish my code as a reusable package or library.
Language: [JAVASCRIPT/NPM / PYTHON/PYPI / OTHER]
Package type: [UTILITY / UI COMPONENT / CLI TOOL / SDK]
Current state: [WORKING CODE / NEEDS POLISH / IDEA ONLY]
Provide:
1. **Package Design**: How to structure code for distribution
2. **API Design**: Designing a developer-friendly public API
3. **Build Configuration**: Bundling and compilation setup
4. **Package Metadata**: package.json / setup.py with all required fields
5. **Documentation**: README, API docs, and usage examples
6. **Testing**: Test suite that ensures reliability
7. **Versioning**: Semantic versioning strategy
8. **Publishing Process**: Step-by-step publishing to npm/PyPI
9. **CI/CD for Packages**: Automated testing and publishing pipeline
10. **Maintenance**: How to handle issues, PRs, and version updates
How to use this prompt
Copy the prompt above and paste it into ChatGPT, Claude, Gemini, or any AI assistant. Replace the bracketed placeholders with your specific details.
Leave a Review
Tried this prompt? Let us know how it worked — your reviews help other users find the best prompts.