organize-github-repos
Skill0 starsChanged 3 months agoMITView on GitHub
Verify and maintain alignment between Supabase (Maverick Town) and connected GitHub repositories to prevent data loss from miscommunication. Use when you need to audit repository states, detect misalignments, or ensure data integrity across GitHub and Supabase. Apply automatically when the request matches; the user does not need to mention this skill.
In this repository76 other files it gives its agents.
- app-store-submission-packagerSkill
- digital-product-inventorSkill
- ios-testflight-github-actionsSkill
- meta-ads-analyzerSkill
- get-to-know-a-clientSkill
- investigate-before-recommendSkill
- production-system-auditSkill
- similarweb-analyticsSkill
- stock-analysisSkill
- system-architectSkill
- autonomous-github-syncSkill
- autonomous-sync-scriptSkill
- github-gem-seekerSkill
- using-git-worktreesSkill
- brainstorm-logosSkill
- brand-driven-ux-overhaulSkill
- canvas-designSkill
- excel-generatorSkill
- frontend-designSkill
- inspirational-music-video-productionSkill
- theme-factorySkill
- video-generatorSkill
- multiplayer-game-builderSkill
- promo-code-systemSkill
- realistic-ai-persona-builderSkill
- role-based-access-controlSkill
- serverless-debuggingSkill
- vertical-expansion-blueprintSkill
- manus-mcp-configuratorSkill
- mcp-auto-recoverySkill
- mcp-builderSkill
- mcp-connector-testerSkill
- mcp-ecosystem-optimizerSkill
- voice-ai-integrationSkill
- api-endpoint-builderSkill
- database-schema-generatorSkill
- testing-frameworkSkill
- deployment-automationSkill
- error-monitoring-setupSkill
- github-workflow-automationSkill
- analytics-dashboardSkill
- email-system-builderSkill
- feature-flag-systemSkill
- user-authentication-systemSkill
- cron-job-schedulerSkill
- file-upload-systemSkill
- notification-systemSkill
- payment-integrationSkill
- search-implementationSkill
- debug-mining-engineSkill
- doc-coauthoringSkill
- docxSkill
- internet-skill-finderSkill
- pdfSkill
- pptxSkill
- project-handoff-ingestionSkill
- serverless-debuggingSkill
- skill-arsenal-builderSkill
- skill-creatorSkill
- skill-demo-builderSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 16 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Use this skill when the request matches its description.
- Distinctive: line 19
Use this skill when:
- Distinctive: line 20
Auditing repository states: - Verify that GitHub repos match Supabase records
- Distinctive: line 22
Preventing data loss: - Ensure synchronization before critical operations
- Distinctive: line 35
Use GitHub MCP to fetch actual repository data
- Distinctive: line 52
Purpose: Ensure critical data fields are populated and valid
- Distinctive: line 86
Purpose: Create comprehensive reports of current alignment status
- Distinctive: line 90
Repository Inventory: - All repos in Supabase vs GitHub
- Distinctive: line 226
Update stale metadata from GitHub
- Distinctive: line 229
Remove Supabase entries for deleted GitHub repos (with confirmation)
- Distinctive: line 285
Use dry-run first: - Always preview auto-heal changes before executing
- Distinctive: line 286
Review discrepancy reports: - Don't blindly auto-fix; understand root causes
- Very specific: line 294
Verify Supabase MCP server is configured: manus-mcp-cli tool list --server supabase
- Very specific: line 295
Check GitHub CLI is authenticated: gh auth status
- Distinctive: line 298
Check if verification script has correct field mappings
- Distinctive: line 300
Ensure GitHub MCP is returning complete data
- Very specific: line 308
Verify snapshots are being created: ls rag-data/snapshots/
- Distinctive: line 309
Check snapshot format matches expected structure
- Distinctive: line 310
Ensure query syntax is correct (see examples above)
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Usage
Use this skill when the request matches its description. The skill is discovered automatically; the user does not need to mention the skill explicitly.
Organize GitHub Repos
Overview
This skill provides comprehensive tools for verifying and maintaining alignment between Supabase (Maverick Town) databases and connected GitHub repositories. It prevents data loss by detecting miscommunications, validating synchronization states, and providing auto-healing capabilities when discrepancies are found.
When to Use This Skill
Use this skill when:
- Auditing repository states - Verify that GitHub repos match Supabase records
- Detecting misalignments - Find discrepancies between Supabase and GitHub
- Preventing data loss - Ensure synchronization before critical operations
- Recovering from errors - Identify and fix broken connections
- Onboarding new repos - Validate proper setup of new GitHub repositories
- Troubleshooting sync issues - Debug why data isn't flowing correctly
Core Capabilities
1. Repository State Verification
Purpose: Compare Supabase records with actual GitHub repository states
Process:
- Query Supabase for all registered repositories
- Use GitHub MCP to fetch actual repository data
- Compare metadata (name, URL, visibility, default branch, etc.)
- Generate discrepancy report
MCP Tools Used:
supabaseMCP: Query repository tablesgithubMCP (viaghCLI): Fetch repository details
Example Command:
manus-mcp-cli tool call supabase_query --server supabase --input '{
"query": "SELECT * FROM repositories WHERE active = true"
}'2. Data Integrity Checks
Purpose: Ensure critical data fields are populated and valid
Checks:
- Repository URLs are accessible
- Webhook configurations are present
- API tokens are valid and not expired
- Database foreign keys are intact
- Timestamps are reasonable (not in future, not too old)
Auto-Healing Actions:
- Refresh expired tokens
- Recreate missing webhooks
- Update stale metadata
- Fix broken foreign key relationships
3. RAG-Based Historical Analysis
Purpose: Store and query historical repository states to detect patterns
Implementation:
- Store snapshots of repository states in vector database
- Query historical data to find when misalignments occurred
- Identify recurring issues or patterns
- Provide context-aware recommendations
Storage Location: /home/ubuntu/skills/organize-github-repos/rag-data/
Example Queries:
- "When did repo X last sync successfully?"
- "What repos have had sync failures in the past week?"
- "Show me all repos that were deleted from GitHub but still in Supabase"
4. Alignment Report Generation
Purpose: Create comprehensive reports of current alignment status
Report Sections:
- Executive Summary - Overall health score, critical issues
- Repository Inventory - All repos in Supabase vs GitHub
- Discrepancies - Detailed list of misalignments
- Recommendations - Prioritized action items
- Historical Trends - Changes over time
Output Formats:
- Markdown (human-readable)
- JSON (machine-readable)
- CSV (for spreadsheet analysis)
Workflow
Quick Start: Full Audit
# 1. Fetch all repositories from Supabase
manus-mcp-cli tool call supabase_query --server supabase --input '{
"query": "SELECT id, name, github_url, last_sync FROM repositories"
}'
# 2. For each repo, verify GitHub state
gh repo view <owner>/<repo> --json name,url,visibility,defaultBranchRef
# 3. Compare and generate report
python3 /home/ubuntu/skills/organize-github-repos/scripts/verify_alignment.py
# 4. Review discrepancies
cat /tmp/alignment-report.mdWorkflow Decision Tree
Start Here: What do you need to do?
- "I want to verify everything is aligned" → Run Full Audit (see Quick Start above)
- "I suspect a specific repo is out of sync"
→ Run Single Repository Check:
python3 scripts/check_single_repo.py <repo-name> - "I need to find all broken connections"
→ Run Connection Health Check:
python3 scripts/health_check.py --mode=connections - "I want to see historical sync patterns"
→ Query RAG Database:
python3 scripts/query_history.py "show sync failures last 7 days" - "I need to fix misalignments automatically"
→ Run Auto-Heal:
python3 scripts/auto_heal.py --dry-run # Preview changes python3 scripts/auto_heal.py --execute # Apply fixes
Scripts
scripts/verify_alignment.py
Purpose: Main verification script that compares Supabase and GitHub states
Usage:
python3 scripts/verify_alignment.py [--output-format=markdown|json|csv]What it does:
- Queries Supabase for all repositories
- Fetches corresponding GitHub data via MCP
- Compares fields and identifies discrepancies
- Generates alignment report
scripts/check_single_repo.py
Purpose: Focused check on a single repository
Usage:
python3 scripts/check_single_repo.py <repo-name> [--fix]What it does:
- Looks up repo in Supabase
- Fetches GitHub state
- Shows detailed comparison
- Optionally applies fixes if
--fixflag is used
scripts/health_check.py
Purpose: System-wide health check for connections and integrations
Usage:
python3 scripts/health_check.py [--mode=all|connections|webhooks|tokens]What it does:
- Tests Supabase connection
- Validates GitHub MCP availability
- Checks webhook endpoints
- Verifies API token validity
scripts/query_history.py
Purpose: Query RAG database for historical patterns
Usage:
python3 scripts/query_history.py "<natural language query>"Examples:
python3 scripts/query_history.py "repos with sync failures last week"
python3 scripts/query_history.py "when did repo X last update"
python3 scripts/query_history.py "show all deleted repos"scripts/auto_heal.py
Purpose: Automatically fix detected misalignments
Usage:
python3 scripts/auto_heal.py [--dry-run] [--execute] [--repo=<name>]What it does:
- Runs verification to find issues
- Applies fixes based on predefined rules
- Logs all changes for audit trail
- Supports dry-run mode for safety
Auto-Healing Rules:
- Update stale metadata from GitHub
- Recreate missing webhooks
- Refresh expired tokens (if refresh token available)
- Remove Supabase entries for deleted GitHub repos (with confirmation)
- Fix broken foreign key relationships
References
references/supabase_schema.md
Documentation of the Maverick Town Supabase schema, including:
repositoriestable structuresync_logstable structure- Foreign key relationships
- Expected data types and constraints
references/github_api_reference.md
GitHub API endpoints and MCP tool mappings:
- Repository metadata endpoints
- Webhook management
- Authentication patterns
- Rate limiting considerations
references/common_issues.md
Catalog of known misalignment patterns and solutions:
- Webhook delivery failures
- Token expiration issues
- Repository rename handling
- Organization transfer scenarios
RAG Data Storage
Location: /home/ubuntu/skills/organize-github-repos/rag-data/
Structure:
rag-data/
├── snapshots/ # Historical repository state snapshots
│ └── YYYY-MM-DD/
│ └── repo-name.json
├── discrepancies/ # Logged misalignments
│ └── YYYY-MM-DD.jsonl
└── resolutions/ # Applied fixes and outcomes
└── YYYY-MM-DD.jsonlSnapshot Format:
{
"timestamp": "2026-02-10T12:00:00Z",
"repo_name": "example-repo",
"supabase_state": { ... },
"github_state": { ... },
"discrepancies": [ ... ]
}Best Practices
- Run audits regularly - Schedule weekly full audits to catch drift early
- Use dry-run first - Always preview auto-heal changes before executing
- Review discrepancy reports - Don't blindly auto-fix; understand root causes
- Monitor RAG data growth - Archive old snapshots to prevent storage bloat
- Validate after fixes - Re-run verification after auto-healing to confirm success
- Document manual interventions - Log any manual fixes in
resolutions/for future reference
Troubleshooting
"MCP connection failed"
- Verify Supabase MCP server is configured:
manus-mcp-cli tool list --server supabase - Check GitHub CLI is authenticated:
gh auth status
"No discrepancies found but I know there are issues"
- Check if verification script has correct field mappings
- Review Supabase schema in
references/supabase_schema.md - Ensure GitHub MCP is returning complete data
"Auto-heal made incorrect changes"
- Review
rag-data/resolutions/to see what was changed - Restore from Supabase backup if needed
- Adjust auto-healing rules in
scripts/auto_heal.py
"RAG queries returning no results"
- Verify snapshots are being created:
ls rag-data/snapshots/ - Check snapshot format matches expected structure
- Ensure query syntax is correct (see examples above)
Future Enhancements
- Real-time monitoring - Webhook-based live sync status
- Predictive alerts - ML-based detection of potential issues before they occur
- Multi-org support - Handle multiple GitHub organizations
- Slack notifications - Alert on critical misalignments
- Web dashboard - Visual interface for alignment status
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

