openclaw-github-repo-commander
它能做什么
这个助手可以帮你整理和改进 GitHub 项目。它会检查错误、清理不必要的文件、将你的项目与同类项目进行比较,并提出改进建议。
适用场景
- ✓当你想检查项目中是否有泄露的密钥或不必要的文件时。
- ✓当你说“帮我清理项目”或“分析我的代码”时。
- ✓当你想把自己的项目与 GitHub 上的同类项目进行比较时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/openclaw-github-repo-commander/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“分析我的 GitHub 项目,并告诉我该如何改进。”
每周 5 个新技能,1 分钟读完。
工作原理
它会先复制一份你的项目用于分析。然后,它会自动运行检查,找出泄露的密钥或过大的文件等问题。之后,它会将你的项目与同类项目进行比较,并制定行动计划,让项目更整洁、更专业。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
OpenClaw GitHub Repo Commander
Overview
A structured 7-stage super workflow for comprehensive GitHub repository management. This skill automates repository auditing, cleanup, competitor benchmarking, and optimization — turning a messy repo into a clean, well-documented, production-ready project.
When to Use This Skill
- Use when you need to audit a repository for secrets, junk files, or low-quality content
- Use when the user says "clean up my repo", "optimize my GitHub project", or "audit this library"
- Use when reviewing or creating pull requests with structured analysis
- Use when comparing your project against competitors on GitHub
- Use when running
/super-workflowor/openclaw-github-repo-commanderon a repo URL
How It Works
Stage 1: Intake
Clone the target repository, define success criteria, and establish baseline metrics.
Stage 2: Execution
Run scripts/repo-audit.sh <repo-path> from this skill directory — automated read-only checks for:
- Hardcoded secrets (
ghp_,sk-,AKIA, etc.) - Tracked
node_modules/or build artifacts - Empty directories
- Large files (>1MB)
- Missing
.gitignorecoverage - Broken internal README links
Stage 3: Reflection
Deep manual review beyond automation: content quality, documentation consistency, structural issues, version mismatches.
Stage 4: Competitor Analysis
Search GitHub for similar repositories. Compare documentation standards, feature coverage, star counts, and community adoption.
Stage 5: Synthesis
Consolidate all findings into a prioritized action plan (P0 critical / P1 important / P2 nice-to-have).
Stage 6: Iteration
Execute the plan: delete low-value files, fix security issues, upgrade documentation, add CI workflows, update changelogs.
Stage 7: Validation
Re-run the audit script (target: 7/7 PASS), verify all changes, push to GitHub, and deliver a full report.
Examples
Example 1: Full Repo Audit
/openclaw-github-repo-commander https://github.com/owner/my-repo
Runs all 7 stages and produces a detailed before/after report.
Example 2: Quick Cleanup
Clean up my GitHub repo — remove junk files, fix secrets, add .gitignore
Example 3: Competitor Benchmarking
Compare my skill repo with the top 5 similar repos on GitHub
Best Practices
- ✅ Always run Stage 7 validation before pushing
- ✅ Use semantic commit messages:
chore:,fix:,docs: - ✅ Check the
pr_todo.jsonfile for pending reviewer requests - ❌ Don't skip Stage 4 — competitor analysis reveals blind spots
- ❌ Don't commit
node_modules/or.envfiles
Security & Safety Notes
- The audit script scans for common secret patterns but excludes
.github/workflows/to avoid false positives - The bundled script is read-only: it reports findings and never deletes, rewrites, stages, commits, or pushes files
- All
ghCLI operations use the user's existing authentication — no credentials are stored by this skill - The skill never modifies files without explicit user confirmation in Stage 6
Source Attribution
Originally contributed by @wd041216-bit in PR #340. No standalone upstream repository is currently available for this skill.
License: MIT | Version: 4.0.0
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题
助手会删除我的文件吗?
不会,助手只负责找出问题。只有在你明确确认后,它才会进行修改。
它会检查我代码中的编程错误吗?
它会检查一些常见问题,比如泄露的密钥、过大的文件和失效的链接,但它并不是完整的代码审查工具。
“竞品分析”是什么意思?
意思是助手会在 GitHub 上寻找与你的项目相似的其他项目,并比较它们在组织结构、文档编写和受欢迎程度等方面的差异。
详情
作者的原始描述
7-stage super workflow for GitHub repo audit, cleanup, PR review, and competitor analysis
热度
- GitHub 星标
- 48k
- 排名
- #5379
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。