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.
npx skills add Lonsdale201/wp-agent-skills --skill learndash-rest-apigit clone --depth 1 https://github.com/Lonsdale201/wp-agent-skillsWrote 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.
[](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/learndash-rest-api)<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/learndash-rest-api"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/learndash-rest-api/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.
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/learndash-rest-api"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/learndash-rest-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 6 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Tool Misuse · line 161 Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
- high Tool Misuse · line 169 Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
- high Tool Misuse · line 175 Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
- high Tool Misuse · line 180 Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
- high Tool Misuse · line 185 Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
- medium Excessive Agency · line 244 Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00118 | $0.02537 |
| Opus 5 | $0.00059 | $0.01269 |
| Sonnet 5 | $0.00024 | $0.00507 |
| Haiku 4.5 | $0.00012 | $0.00254 |
Grade A, and why
learndash-rest-api 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.
How it starts
The opening of the file, as written. The whole thing — 278 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LearnDash REST API
Use this when building or reviewing a REST/headless integration for LearnDash. Prefer source-verified routes and schemas over guessed endpoint shapes.
LearnDash 5.1.9 exposes two relevant REST surfaces:
- Classic LearnDash content/relationship endpoints under
ldlms/v2. - Newer manifest/OpenAPI/documentation endpoints under
learndash/v1.
The v2 endpoints are still the practical surface for course, group, user,
progress, and course-steps CRUD. The learndash/v1 manifest/docs surface is the
discovery contract and includes newer endpoint metadata.
When to use this skill
Trigger when ANY of these appears:
/wp-json/ldlms/v2/,/wp-json/learndash/v1/,LearnDash_REST_API,learndash_rest_api_enabled, orlearndash-rest-api-controllers.- REST work around
sfwd-courses,sfwd-lessons,sfwd-topic,sfwd-quiz,groups, users, course progress, quiz progress, or assignments. - Headless app needs course outlines, enrollments, group memberships, or progress data.
- API client gets 401/403, missing endpoint, wrong rest base, or malformed
/stepspayload errors.
Enablement and namespaces
REST availability requires both:
- Constant
LEARNDASH_REST_API_ENABLEDtrue. The default is true. - LearnDash REST settings section value
enabled = yes.
LearnDash_REST_API::enabled() also exposes the
learndash_rest_api_enabled filter.
Classic LearnDash REST namespace defaults to ldlms; v2 routes use
ldlms/v2. The namespace constant is LEARNDASH_REST_API_NAMESPACE.
Do not hard-code every route base. LearnDash settings allow REST base overrides for courses, lessons, topics, quizzes, groups, users, and relation subroutes.
Default important v2 bases:
- Courses:
/wp-json/ldlms/v2/sfwd-courses - Course steps:
/wp-json/ldlms/v2/sfwd-courses/{id}/steps - Course users:
/wp-json/ldlms/v2/sfwd-courses/{id}/users - Course groups:
/wp-json/ldlms/v2/sfwd-courses/{id}/groups - Groups:
/wp-json/ldlms/v2/groups - Group courses:
/wp-json/ldlms/v2/groups/{id}/courses - Group users:
/wp-json/ldlms/v2/groups/{id}/users - Users courses:
/wp-json/ldlms/v2/users/{id}/courses - Users groups:
/wp-json/ldlms/v2/users/{id}/groups - User course progress:
/wp-json/ldlms/v2/users/{id}/course-progress
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.
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.
- 9d ago First seen · 278 lines · 118 tokens per session scan A 71b5498d7bd3
learndash-rest-api is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed 2d ago), licensed MIT. It adds 118 tokens to every session and 2,537 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.
Other skills, from other repositories
trivia-get-trivia
Returns a random trivia question with multiple-choice answers. Use the optional category and difficulty query parameters to filter the question pool.
platform-help
A reference skill for the 1C platform and BSL, the programming language used to build 1C business applications. It helps clarify the platform’s object model, APIs, versions, and compatibility.
wp-plugin-development
Architecture and development guidelines for WordPress plugins published on wordpress.org: file structure, plugin header, lifecycle hooks, Settings API, admin UI, escaping helpers for admin JavaScript, default values and option migrations, multisite-shared resources, custom post types, custom database tables…
wp-plugin-performance
Performance guidelines for WordPress plugin development: database optimization, object caching, conditional asset loading, efficient hooks, HTTP requests, WP-Cron, AJAX/REST optimization, and common anti-patterns. Based on official WordPress Developer Resources and WP VIP documentation.
math-olympiad
Solve competition math problems (IMO, Putnam, USAMO, AIME) with adversarial verification that catches the errors self-verification misses. Activates when asked to 'solve this IMO problem', 'prove this olympiad inequality', 'verify this competition proof', 'find a counterexample', 'is this proof correct', or for any…
data-manager-api-setup
Guides developers through client library installation and authentication setup steps for the Data Manager API. Use this skill when a user is getting started with the Data Manager API and needs to setup their local environment, install the client library, or setup access to the API. Don't use for implementing audience…