{"id":49273866,"url":"https://github.com/soderlind/prepare-wordpress","last_synced_at":"2026-04-25T15:05:10.252Z","repository":{"id":341098675,"uuid":"1168833624","full_name":"soderlind/prepare-wordpress","owner":"soderlind","description":"An agent skill that scaffolds (or updates) a WordPress project with dev tooling, coding standards, testing, git hooks, and i18n support.","archived":false,"fork":false,"pushed_at":"2026-02-28T00:34:26.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-28T04:56:41.108Z","etag":null,"topics":["ai-skills","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soderlind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-27T21:12:52.000Z","updated_at":"2026-02-28T00:34:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/soderlind/prepare-wordpress","commit_stats":null,"previous_names":["soderlind/prepare-wordpress"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/soderlind/prepare-wordpress","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soderlind%2Fprepare-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soderlind%2Fprepare-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soderlind%2Fprepare-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soderlind%2Fprepare-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soderlind","download_url":"https://codeload.github.com/soderlind/prepare-wordpress/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soderlind%2Fprepare-wordpress/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32266015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-skills","wordpress-plugin"],"created_at":"2026-04-25T15:04:41.104Z","updated_at":"2026-04-25T15:05:10.244Z","avatar_url":"https://github.com/soderlind.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prepare-wordpress\n\n\u003e Feel free to fork and customize this skill for your specific needs. The provided code is a starting point for me when I need to quickly set up a WordPress project with best practices. It can be extended to include additional tools, configurations, or support for specific frameworks (like React, Vue, etc.) as needed.\n\nAn agent skill that scaffolds (or updates) a WordPress project with dev tooling, coding standards, testing, and i18n support.\n\nWorks with [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview), [VS Code Copilot](https://code.visualstudio.com/docs/copilot/overview), and other agents that support the [skills](https://github.com/vercel-labs/skills) format.\n\n## Install\n\n```sh\nnpx skills add https://github.com/soderlind/prepare-wordpress --skill prepare-wordpress -g\n```\n\n`-g` installs globally (available in all projects). Without it, the skill is installed into the current project only.\n\n## What it does\n\nWhen triggered, the skill prompts for plugin metadata, runs a detection script to check your project's current state, then only adds what's missing:\n\n| Phase | What it sets up |\n|-------|----------------|\n| **Metadata** | Prompts for plugin name, description, author, license, WP/PHP versions, git remote URL |\n| **Plugin file** | Creates `\u003cslug\u003e.php` with a standard WordPress plugin header |\n| **readme.txt** | Creates a WordPress.org-style `readme.txt` (optional) |\n| **Init** | `git init`, `git remote add origin`, `npm init -y`, `composer init` (if missing) |\n| **Agent skills** | Installs 6 WordPress dev skills from [automattic/agent-skills](https://github.com/automattic/agent-skills) and [jeffallan/claude-skills](https://github.com/jeffallan/claude-skills) |\n| **Composer** | PHPUnit, Pest, WPCS, PHPCS installer + `test`, `lint`, and `check` scripts |\n| **Config files** | `.editorconfig` (4-space, UTF-8, LF) and `.gitignore` (vendor, node_modules, .env) |\n| **Vitest** | `vitest` + `jsdom`, config file, test setup, and `test:js` npm script |\n| **i18n** | `i18n-map.json` template, `languages/` directory, and WP-CLI i18n npm scripts |\n| **Cleanup** | Removes stray `yarn.lock` created by `npx` commands |\n\n### Feature flags and dry-run\n\nUse the planner to preview what will run before writing changes:\n\n```sh\nnode skills/prepare-wordpress/scripts/plan_setup.mjs --dry-run\n```\n\nLimit execution to specific phases:\n\n```sh\nnode skills/prepare-wordpress/scripts/plan_setup.mjs --dry-run --only=init,composer,config\n```\n\nSkip phases you do not want:\n\n```sh\nnode skills/prepare-wordpress/scripts/plan_setup.mjs --dry-run --skip=skills,vitest\n```\n\nApply safe shell commands from the plan:\n\n```sh\nnode skills/prepare-wordpress/scripts/plan_setup.mjs --apply --only=init,skills,composer\n```\n\nGet machine-readable dry-run plan output for tools/automation:\n\n```sh\nnode skills/prepare-wordpress/scripts/plan_setup.mjs --json --only=init,composer\n```\n\nGet machine-readable apply output (includes per-phase command results):\n\n```sh\nnode skills/prepare-wordpress/scripts/plan_setup.mjs --json --apply --only=cleanup\n```\n\nAvailable phase flags: `plugin`, `readme`, `init`, `skills`, `composer`, `config`, `vitest`, `i18n`, `cleanup`.\n\n### Smart detection\n\nThe skill's detection script checks for existing files and configs before each phase. If something already exists, it's skipped (or merged in the case of `.gitignore`). Existing plugin files, `readme.txt`, git remote origin, and installed agent skills are all detected automatically.\n\n## Usage\n\nAfter installation, the skill is triggered automatically when you ask your agent to prepare or scaffold a WordPress project. Examples:\n\n```\nPrepare this project for WordPress plugin development\n```\n\n```\nSet up dev tooling for this WordPress project\n```\n\n```\nAdd testing, linting, and i18n to this WordPress plugin\n```\n\n## After scaffolding\n\n1. **`i18n-map.json`** — Replace `BLOCK-NAME` with your actual block directory names (if you have blocks)\n2. Run `composer install` and `npm install`\n\nThe text domain and plugin slug are derived from the current folder name automatically.\n\n## Prerequisites\n\n- Node.js 18+\n- Composer 2+\n- PHP 8.3+\n- git\n- [WP-CLI](https://wp-cli.org/) (for i18n commands)\n\n## Other commands\n\n```sh\n# List installed skills\nnpx skills list -g\n\n# Update to latest version\nnpx skills update prepare-wordpress -g\n\n# Remove\nnpx skills remove prepare-wordpress -g\n```\n\n## License\n\nGPL-2.0-or-later\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoderlind%2Fprepare-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoderlind%2Fprepare-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoderlind%2Fprepare-wordpress/lists"}