Community코딩 & 개발github.com

pouramin/wp-plugin-theme-builder

Build complete, installable WordPress plugins, block (FSE) themes, classic/child themes, Gutenberg blocks, block patterns and page templates, and Elementor widgets/addons/templates from a plain-language description. Every result is translation-ready in English and Persian (Farsi, fa_IR) with full RTL support, Persian fonts, and optional Jalali dates. Use this whenever the user wants to create, extend, port, translate, localize or audit a WordPress plugin, theme or template - including WooCommerce/Elementor/ACF integrations, custom post types, settings pages, shortcodes, REST endpoints, .pot/.po/.mo files, or a Persian/Farsi/RTL WordPress site - even if they only say "make me a WP plugin", "WordPress template", "وردپرس" or "افزونه". Not for day-to-day site administration or writing page content.

wp-plugin-theme-builder란 무엇인가요?

wp-plugin-theme-builder is a Claude Code agent skill that build complete, installable WordPress plugins, block (FSE) themes, classic/child themes, Gutenberg blocks, block patterns and page templates, and Elementor widgets/addons/templates from a plain-language description. Every result is translation-ready in English and Persian (Farsi, fa_IR) with full RTL support, Persian fonts, and optional Jalali dates. Use this whenever the user wants to create, extend, port, translate, localize or audit a WordPress plugin, theme or template - including WooCommerce/Elementor/ACF integrations, custom post types, settings pages, shortcodes, REST endpoints, .pot/.po/.mo files, or a Persian/Farsi/RTL WordPress site - even if they only say "make me a WP plugin", "WordPress template", "وردپرس" or "افزونه". Not for day-to-day site administration or writing page content.

지원 대상✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/pouramin/wp-plugin-theme-builder/tree/HEAD

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

WordPress Plugin & Theme Builder (English + Persian)

Turn a user's description into a finished, installable WordPress deliverable that follows WordPress's own standards, ships English (source) and Persian (fa_IR) translations, and works in both LTR and RTL. The skill is plain Markdown plus small Python scripts, so it works the same in Claude, Codex and any agent that can read files and run python3.

$SKILL below means the folder containing this file. Scripts need only Python 3; php (for php -l) is used when present.

Step 1 - Understand the request (assume sensibly, ask rarely)

Infer from the request; ask one short batch of questions only when a wrong guess would waste real work. When nobody can answer (unattended run), pick the defaults, and list them under "Assumptions" at the top of your final message.

DecideDefault if unspecified
DeliverablePlugin for behaviour, block theme for design, Elementor addon only if Elementor is named
Name / slug / prefixSlug = kebab-case folder = text domain; prefix = snake_case, 4+ chars
LanguagesUI strings in English source + Persian fa_IR shipped; RTL supported
Site content multilingual?No. If yes (two-language site): Polylang/WPML/TranslatePress integration, see references/external-plugins.md
Jalali (Shamsi) dates / Persian digitsOff, but offered as a setting when dates or numbers are shown
Min versionsWP 6.5+, PHP 7.4+ (raise PHP to 8.0+ when the user does not need legacy hosts); check current minimums online if you can
DistributionPrivate/client use; follow wordpress.org guidelines anyway (GPL, no tracking, no remote code)

Elementor "templates" can mean three different things; confirm which when unclear: block-theme templates/patterns, classic page templates, or Elementor import JSON/Template Kits.

Step 2 - Pick the architecture, read only what you need

TaskRead
Any plugin (CPT, settings, REST, cron, DB, shortcode, WooCommerce hooks)references/plugin-development.md
Theme, patterns, templates, style variations (default for design work)references/block-theme-development.md
PHP-template/classic theme, child theme of an existing themereferences/classic-and-child-themes.md
Custom Gutenberg blocks (static, dynamic, interactive)references/gutenberg-blocks.md
Elementor widgets, controls, templates, kitsreferences/elementor-addons.md
Using/extending another plugin (Elementor, WooCommerce, ACF, Polylang, WPML, Parsidate)references/external-plugins.md
Every project: translation + Persian + RTL rulesreferences/i18n-persian-rtl.md
Every project: security & coding standardsreferences/security-and-standards.md
Look and feel matters (new theme design, redesign, accessibility of the UI): optional companion skill ui-ux-design-enginereferences/design-hand-off.md
Verifying, packaging, handing overreferences/qa-and-delivery.md
Installing this skill in Claude / Codex / other agentsreferences/using-in-other-agents.md

Step 3 - Scaffold from a vetted template

Start from the templates instead of freehand boilerplate; they already encode the security, i18n and RTL rules below and are lint-clean.

python3 $SKILL/scripts/scaffold.py plugin          --name "Acme Hello"  --slug acme-hello  --out ./build \
        --author "Acme" --description "..." --name-fa "..." --description-fa "..."
python3 $SKILL/scripts/scaffold.py elementor-addon --name "Acme Widgets" --slug acme-widgets --out ./build
python3 $SKILL/scripts/scaffold.py block-theme     --name "Acme Theme"  --slug acme-theme  --out ./build

Each scaffold gives a working skeleton (settings page + shortcode / Elementor widget / full block theme with patterns), readme.txt, and generated languages/ files. The block-theme scaffold also fetches the Vazirmatn font through npm when the network allows. If the user's request is small (one hook, one shortcode), still scaffold, then delete what is unneeded; the main file header, autoloader, and i18n wiring are the valuable parts.

Step 4 - Implement the user's features

Replace the sample code with the requested behaviour. The rules below are the ones that most often decide whether WordPress code is correct. They are short because each has a reason:

  1. Prefix and namespace everything (functions, classes, options, hooks, handles, CSS classes). WordPress is one shared global scope; unprefixed names collide with other plugins.
  2. Guard every PHP file with defined( 'ABSPATH' ) || exit; so it cannot be run directly.
  3. Sanitize input, validate, escape output late. sanitize_text_field/absint/... on the way in; esc_html/esc_attr/esc_url/wp_kses_post at the moment of output. Details in the security reference.
  4. Authorize every state change: current_user_can() plus a nonce (forms/AJAX) or permission_callback (REST). Capability checks protect against logged-in-but-unprivileged users; nonces protect against CSRF; you need both.
  5. Use WordPress APIs, not raw PHP: Settings API, $wpdb->prepare, wp_remote_get, wp_enqueue_*, WP_Query, transients. They get caching, multisite, and security updates for free.
  6. Enqueue assets only where needed, register then enqueue, version them, bundle libraries locally (no CDN/Google Fonts: privacy, reliability, wordpress.org rules).
  7. Every visible string is translatable with the text domain as a string literal (__( 'Text', 'acme-hello' )). No concatenated sentences, numbered placeholders (%1$s), _n() for counts, _x() for ambiguous words, /* translators: */ comments. Never translate before init.
  8. Logical CSS only (margin-inline-start, padding-inline, text-align: start, inset-inline-end). Physical left/right is the number one cause of broken Persian layouts.
  9. Clean up after yourself: uninstall.php removes options/tables; deactivation clears cron; never delete user content on deactivate.
  10. Depend on other plugins defensively: declare Requires Plugins: (WP 6.5+, wordpress.org-hosted plugins) and check at runtime, show an admin notice, never fatal. Never bundle someone else's premium code.

Block themes: put every human-readable string in a PHP pattern (patterns/*.php with esc_html__) and reference it from templates with <!-- wp:pattern -->. Raw text in templates/*.html cannot be translated with .po files.

Design work (optional companion). If the request is about how a theme looks and the skill ui-ux-design-engine is installed, hand the design decisions to it and apply its tokens with scripts/tokens_to_theme_json.py; if it is not installed, continue with the defaults here. Details in references/design-hand-off.md.

Step 5 - Persian / English localization

Run this after the code is final, and again after any string change:

python3 $SKILL/scripts/i18n_tool.py all ./build/acme-hello --lang fa_IR   # pot + merge po + compile mo
python3 $SKILL/scripts/i18n_tool.py status ./build/acme-hello --lang fa_IR # lists untranslated strings

Then translate every UNTRANSLATED string into natural Persian by editing languages/<...>fa_IR.po (or by adding entries to $SKILL/assets/fa-glossary.json, which also keeps terminology consistent across projects), and run all again to compile the .mo. Translation rules (half-space/ZWNJ, Persian ی/ک, «» quotes, tone, placeholder safety, WordPress-admin terminology) are in references/i18n-persian-rtl.md; follow them, a literal word-for-word translation reads as machine-made to Persian users.

If the user wants more languages, repeat with --lang ar, --lang de_DE, etc. (only fa* gets the Persian glossary).

Step 6 - Verify, then package

python3 $SKILL/scripts/check_project.py ./build/acme-hello     # headers, text domain, ABSPATH, escaping, SQL, REST, RTL CSS, translations, php -l
python3 $SKILL/scripts/package_zip.py   ./build/acme-hello --out ./dist   # runs the check, then builds <slug>-<version>.zip

Fix every ERROR; read each WARN and either fix it or knowingly accept it. The checker is a fast static pass, not a substitute for running the code: if WP-CLI, wp-env, WordPress Playground or PHPCS is available, use them (references/qa-and-delivery.md). If you could not run it inside WordPress, say so plainly in the final message instead of implying it was tested.

Step 7 - Report back

Lead with the deliverable (the zip, plus the source folder). Then: what it does in two or three lines, how to install and configure, what was verified and what was not (e.g. "linted and statically checked; not activated on a live WordPress"), assumptions made, and anything the user must supply (API keys, font licenses, a screenshot for the theme). Keep it short; no step-by-step recap.

Things this skill deliberately does not do

  • Invent APIs. For third-party plugins, payment gateways (including Iranian ones) or SaaS services, read the vendor's current documentation first; if you cannot, leave a clearly marked adapter stub and say so.
  • Ship nulled/pirated code, obfuscated code, hidden admin accounts, telemetry without opt-in, or remote code loading.
  • Hand-edit a user's live site. Output is files to install.

관련 스킬