← 返回 Skills 市场
imjohnathanblog-spec

Build Amazon Affiliate Plugin

作者 imjohnathan · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
337
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install build-amazon-affiliate-plugin
功能描述
Create a WordPress plugin that detects Amazon affiliate links, extracts ASINs, displays product ads with caching, admin settings, and Gutenberg block support.
使用说明 (SKILL.md)

Build Amazon Affiliate Ad Plugin

Quick Start

  1. Read PLUGIN_SPEC.md for detailed requirements
  2. Read AMAZON_API.md for PA-API integration
  3. Generate the plugin code following the specifications

Plugin Requirements Summary

  • Name: Ad Symbiont
  • Features:
    • Detect Amazon links (amazon.com, amazon.ca, amazon.co.uk, amzn.to)
    • Extract ASIN from URLs
    • Admin settings: Affiliate tag, display mode (replace/append), styling toggle
    • Fallback to simple HTML ad if no PA-API credentials
    • Caching for ad units (transients)
    • Gutenberg block support
    • WordPress 6.x compatible
    • Secure: sanitize/escape all inputs/outputs

Output

Generate:

  1. Complete plugin PHP file
  2. CSS/JS assets if needed
  3. Installation instructions
  4. Expansion options documentation

Save all files to: /home/imjohnathan/.openclaw/workspace/skills/build-amazon-affiliate-plugin/

安全使用建议
This package contains frontend assets, block JavaScript, CSS and detailed specs, but it lacks the main PHP/server-side implementation the plugin promises. Before installing or running any generated plugin on a live site: (1) insist on or review the generated PHP files and includes (ad-symbiont.php, class-ads.php, class-link-detector.php, class-paapi.php) so you can verify sanitization, escaping, capability checks, and nonce handling; (2) confirm PA-API credential handling never logs or transmits keys to external endpoints and that AWS Signature V4 is implemented correctly client-side only when needed; (3) test the plugin on a staging site to ensure AJAX handlers (e.g., cache-clear) enforce nonces and manage capabilities; (4) verify affiliate tag behavior to avoid cloaking/link-masking that would violate policies; and (5) if you rely on the agent to generate missing backend code, request a full code review of the generated PHP before deployment. The package as-is is incomplete — treat it as a scaffold, not a ready-to-install plugin.
功能分析
Type: OpenClaw Skill Name: build-amazon-affiliate-plugin Version: 1.0.0 The skill bundle is classified as benign. The `SKILL.md` provides clear instructions for the AI agent to generate a WordPress plugin, including a standard file output path within the agent's workspace. The JavaScript assets are typical for a WordPress Gutenberg block, and the `package-lock.json` lists common development dependencies without indicating malicious runtime behavior. Furthermore, the `PLUGIN_SPEC.md` explicitly outlines robust security requirements like input sanitization, output escaping, and nonce usage, demonstrating an intent for secure development rather than malice.
能力评估
Purpose & Capability
The skill claims to produce a complete WordPress plugin (including backend behavior: link detection, PA-API signing, transients, admin settings, AJAX handlers), and includes spec docs, block JS, CSS, and admin JS — but the core PHP files and server-side classes (ad-symbiont.php, includes/class-*.php) are missing. That mismatch means the shipped files are partial assets/documentation rather than a finished plugin; an agent or user would need to generate server-side code to achieve the described purpose.
Instruction Scope
SKILL.md stays on topic: it points to internal docs and asks the agent to generate plugin code and save it into a workspace path. It does not instruct reading unrelated system files or exfiltrating data. The save path is a user workspace directory (not a system configuration location).
Install Mechanism
No install spec is provided (instruction-only), and included files are static assets and docs. Nothing in the package downloads or executes remote code during install — low install risk.
Credentials
No environment variables or external credentials are requested by the skill metadata. The references describe PA-API keys and associate tags, but these are expected to be configured in WordPress admin (plugin settings) and are not requested by the skill at install time. This is proportionate to the stated purpose.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or global agent settings. It only instructs creating files in the agent workspace; no elevated persistence or privilege is requested.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install build-amazon-affiliate-plugin
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /build-amazon-affiliate-plugin 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of build-amazon-affiliate-plugin - Launches a WordPress plugin (“Ad Symbiont”) to display Amazon product ads for affiliate links. - Detects Amazon links, extracts ASIN, and generates ad units with product information. - Provides an admin settings page for affiliate tag, display options, and styling controls. - Supports fallback ads if PA-API is unavailable and caches ad units for better performance. - Includes Gutenberg block support and adheres to WordPress and Amazon Associates best practices.
元数据
Slug build-amazon-affiliate-plugin
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Build Amazon Affiliate Plugin 是什么?

Create a WordPress plugin that detects Amazon affiliate links, extracts ASINs, displays product ads with caching, admin settings, and Gutenberg block support. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 337 次。

如何安装 Build Amazon Affiliate Plugin?

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

Build Amazon Affiliate Plugin 是免费的吗?

是的,Build Amazon Affiliate Plugin 完全免费(开源免费),可自由下载、安装和使用。

Build Amazon Affiliate Plugin 支持哪些平台?

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

谁开发了 Build Amazon Affiliate Plugin?

由 imjohnathan(@imjohnathanblog-spec)开发并维护,当前版本 v1.0.0。

💬 留言讨论