theme-bundling
Skill by wprig
Guides developers on adding new root-level folders, such as WooCommerce template overrides, to the WP Rig theme's production bundle. It covers editing config/config.json and checking the result with npm run bundle.
Install theme-bundling
Built from the published package, never by AI.
git clone --depth 1 https://github.com/wprig/wprig /tmp/wprig && mkdir -p ~/.claude/skills && cp -r /tmp/wprig/.ai/skills/theme-bundling ~/.claude/skills/theme-bundlingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/wprig/wprig /tmp/wprig && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/wprig/.ai/skills/theme-bundling ~/.gemini/antigravity-cli/skills/theme-bundlingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a guide for the WP Rig WordPress theme. It explains how to make sure new root-level folders, such as WooCommerce template overrides, are included in the production bundle. The assistant is told to reference config/config.json and add the folder to export.filesToCopy using a folder/**/* glob. The prodPrep task copies the listed folders, while the phpTask only handles PHP files.
The skill includes a decision tree for new root folders. Core WP Rig folders such as inc and assets need no action. Development-only folders such as node_modules, vendor and tests should not be added. Plugin template override folders such as woocommerce, tribe-events, buddypress and edd should be added, as should folders with non-PHP files needed in production. To verify, run npm run bundle and check the new folder in the production theme directory. It is aimed at developers working on WP Rig.
Written from the project's SKILL.md and checked against it.
What it can do
- Config referenceChecks config/config.json before changing the theme structure or preparing a bundle.
- Export rulesAdds new root-level plugin override folders to export.filesToCopy.
- Folder decision treeSorts new root folders into core, excluded, plugin override or non-PHP groups.
- Bundle verificationRuns npm run bundle and checks the new folder in the production theme directory.
What you need
- WP Rig theme project
- npm, to run npm run bundle
Try asking
- Add my new woocommerce folder to the WP Rig bundle config
- Should my tests folder be included in the theme bundle?
- Check that my tribe-events overrides exist in the production theme
Good to know
- phpTask ignores non-PHP files in new folders, so they need export.filesToCopy
- Development-only folders such as node_modules and vendor should never be bundled
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .ai/skills/theme-bundling/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB
Alternatives to theme-bundling
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
theme-bundling: common questions
Why are my CSS or JS files missing from a new WooCommerce folder in the bundle?
The phpTask only processes .php files. Adding the folder to export.filesToCopy includes all of its files in the bundle.
Which folders should not be added to the WP Rig bundle config?
The source lists node_modules, vendor, tests, bin, scripts, artifacts, optional, wp-cli and childify_backup as folders that should never be bundled.
What does the prodPrep task do in WP Rig?
It manually copies the files and folders listed in export.filesToCopy and keeps their directory structure in the bundled theme.
How do I install theme-bundling?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is theme-bundling free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is theme-bundling safe to use?
It scores 70 of 100. Grades: maintenance B, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to theme-bundling?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
