A local, zero-dependency Python CLI tool that scans social media drafts against 30+ algorithmic rules to prevent shadowbans, link penalties, and downranking.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install phy-platform-rules-engine
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install phy-platform-rules-engine using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Platform Rules Engine is an automated pre-flight checker designed to audit social media posts before they are published. Operating like an code linter but tailored for organic reach algorithms, this tool evaluates draft content against more than 30 invisible platform-specific rules. It provides a numeric score from 0 to 100, lists rule statuses as PASS, WARN, or FAIL, and offers precise, actionable recommendations to fix violations.
As a utility within the Openclaw Skills ecosystem, the rules engine executes entirely locally on Python 3.7+ without external dependencies or API overhead. By identifying reach-killing triggers such as LinkedIn's AI content flags, Reddit's self-promotion ratios, Twitter/X's external link penalties, and HackerNews' tutorial downranking, this skill ensures posts conform to native platform expectations before publication.
The tool runs natively in Python 3.7+ using only the standard library.
# Run audit on a Reddit draft via terminal pipe
echo "Draft post text" | python3 ~/.claude/skills/phy-platform-rules-engine/scripts/platform_rules.py --platform reddit
# Audit a LinkedIn post saved in a local file
python3 ~/.claude/skills/phy-platform-rules-engine/scripts/platform_rules.py --file draft.txt --platform linkedin
# Audit a Twitter/X thread draft
python3 ~/.claude/skills/phy-platform-rules-engine/scripts/platform_rules.py --text "My new thread..." --platform twitter
You can easily integrate this tool within your Openclaw Skills directory structure for localized, agent-driven content production pipelines.
| Argument | Type | Required | Description |
|---|---|---|---|
--platform |
string | Yes | Target platform for rule validation: reddit, linkedin, twitter, hackernews |
--file |
string | No | Path to a text file containing the draft content |
--text |
string | No | Raw content string to evaluate inline |
--format |
string | No | Output formatting mode: text (default console format) or json |
When invoking the command with --format json, the response utilizes the following schema structure:
{
"score": 20,
"status": "HIGH RISK",
"metrics": {
"pass": 2,
"warn": 3,
"fail": 2
},
"results": [
{
"rule_id": "R001",
"rule_name": "Self-promo in opening",
"status": "FAIL",
"suggestion": "Move product mention to a reply comment. Lead with value first."
}
]
}
0 for perfect clear scores, 1 for minor warnings, and 2 for critical failures, allowing direct integration into CI/CD build scripts or webhooks.Loading
An automated content atom library builder that scans past content to extract reusable ideas, claims, and data points, eliminating blank-page creator burnout.

An expert frontend design skill that guides AI agents to construct high-quality, production-grade web interfaces and components that avoid generic AI aesthetics.

A structured, parallel-first research skill that enables AI agents to decompose complex queries, execute concurrent searches, and synthesize high-confidence answers.

An automated browser-driven skill that bridges Claude Code and Google NotebookLM to query your documents and retrieve citation-backed Gemini answers.

An open-source, zero-dependency structural and linguistic post analyzer that helps you understand exactly why your social media posts succeed or fail.

A zero-API static vulnerability scanner that analyzes codebases across multiple programming languages to detect and repair ReDoS and regex quality defects.








































