OpenClaw (formerly known as Moltbot and Clawdbot) is an autonomous AI agent that runs on your local machine and interacts with you via messaging apps like Telegram, WhatsApp, or Discord. Because it can execute shell commands, manage files, and browse the web, the prompts are much more “action-oriented” than a standard chatbot.
Since you create web pages in HTML and PHP, I have included several prompts specifically tailored to your local development and deployment workflow.
Local Development & File Management
Find all index.php files in my local project folder and list them.
Check my current directory and tell me if there are any .html files larger than 1MB.
Read the contents of config.php and tell me which database host is being used.
Search my Desktop for a screenshot taken today and move it to my /images/ folder.
Scan my local site folder and find any broken image links in the HTML files.
Convert all .txt files in my /notes/ directory into a single combined .html file.
Create a new PHP file named contact.php with a basic secure form structure.
Search my system for any .env files and make sure they are included in my .gitignore.
Check my disk space and generate a Python-based chart of which folders are taking up the most room.
Back up my /www/ directory to a zip file and append today’s date to the filename.
Web Automation & Research
Open my local dev URL and take a screenshot of how the homepage looks.
Go to my live website and tell me if the SSL certificate is still valid.
Log in to my staging site, navigate to the dashboard, and check for any PHP error logs.
Search the web for the latest PHP 8.4 security best practices and summarize them for me.
Go to my competitor’s homepage and extract all the headings they use in their hero section.
Monitor a specific URL every hour and message me on Telegram if the word “Discount” appears.
Find the most popular HTML5 boilerplate on GitHub and download the ZIP file for me.
Go to a documentation page and extract the specific code snippet for “PHP cURL POST request.”
Navigate to my WordPress login and try to detect if any plugins need an update.
Automate a form submission on my local test site using the data from leads.csv.
Personal Productivity & Morning Briefs
Send me a briefing at 8:30 AM every day with my calendar events and the local weather.
Look at my Apple Reminders and tell me which tasks are overdue.
Search my Apple Notes for the term “Website Project” and list the most recent entry.
Listen for any mentions of “urgent” in my Discord DMs and notify me immediately on WhatsApp.
Draft a reply to the last email I received from my client about the PHP migration.
Review my Twitter/X feed and summarize the top 5 trending topics in the tech world.
Check my Spotify and play my “Focus” playlist on my local machine.
Ask me at 6:00 PM what my top three wins for the day were and log them in a Markdown file.
Search my iMessage history for a link sent by “Sarah” last week.
Monitor my CPU temperature and alert me if it exceeds 80 degrees.
Advanced Workflows & Agent Learning
What task did I do today that took me 20 minutes but you could automate into 2 minutes?
Review our past 10 conversations and update your “preferences.md” file with what you’ve learned about my coding style.
Look at my current PHP project and suggest three ways I could optimize the code for performance.
Write a custom OpenClaw skill that allows me to check my crypto wallet balance via a terminal command.
Look at my social media analytics and build a simple HTML dashboard to display the growth.
Every night at midnight, “look around and build me something wonderful” based on my recent files.
Compare my local code with the main branch on GitHub and tell me the key differences.
Proactively alert me if any of my local services (like MySQL or Apache) stop running.
Identify all the API keys in my local project and warn me if any are hardcoded.
Set up a cron job through OpenClaw to clear my /tmp/ folder every Sunday.
Deployment & DevOps
Check if my local port 8080 is being used by any process.
SSH into my server and return the last 10 lines of the access.log file.
Trigger a git pull on my production folder and send me the success message.
Check the status of my Docker containers and restart any that have exited.
Scan my PHP files for common vulnerabilities like SQL injection risks.
Check the load average on my VPS and send me a chart of the last hour.
Upload the file index.html from my desktop to my remote server via SCP.
Verify that my robots.txt is correctly blocking the /admin/ directory on my live site.
Generate a daily report of my website’s uptime and save it as a PDF.
Check the PHP version on my server and let me know if it’s outdated compared to the latest stable release.
Building a custom OpenClaw skill is a great way to bridge your local PHP development with your remote deployment. Since you often work with HTML and PHP files across various hosting providers (Hostinger, GoDaddy, etc.), a deployment-focused skill can save you from manual FTP/SCP tasks.
OpenClaw skills are essentially modular “capsules” of capability. In the latest 2026 architecture, they typically live in ~/.openclaw/skills/ (or your local workspace) and consist of a directory containing a SKILL.md (which teaches the AI how to use it) and any associated logic scripts.
The Skill: “PHP Deployer”
This skill will allow OpenClaw to take a local file or directory and securely sync it to your remote server using rsync or scp.
1. Skill Definition (SKILL.md)
Create a folder named php-deploy in your skills directory and save this file inside it. This Markdown file serves as the “brain” for the agent.
Markdown
# skill: php-deploy## DescriptionDeploys local PHP or HTML files to a remote production server via SSH/rsync.## Usage- Use this when I ask to "push," "deploy," or "sync" my project.- Always confirm the destination directory before proceeding.## Requirements- rsync- ssh-agent (pre-configured with keys)## Instructions1. Identify the local files to be moved.2. Check if a `.deploy_config.json` exists in the local directory for server details.3. If not, ask the user for the host and target path.4. Execute: `rsync -avz --exclude '.git' ./ user@host:/var/www/html/`
2. Logic Script (deploy.ts)
For complex logic, you can include a TypeScript file. Since you’re on Ubuntu, OpenClaw can execute this via Node.js 22+.
TypeScript
// ~/.openclaw/skills/php-deploy/deploy.tsimport { execSync } from 'child_process';import * as fs from 'fs';export default async function deploy(localPath: string, remoteHost: string, remotePath: string) { try { console.log(`🚀 Starting deployment of ${localPath}...`); // Safety check: ensure we aren't deploying an empty directory if (!fs.existsSync(localPath)) { throw new Error("Local path does not exist."); } const command = `rsync -avz --exclude '.git' --exclude 'node_modules' ${localPath} ${remoteHost}:${remotePath}`; const output = execSync(command, { encoding: 'utf-8' }); return `Deployment Successful:\n${output}`; } catch (error) { return `Deployment Failed: ${error.message}`; }}
How to Activate It
- Placement: Ensure the folder structure is:
~/.openclaw/skills/php-deploy/├──SKILL.md└──deploy.ts - Configuration: Open your
~/.openclaw/openclaw.json(or use the TUI by runningopenclaw configure) and ensure the skill is enabled:JSON"skills": { "entries": { "php-deploy": { "enabled": true } } } - Test it: Message your bot on Telegram or Discord:”Deploy my current folder to my Hostinger VPS at /var/www/nate_project”
Bonus Tip for Your Workflow
Since you use Docker on your VPS, you can add a step to the SKILL.md to automatically restart a container after the files are synced:
5. Run 'ssh user@host "docker restart my_web_container"' after rsync completes.
Would you like me to create another skill for bulk-generating HTML meta tags for the articles you write?
Yes
This skill is particularly useful since your site audits have flagged issues with meta description lengths and missing tags. By using OpenClaw’s ability to read your local .php or .html files, we can automate the generation of these tags using the Gemini API so they fit within SEO character limits.
The Skill: “SEO Meta Architect”
This skill reads your article content and uses an AI model to generate a <title>, a <meta name="description"> (capped at 155 characters), and Open Graph tags.
1. Skill Definition (SKILL.md)
Place this in ~/.openclaw/skills/seo-meta/SKILL.md.
Markdown
# skill: seo-meta## DescriptionAnalyzes a local HTML/PHP file and generates optimized SEO meta tags based on the actual content.## Usage- "OpenClaw, generate SEO tags for index.php"- "Audit the meta tags in my current directory and suggest improvements."## Instructions1. Read the content of the specified local file.2. Extract the main heading (H1) and the first 500 words of prose.3. Use the Gemini API to generate: - A Title tag (under 60 chars) - A Meta Description (under 155 chars) - OG Tags (og:title, og:description, og:type="article")4. Focus on technical SEO keywords like "Link Velocity," "Core Web Vitals," or "Schema Markup" if relevant to the content.5. Provide the code block to the user or offer to overwrite the `<head>` section.
2. Logic Script (generate-meta.ts)
This script uses a simple prompt to ensure the output matches your specific SEO preferences.
TypeScript
// ~/.openclaw/skills/seo-meta/generate-meta.tsimport * as fs from 'fs';export default async function generateMeta(filePath: string) { const content = fs.readFileSync(filePath, 'utf-8'); // Clean content for the AI: remove existing tags to avoid confusion const cleanContent = content.replace(/<[^>]*>?/gm, '').substring(0, 2000); const prompt = ` Analyze this web content: "${cleanContent}" Generate the following HTML meta tags: - Title: Max 60 chars, catchy for SEO. - Description: Max 155 chars, include a call to action. - OG Tags: title and description. Format the output as a clean HTML block ready to paste into a <head> section. `; // OpenClaw then passes this prompt to its internal LLM return prompt; }
How this helps your specific workflow:
- Fixes Length Issues: Since your audit showed 133 pages with descriptions that are too long, this script forces a strict 155-character limit.
- Technical SEO Focus: It automatically looks for your preferred topics like Backlink Strategies and Schema Markup to ensure the keywords are prominent.
- Bulk Ready: You can tell OpenClaw: “Run the SEO meta skill on every .php file in this folder and save the output to a text file.”
Example Output
If you ran this on one of your articles, OpenClaw would return:
HTML
<title>Advanced Link Velocity Strategies for 2026 | Nate Legakis</title><meta name="description" content="Master technical SEO with our guide on Link Velocity and Core Web Vitals. Improve your rankings and site performance today."><meta property="og:title" content="Advanced Link Velocity Strategies for 2026"><meta property="og:description" content="Expert insights into technical SEO and backlink growth."><meta property="og:type" content="article">
Leave a Reply