comprehensive-public-repo-setup skill
Create production-ready public repos with complete documentation, automated setup, bundled dependencies, and user-friendly installation.
Is the comprehensive-public-repo-setup skill safe?
Minor notes only. We read 2 files in the folder on 2026-09-28.
- medium
SKILL.md:329Edits shell startup files, cron or launch agents, so something runs again after the skill is done.
echo "export GH_TOKEN='$GITHUB_TOKEN'" >> ~/.bashrc - medium
references/CRITICAL_BASH_PITFALLS.md:18Edits shell startup files, cron or launch agents, so something runs again after the skill is done.
echo "export GH_TOKEN='$GITHUB_TOKEN'" >> ~/.bashrc
Install the comprehensive-public-repo-setup skill
A skill is a folder. Copy it into your agent's skills folder and the agent loads it when the task matches its description.
git clone --depth 1 https://github.com/kevinnft/ai-agent-skills.git /tmp/ai-agent-skills mkdir -p ~/.claude/skills cp -r /tmp/ai-agent-skills/skills/github/comprehensive-public-repo-setup ~/.claude/skills/comprehensive-public-repo-setup
In the Claude apps, zip the folder and upload it from the Skills settings. The folder on GitHub
The instructions your agent would load
SKILL.md as published, without the frontmatter. Read it on GitHub
Comprehensive Public Repository Setup
Pattern for creating production-ready public repositories that others can clone and use immediately.
When to Use
Creating a public repo that needs:
- Comprehensive documentation
- Automated setup (one-command install)
- Bundled dependencies (no external failures)
- Templates and examples
- Troubleshooting guide
- Installation verification
Repository Structure
repo-name/
├── README.md (10-15KB, comprehensive)
├── setup.sh (automated installation)
├── LICENSE (MIT recommended)
├── CONTRIBUTING.md
├── TROUBLESHOOTING.md (20+ solutions)
├── CHECKLIST.md (20+ verification steps)
├── EXAMPLE.md (real-world workflow)
├── templates/
│ ├── template1.md
│ └── template2.md
└── bundled-dependencies/ (if applicable)
└── external-tool/README.md Structure
Essential sections (in order):
- Title + Tagline — with badges
- What is This? — 2-3 sentence overview
- Features — bullet points with emojis
- Quick Start — 5-minute install
- Manual Setup — step-by-step
- Workflow Example — real-world use case
- Architecture — ASCII diagram
- Use Cases — when to use this
- Advanced Features — optional capabilities
- Performance — comparison if applicable
- Contributing — link to CONTRIBUTING.md
- License — MIT recommended
Example template:
# 🧠 Project Name
**One-line description highlighting key benefits.**
[](LICENSE)
## 🎯 What is This?
Brief overview (2-3 sentences).
## ✨ Features
- ⚡ **Feature 1** — description
- 🧠 **Feature 2** — description
## 🚀 Quick Start
\`\`\`bash
git clone https://github.com/user/repo.git
cd repo
./setup.sh
\`\`\`
## 📖 Manual Setup
Step-by-step instructions...setup.sh Pattern
Structure:
#!/bin/bash
set -e # Exit on error
# Header
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "🎯 Project Setup"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
# 1. Check prerequisites
echo "🔍 Checking prerequisites..."
if ! command -v tool &> /dev/null; then
echo "❌ Tool not found. Installing..."
# Install command
fi
echo "✅ Prerequisites OK"
echo ""
# 2. Get user input (interactive)
echo "📋 Configuration:"
read -p "Username: " USERNAME
read -sp "Token: " TOKEN
echo ""
echo ""
# 3. Install dependencies with fallback
echo "📦 Installing dependencies..."
if git clone --depth 1 https://github.com/external/dep.git 2>/dev/null; then
echo "✅ Installed from GitHub (latest)"
else
echo "⚠️ GitHub clone failed, using bundled copy..."
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cp -r "$SCRIPT_DIR/bundled-dep" "$INSTALL_DIR/"
echo "✅ Installed from bundle"
fi
echo ""
# 4. Configure
echo "⚙️ Configuring..."
# Configuration steps
echo "✅ Configuration complete"
echo ""
# 5. Summary
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━Key principles:
- Use set -e (exit on error)
- Check prerequisites before proceeding
- Interactive prompts only for user-specific values
- Fallback logic for external dependencies
- Clear progress indicators (emojis + messages)
- Summary at end with next steps
Bundling External Dependencies
Problem: External repos can disappear, change, or be rate-limited.
Solution: Bundle critical dependencies with GitHub fallback.
Pattern:
# Try GitHub first (latest version)
if git clone --depth 1 https://github.com/external/tool.git 2>/dev/null; then
echo "✅ Installed from GitHub (latest)"
else
# Fallback: use bundled copy
echo "⚠️ GitHub clone failed, using bundled copy..."
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cp -r "$SCRIPT_DIR/bundled-tool" "$INSTALL_DIR/"
echo "✅ Installed from bundle"
fiWhen to bundle:
- Critical dependencies (setup fails without them)
- Small size (<1MB preferred, <5MB acceptable)
- Stable APIs (won't break with old version)
- External repos with uncertain longevity
When NOT to bundle:
- Large dependencies (>10MB)
- Frequently updated tools
- OS packages (use package manager)
TROUBLESHOOTING.md Structure
Sections:
- Installation Issues — errors during setup
- Runtime Issues — problems after installation
- Sync/Network Issues — connectivity problems
- Performance Issues — slow operations
- Security Issues — token/permission problems
- Verification Checklist — confirm installation
Format:
### **"Error message"**
**Problem:** Brief description.
**Solution:**
\`\`\`bash
# Fix command
\`\`\`Aim for 20-30 solutions covering common issues.
CHECKLIST.md Pattern
Structure:
- Pre-installation (5-10 checks)
- Post-installation (10-15 verifications)
- Functional tests (3-5 tests)
- Optional features
- Success criteria
Format:
### **1. Component Installed**
\`\`\`bash
command --version
# Expected: version x.y.z
\`\`\`
- [ ] Command works
- [ ] Version displayedAim for 20-30 total verification steps.
Commit Strategy
Initial commit:
git add .
git commit -m "Initial commit: README, setup script, examples, license"
git push origin mainSubsequent commits:
- One feature per commit
- Descriptive messages
- Group related changes
Good commit messages:
- "Add templates and troubleshooting guide"
- "Bundle dependencies with GitHub fallback"
- "Update documentation: add verification steps"
Pitfalls
❌ Missing Bundled Dependencies
Problem: Setup script clones from GitHub, but external repo is deleted/unavailable.
Solution: Bundle critical dependencies in repo with fallback logic.
Real example: User caught missing bundled dependency: "Woi lu lupa masukin obsidian skill?"
❌ Too Many Confirmation Prompts
Problem: Script asks for confirmation at every step, slowing down installation.
User feedback: "Lo langsung buat token aja, kerjain semuannya sendiri jngn kbanyakan nanya"
Solution:
- Only prompt for user-specific values (username, token)
- Auto-proceed for standard operations
- Use --yes flags where applicable
- Show progress, don't ask permission
❌ Incomplete Documentation
Problem: README doesn't cover edge cases, troubleshooting, or verification.
Solution: Include:
- TROUBLESHOOTING.md (20-30 solutions)
- CHECKLIST.md (20-30 verification steps)
- EXAMPLE.md (real-world workflow)
❌ Single Point of Failure
More skills from kevinnft/ai-agent-skills
- Aaddyosmani-tddDrives development with tests. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug report arrives, or when you're about to modify existing functionality.
- AairtableAirtable REST API via curl. Records CRUD, filters, upserts.
- Aapi-and-interface-designGuides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.
- Aapi-monitoring-botsBuild monitoring bots that poll APIs and send notifications on state changes (new listings, price alerts, status updates)
- Aapple-notesManage Apple Notes via memo CLI: create, search, edit.
- Aapple-remindersApple Reminders via remindctl: add, list, complete.
- Aarchitecture-diagramDark-themed SVG architecture/cloud/infra diagrams as HTML.
- AarxivSearch arXiv papers by keyword, author, category, or ID.
- Aascii-artASCII art: pyfiglet, cowsay, boxes, image-to-ascii.
- Aascii-videoASCII video: convert video/audio to colored ASCII MP4/GIF.
- AaudiocraftAudioCraft: MusicGen text-to-music, AudioGen text-to-sound.
- CaxolotlAxolotl: YAML LLM fine-tuning (LoRA, DPO, GRPO).