learndash-group-access

learndash-group-access is a skill for Codex from Lonsdale201/wp-agent-skills. It costs 101 tokens per session (2,131 once invoked), scanned A, original, MIT.

A guide to LearnDash groups, an online-course feature for organizing users and assigning them courses. It explains membership, course access, and group-leader relationships.

In plain words
What is it for?
Use it to enroll users in groups, assign courses to groups, manage group leaders, and check whether group membership grants course access.
Why use it?
It prevents incorrect access decisions caused by treating group membership or course access as a single field.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to enroll users in groups, assign courses to groups, manage group leaders, and check whether group membership grants course access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lonsdale201/wp-agent-skills/learndash-group-access
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 learndash-group-access
Clone the repo
git clone --depth 1 https://github.com/Lonsdale201/wp-agent-skills

Made for: 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 learndash-group-access

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

agentmods 80×15 button for learndash-group-access

Your own site · 80×15
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/learndash-group-access"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/learndash-group-access.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,131 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.00101 $0.02131
Opus 5 $0.00051 $0.01066
Sonnet 5 $0.00020 $0.00426
Haiku 4.5 $0.00010 $0.00213

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

Security

Grade A, and why

learndash-group-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.

learndash/learndash-group-access/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.

LearnDash group access

Use this when code needs to enroll users into groups, attach courses to groups, manage group leaders, or answer "does this user get course access through a group?"

LearnDash groups are not just taxonomy terms and not just post meta on a group. In 5.1.9 the access model is three separate relationships:

  • User -> group membership.
  • Group -> course access.
  • Group leader -> administrated group.

Course access through a group exists only when the user is in the group and the group is attached to the course, then the group product start/end rules allow access.

When to use this skill

Trigger when ANY of these appears:

  • ld_update_group_access(), ld_update_course_group_access(), ld_update_leader_group_access(), learndash_is_user_in_group(), learndash_user_group_enrolled_to_course(), or learndash_get_users_group_ids().
  • Usermeta keys learndash_group_users_{$group_id}, group_{$group_id}_access_from, learndash_group_{$group_id}_enrolled_at, or learndash_group_leaders_{$group_id}.
  • Course postmeta keys learndash_group_enrolled_{$group_id} or learndash_group_{$group_id}_enrolled_at.
  • Custom group dashboards, group leader portals, imports, CRMs, Woo bridges, memberships, cohort sync, or REST endpoints.

Relationship map

User -> group

The direct user-group relation is stored on the user:

  • learndash_group_users_{$group_id} stores the group ID.
  • group_{$group_id}_access_from stores the access start timestamp.
  • learndash_group_{$group_id}_enrolled_at is historical enrollment time.

Use:

ld_update_group_access( $user_id, $group_id );        // grant
ld_update_group_access( $user_id, $group_id, true );  // revoke

Or use the model wrapper:

use LearnDash\Core\Models\Product;

$group_product = Product::find( $group_id );

if ( $group_product ) {
    $group_product->enroll( $user_id );
}

ld_update_group_access() creates access activity for courses currently attached to the group, fires ld_added_group_access or ld_removed_group_access, and clears user group/course transients.

Read the full file on GitHub · 240 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 · 240 lines · 101 tokens per session scan A a4a214c54a97

Subscribe to this mod's changes

learndash-group-access is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed 2d ago), licensed MIT. It adds 101 tokens to every session and 2,131 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.

Related

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.

bobadilla-tech/requiems-api-skills · 30 tokens

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.

IngvarConsulting/unica · 50 tokens

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…

fernandotellado/ai-skills · 86 tokens

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.

fernandotellado/ai-skills · 55 tokens

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…

anthropics/claude-plugins-official · 163 tokens

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…

google/skills · 86 tokens