← Back to list

xstore-database
by sattip
Context7-style instructions for Claude Code to configure XStore theme and create WPBakery pages via WordPress database operations
⭐ 0🍴 0📅 Jan 6, 2026
SKILL.md
name: xstore-database description: Database operations for XStore and WPBakery via WP-CLI and SQL. Use when backing up, bulk updating, searching, or performing direct database queries on WordPress with XStore theme. allowed-tools: Read, Bash, Grep, Glob, Write
XStore Database Operations
Direct database operations for XStore/WPBakery via WP-CLI and SQL.
Instructions
When this skill is invoked, help the user perform database operations for XStore theme.
Reference Documentation
Read the database reference from DATABASE_OPERATIONS.md in this repository.
Backup Commands (ALWAYS RUN FIRST)
# Full database backup
wp db export backup-$(date +%Y%m%d-%H%M%S).sql
# Backup theme options only
wp option get theme_mods_xstore-child --format=json > theme-backup.json
Common Operations
Get theme options:
wp option get theme_mods_xstore-child --format=json
wp option pluck theme_mods_xstore-child activecol
Set theme options:
wp option patch update theme_mods_xstore-child KEY 'VALUE'
Create page:
wp post create --post_type=page \
--post_title="Title" \
--post_content='[vc_row]...[/vc_row]' \
--post_status=publish \
--porcelain
Set page meta:
wp post meta update PAGE_ID _wpb_vc_js_status 'true'
wp post meta update PAGE_ID _wpb_shortcodes_custom_css 'CSS'
Cache Management
# Clear all caches (run after any changes)
wp cache flush && wp transient delete --all && wp rewrite flush
Search and Replace
# Preview changes
wp search-replace 'old-text' 'new-text' --dry-run
# Execute replacement
wp search-replace 'old-text' 'new-text'
Useful Queries
# Find pages with WPBakery
wp db query "SELECT ID, post_title FROM wp_posts WHERE post_type='page' AND post_content LIKE '%[vc_row%'"
# List static blocks
wp post list --post_type=staticblocks --format=table
# Get page content
wp post get PAGE_ID --field=post_content
Workflow
- ALWAYS backup first:
wp db export backup.sql - Perform the requested operation
- Clear caches:
wp cache flush - Verify the changes
- Provide rollback instructions if needed
Safety Notes
- Never run destructive commands without backup
- Use
--dry-runwhen available to preview changes - Clear cache after any database changes
Score
Total Score
55/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon