Create professional, beautiful, high-converting README.md files
Project description
🎨 GitHub README Design Skill
Create professional, beautiful, high-converting README.md files
Features • Installation • Usage • Templates • Examples
✨ Features
🎨 Beautiful Design
|
📊 Dynamic Elements
|
📝 Template System
|
🔧 Tool Integration
|
🚀 Quick Start
Installation
# Clone the repository
git clone https://github.com/GetIT-Sunday/ReadmeMagic.git
cd ReadmeMagic
# Install dependencies
pip install -e .
Usage
# Generate README for a project
readme-magic generate --project-path /path/to/project
# Use a specific template
readme-magic generate --template ai-project --project-path /path/to/project
# Preview the result
readme-magic preview --output preview.html
📦 Installation
Option 1: pip
pip install ReadmeMagic
Option 2: From Source
git clone https://github.com/GetIT-Sunday/ReadmeMagic.git
cd ReadmeMagic
pip install -e .
Option 3: Codex Skill
codex skill install readme-magic
📝 Templates
Standard Template
适用于大多数开源项目。包含:
- 精美头部设计
- 徽章系统
- 功能特性表格
- 快速开始指南
- Star History 图表
AI/ML Project Template
针对机器学习项目优化。包含:
- 模型下载表格
- 训练配置说明
- 推理示例
- 性能基准对比
CLI Tool Template
命令行工具专用。包含:
- 安装方法(多种方式)
- 命令表格
- 配置说明
- Shell 集成
Library/Framework Template
可复用组件库。包含:
- API 文档链接
- 使用示例
- 贡献指南
- 版本更新日志
Personal Project Template
个人作品集展示。包含:
- 项目截图展示
- 技术栈徽章
- 在线演示链接
- 联系方式
🎨 Customization
Color Themes
# Use built-in theme
readme-magic generate --theme dark
# Custom colors
readme-magic generate --primary-color "#667eea" --secondary-color "#764ba2"
Badges
# Add specific badges
readme-magic generate --badges version,license,python,stars
# Custom badge
readme-magic generate --custom-badge "Made with ❤️"
Star History
# Add Star History
readme-magic generate --star-history --repo "owner/repo"
# Multi-project comparison
readme-magic generate --star-history --repos "project1,project2"
📚 Examples
Example 1: Python Library
readme-magic generate \
--template standard \
--project-path ./my-library \
--badges version,license,python,stars,tests
Example 2: AI Project
readme-magic generate \
--template ai-project \
--project-path ./my-ai-project \
--star-history --repo "myuser/my-ai-project"
Example 3: CLI Tool
readme-magic generate \
--template cli-tool \
--project-path ./my-cli \
--badges version,license,platform
🔧 Advanced Usage
Batch Generation
# projects.yaml
projects:
- path: ./project1
template: standard
badges: version,license,python
- path: ./project2
template: ai-project
star-history: true
- path: ./project3
template: cli-tool
badges: version,platform
readme-magic batch --config projects.yaml
Custom Templates
# Create custom template
readme-magic create-template --name my-template --from standard
# Edit template
vim templates/my-template.md
# Use custom template
readme-magic generate --template my-template --project-path ./project
Integration with CI/CD
# .github/workflows/update-readme.yml
name: Update README
on:
push:
branches: [main]
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: pip install ReadmeMagic
- run: readme-magic generate --project-path . --star-history
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "docs: update README"
📁 Project Structure
ReadmeMagic/
├── SKILL.md # Skill documentation
├── README.md # This file
├── templates/
│ ├── standard.md # Standard template
│ ├── ai-project.md # AI/ML project template
│ ├── cli-tool.md # CLI tool template
│ ├── library.md # Library template
│ └── personal.md # Personal project template
├── src/
│ ├── __init__.py
│ ├── generator.py # README generator
│ ├── templates.py # Template loader
│ ├── badges.py # Badge generator
│ └── star_history.py # Star History generator
├── examples/
│ ├── python-library/ # Example: Python library
│ ├── ai-project/ # Example: AI project
│ └── cli-tool/ # Example: CLI tool
├── tests/
│ ├── test_generator.py
│ └── test_templates.py
└── setup.py
🧪 Development
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Run linting
flake8 src/
# Format code
black src/
# Build package
python setup.py sdist bdist_wheel
🤝 Contributing
欢迎贡献!请查看 CONTRIBUTING.md 了解详情。
How to Contribute
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Create a Pull Request
Development Setup
# Clone your fork
git clone https://github.com/your-username/ReadmeMagic.git
cd ReadmeMagic
# Create virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Install dependencies
pip install -e ".[dev]"
# Run tests
pytest
📄 License
MIT License - 详见 LICENSE
🙏 Acknowledgments
- shields.io - Badge generation
- star-history.com - Star History charts
- contrib.rocks - Contributor avatars
- GitHub Readme Stats - Stats cards
📚 Resources
⭐ If this project helps you, please give it a star!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file readmemagic-1.0.0.tar.gz.
File metadata
- Download URL: readmemagic-1.0.0.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d667094f30a2fd63efd81d68ceb6ad43a83d9051f8f857027cc5c61b7ec48276
|
|
| MD5 |
6c95836f9595ce6ec32b4944dba1b318
|
|
| BLAKE2b-256 |
ba4e205b0268c65fb1e9ca31502d7bcc422c5c1fd6b54045b167cd7b9ab59501
|
File details
Details for the file readmemagic-1.0.0-py3-none-any.whl.
File metadata
- Download URL: readmemagic-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92b50008c2665e2fb65e8a44bd099ec7bc30ddce8b418196090b5e7d368f00af
|
|
| MD5 |
d9141ea1e6e0ac4f0f11f7baafba0c20
|
|
| BLAKE2b-256 |
27dfab084b0920e8854df2f5be032eef381ce16015ed46f08c38bde907ac91da
|