I created a Claude MODX Skill

I recently switched from ChatGPT to Claude as my primary AI tool. I created a MODX skill and have been “training“ it. It has already helped build some complicated scripts and plug-ins (at least for me). After finishing the code, you can have Claude create a JSON file and use the ModxTransfer snippet to create all the elements or resources.

I put it on Github GitHub - crecorn/MODX-ClaudeSkill-: Expert-level MODX Revolution CMS development, templating, and content management.

MODX CMS Skill for Claude AI

A comprehensive Claude AI skill for MODX Revolution CMS development. This skill provides Claude with expert-level knowledge of MODX templating, extras configuration, and best practices for building professional websites.

:bullseye: What This Skill Does

When installed, Claude gains deep expertise in:

  • MODX Tag Syntax - Resource fields, placeholders, snippets, chunks, TVs, and output modifiers

  • Core Extras - pdoTools, MIGX, ClientConfig, SEO Suite, Image+, FormIt, Collections, Tagger

  • Naming Conventions - Consistent element naming patterns for templates, chunks, TVs, and settings

  • Schema Markup - JSON-LD structured data for LocalBusiness, Service, FAQ, and more

  • Import/Export - ModxTransfer patterns for bulk content management

  • Performance - Caching strategies and optimization techniques

5 Likes

Very nice!

Is the MODXTransfer snippet something Claude created?

Yes, that is way over my brain grade. MODXTransfer is actually a great snippet for moving resources and elements to new installs because you can export and import. It probably should be its own extra.

Very cool, indeed, and some great conventions you’ve landed upon. Kudos!

I would love to see the MODX Transfer Snippet—suspect there are many others that would as well.

I’d suggest always uncaching the base href call in case some bot accesses the site over http after a cache clear, “breaking” your CSS for real web visitors that follow it. (It’s loaded in memory, anyway, so no practical performance hit.)

There’s a few pages with what I presume are broken emoji in the markdown files. Happy to find those specifically for you if you’d like. I suspect this would be highly portable to other LLMs since the context is provided in md files. Just would need that MODX Transfer snippet!

2 Likes

Coming Soon!

1 Like

Hello, I also often use Claude for other reasons.
I tried to manually import the files by importing the zip file taken from git, but it gives me an issue with skill.md

I’ll look at it. I think it has desktop.ini files and possibly some emojis that need to be cleaned up.

1 Like

Maybe this: → I don’t know what it means.

I uploaded new files and skill installation instructions. You only need to download the skill.md file and the references folder.

Have fun, let me know how it works for you.

I submitted the ModxTransfer extra to Modx.(Used MyComponent, Thanks Bob!) It only works in 3.0. I may make one for earlier versions.

2 Likes

Perfect, great!
I’ll try it today.

By quickly looking at the files, I saw that you removed Collections and Tagger, while following your scheme I wanted to add Babel as well.
Is it a licensing issue or something similar?

It’s a late-night issue. HA!

I’ll add them back in and add Babel.

Last night (actually early this morning), I had Claude successfully create an entire site from a bunch of PDFs my client provided. A 25-page SEO optimized site with 45 elements, complete with the CSS file. I imported everything with ModxTransfer. It’s not perfect, but it cuts days or weeks of work.

This ain’t a security-nightmare, vibe-coded slop website. This is a real website built on a solid CMS ready to go live in hours!

2 Likes

Congratulations!
So ModxTransfer practically populates the DB with values from the JSON and only the related tables, nice.

I tried reinstalling the skills on Claude but it gives the same problem

I added Babel, updated some image+ issues, and expanded the MIGX knowledge.

I uploaded a modx-cms zip file to GitHub. I was able to install it.

1 Like

It worked, I unpacked the folder and uploaded the files.
Now I’ll test it, thanks.

1 Like

Erm, you used MyComponent to create an extra that does what MyComponent does? :wink:

It’s not the same at all. My extra gives someone the ability to write all the resources and elements outside modx then import them with a JSON file. You can also export a group of resources, upload them to AI to optimize and interlink, and reimport them.

The ModxTransfert and AI page no longer exists?

EDIT:
new link GitHub - crecorn/modx-import-export-tools: Import and export MODX Elements and Resources using JSON files

It’s back up. I’m working on an update. I’m changing the custom manager layout.

1 Like

Sorry, I was joking. I’m sure the parallels are superficial. It just struck me that MyComponent also gives you the ability to create resources and elements outside of MODX then import them with a few clicks, or put them in a transport package for import in Package Manager.

I’m sure your extra is much easier to learn than MyComponent and comes with a lot less baggage, not to mention the AI aspect.

1 Like