Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
**CRITICAL:** Before every push to GitHub, execute all tests to ensure code stability and prevent critical errors.
Sign in to like and favorite skills
CRITICAL: Before every push to GitHub, execute all tests to ensure code stability and prevent critical errors.
# Run PHP syntax check on all files find includes -name "*.php" -exec php -l {} \; # Run PHPUnit tests if available vendor/bin/phpunit # Check for WooCommerce plugin compatibility # Ensure WooCommerce functions are properly available
\WC_REST_Products_Controller() in admin contextpermalink fields are included in product responsesCRITICAL: After every commit, verify changes are synchronized across all environments.
# 1. Check local git status git status git log --oneline -1 # 2. Verify server sync ssh woo.webtalkbot.com "cd /var/www/html/wp-content/plugins/woo-mcp && git status" ssh woo.webtalkbot.com "cd /var/www/html/wp-content/plugins/woo-mcp && git log --oneline -1" # 3. If server is behind, update server ssh woo.webtalkbot.com "cd /var/www/html/wp-content/plugins/woo-mcp && git pull origin main" # 4. Build on server after updates ssh woo.webtalkbot.com "cd /var/www/html/wp-content/plugins/woo-mcp && npm run build" # 5. Verify all environments have same commit hash echo "Local:" && git log --oneline -1 echo "Server:" && ssh woo.webtalkbot.com "cd /var/www/html/wp-content/plugins/woo-mcp && git log --oneline -1" echo "GitHub: Check repository directly or use git ls-remote origin main"
MANDATORY: After every local change and GitHub push, ALWAYS verify changes are deployed to the server!
# After every git push, run these verification commands: # 1. Check if server needs updates ssh woo.webtalkbot.com "cd /var/www/html/wp-content/plugins/woo-mcp && git status" # 2. If server is behind, pull changes ssh woo.webtalkbot.com "cd /var/www/html/wp-content/plugins/woo-mcp && git pull origin main" # 3. Verify server matches GitHub ssh woo.webtalkbot.com "cd /var/www/html/wp-content/plugins/woo-mcp && git log --oneline -1" # 4. If UI changes were made, run build on server ssh woo.webtalkbot.com "cd /var/www/html/wp-content/plugins/woo-mcp && npm run build"
Never assume server auto-updates! Server sync is MANUAL and must be verified after every push.
For server access, use:
ssh woo.webtalkbot.com
CRITICAL: After any UI-related changes on the server, always run the build command:
ssh woo.webtalkbot.com "cd /var/www/html/wp-content/plugins/woo-mcp && npm run build"
# Full server build command ssh woo.webtalkbot.com "cd /var/www/html/wp-content/plugins/woo-mcp && npm run build"
wc_get_product() instead of REST API controllers for safer product accesspermalink field in product data structures