人工智能AI 应用AI 技能RAGMCP 服务网页爬虫【免费下载链接】Skill_SeekersConvert documentation websites, GitHub repositories, and PDFs into Claude AI skills with automatic conflict detection项目地址https://gitcode.com/gh_mirrors/sk/Skill_Seekers点击查看免费下载本文以 examples/cline-django-assistant/README.md 为骨架系统讲解如何借助 Skill Seekers 将 Django 官方文档转化为 Cline 的.clinerules规则文件并通过 MCP 服务器实现文档的动态检索与按需生成。读完本文你将掌握生成 Skill → 打包规则 → 配置 MCP → 自主编码的完整链路让 Cline 在 Django 项目中自动遵循时间戳字段、select_related查询、pytest 测试等最佳实践实现真正的自主化 Django 开发。这个示例解决什么问题ClineVS Code 中的自主编码 Agent能力强大但它默认只具备通用知识AI 并不了解你项目所用的框架如 Django和内部约定。直接向 Cline 复制粘贴文档会打断自主工作流内置的 Custom Instructions 又受限于篇幅。结果是让 Cline 写一个 Django 模型它可能给出一个缺少时间戳、没有__str__、不继承AbstractUser的教科书式却非生产级代码。该示例给出的完整答案是三步闭环生成 Django 文档 Skill—— 用 Skill Seekers 从官方文档与 GitHub 仓库抓取、清洗、聚合出结构化的 Django 知识库打包为.clinerules—— 以 Cline 原生的 Markdown 规则格式注入项目让 Cline 自动加载框架级模式配置 MCP 服务器—— 通过 Model Context Protocol 暴露 34 个工具让 Cline 在对话中动态检索最新文档、按需生成与打包规则。对应的自动化脚本与依赖声明见 generate_clinerules.py 和 requirements.txt。环境准备与依赖清单示例目录的 requirements.txt 明确列出了最小依赖集skill-seekers[mcp]2.9.0 django5.0.0 djangorestframework3.15.0 pytest8.0.0 pytest-django4.8.0其中skill-seekers[mcp]是关键[mcp]extra 会同时安装 FastMCP 运行时确保skill_seekers.mcp.server_fastmcp模块可被python -m直接启动。安装并验证pip install skill-seekers[mcp] skill-seekers --version pip show skill-seekers # 应能看到 [mcp] extra 已安装四步快速上手完整复刻第一步生成 Django Skill# 安装带 MCP 支持的 Skill Seekers pip install skill-seekers[mcp] # 依据配置生成 Django 文档 Skill skill-seekers create --config configs/django.json # 以 markdown 格式打包供 Cline 使用 skill-seekers package output/django --target markdowncreate命令会按照配置文件抓取文档站点与 GitHub 仓库并聚合为结构化知识库输出到output/django/package命令则把聚合结果按目标 LLM 平台打包。从 package_skill.py 的源码可见--target支持claude、gemini、openai、markdown四种取值——markdown正是为 Cline 这类以 Markdown 规则文件为上下文的 Agent 准备的。关于配置文件本身仓库configs/目录下的*-unified.json如 react.json展示了标准格式——每个配置文件包含name、description、version、merge_mode以及由type: documentation官方文档站点含 CSS 选择器、URL 规则、分类与限速和type: github代码仓库分析含文件模式、issue/release 抓取开关组成的sources数组。Django 配置遵循同一 schema你完全可以参照它自定义抓取范围。第二步复制到 Django 项目# 把规则复制到项目根目录.clinerules 是 Cline 自动加载的规则文件 cp output/django-markdown/SKILL.md my-django-project/.clinerules # 或直接使用示例自带的自动化脚本 python generate_clinerules.py --project my-django-project第三步配置 MCP 服务器在 VS Code 的 Cline 面板中依次操作Settings → MCP Servers → Add Server添加如下配置后重载 VS Code{ skill-seekers: { command: python, args: [-m, skill_seekers.mcp.server_fastmcp, --transport, stdio], env: {} } }该配置对应的服务端实现位于 server_fastmcp.py这是一个基于 FastMCP 装饰器风格注册的服务器提供34 个工具、按 7 大类别组织包括配置类list_configs、generate_config、validate_config、抓取类scrape_docs、scrape_github、scrape_pdf、scrape_codebase、detect_patterns等、打包类package_skill、upload_skill、enhance_skill、install_skill、拆分/路由类split_config、generate_router、源管理类、市场类与向量数据库类export_to_chroma、export_to_faiss等。Cline 连接成功后会在 Available Tools 中看到这些工具从而获得文档的动态访问能力。第四步在 Cline 中测试自主任务# 在 VS Code 中打开项目 code my-django-project/打开 Cline 侧边栏面板下达一个完整的自主任务Create a Django blog app with: - Post model with author, title, content, created_at - Comment model with post foreign key - Admin registration - REST API with DRF - Full test suite with pytest此时 Cline 会依照.clinerules中的 Django 最佳实践自主生成代码。前后效果对比规则注入的价值原文档用一组对照实验直观展示规则的作用。没有.clinerules时同样的任务Create a Django user model产出的是from django.db import models class User(models.Model): username models.CharField(max_length100) email models.EmailField()❌ 缺少时间戳字段 ❌ 没有__str__方法 ❌ 没有 Meta 类 ❌ 未继承AbstractUser配置.clinerules之后产出变为from django.contrib.auth.models import AbstractUser from django.db import models class User(AbstractUser): email models.EmailField(uniqueTrue) bio models.TextField(blankTrue) created_at models.DateTimeField(auto_now_addTrue) updated_at models.DateTimeField(auto_nowTrue) class Meta: ordering [-created_at] verbose_name User verbose_name_plural Users def __str__(self): return self.username✅ 继承AbstractUser✅ 包含时间戳 ✅ 有__str__✅ 规范的 Meta 类 ✅ 邮箱唯一性约束这正是规则注入的核心价值把资深 Django 工程师的隐性约定变成 Agent 每次生成代码时都会遵守的显式约束从源头消除 N1 查询、敏感字段泄露、缺少测试等常见问题。规则文件结构Cline 的层级加载机制配置完成后你的 Django 项目将拥有如下结构my-django-project/ ├── .clinerules # 核心 Django 模式自动加载 ├── .clinerules.models # 模型专属模式可选 ├── .clinerules.views # 视图专属模式可选 ├── .clinerules.testing # 测试模式可选 ├── .clinerules.project # 项目约定最高优先级 └── .cline/ └── memory-bank/ # 持久化项目知识 └── README.mdCline 会自动加载所有.clinerules*文件无需任何特殊语法——它们就是纯 Markdown。这种同名后缀机制是天然的分层手段基础模式放.clinerules按领域拆分到.clinerules.models、.clinerules.views、.clinerules.testing项目级约定放.clinerules.project加载顺序靠后可覆盖通用规则。自动化脚本深度解析示例目录的核心资产是 generate_clinerules.py它将上述手工步骤封装为一条命令。关键参数参数默认值作用--project.目标 Django 项目目录--skip-scrape关闭跳过抓取步骤复用已有output/django此时目录必须存在否则报错退出--with-mcp关闭额外生成.vscode/mcp_config.json完成 MCP 服务端配置--modular关闭将SKILL.md按##章节拆分生成.clinerules.models、.clinerules.views等多个模块化规则文件脚本执行流水线为skill-seekers scrape --config configs/django.json→skill-seekers package output/django --target markdown→ 将output/django-markdown/SKILL.md复制或按章节拆分到项目根目录 → 若启用--with-mcp则把mcpServers配置写入.vscode/mcp_config.json。每一步都通过run_command包装执行、打印 stdout/stderr 并在失败时返回非零退出码方便在 CI 中集成。值得注意的细节脚本中的 MCP 配置以mcpServers为顶层键这正是 Cline 期望的结构写入.vscode/mcp_config.json后在 Cline 面板执行Settings → MCP Servers → Load Configuration选中该文件即可激活。定制化让规则贴合你的项目添加项目专属模式.clinerules.project通用框架规则之外把团队约定写进.clinerules.projectCline 会优先遵循# Project-Specific Conventions ## Database Queries ALWAYS use select_related/prefetch_related: python # BAD posts Post.objects.all() # N1 queries! # GOOD posts Post.objects.select_related(author).prefetch_related(comments).all()API ResponsesNEVER expose sensitive fields:class UserSerializer(serializers.ModelSerializer): class Meta: model User fields [id, username, email, bio] # NEVER include: password, is_staff, is_superuser### Memory Bank跨会话的持久项目知识 Cline 的 Memory Bank 机制可让项目知识跨会话保留 bash # 初始化 memory bank mkdir -p .cline/memory-bank # 写入项目上下文 cat .cline/memory-bank/README.md EOF # Project Memory Bank ## Tech Stack - Django 5.0 - PostgreSQL 16 - Redis for caching - Celery for background tasks ## Architecture - Modular apps (users, posts, comments) - API-first with Django REST Framework - Async views for I/O-bound operations ## Conventions - All models inherit from BaseModel (timestamps) - Use pytest for testing - API versioning: /api/v1/ EOF # 在 Cline 中初始化 # 在 Cline 对话中: Initialize memory bank from READMEMCP 集成收益从静态规则到动态文档配置 MCP 后Cline 摆脱了规则文件快照的局限可以在对话中直接调用工具动态检索文档Cline task: Use skill-seekers MCP to search Django async viewsCline 会调用抓取/检索类工具返回最新的 Django async views 文档片段。按需生成最新规则Cline task: Use skill-seekers MCP to create latest Django 5.0 docs对应scrape_docs类工具框架大版本升级时无需手动更新.clinerules。按需打包技能Cline task: Use skill-seekers MCP to package React docs for this project对应package_skill工具实现多框架规则的动态注入。这套工具集全部实现于 src/skill_seekers/mcp/tools/ 目录scraping_tools.py、packaging_tools.py、config_tools.py等并在server_fastmcp.py中统一注册。故障排查速查表问题一.clinerules没有加载原因文件位置错误或 VS Code 未重载。# 必须位于项目根目录 ls -la .clinerules # 重载 VS Code # CmdShiftP → Developer: Reload Window问题二MCP 服务器无法连接方案 1确认安装pip show skill-seekers # 应显示 [mcp] extra 已安装方案 2直接测试服务器python -m skill_seekers.mcp.server_fastmcp --transport stdio # 应无报错启动方案 3改用绝对 Python 路径虚拟环境/多 Python 并存时的常见解法{ skill-seekers: { command: /usr/local/bin/python3, args: [-m, skill_seekers.mcp.server_fastmcp, --transport, stdio] } }问题三Cline 不遵循规则原因规则文件虽然加载但 Agent 未将其视为强约束。对策是在规则顶部用强命令式措辞# Django Expert You MUST follow these patterns in ALL Django code: - Include timestamps in models - Use select_related for queries - Write tests with pytest NEVER deviate from these patterns.进阶用法多框架项目Django ReactCline 会加载项目根目录下所有.clinerules*文件因此天然支持全栈多框架# 后端规则 skill-seekers package output/django --target markdown cp output/django-markdown/SKILL.md .clinerules.backend # 前端规则 skill-seekers package output/react --target markdown cp output/react-markdown/SKILL.md .clinerules.frontend # 现在 Cline 同时掌握 Django 与 React 两种模式Cline RAG 流水线规则文件解决上下文注入RAG 解决深度检索。同一份抓取结果可以双路输出# 同时生成 .clinerules 与 RAG 流水线 from skill_seekers.cli.doc_scraper import main as scrape from skill_seekers.cli.package_skill import main as package # 抓取 scrape([--config, configs/django.json]) # 供 Cline 使用 package([output/django, --target, markdown]) # 供 RAG 向量检索 package([output/django, --target, langchain, --chunk-for-rag]) # 产出 # 1. .clinerules —— Cline 的即时上下文 # 2. LangChain 文档 —— 深度的向量检索语料实战工作流完整的博客 API任务Create production-ready blog APICline 自主执行步骤每一步的模式来源已标注✅ 创建带时间戳、__str__、Meta 的 Post/Comment 模型来自.clinerules✅ 为 queryset 添加select_related来自.clinerules✅ 创建嵌套数据的 serializer来自.clinerules✅ 实现带过滤的 ViewSet来自.clinerules✅ 配置 URL 路由来自.clinerules✅ 编写 pytest 测试来自.clinerules.testing✅ 注册 admin来自.clinerules结果数分钟内产出符合全部最佳实践的生产级 API。相关示例与延伸阅读本示例属于 IDE 集成系列仓库内还有风格相近的实践Cursor 示例 —— 同类的 IDE 规则生成方案生成cursorrulesWindsurf 示例 —— Windsurf 编辑器集成Continue.dev 示例 —— 跨 IDE 通用方案LangChain RAG 示例 —— RAG 流水线集成更完整的 Cline 集成说明含文档源选择、规则编写建议、MCP 工具使用流程、前后对比表格见 docs/integrations/CLINE.mdMCP 服务器的详细配置与工具清单可参考 docs/guides/MCP_SETUP.md 和 docs/reference/MCP_REFERENCE.md。后续建议为 React、Vue 等前端框架生成规则构建全栈开发能力创建 Memory Bank 沉淀项目级知识用--target langchain搭建深度检索的 RAG 流水线沉淀并分享团队专属的.clinerules模式针对项目特殊需求在 Cline 中注册自定义 MCP 工具可参考server_fastmcp.py的装饰器注册方式扩展。赞分享人工智能AI 应用AI 技能RAGMCP 服务网页爬虫【免费下载链接】Skill_SeekersConvert documentation websites, GitHub repositories, and PDFs into Claude AI skills with automatic conflict detection项目地址https://gitcode.com/gh_mirrors/sk/Skill_Seekers点击查看免费下载相关推荐Skill Seekers 完整使用指南从文档抓取、AI 增强到 Claude Skill 打包的端到端实战Skill Seekers 完整使用指南从文档抓取、AI 增强到 Claude Skill 打包的端到端实战 本文基于 docs/archive/legacy人工智能AI 应用AI 技能RAGMCP 服务网页爬虫Skill Seekers × Weaviate 混合检索实战从文档抓取到向量检索的完整 RAG 流水线Skill Seekers × Weaviate 混合检索实战从文档抓取到向量检索的完整 RAG 流水线 本文是一份以 Weaviate 向量数据库为目标的端人工智能AI 应用AI 技能RAGMCP 服务网页爬虫用 Skill Seekers 为 Cursor 生成 React 开发规则.cursorrules实战指南用 Skill Seekers 为 Cursor 生成 React 开发规则.cursorrules实战指南 本篇指南以仓库中的 Cursor Reac人工智能AI 应用AI 技能RAGMCP 服务网页爬虫创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
