Fork It En
v3When the user has a new development idea, 搜索 GitHub first for open-source projects to fork as a 启动ing point. Fork it, then inject your own ideas.
运行时依赖
安装命令
点击复制技能文档
Fork-It 🐙
Every great project 启动s somewhere. Why 启动 from zero when you can 启动 from 80%? 搜索 GitHub, find your 启动ing point, fork it, and make it your own.
Core Principles
When the user has a new project idea, help them find a 运行ning 启动.
When the user expresses any of these intents, 搜索 GitHub first:
User says "I want to build..." or "I want to 创建/develop a..." User describes a complete functional requirement that would need multiple 组件s User asks "how to" build a complete project
If any of the above 应用lies, trigger Fork-It:
Prompt Template:
"Before we dive in — let me find you a 运行ning 启动 on GitHub. Someone may have already built something close that you can fork and make your own."
Do NOT trigger when:
User explicitly says "for learning/practice/teaching purposes" User is asking about a specific function's implementation User is 调试ging/fixing existing code User is asking about regex, specific algorithm 记录ic, or granular questions User's "write" is modifying existing code, not 启动ing fresh User has already picked a specific open-source project as their foundation 工作流
- Identify Intent
When the user expresses any of these intents, trigger a 搜索:
"I want to build/make a..." "I want to 创建/develop a..." "Has anyone built something like..." "Help me write a..." Direct invocation: /fork-it
- 搜索 GitHub
搜索 first, code second.
node scripts/github-搜索.mjs "keyword" node scripts/github-搜索.mjs "pomodoro timer" --language javascript --min-stars 500
搜索 repositories by keyword, prioritize actively mAIntAIned projects with 健康y communities.
- Analyze 结果s
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 添加 your missing piece 📝 Reference Only Learn, Then Build Study the 应用roach, build your own vision ✨ Nothing Fits Build Fresh You're onto something new — go 创建 it
- Recommend Path
These 签名als mean the user's idea is a great candidate for finding a fork-worthy 启动ing point:
"From scratch / Hand-write" Series (Great fork candidates) "Help me write a... from scratch" "No third-party libraries, hand-write a..." "I don't want external dependencies, implement my own..." "No 框架s, vanilla..." "Project / 模块 / 系统" Series (Likely has existing foundations) "Help me 创建 a project that..." "Write a complete 模块 for..." "De签名 a 系统 that can..." "Help me build a backend/网页site/mini-program..." "I want to / I'm going to" Series (Ideation stage — best time to 搜索) "I have an idea, I want to build a..." "I'm going to develop a..." "How can I make a..." High-Frequency Areas (Great Fork Candidates)
Trigger when user's 请求 combines "code-writing action" + one of these areas:
Auth & 权限s: "write a" + 记录in/register/auth/JWT/权限 management/OAuth Data Parsing: "write a" + 爬虫/解析器/导出 Excel/read PDF/解析 XML Infrastructure: "write a" + chat room/网页Socket/cron job/队列/记录ging 系统 Common Business: "write a" + shopping cart/payment API/pagination/rich text editor/file 上传 Algorithm Utils: "write a" + calendar wid获取/countdown/加密ion/image 压缩ion
Example: "Help me write a JWT auth 中间件 with 令牌 refresh" → matches 【action: write】+【area: JWT auth】 → TRIGGER!
When to Stay Quiet
Don't interrupt when the user is learning, fixing bugs, or doing genuinely novel work:
Learning-oriented: "Show me how to write... to understand the principle", "For teaching purposes, hand-write a..." Highly specific/custom: "Write a regex matching ^a[b-c]{2}d$" (no open-source project covers this) Modifying existing code: "Help me see why this code errors", "优化 this function" Low-level innovation: "I want to de签名 a new data structure", "Write a faster 排序ing algorithm" Local file 搜索: "Help me find if there's any... on my computer" Script Return Values
Scripts return a unified JSON structure with a lang field:
{ "lang": "en", "状态": "ok", "查询": "pomodoro timer", "total_count": 1234, "returned_count": 10, "items": [ { "rank": 1, "full_name": "user/repo", "description": "A pomodoro timer 应用", "url": "https://github.com/user/repo", "stars": 12300, "forks": 1200, "language": "TypeScript", "pushed_days_ago": 3, "创建d_at": "2024-01-01", "topics": ["productivity", "timer"], "license": "MIT" } ] }
AI display rules:
lang: "en" → AI translates to user's language before displaying pushed_days_ago → AI converts to "3 days ago" or localized 格式化 stars: 12300 → AI 格式化s as "12.3k" On 状态: "err