wp-freemius

wp-freemius is a skill for Claude Code from mralaminahamed/wp-dev-skills. It costs 291 tokens per session (2,457 once invoked), scanned A, original, MIT.

A method for adding the Freemius software-development kit to a WordPress plugin. Freemius provides payment, licence, trial, update, and usage-management services for commercial plugins.

In plain words
What is it for?
Use it to add Freemius setup, free/pro feature restrictions, licence management, trials, pricing pages, upgrade links, updates, analytics, and multisite licensing.
Why use it?
It removes the need to design these commercial-plugin functions from scratch. It also helps maintain separate free and paid versions with licence-based feature access.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is require_once plugin_dir_path( __FILE__ ) . '../vendor/freemius/wordpress-sdk/start.php';.

Part of the wp-dev-skills plugin — 19 skills, 1 command shipped together

Good fit Use it to add Freemius setup, free/pro feature restrictions, licence management, trials, pricing pages, upgrade links, updates, analytics, and multisite licensing.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mralaminahamed/wp-dev-skills
agentmods
npx agentmods add skills/mralaminahamed/wp-dev-skills/wp-freemius

Made for: Claude Code.

Or install wp-dev-skills, the plugin that ships this one along with the rest of its 19 skills, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wp-freemius

README.md
[![agentmods](https://agentmods.dev/badge/skills/mralaminahamed/wp-dev-skills/wp-freemius/github.svg)](https://agentmods.dev/skills/mralaminahamed/wp-dev-skills/wp-freemius)
Your own site
<a href="https://agentmods.dev/skills/mralaminahamed/wp-dev-skills/wp-freemius"><img src="https://agentmods.dev/badge/skills/mralaminahamed/wp-dev-skills/wp-freemius/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wp-freemius

Your own site · 80×15
<a href="https://agentmods.dev/skills/mralaminahamed/wp-dev-skills/wp-freemius"><img src="https://agentmods.dev/badge/skills/mralaminahamed/wp-dev-skills/wp-freemius.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 291 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,457 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00291 $0.02457
Opus 5 $0.00146 $0.01229
Sonnet 5 $0.00058 $0.00491
Haiku 4.5 $0.00029 $0.00246

Measured 11d ago against content hash 8785a9dc5fac, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

wp-freemius scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/wp-freemius/SKILL.md · 240 lines

How it starts

The opening of the file, as written. The whole thing — 240 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Freemius SDK Integration

Model note: SDK bootstrap and basic feature-gating are pattern-matching (haiku). Trialware compliance audit and pricing-plan architecture decisions require careful judgment — use sonnet for those.

Integrate Freemius into a WordPress plugin for commercial distribution: SDK bootstrap, free/pro feature gating, license management, trials, pricing page, and the Freemius dashboard. Freemius handles payments, license keys, update delivery, and analytics.

When to use

  • "Add Freemius to my plugin", "set up free/pro version", "implement license management".
  • "Gate premium features behind a license", "add a trial period".
  • "Create a pricing page", "set up a Freemius affiliate program".
  • "Debug Freemius SDK not loading", "fix opt-in dialog not showing".
  • "Configure Freemius for multisite licensing".

Not for: General WooCommerce payment flows — use wp-woocommerce. WP.org trialware compliance (Freemius-powered upsells must follow WP.org Guideline 5 — use wp-org-submission, which contains references/trialware-compliance.md).

Method

1. Create a Freemius account and app

  1. Sign up at https://freemius.com
  2. Create a new Plugin product in the Freemius dashboard
  3. Note down: Plugin ID, Public Key, Secret Key
  4. Configure pricing plans (Free, Pro, etc.) in the dashboard

2. Install the SDK

Via Composer (recommended):

composer require freemius/wordpress-sdk

Manual: Download from https://github.com/Freemius/wordpress-sdk and place in vendor/freemius/.

3. Bootstrap the SDK

Create includes/freemius.php (the Freemius singleton init file):

<?php
if ( ! function_exists( 'my_plugin_fs' ) ) {
    function my_plugin_fs() {
        global $my_plugin_fs;

        if ( ! isset( $my_plugin_fs ) ) {
            // Include the Freemius SDK
            require_once plugin_dir_path( __FILE__ ) . '../vendor/freemius/wordpress-sdk/start.php';

            $my_plugin_fs = fs_dynamic_init( [
                'id'             => '12345',                            // Plugin ID from dashboard
                'slug'           => 'my-plugin',                       // WP.org slug
                'type'           => 'plugin',
                'public_key'     => 'pk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', // Public key
                'is_premium'     => false,                              // true if this IS the premium build
                'has_premium_version' => true,                          // true if premium version exists
                'has_addons'     => false,
                'has_paid_plans' => true,
                'trial'          => [
                    'days'               => 14,
                    'is_require_payment' => false,                      // true = credit card required
                ],
                'menu'           => [
                    'slug'    => 'my-plugin',
                    'contact' => false,
                    'support' => false,
                ],
            ] );
        }

        return $my_plugin_fs;
    }

    // Init Freemius
    my_plugin_fs();

    // Hook Freemius after initial plugin setup
    do_action( 'my_plugin_fs_loaded' );
}

Read the full file on GitHub · 240 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 240 lines · 291 tokens per session scan A 8785a9dc5fac

Subscribe to this mod's changes

wp-freemius is a skill published in the GitHub repository mralaminahamed/wp-dev-skills (27 stars, last pushed 1mo ago), licensed MIT. It adds 291 tokens to every session and 2,457 once invoked, about $0.0015 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

WooCommerce Automation

Automate WooCommerce e-commerce operations including orders, inventory, customers, and marketing.

claude-office-skills/skills · 20 tokens

woocommerce-plugin-development

Create custom WooCommerce plugins using action/filter hooks, the Settings API, and REST API extensions to add features without modifying core.

finsilabs/awesome-ecommerce-skills · 28 tokens

ebay-search

Search eBay listings - find items, auctions, deals, and compare prices.

gooseworks-ai/goose-skills · 19 tokens

plattform-online-gate-rollout-rangfolge

Für Plattform und Online Checkout: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: plattform-online-gate-rollout-rangfolge.

Klotzkette/claude-fuer-deutsches-recht · 62 tokens

amazon-advertising-strategy

Comprehensive Amazon advertising strategy and campaign optimization. Sponsored Products, Sponsored Brands, Sponsored Display campaign management, budget allocation, ACoS optimization, and performance tracking. Use when the user asks about Amazon PPC, advertising strategy, campaign optimization, or Amazon ads…

nexscope-ai/Amazon-Skills · 59 tokens

amazon-display-ads

Amazon Sponsored Display campaign strategy and optimization. Audience targeting, retargeting campaigns, creative optimization, and performance management. Use when the user asks about Amazon display ads, audience targeting, retargeting, or Sponsored Display campaigns.

nexscope-ai/Amazon-Skills · 50 tokens