Bismillah! Automate the entire RECTOR-LABS revamp with gh CLI scripts.
Instead of manually clicking through GitHub's web UI, these scripts automate the entire revamp using the gh CLI tool. Much faster, more reliable, and fully scriptable.
Estimated Time:
- With README updates: 10-15 minutes
- Without README updates: 5 minutes
macOS:
brew install ghLinux (Ubuntu/Debian):
sudo apt install ghLinux (RHEL/CentOS):
sudo yum install ghOther platforms: https://cli.github.com/
macOS:
brew install jqLinux (Ubuntu/Debian):
sudo apt install jqLinux (RHEL/CentOS):
sudo yum install jqgh auth loginFollow the prompts:
- Choose GitHub.com
- Choose HTTPS
- Choose Login with a web browser
- Copy the one-time code
- Press Enter to open browser
- Paste code and authorize
Verify authentication:
gh auth statusShould show: ✓ Logged in to github.com as [your-username]
Run everything in one command:
cd /Users/rz/local-dev/core/github-revamp/scripts
./revamp.shThis will:
- ✅ Create organization profile README
- ✅ Update all repository descriptions
- ✅ Add GitHub topics to all repos
- ✅ Update README files for top 6 repos
- ✅ Guide you through final manual steps
Time: ~10-15 minutes
If you want speed and will update READMEs later:
cd /Users/rz/local-dev/core/github-revamp/scripts
./revamp.sh --skip-readmesTime: ~5 minutes
See what would happen without making changes:
cd /Users/rz/local-dev/core/github-revamp/scripts
./revamp.sh --dry-runTime: ~1 minute
If you prefer to run scripts individually:
Creates .github repo with stunning profile README
cd /Users/rz/local-dev/core/github-revamp/scripts
./01-setup-org-profile.shWhat it does:
- Creates
.githubrepository in RECTOR-LABS - Adds
profile/README.mdwith your stunning profile - Commits and pushes to GitHub
Time: ~2 minutes
Verify: Visit https://github.com/RECTOR-LABS (should see profile README)
Updates descriptions and topics for all 12 repos
./02-update-descriptions.shWhat it does:
- Updates description for each repository
- Adds homepage URL where applicable (core → rectorspace.com)
- Adds GitHub topics for discoverability
Time: ~2 minutes
Verify: Check any repo, should see new description and topics at bottom
Replaces READMEs with custom versions for top 6 repos
./03-update-readmes.shWhat it does:
- Clones each repository
- Replaces README.md with custom version
- Commits with descriptive message
- Pushes back to GitHub
Repos updated:
- core
- mevrebels-protocol
- web3-deal-discovery-nft-coupons
- openbudget-id
- asi-agents-track
- recMEV-installer
Time: ~5-10 minutes (cloning takes time)
Verify: Open any updated repo, README should be comprehensive and professional
Guides you through settings gh CLI can't automate
./04-finalize.shWhat it does:
- Shows you how to update organization bio
- Shows you how to pin repositories
- Verification checklist
- Next steps guidance
Time: ~3-5 minutes
Purpose: Create organization profile homepage
Features:
- Checks if
.githubrepo exists (won't duplicate) - Creates repo with proper settings
- Adds profile README
- Safe to run multiple times (idempotent)
Usage:
./01-setup-org-profile.shPurpose: Update all repository metadata
Updates 12 repositories:
- core, mevrebels-protocol, web3-deal-discovery-nft-coupons
- ojk-ekraf-hackathon, openbudget-id, sanctum-gateway-track
- garuda-spark-blockchain, asi-agents-track, nosana-agents-102
- recMEV-installer, recMEV-backend-installer, recSOL
For each repo:
- New compelling description
- Homepage URL (if applicable)
- 8-10 relevant GitHub topics
Usage:
./02-update-descriptions.shSafe to re-run: Yes, will just update to latest descriptions
Purpose: Replace README files with custom versions
Updates 6 repositories:
- core (Rails 8 platform)
- mevrebels-protocol (MEV innovation)
- web3-deal-discovery-nft-coupons (NFT coupons)
- openbudget-id (Civic tech)
- asi-agents-track (Multi-agent AI)
- recMEV-installer (Infrastructure tool)
Process for each:
- Clone repository to temp directory
- Check out main/default branch
- Replace README.md
- Commit with detailed message
- Push to GitHub
- Clean up temp directory
Usage:
./03-update-readmes.shWarning: This modifies repository content. Commits will be in your name.
Safe to re-run: Yes, but will create new commits if content differs
Purpose: Interactive guide for manual steps
Covers:
- Update organization bio (gh CLI can't do this)
- Pin 6 repositories in correct order
- Verify everything looks good
- Mobile check
- Next steps guidance
Usage:
./04-finalize.shInteractive: Will pause for you to complete each step
Purpose: Run all scripts in correct order with checks
Features:
- Prerequisites validation (gh, jq, auth)
- Confirmation before proceeding
- Progress indicators
- Error handling
- Skip options
- Dry run mode
Usage:
# Full automated revamp
./revamp.sh
# Skip README updates (faster)
./revamp.sh --skip-readmes
# Test without making changes
./revamp.sh --dry-run
# Show help
./revamp.sh --helpSolution:
# macOS
brew install gh
# Linux
sudo apt install gh # Ubuntu/Debian
sudo yum install gh # RHEL/CentOSSolution:
gh auth login
# Follow prompts to authenticateSolution:
# macOS
brew install jq
# Linux
sudo apt install jq # Ubuntu/Debian
sudo yum install jq # RHEL/CentOSWorkaround: Run with --skip-topics if you want to skip topics temporarily
Solution:
chmod +x *.shPossible causes:
- Not a member of RECTOR-LABS organization
- Repository doesn't exist
- Wrong organization name
Solution:
- Verify you're admin of RECTOR-LABS
- Check organization name is correct (case-sensitive)
- Verify repository exists
Possible causes:
- Repository has no main branch (uses master or different default)
- Branch is protected
- Repository is archived
Solution:
- Check default branch name in repository
- Temporarily disable branch protection
- Unarchive repository if needed
Manual fallback:
# Clone the repo manually
gh repo clone RECTOR-LABS/[repo-name]
cd [repo-name]
# Copy README
cp /path/to/github-revamp/readmes/X-REPO-README.md README.md
# Commit and push
git add README.md
git commit -m "docs: Update README"
git push origin mainCause: jq not installed or API rate limit
Solution:
- Install jq:
brew install jqorapt install jq - Check rate limit:
gh api rate_limit - Wait if rate limited (resets every hour)
Expected: This is normal! gh CLI doesn't support org bio updates.
Solution: Follow manual steps in 04-finalize.sh:
- Go to https://github.com/organizations/RECTOR-LABS/settings/profile
- Update bio manually
- Click "Update profile"
✅ Organization Profile:
- Creates
.githubrepository - Adds
profile/README.md(stunning homepage)
✅ Repository Descriptions:
- 12 repositories get new compelling descriptions
- Homepage URLs added where applicable
✅ GitHub Topics:
- 8-10 relevant topics per repository
- Improves discoverability in GitHub search
✅ README Files:
- Top 6 repositories get custom READMEs (300-450 lines each)
- Detailed documentation, installation guides, features
- Must update via web UI
- New bio: "Building for Eternity | Solana & Web3 Innovation from Indonesia 🇮🇩"
- Must pin via web UI
- Pin these 6: core, mevrebels-protocol, web3-deal-discovery, openbudget-id, asi-agents-track, recMEV-installer
| Step | Time | Can Skip? |
|---|---|---|
| Prerequisites (install gh, jq, auth) | 5 min | No |
| 01-setup-org-profile.sh | 2 min | No |
| 02-update-descriptions.sh | 2 min | No |
| 03-update-readmes.sh | 5-10 min | Yes |
| 04-finalize.sh (manual) | 3-5 min | No |
| Total (with READMEs) | 15-20 min | - |
| Total (skip READMEs) | 10 min | - |
Day 1 (Quick Impact - 10 min):
./revamp.sh --skip-readmes- Organization profile: ✅
- Descriptions & topics: ✅
- Manual steps: ✅
- READMEs: Later
Result: 80% visual impact achieved
Day 2 (Complete - 10 min):
./03-update-readmes.sh- Update READMEs for top 6 repos: ✅
Result: 100% revamp complete
All scripts include:
- ✅ Idempotent - Safe to run multiple times
- ✅ Error handling - Exits on failures
- ✅ Confirmations - Asks before destructive actions
- ✅ Dry run mode - Test without changes
- ✅ Verbose output - See what's happening
- ✅ Rollback friendly - Git makes everything reversible
If something goes wrong:
- All changes are committed to git
- You can revert any commit
- You can re-run scripts to fix
# Check organization page
open https://github.com/RECTOR-LABS
# Check a few individual repos
open https://github.com/RECTOR-LABS/core
open https://github.com/RECTOR-LABS/mevrebels-protocolSocial Media:
- Twitter/X thread showcasing new organization
- LinkedIn post
- Dev.to article about the revamp
Communities:
- Share in Solana Discord
- Post in Indonesia tech groups
- Superteam network
- Link from rectorspace.com
- Add to personal GitHub profile
- Include in hackathon submissions
Issues with scripts?
- Check troubleshooting section above
- Run with
--dry-runto test - Open issue in
corerepository
Want to customize?
- All scripts are in
github-revamp/scripts/ - Edit descriptions in
02-update-descriptions.sh - Modify README templates in
github-revamp/readmes/
vs Manual Web UI:
| Feature | gh CLI | Web UI |
|---|---|---|
| Speed | ⚡ 10-15 min | 🐌 2-3 hours |
| Consistency | ✅ Scripts ensure uniformity | ❌ Human error prone |
| Repeatability | ✅ Re-run anytime | ❌ Click again |
| Automation | ✅ Full automation | ❌ Manual only |
| Documentation | ✅ Scripts = docs | ❌ Hard to document |
| Rollback | ✅ Git history | |
| Team Scale | ✅ Share scripts | ❌ Share screenshots |
Built with Bismillah 🕌
Ready to automate? Run:
cd github-revamp/scripts
./revamp.shMay Allah make this easy. Aamiin.
RECTOR LABS | Building for Eternity | 2025