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-course-accessgit 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-course-access)<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/learndash-course-access"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/learndash-course-access/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-course-access"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/learndash-course-access.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00092 | $0.01999 |
| Opus 5 | $0.00046 | $0.01000 |
| Sonnet 5 | $0.00018 | $0.00400 |
| Haiku 4.5 | $0.00009 | $0.00200 |
Grade A, and why
learndash-course-access 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 — 200 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LearnDash course access
Use this when a plugin, theme, migration, checkout bridge, import, or custom frontend needs to decide whether a user can access a LearnDash course or must grant/revoke direct course enrollment.
Do not reduce LearnDash access to one usermeta key. In LearnDash 5.1.9, course access can come from direct enrollment, group enrollment, open courses, sample steps, admin auto-enroll, free/paynow settings, start/end dates, expiration rules, and legacy access-list mode.
When to use this skill
Trigger when ANY of these appears:
sfwd_lms_has_access(),ld_update_course_access(),ld_course_access_from(),ld_course_access_from_update(),ld_course_access_expired(),learndash_get_users_for_course(), orlearndash_user_get_enrolled_courses().- Usermeta keys like
course_123_access_from,learndash_course_123_enrolled_at, orlearndash_course_expired_123. - A custom course page, lesson gate, import, CRM sync, Woo bridge, membership bridge, or REST endpoint that grants/removes course access.
- A bug report says "user is enrolled but cannot access", "group users cannot see course", "expired users still appear", or "open course behaves weirdly".
Access decision chain
sfwd_lms_has_access( $post_id, $user_id ) is the canonical yes/no gate.
It resolves the course for the passed post ID and then applies these broad
rules:
- No related course can mean access allowed for non-course content.
- Missing course post/status means no access.
- Admin auto-enroll, sample steps, and open courses can grant access without usermeta enrollment.
- Some free/paynow configurations can grant access without an explicit user.
- Direct access uses
course_{$course_id}_access_fromusermeta. - Group access is checked through
learndash_user_group_enrolled_to_course(). - Direct non-group access also respects the
Productmodel start/end window. - Final access can be revoked by
ld_course_access_expired(). - The result is filterable through
sfwd_lms_has_access.
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 · 200 lines · 92 tokens per session scan A f797729e37ae
learndash-course-access is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed 2d ago), licensed MIT. It adds 92 tokens to every session and 1,999 once invoked, about $0.0005 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…