← 返回 Skills 市场
superhero2040

Link Midjourney Instagram

作者 superhero2040 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
32
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install link-midjourney-instagram
功能描述
Runs the linkmidjourneyinstagram automation — generate four Midjourney images in Chromium via Playwright, then post each PNG as its own Instagram web post wi...
使用说明 (SKILL.md)

\r \r

Midjourney → Instagram(linkmidjourneyinstagram)\r

\r

專案根目錄\r

\r 自動化程式在 repository root(與 skills/ 同層、含有 main.py 的那個資料夾)。 \r 透過 exec 執行指令時,必須cd 到該目錄;不要只在 {baseDir}(此 skill 資料夾)底下跑 python main.py。\r \r

何時用這份 skill\r

\r

  • 使用者要「從 Midjourney 產圖 → 自動發四則 IG 貼文」。\r
  • 需要選擇 caption 來源:captions.txt、與 MJ 相同的 prompt、或 vision API。\r
  • Troubleshooting:首次登入、Playwright、HEADLESS、POST_DELAY、Gemini 區域限制等。\r \r

前置條件\r

\r

  • Python 3.10+,python 在 PATH。\r
  • Midjourney 有效訂閱(Google / Discord OAuth,由瀏覽器手動完成首次登入)。\r
  • Instagram 帳號;.env 內需 INSTAGRAM_USERNAMEINSTAGRAM_PASSWORD(見 .env.example)。\r
  • 依賴:pip install -r requirements.txt,並執行 python -m playwright install chromium。\r \r

安裝與設定(一次性)\r

\r 於 repository root:\r \r

python -m venv .venv\r
```\r
\r
啟用 venv 後(Windows:`.venv/Scripts/activate`;macOS/Linux:`source .venv/bin/activate`):\r
\r
```bash\r
pip install -r requirements.txt\r
python -m playwright install chromium\r
cp .env.example .env\r
```\r
\r
編輯 `.env` 填入 IG 帳密;其餘選項見 `.env.example` 註解。\r
\r
## 首次執行(務必可視瀏覽器)\r
\r
- 維持 `HEADLESS=false`(預設),讓 Chromium 視窗開著。\r
- Midjourney:完成 Google/Discord 登入與驗證;session 會存到 `browser_data/midjourney/`。\r
- Instagram:完成網頁登入與可能的 2FA;session 會存到 `browser_data/instagram/`。\r
- 之後可視需求改 `HEADLESS=true`。\r
\r
## 執行 pipeline(給 agent 用 `exec`)\r
\r
預設讀取 `prompt.txt` 與 `captions.txt`:\r
\r
```bash\r
python main.py\r
```\r
\r
常用選項:\r
\r
```bash\r
python main.py --prompt "your midjourney prompt here"\r
python main.py --skip-instagram\r
python main.py --headless\r
python main.py --post-delay 60\r
python main.py --use-prompt-caption\r
python main.py --use-vision-caption\r
```\r
\r
行為摘要:\r
\r
| 模式 | 條件 |\r
|------|------|\r
| Vision caption | `--use-vision-caption` 或 `.env` 中 `INSTAGRAM_USE_VISION_CAPTION`;若設了 `GEMINI_API_KEY`/`GOOGLE_API_KEY` 且未明確關閉,預設會開 vision |\r
| Prompt 當 caption | `--use-prompt-caption` 或 `INSTAGRAM_USE_PROMPT_CAPTION=true`(vision 開啟時會被蓋過) |\r
| `captions.txt` | 上述皆否時,依 `---` 分區塊,每張圖一則;區塊不足則用最後一則重複 |\r
\r
Vision:`GEMINI_API_KEY` / `GOOGLE_API_KEY`,或 `VISION_CAPTION_PROVIDER=openai` 搭配 `OPENAI_API_KEY`。詳見 `.env.example`。\r
\r
## 編輯輸入檔\r
\r
**`prompt.txt`**:以 `# `(井號+空白)或單獨 `#` 開頭的行為註解並忽略;`#midjourney` 這類標籤保留。非註解行會用空白串成一句送進 Midjourney。\r
\r
**`captions.txt`**:四個(或多個)區塊,區塊之間一行 `---`。註解規則同 `prompt.txt`。\r
\r
## 輸出與安全\r
\r
- 圖片:`outputs/mj_\x3Ctimestamp>/image_1.png` … `image_4.png`。\r
- **勿** commit `.env`、`browser_data/`(含 session cookie);已應在 `.gitignore`。\r
- 自動發文可能觸發平台風控;善用 `--post-delay`(預設對應 `POST_DELAY_S`),勿過度密集發送。\r
\r
## OpenClaw 載入後\r
\r
必要時請使用者 `/new` 或重啟 gateway;可用 `openclaw skills list` 確認 skill 名稱 `link-midjourney-instagram` 已載入。\r
安全使用建议
Install only if you trust the local repository that contains main.py and requirements.txt. Review the code first, run it in an isolated environment, protect .env and browser_data, and require explicit approval before any Instagram post is published.
功能分析
Type: OpenClaw Skill Name: link-midjourney-instagram Version: 1.0.0 The skill 'link-midjourney-instagram' automates image generation and social media posting via Playwright, requiring shell execution and handling of sensitive credentials (Instagram login, API keys) stored in a .env file. While the SKILL.md instructions are consistent with the stated purpose and include security warnings (e.g., against committing session data), the inherent risks of browser automation and credential management, combined with the absence of the actual implementation code (main.py), warrant a suspicious classification.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose is coherent, but it is high-impact: it generates images through Midjourney and publishes multiple Instagram posts from the user's account.
Instruction Scope
The default pipeline is documented as posting each PNG to Instagram, with no explicit per-post approval or review step before public publication.
Install Mechanism
The package contains only SKILL.md but instructs the agent to install dependencies and run repository-root Python code such as main.py, which was not included for review.
Credentials
The skill requires Instagram credentials, Midjourney OAuth/browser login, and optional Gemini/OpenAI API keys, while the registry declares no required env vars or primary credential.
Persistence & Privilege
The skill stores browser sessions under browser_data for later reuse and supports headless operation, meaning account access can persist beyond the first manual login.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install link-midjourney-instagram
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /link-midjourney-instagram 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial publish
元数据
Slug link-midjourney-instagram
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Link Midjourney Instagram 是什么?

Runs the linkmidjourneyinstagram automation — generate four Midjourney images in Chromium via Playwright, then post each PNG as its own Instagram web post wi... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 32 次。

如何安装 Link Midjourney Instagram?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install link-midjourney-instagram」即可一键安装,无需额外配置。

Link Midjourney Instagram 是免费的吗?

是的,Link Midjourney Instagram 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Link Midjourney Instagram 支持哪些平台?

Link Midjourney Instagram 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Link Midjourney Instagram?

由 superhero2040(@superhero2040)开发并维护,当前版本 v1.0.0。

💬 留言讨论