lw-lms-rest-frontend

lw-lms-rest-frontend is a skill for Claude Code, Codex from Lonsdale201/wp-agent-skills. It costs 123 tokens per session (2,370 once invoked), scanned A, original, MIT.

A guide to using the LW LMS REST API from a custom frontend such as React, Vue, Astro, a mobile app, or a WordPress theme. The API provides course content, lessons, progress, access checks, and protected downloads.

In plain words
What is it for?
It is for course catalogues, course-detail pages, lesson players, learner progress dashboards, paid-course access, and secure file downloads.
Why use it?
It explains how to build a learning interface when the plugin supplies data and access rules but does not provide public page templates.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for course catalogues, course-detail pages, lesson players, learner progress dashboards, paid-course access, and secure file downloads.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lonsdale201/wp-agent-skills/lw-lms-rest-frontend
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Lonsdale201/wp-agent-skills --skill lw-lms-rest-frontend
Clone the repo
git clone --depth 1 https://github.com/Lonsdale201/wp-agent-skills

Made for: Claude Code, Codex.

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 lw-lms-rest-frontend

README.md
[![agentmods](https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/lw-lms-rest-frontend/github.svg)](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/lw-lms-rest-frontend)
Your own site
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/lw-lms-rest-frontend"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/lw-lms-rest-frontend/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 lw-lms-rest-frontend

Your own site · 80×15
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/lw-lms-rest-frontend"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/lw-lms-rest-frontend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,370 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00123 $0.02370
Opus 5 $0.00062 $0.01185
Sonnet 5 $0.00025 $0.00474
Haiku 4.5 $0.00012 $0.00237

Measured 9d ago against content hash 1e1da8f2f286, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

lw-lms-rest-frontend 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 9d 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.

lw-plugins/lw-lms-rest-frontend/SKILL.md · 188 lines

How it starts

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

LW LMS: REST frontend consumer

For frontend developers consuming LW LMS data: course catalog, course detail, lesson player, progress dashboard, and protected downloads. The core lw-lms plugin ships a headless REST API; it does not ship public templates, shortcodes, or blocks.

BETA NOTICE. The plugin README says the plugin is under active development and not recommended for production use. Snapshot the JSON shapes in tests and review CHANGELOG.md before upgrading. This skill is verified against local lw-lms v1.6.0.

Version deltas that matter

  • v1.6.0: no route or JSON-schema change. A server-side lw_lms_has_course_access callback can now alter the final logged-in paid-course access decision after built-in access checks, which affects access.has_access, lesson accessibility, attachments, lesson detail, progress writes, and protected downloads.
  • v1.5.1: maintenance release, no functional REST changes.
  • v1.5.0: paid-course denied access payload can include memberships when WooCommerce Memberships is active and the course has _lw_lms_membership_plan_ids.
  • v1.4.0: course content in /courses/{id} is public marketing/about content. It is no longer gated behind access.has_access. Lesson content is still gated by /lessons/{id}.
  • v1.4.0: open-course lessons remain accessible to guests even if marked as preview.
  • v1.3.0: first logged-in access to a free course lazily writes a source='free' access row server-side; the REST consumer does not need to do anything special.
  • v1.2.15: denied paid-course access payload can include subscription_variations.

Misconception this skill corrects

"I should use course.content as the access gate."

Wrong for v1.4.0+. CourseTransformer::transform_full() always includes the course content; this is the public course description. Use course.access.has_access and each lesson's accessible flag for gating.

// WRONG: course content is public and is not proof of access.
if (course.content) {
    renderLessonPlayer();
}

// RIGHT: access comes from access.has_access and per-lesson accessible.
if (course.access.has_access) {
    return <CourseContent html={course.content} progress={course.progress} />;
}

return <PurchaseGate access={course.access} />;

Read the full file on GitHub · 188 lines

Files

What ships with it

1 file 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. 9d ago First seen · 188 lines · 123 tokens per session scan A 1e1da8f2f286

Subscribe to this mod's changes

lw-lms-rest-frontend is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed 2d ago), licensed MIT. It adds 123 tokens to every session and 2,370 once invoked, about $0.0006 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-09-03.

Related

Other skills, from other repositories

remotion-saas

Building video apps with Remotion - framework, rendering and Player advice.

guanyang/open-agent-hub · 18 tokens

web-3d-graphics-expert

Expert guide for WebGL and 3D graphics in the browser using Three.js, Babylon.js, React Three Fiber (R3F), and TresJS. Covers scene optimization, shaders, lighting, 3D model loading (GLTF/GLB), and performance tuning.

roedyrustam/vibes-plug · 65 tokens

micro-frontend-architect

Expert guide for designing Micro-Frontend architectures using Webpack Module Federation, Vite Federation, and Single-SPA for large scale Vue and React applications.

roedyrustam/vibes-plug · 36 tokens

react-anti-patterns

Introduce React anti-patterns and common mistakes into existing React codebases for training, review, or teaching. Use when asked to intentionally degrade React performance or code quality while keeping apps functional, or to generate anti-pattern examples for junior developer education.

joacod/skills · 54 tokens

mock-interview

An interactive front-end interview practice guide. It acts as an interviewer, asks progressively harder questions about JavaScript, React, CSS, browser behavior, and Vue, then gives a structured review.

NeverSight/learn-skills.dev · 142 tokens

frontend-best-practices

Coding guidance for building React or Vue front ends, where components display screens and manage user interactions. It covers component responsibilities, state placement, performance, and accessibility.

Wade-DevCode/awesome-coding-skills-cn · 29 tokens