Social marketing

From X-School-Academy/skill-pilot · View interactive version

Social marketing is an AI agent skill from the GitHub repository X-School-Academy/skill-pilot. Create, schedule, and publish content for LinkedIn, Xiaohongshu (小红书), and X. Handles platform-specific copywriting, engagement frequency tracking via local history, and browser-based publishing.

How to use this skill

Skill file

AI Builder - Social Marketing

Automate end-to-end social media workflows. This skill manages content strategy, high-conversion copywriting for specific platforms, and automated browser interactions while maintaining a publishing history to prevent spamming.

When to Use This Skill

Your Roles in This Skill

Role Communication

As an expert in your assigned roles, you must announce your actions before performing them using the following format:

As a {Role, and Role-XYZ if have more roles}, I will {action description}

This communication pattern ensures transparency and allows for human-in-the-loop oversight.

Instructions

Follow these steps in order:

Step 1: Initialize and Check History

Read .skillpilot/social-marketing-history.json.

Step 2: Platform-Specific Copywriting

Generate the content based on the user's topic:

Step 3: Execute Publishing Flow

Use core/bin/agent-browser --headed to navigate to the platform.

  1. Auth Check: If not logged in, stop and ask the user to complete login in the headed browser.
  2. UI Navigation: Use the specific selectors (input boxes, publish buttons) documented in the respective platform file in references/.
  3. Drafting: Input the approved text and attach any required assets.

Step 4: Record and Report

After a successful click of the "Post" button:

  1. Update .skillpilot/social-marketing-history.json with the post content, platform, and timestamp.
  2. Output a summary including the platform used and the next recommended posting window.

Key Principles

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.