← Back to Skills Marketplace
superhero2040

Link Midjourney Instagram

by superhero2040 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
32
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install link-midjourney-instagram
Description
Runs the linkmidjourneyinstagram automation — generate four Midjourney images in Chromium via Playwright, then post each PNG as its own Instagram web post wi...
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Tags
requires-oauth-tokenrequires-sensitive-credentials
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install link-midjourney-instagram
  3. After installation, invoke the skill by name or use /link-midjourney-instagram
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial publish
Metadata
Slug link-midjourney-instagram
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 32 downloads so far.

How do I install Link Midjourney Instagram?

Run "/install link-midjourney-instagram" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Link Midjourney Instagram free?

Yes, Link Midjourney Instagram is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Link Midjourney Instagram support?

Link Midjourney Instagram is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Link Midjourney Instagram?

It is built and maintained by superhero2040 (@superhero2040); the current version is v1.0.0.

💬 Comments