golden-rule
/install golden-rule
Golden Hour Automator
This skill provides the script and instructions needed to run a comment-to-DM automation on Instagram. It is designed to boost engagement in the critical first hour (the "Golden Hour") after a post goes live.
Prerequisites
The user must have:
- An Instagram Professional/Business account linked to a Facebook Page.
- A Long-Lived Instagram Graph API Page Access Token (
IG_ACCESS_TOKEN). - Their Instagram Business Account ID (
IG_ACCOUNT_ID).
Ensure these are set in the environment or .env file before running the script.
Usage
When a user asks to monitor a post for a keyword and send a DM, run the included ig_golden_hour.py script.
uv run {baseDir}/scripts/ig_golden_hour.py \
--media_id "12345678901234567" \
--keyword "bot" \
--dm_text "Here is the link you requested: https://example.com" \
--duration 60
Parameters:
--media_id: The ID of the specific Instagram post/Reel to monitor. (You may need to query the Graph APIme/mediaendpoint to find this for the user's latest post).--keyword: The trigger word the script watches for in the comments (case-insensitive).--dm_text: The exact message to send to the user's DMs.--duration: How many minutes the script should stay alive and monitor the post (default is 60).
What the Script Does:
- Polls the comments of the specified
media_idevery 2 minutes. - If it finds the
--keyword, it sends the--dm_textdirectly to the commenter's inbox using the Metame/messagesendpoint. - It posts a public reply to the comment ("Just sent you a DM with the link! 🚀") to double the post's comment count and boost algorithmic reach.
- It sends a success notification back to OpenClaw via the
openclaw messageCLI.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install golden-rule - 安装完成后,直接呼叫该 Skill 的名称或使用
/golden-rule触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
golden-rule 是什么?
Automates the "Golden Hour" Instagram engagement hack. Use this skill when a user wants to set up a bot that watches an Instagram Reel/Post for a specific ke... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 311 次。
如何安装 golden-rule?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install golden-rule」即可一键安装,无需额外配置。
golden-rule 是免费的吗?
是的,golden-rule 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
golden-rule 支持哪些平台?
golden-rule 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 golden-rule?
由 yadavabhijeet4(@yadavabhijeet4)开发并维护,当前版本 v1.0.0。