Add AI agent readiness: course sub-commands, docs, PHP 7.4#31
Open
flintfromthebasement wants to merge 1 commit intogocodebox:trunkfrom
Open
Add AI agent readiness: course sub-commands, docs, PHP 7.4#31flintfromthebasement wants to merge 1 commit intogocodebox:trunkfrom
flintfromthebasement wants to merge 1 commit intogocodebox:trunkfrom
Conversation
- New `wp llms course content <id>` command for course structure - New `wp llms course enrollments <id>` command for enrollment listing - AI agent usage guide (docs/ai-agents.md) with patterns for Claude Code, Cursor, Codex - README rewrite with installation, quick start, command reference, output formats - Bump minimum PHP to 7.4 (7.3 EOL Nov 2021) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes the LifterLMS CLI ready for AI coding agents (Claude Code, Cursor, Codex) to use as a primary interface for managing LifterLMS sites.
wp llms course content <id>(get course structure in one call) andwp llms course enrollments <id>(list enrolled students) — sub-resource endpoints the Restful bridge doesn't auto-discoverdocs/ai-agents.mdwith JSON output patterns, chaining workflows, resource relationships, and CLI vs MCP comparisonThe new commands follow the existing trait pattern (see
AddOn/commands) and dispatch internal REST requests viarest_do_request()— same mechanism the Restful bridge uses.Context
This pairs with the new LifterLMS MCP server for remote AI access. The CLI covers the local/shell use case (Claude Code, Codex running on the server); the MCP covers the remote use case (Claude Desktop, ChatGPT connecting over HTTP). Both cover the same resources.
Test plan
wp llms course content <id>returns sections + lessons in table and JSON formatswp llms course enrollments <id>returns enrolled students with pagination--format=json,--format=count,--fieldswork on both new commandswp llms course list, etc.) still workwp llms course --helpshows the new subcommands alongside existing ones🤖 Generated with Claude Code