Install
openclaw skills install fork-itWhen the user has a new development idea, search GitHub first for open-source projects to fork as a starting point. Fork it, then inject your own ideas.
openclaw skills install fork-itEvery great project starts somewhere. Why start from zero when you can start from 80%? Search GitHub, find your starting point, fork it, and make it your own.
When the user has a new project idea, help them find a running start.
When the user expresses any of these intents, search GitHub first:
If any of the above applies, trigger Fork-It:
Prompt Template:
"Before we dive in — let me find you a running start on GitHub. Someone may have already built something close that you can fork and make your own."
Do NOT trigger when:
When the user expresses any of these intents, trigger a search:
/fork-itSearch first, code second.
node scripts/github-search.mjs "keyword"
node scripts/github-search.mjs "pomodoro timer" --language javascript --min-stars 500
Search repositories by keyword, prioritize actively maintained projects with healthy communities.
Evaluate each project for fork-worthiness:
| Tag | Path | Description |
|---|---|---|
| 🎯 Great Match | Fork & Customize | Fork it, tweak it, ship it as your own |
| 🔧 Partial Match | Fork & Extend | Solid core — fork it and add your missing piece |
| 📝 Reference Only | Learn, Then Build | Study the approach, build your own vision |
| ✨ Nothing Fits | Build Fresh | You're onto something new — go create it |
These signals mean the user's idea is a great candidate for finding a fork-worthy starting point:
Trigger when user's request combines "code-writing action" + one of these areas:
login/register/auth/JWT/permission management/OAuthcrawler/parser/export Excel/read PDF/parse XMLchat room/WebSocket/cron job/queue/logging systemshopping cart/payment API/pagination/rich text editor/file uploadcalendar widget/countdown/encryption/image compressionExample: "Help me write a JWT auth middleware with token refresh" → matches 【action: write】+【area: JWT auth】 → TRIGGER!
Don't interrupt when the user is learning, fixing bugs, or doing genuinely novel work:
^a[b-c]{2}d$" (no open-source project covers this)Scripts return a unified JSON structure with a lang field:
{
"lang": "en",
"status": "ok",
"query": "pomodoro timer",
"total_count": 1234,
"returned_count": 10,
"items": [
{
"rank": 1,
"full_name": "user/repo",
"description": "A pomodoro timer app",
"url": "https://github.com/user/repo",
"stars": 12300,
"forks": 1200,
"language": "TypeScript",
"pushed_days_ago": 3,
"created_at": "2024-01-01",
"topics": ["productivity", "timer"],
"license": "MIT"
}
]
}
AI display rules:
lang: "en" → AI translates to user's language before displayingpushed_days_ago → AI converts to "3 days ago" or localized formatstars: 12300 → AI formats as "12.3k"status: "error" → AI generates a friendly error message from code and message| Option | Description | Default |
|---|---|---|
query | Search keyword | Required |
--language, -l | Programming language filter | None |
--min-stars | Minimum stars | 100 |
--max-stars | Maximum stars | No limit |
--updated-within | Updated within N days | 365 |
--created-after | Created after date | None |
--sort | Sort by | stars |
--order | Sort order | desc |
--limit, -n | Result limit | 10 |
node scripts/repo-detail.mjs "microsoft/autogen"
export GITHUB_TOKEN="ghp_your_token_here"
Find it. Fork it. Make it yours. | ForkIt v2.0