lw-lms-rest-frontend

lw-lms-rest-frontend is a skill for Claude Code, Codex from Lonsdale201/wp-agent-skills. It costs 106 tokens per session (1,470 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 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,470 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.00106 $0.01470
Opus 5.5 $0.00042 $0.00588
Sonnet 5.5 $0.00021 $0.00294
Haiku 4.5 $0.00011 $0.00147

Measured 1mo ago against content hash 21a199ca18d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 132 lines

How it starts

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

LW LMS REST frontend

Consume the headless learner API. The plugin ships no public templates, shortcodes, or blocks.

Routes

Namespace: lms/v1.

Method Path Gate
GET /courses public; non-published status filters need matching edit capability
GET /courses/{id} public for published; capable users can preview non-published
GET /lessons/{id} access, visibility, and drip lock
GET /progress current logged-in user
GET /progress/course/{id} current logged-in user
POST /progress login, course/lesson match, access, drip, optional quiz gate
POST /lessons/{id}/quiz login, access, drip, attempt limits
GET /download/{id} signed link, ownership, current access, visibility

The React admin uses the separate lw-lms/v1/admin/* namespace. Do not call those routes from a learner frontend.

Authentication

  • Public catalog: no authentication.
  • Logged-in browser: WordPress cookie, credentials: 'same-origin', and X-WP-Nonce.
  • Headless/mobile: Application Passwords or another reviewed authentication layer.
  • Downloads: use the signed URL from the payload in the same user context.
await fetch('/wp-json/lms/v1/progress', {
  method: 'POST',
  credentials: 'same-origin',
  headers: {
    'Content-Type': 'application/json',
    'X-WP-Nonce': wpApiSettings.nonce,
  },
  body: JSON.stringify({ course_id: 42, lesson_id: 100, status: 'completed' }),
});

Access and visibility

Course content is public marketing copy. It is not evidence of enrollment. Gate the player with access.has_access and each lesson row's accessible value.

Course list access checks do not lazily enroll a viewer in a free course. Opening the full free course can create the enrollment row.

GET /courses accepts status=publish|private|draft|any. A non-published request without the necessary type capability fails with rest_forbidden_status; authorized results are then filtered again by per-post capability. Treat the server's result as authoritative; do not emulate WordPress status capability logic in JavaScript.

Read the full file on GitHub · 132 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. 1mo ago Changed · -56 lines · -17 tokens per session 21a199ca18d2
  2. 1mo 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 (25 stars, last pushed 7d ago), licensed MIT. It adds 106 tokens to every session and 1,470 once invoked, about $0.0004 per session on Opus 5.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

web-3d-graphics-expert

Expert guide for modern WebGPU and WebGL 3D graphics in the browser using Three.js (WebGPURenderer + TSL), Babylon.js, PlayCanvas, React Three Fiber (R3F), and 3Dviz spatial reasoning — covers object craft across 3 scales, surface continuity at joins, physical interaction envelopes, grounded scientific visualization…

roedyrustam/vibes-plug · 123 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

remotion-saas

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

guanyang/open-agent-hub · 18 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