← 返回 Skills 市场
fqxue

feapder

作者 fqxue · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
233
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install feapder
功能描述
Build, modify, and debug feapder 1.9.2 spiders and projects with the framework's native patterns. Use when working on feapder codebases or when requests ment...
使用说明 (SKILL.md)

\r \r

Feapder\r

\r

Overview\r

\r Implement feapder 1.9.2 code in the style expected by the framework's own docs, templates, and tests. Choose the right spider base class first, then follow the matching startup, request, parse, persistence, and debugging patterns.\r \r

Workflow Decision Tree\r

\r

  1. Classify the request before writing code:\r
    • Use AirSpider for small, local, non-distributed jobs.\r
    • Use Spider for Redis-backed distributed crawling, resumable queues, and automatic item persistence.\r
    • Use TaskSpider when seeds come from MySQL or Redis task tables and the framework should manage seed loading.\r
    • Use BatchSpider for periodic batches with batch records and explicit task-state transitions.\r
  2. Read only the reference file that matches the task:\r
  3. Reuse feapder conventions instead of inventing abstractions:\r
    • Import feapder directly and subclass the correct base spider.\r
    • Emit work with yield feapder.Request(...).\r
    • Keep parsing in parse or explicit callback methods passed through callback=....\r
    • Prefer __custom_setting__ for spider-local overrides and setting.py for project-wide config.\r
    • Default to from feapder.utils.log import log and log.info(...) for runtime logs instead of print(...) unless the user explicitly asks to mirror upstream demo output.\r
    • Default to concise Chinese log messages and Chinese code comments when comments are needed.\r
  4. If the user asks to create new feapder code, prefer the framework's generated structure and naming conventions over bespoke layouts.\r
  5. If the user asks for a simple crawler demo and does not mention persistence, Item, UpdateItem, pipeline wiring, Redis, MySQL, task tables, batch scheduling, distributed workers, or multi-file output, default to the single-file AirSpider style shown in references/vendor/feapder-1.9.2/tests/air-spider/test_air_spider.py: one file, one spider class, minimal startup block, and only the code required to demonstrate the requested behavior.\r \r

Working Rules\r

\r

  • Keep output aligned with feapder 1.9.2, not newer community variants.\r
  • Prefer minimal, working spider code over framework-agnostic architecture.\r
  • When the request is underspecified, do not scaffold a full feapder project by default. Write the smallest single-file AirSpider demo only for pure crawling or parsing requests. If the request mentions Item, UpdateItem, 入库, ITEM_PIPELINES, Redis, MySQL, task tables, or batch/task state, choose the corresponding spider and project shape instead.\r
  • When modifying an existing feapder project, preserve its current spider type, main.py dispatch style, item modules, and setting.py shape unless the user asks for a migration.\r
  • When persistence is needed, decide explicitly between:\r
    • Manual DB calls with MysqlDB or RedisDB\r
    • Automatic batch persistence via Item or UpdateItem\r
    • Custom ITEM_PIPELINES\r
  • When render is required, set render=True on the request and then align downloader configuration with the project's setting.py or __custom_setting__.\r
  • When handling BatchSpider or TaskSpider, treat master and worker entrypoints separately. Do not collapse them into a single ambiguous startup path.\r
  • When writing new spider code, default to log.info(...), log.error(...), and similar logger methods for runtime output. Avoid print(...) unless the user explicitly asks for raw console prints or exact upstream reproduction.\r
  • Write log messages in Chinese by default, for example log.info(f"第{request.page}页原始结果 | {response.json}").\r
  • Write comments in Chinese by default and only keep comments that clarify non-obvious logic.\r \r

Chinese Trigger Hints\r

\r Treat these Chinese requests as strong signals to use this skill:\r \r

  • 用 feapder 写一个爬虫\r
  • 帮我改这个 AirSpider\r
  • 把这个项目迁移到 Spider 或 BatchSpider\r
  • 写 feapder 的 item / pipeline / setting.py\r
  • 用 feapder shell 调试\r
  • 分析 feapder 1.9.2 示例代码\r \r

Implementation Checklist\r

\r Before finishing a feapder task, verify the code against this checklist:\r \r

  • The spider inherits the correct feapder base class.\r
  • If the task is a pure crawling or parsing demo and does not require persistence or task orchestration, the new spider defaults to the single-file AirSpider pattern anchored by references/vendor/feapder-1.9.2/tests/air-spider/test_air_spider.py.\r
  • Startup code passes the required constructor args such as redis_key, task_table, task_keys, or batch metadata when needed.\r
  • Request callbacks, carried parameters, and middleware hooks use feapder's expected method signatures.\r
  • Distributed spiders update task state where required instead of relying on implicit completion.\r
  • Item, pipeline, and setting references match the project's existing module layout.\r
  • Debugging guidance uses feapder-native tools such as feapder shell, to_DebugSpider, or to_DebugBatchSpider when appropriate.\r
  • New example code uses log for runtime logs, with Chinese log text and Chinese comments unless the user requested a different style.\r \r

Source Anchors\r

\r Use the vendored feapder 1.9.2 snapshot under references/vendor/ as the source of truth. This keeps the skill portable when copied to another machine:\r \r

安全使用建议
This skill is coherent: it bundles feapder 1.9.2 docs and source as references and gives concrete rules for producing framework-compatible spiders. Before installing/using: - Understand that generated or modified spider code may attempt to connect to Redis/MySQL or call external websites when you run it — the skill itself doesn't request those credentials, but the code it produces may need them. Only provide DB/Redis credentials when you intend to run the spider, and store them securely. - Review any produced code (especially __custom_setting__ or setting.py) before executing; ensure no hardcoded secrets or unexpected network endpoints are present. - If you plan to execute generated spiders, run them in a controlled environment (sandbox/VM/container) to avoid unintended network traffic or data leaks. - Note that you may need to pip-install feapder and any render/browser dependencies locally if you want runnable code; the skill does not install those packages for you. Overall the package appears internally consistent with its stated purpose; exercise normal caution when running generated scraping code that accesses remote services or your databases.
功能分析
Type: OpenClaw Skill Name: feapder Version: 1.0.0 The skill bundle provides a comprehensive environment for the feapder 1.9.2 crawling framework. While the instructions in SKILL.md and the project templates are aligned with the stated purpose of assisting in spider development, the core framework code contains critical security vulnerabilities. Specifically, request.py, task_spider.py, and batch_spider.py utilize the eval() function to deserialize data retrieved from Redis or local caches. This pattern introduces a significant Remote Code Execution (RCE) risk if the underlying data sources are compromised. No evidence of intentional malice, data exfiltration, or prompt injection was identified.
能力评估
Purpose & Capability
The skill is explicitly about feapder 1.9.2 and includes the framework's docs and core spider/request/response source files as references. It does not request unrelated binaries, environment variables, or config paths. The included material matches the stated goal of building/modifying feapder spiders.
Instruction Scope
SKILL.md instructs the agent to follow feapder-native patterns, consult vendored reference files, and produce spider code following those conventions. It does not ask the agent to read arbitrary host files, exfiltrate secrets, or post data to external endpoints. The instructions do reference local vendored files (docs and source) as the authoritative anchors, which is expected for a framework-specific skill.
Install Mechanism
There is no install spec; this is an instruction-only skill with vendored reference files. No network downloads or archive extraction are performed by the skill itself, minimizing install-time risk.
Credentials
The skill declares no required environment variables or credentials (none in requires.env). The documentation and examples discuss Redis/MySQL credentials in the context of running feapder spiders (logical for persistence/distributed runs), but the skill does not request those secrets itself. If the user asks the agent to generate runnable spiders that use persistence or distributed features, those generated scripts will legitimately need DB/Redis credentials — provide them consciously and review generated code before execution.
Persistence & Privilege
The skill is not always-enabled and does not request elevated platform privileges. It does not modify other skills or system-wide agent settings. Autonomous model invocation is allowed (platform default) and is not by itself a concern here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install feapder
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /feapder 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of feapder skill for building and modifying spiders with feapder 1.9.2. - Implements workflows for AirSpider, Spider, TaskSpider, and BatchSpider using official framework patterns. - Defaults to minimal, single-file AirSpider demos for simple crawl requests unless project features require a larger setup. - Enforces use of feapder’s native logging, configuration, and project structure; preserves existing layouts on modification requests. - Favors Chinese log messages and code comments; aligns strictly with feapder 1.9.2 templates and documentation. - Provides clear triggers for both English and Chinese usage scenarios.
元数据
Slug feapder
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

feapder 是什么?

Build, modify, and debug feapder 1.9.2 spiders and projects with the framework's native patterns. Use when working on feapder codebases or when requests ment... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 233 次。

如何安装 feapder?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install feapder」即可一键安装,无需额外配置。

feapder 是免费的吗?

是的,feapder 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

feapder 支持哪些平台?

feapder 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 feapder?

由 fqxue(@fqxue)开发并维护,当前版本 v1.0.0。

💬 留言讨论