mj-login

- Playwright가 설치되어 있지 않으면: art-repo-package-install 을 먼저 실행하라고 안내 후 중단.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "mj-login" with this command: npx skills add cmkim/mj-download-test/cmkim-mj-download-test-mj-login

미드저니 로그인

사전 조건

  • Playwright가 설치되어 있지 않으면: art-repo-package-install 을 먼저 실행하라고 안내 후 중단.

Windows PowerShell UTF-8 설정

  • PowerShell에서 스킬을 실행할 때 UTF-8 인코딩을 강제한다.

  • 프로필에 아래 설정을 넣거나, 실행 스크립트에서 먼저 적용한다. (NoProfile 옵션은 사용하지 않는다)

chcp 65001 > $null [Console]::InputEncoding = [System.Text.UTF8Encoding]::new($false) [Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false) $OutputEncoding = [System.Text.UTF8Encoding]::new($false) $PSDefaultParameterValues['*:Encoding'] = 'utf8'

스크립트

스크립트 역할

check-login.ts

세션 JSON의 인증 쿠키 유효성 확인

login.ts

브라우저를 열어 수동 로그인, 세션을 JSON으로 저장

실행 흐름

1단계: 로그인 확인

import { checkLogin } from './check-login.js';

const result = checkLogin("mj_account"); // true: 로그인 정보 존재 → 사용자에게 알리고 종료 // false: 로그인 정보 없음 → 2단계로 진행

또는 CLI 실행:

pnpm exec tsx .agents/skills/mj-login/check-login.ts ace

샌드박스 환경(codex 인터랙티브)에서 IPC 소켓 오류 발생 시:

node --import tsx/esm .agents/skills/mj-login/check-login.ts ace

2단계: 로그인 (1단계에서 false일 때만)

import { login } from './login.js';

const result = await login("mj_account"); // 브라우저가 열린다. 사용자에게 디스코드 계정으로 로그인하라고 안내한다. // 로그인 완료 시 (/explore 페이지 이동 감지, 최대 2분) 세션이 sessions/mj_{account_name}.json에 저장된다. // true: 로그인 성공 // false: 로그인 실패 → 사용자에게 실패 원인을 알리고 중단한다

또는 CLI 실행:

pnpm exec tsx .agents/skills/mj-login/login.ts ace

샌드박스 환경(codex 인터랙티브)에서 IPC 소켓 오류 발생 시:

node --import tsx/esm .agents/skills/mj-login/login.ts ace

파라미터

  • account_name (string, 필수): 미드저니 계정명. 세션은 sessions/mj_{account_name}.json 에 저장된다.

  • 사용 가능한 계정: ace , art

결과 보고

각 단계의 콘솔 출력을 확인하여 사용자에게 전달한다.

  • [mj_{account_name}] 로그인 정보가 존재합니다. → 유효한 세션이 있음을 알린다.

  • [mj_{account_name}] 로그인 정보가 저장되었습니다 → 로그인 성공을 알린다.

  • [오류] → 에러 메시지를 전달하고 원인을 분석한다.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

mj-download

No summary provided by upstream source.

Repository SourceNeeds Review
General

art-repo-upload

No summary provided by upstream source.

Repository SourceNeeds Review
General

art-repo-pip-install

No summary provided by upstream source.

Repository SourceNeeds Review
General

image-gen

Generate AI images from text prompts. Triggers on: "生成图片", "画一张", "AI图", "generate image", "配图", "create picture", "draw", "visualize", "generate an image".

Archived SourceRecently Updated