wordpress-admin
Full WordPress site management - create pages/posts, configure SEO (Yoast), upload media, manage settings. Use when creating content, setting up SEO, or managing any WordPress site.
What this skill does
# WordPress Admin Skill Complete WordPress site management via WP-CLI (local Docker) and REST API (production sites). ## When to Use This Skill Invoke this skill when you need to: - Create pages or posts in WordPress - Set up SEO (focus keyword, meta description, title) - Upload and manage media/images - Configure WordPress settings - Check or recommend plugins - Manage the local WordPress Docker environment ## Available Sites ### CSR Development (Production) - **Site URL:** https://csrdevelopment.com - **REST API:** https://csrdevelopment.com/wp-json/wp/v2 - **FTP Host:** ftp.csrdevelopment.com - **FTP User:** [email protected] - **Theme Path:** /wp-content/themes/csr-theme - **Local Files:** /root/csrdevelopment.com/csrdevelopment.com/public_html ### Local WordPress (Docker) - **Site URL:** https://local2.hustletogether.com - **Container:** wordpress-local-wordpress-1 - **WP-CLI:** `docker exec wordpress-local-wordpress-1 wp <command> --allow-root` - **Admin:** https://local2.hustletogether.com/wp-admin - **Credentials:** admin / admin123 ## Workflows ### Create a Page **Local (Docker):** ```bash docker exec wordpress-local-wordpress-1 wp post create \ --post_type=page \ --post_title="Privacy Policy" \ --post_name="privacy-policy" \ --post_status="publish" \ --allow-root ``` **Production (REST API):** ```bash curl -X POST "https://csrdevelopment.com/wp-json/wp/v2/pages" \ -H "Authorization: Basic BASE64_CREDENTIALS" \ -H "Content-Type: application/json" \ -d '{ "title": "Privacy Policy", "slug": "privacy-policy", "status": "publish", "template": "page-privacy-policy.php" }' ``` ### Set Page Template ```bash docker exec wordpress-local-wordpress-1 wp post meta update <POST_ID> _wp_page_template "page-privacy-policy.php" --allow-root ``` ### Configure SEO (Yoast) **Requirements:** Theme must have Yoast meta fields registered (see functions.php snippet below) ```bash # Set focus keyphrase docker exec wordpress-local-wordpress-1 wp post meta update <POST_ID> _yoast_wpseo_focuskw "privacy policy miami real estate" --allow-root # Set meta description (155 chars max, include focus keyword) docker exec wordpress-local-wordpress-1 wp post meta update <POST_ID> _yoast_wpseo_metadesc "Learn how CSR Real Estate protects your privacy and handles personal information on our Miami real estate development website." --allow-root # Set SEO title docker exec wordpress-local-wordpress-1 wp post meta update <POST_ID> _yoast_wpseo_title "Privacy Policy | CSR Real Estate" --allow-root ``` ### Upload Media **From URL:** ```bash docker exec wordpress-local-wordpress-1 wp media import "https://images.pexels.com/photos/123456/image.jpg" --title="Privacy Header" --allow-root ``` **Set Featured Image:** ```bash docker exec wordpress-local-wordpress-1 wp post meta update <POST_ID> _thumbnail_id <MEDIA_ID> --allow-root ``` ### List Pages/Posts ```bash docker exec wordpress-local-wordpress-1 wp post list --post_type=page --allow-root docker exec wordpress-local-wordpress-1 wp post list --post_type=post --allow-root docker exec wordpress-local-wordpress-1 wp post list --post_type=property --allow-root ``` ### Check/Install Plugins ```bash # List installed plugins docker exec wordpress-local-wordpress-1 wp plugin list --allow-root # Install and activate a plugin docker exec wordpress-local-wordpress-1 wp plugin install wordpress-seo --activate --allow-root ``` ## SEO Best Practices ### Focus Keyphrase - 2-4 words that describe the page content - Should appear in title, meta description, and content - Use naturally, don't keyword stuff ### Meta Description - 150-155 characters max - Include focus keyphrase - Compelling call to action - Unique for each page ### Page Title (SEO Title) - 50-60 characters max - Focus keyphrase near the beginning - Brand name at the end (e.g., "Title | CSR Real Estate") ### Featured Image - Every page/post should have one - Optimized file size (< 200KB) - Descriptive alt text with keyphrase ## Required Theme Modification Add to theme's `functions.php` to enable Yoast fields via REST API: ```php // Enable Yoast SEO fields in REST API function enable_yoast_rest_api() { $post_types = ['post', 'page', 'property']; foreach ($post_types as $type) { register_post_meta($type, '_yoast_wpseo_focuskw', [ 'show_in_rest' => true, 'single' => true, 'type' => 'string' ]); register_post_meta($type, '_yoast_wpseo_metadesc', [ 'show_in_rest' => true, 'single' => true, 'type' => 'string' ]); register_post_meta($type, '_yoast_wpseo_title', [ 'show_in_rest' => true, 'single' => true, 'type' => 'string' ]); } } add_action('init', 'enable_yoast_rest_api'); ``` ## Stock Photo Integration ### Pexels API - **API Key:** Store in `/root/.pexels-api-key` - **Search:** `curl -H "Authorization: API_KEY" "https://api.pexels.com/v1/search?query=TERM&per_page=5"` - **Download:** Use the `src.large` or `src.original` URL from response ### Unsplash API - **API Key:** Store in `/root/.unsplash-api-key` - **Search:** `curl "https://api.unsplash.com/search/photos?query=TERM&client_id=API_KEY"` ## Scripts ### wp-page.py Creates a WordPress page with optional SEO and featured image. **Usage:** ```bash python3 /root/.claude/skills/wordpress-admin/scripts/wp-page.py \ --site local \ --title "Privacy Policy" \ --slug "privacy-policy" \ --template "page-privacy-policy.php" \ --focus-kw "privacy policy" \ --meta-desc "Description here" ``` ### wp-seo.py Sets Yoast SEO fields for existing posts/pages. **Usage:** ```bash python3 /root/.claude/skills/wordpress-admin/scripts/wp-seo.py \ --site local \ --post-id 123 \ --focus-kw "keyword" \ --meta-desc "Description" \ --seo-title "SEO Title" ``` ### wp-media.py Downloads stock photo and uploads to WordPress. **Usage:** ```bash python3 /root/.claude/skills/wordpress-admin/scripts/wp-media.py \ --site local \ --search "miami skyline" \ --set-featured 123 ``` ## Docker Management ### Start Local WordPress ```bash cd /root/csrdevelopment.com/wordpress-local && docker-compose up -d ``` ### Stop Local WordPress ```bash cd /root/csrdevelopment.com/wordpress-local && docker-compose down ``` ### View Logs ```bash docker logs wordpress-local-wordpress-1 -f ``` ### Reset Database ```bash cd /root/csrdevelopment.com/wordpress-local && docker-compose down -v && docker-compose up -d ``` ## FTP Sync (Production) ### Sync Theme Files ```bash /root/csrdevelopment.com/sync-to-remote.sh ``` ### Upload Single File ```bash lftp -u "[email protected]",'@#s;v1#%1M$+' ftp.csrdevelopment.com << 'EOF' set ssl:verify-certificate no cd /public_html/wp-content/themes/csr-theme put /root/csrdevelopment.com/csrdevelopment.com/public_html/wp-content/themes/csr-theme/FILE.php bye EOF ``` ## Common Tasks ### Create Privacy Policy Page 1. Create page with slug `privacy-policy` 2. Set template to `page-privacy-policy.php` 3. Set focus keyphrase: "CSR privacy policy" 4. Set meta description (~155 chars with keyphrase) 5. Upload relevant featured image ### Create Terms of Service Page 1. Create page with slug `terms` 2. Set template to `page-terms.php` 3. Set focus keyphrase: "CSR terms of service" 4. Set meta description (~155 chars with keyphrase) 5. Upload relevant featured image ## Reference - **WordPress REST API:** https://developer.wordpress.org/rest-api/ - **WP-CLI Commands:** https://developer.wordpress.org/cli/commands/ - **Yoast SEO API:** https://developer.yoast.com/customization/apis/ - **Pexels API:** https://www.pexels.com/api/documentation/
Related in Ads & Marketing
ads
IncludedMulti-platform paid advertising audit and optimization skill. Analyzes Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, and Apple Ads. 250+ checks with scoring, parallel agents, industry templates, and AI creative generation.
banana
IncludedAI image generation Creative Director powered by Google Gemini Nano Banana models. Use this skill for ANY request involving image creation, editing, visual asset production, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, visual for my anything, and all /banana commands. Handles text-to-image, image editing, multi-turn creative sessions, batch workflows, and brand presets.
rpg-migration-analyzer
IncludedAnalyzes legacy RPG (Report Program Generator) programs from AS/400 and IBM i systems for migration to modern Java applications. Extracts business logic from RPG III/IV/ILE source code, identifies data structures (D-specs), file operations (F-specs), program dependencies (CALLB/CALLP), and converts RPG constructs to Java equivalents. Generates migration reports, complexity estimates, and Java implementation strategies with POJO classes, JPA entities, and service methods. Use when modernizing AS/400 or IBM i legacy systems, analyzing RPG source files (.rpg, .rpgle, .RPGLE), converting RPG to Java, mapping data specifications to Java classes, planning legacy system migration, or when user mentions RPG analysis, Report Program Generator, RPG III/IV/ILE, AS/400 modernization, IBM i migration, packed decimal conversion, or mainframe application rewrite.
brand-library-architect
IncludedBuild a complete brand library for a product — visual asset render pipeline, brand documentation set (BRAND, COPY, MANIFESTO, BIOS, FAQ, GLOSSARY, TONE, PRICING), open-source convention files (README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT), and a self-contained press kit. This skill should be used when the user asks to "build a brand library / brand kit / press kit / brand assets" for a product, "set up a brand library workflow," "create a positioning manifesto plus visual identity," or any combination of brand documentation + visual asset pipeline. Apply phase-by-phase or run end-to-end. Templates are product-agnostic and use {{TOKEN}} placeholders the skill prompts the user to fill.
writing-tech-post
IncludedAuthors engineering blog posts end-to-end: launch deep-dives, incident postmortems, architecture migrations, performance case studies, tutorials, AI/agent system writeups, security disclosures, and research-to-product translations. Picks the correct archetype, plans the abstraction ladder, enforces an evidence cadence (diagrams, benchmarks, profiles, traces, code, ablations), tunes voice against publisher house styles (Datadog, Vercel, GitHub, AWS, Meta, Cloudflare, Jane Street), and runs a pre-publish gate for narrative momentum and disclosure ethics. Use when drafting a new engineering post, restructuring a draft that feels flat, deciding which evidence form belongs where, validating that depth and product context are balanced, or preparing a postmortem, migration, or performance narrative for external publication. Do not use for API reference documentation, README authoring, marketing copy, release notes, generic SEO content, ghost-written executive thought leadership, or non-engineering long-form essays.
blog-google
IncludedGoogle API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity analysis for E-E-A-T, YouTube video search for embedding, and Google Ads Keyword Planner. Progressive feature availability based on credential tier (API key, OAuth/service account, GA4, Ads). Shares config with claude-seo at ~/.config/claude-seo/google-api.json. Use when user says "google data", "page speed", "core web vitals", "search console", "indexation", "GA4", "keyword research", "nlp entities", "blog performance", "youtube search", "google api setup".