← Back to Skills Marketplace
imjohnathanblog-spec

Build Amazon Affiliate Plugin

by imjohnathan · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
337
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install build-amazon-affiliate-plugin
Description
Create a WordPress plugin that detects Amazon affiliate links, extracts ASINs, displays product ads with caching, admin settings, and Gutenberg block support.
README (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/

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install build-amazon-affiliate-plugin
  3. After installation, invoke the skill by name or use /build-amazon-affiliate-plugin
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug build-amazon-affiliate-plugin
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 337 downloads so far.

How do I install Build Amazon Affiliate Plugin?

Run "/install build-amazon-affiliate-plugin" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Build Amazon Affiliate Plugin free?

Yes, Build Amazon Affiliate Plugin is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Build Amazon Affiliate Plugin support?

Build Amazon Affiliate Plugin is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Build Amazon Affiliate Plugin?

It is built and maintained by imjohnathan (@imjohnathanblog-spec); the current version is v1.0.0.

💬 Comments