$npx -y skills add MidnightDarling/jike-skill --skill jikeInteract with Jike (即刻) from Codex: QR login, feed reading, posting, commenting, searching, profile lookup, notifications, and full-history export. Use when the user mentions Jike, 即刻, 刷即刻, 发即刻, jike feed, jike post, or exporting Jike history.
| 1 | # Jike |
| 2 | |
| 3 | ## Task |
| 4 | |
| 5 | Use the Jike social network client from this plugin or from the installed |
| 6 | `jike-skill` Python package. Authentication is QR scan only; do not ask for or |
| 7 | store passwords. |
| 8 | |
| 9 | ## Paths |
| 10 | |
| 11 | When working from a plugin checkout, resolve bundled files from the plugin root: |
| 12 | |
| 13 | - `scripts/auth.py` for QR login |
| 14 | - `scripts/client.py` for feed, post, comment, search, profile, and notifications |
| 15 | - `scripts/export.py` for full-history Markdown export |
| 16 | - `references/api.md` for endpoint details |
| 17 | |
| 18 | If this skill file is the current reference point, the plugin root is two |
| 19 | directories above it. |
| 20 | |
| 21 | ## Install This Plugin In Codex |
| 22 | |
| 23 | When the user asks how to install or enable this skill for Codex, use the |
| 24 | Codex plugin marketplace route: |
| 25 | |
| 26 | ```bash |
| 27 | codex plugin marketplace add MidnightDarling/jike-skill |
| 28 | codex plugin marketplace upgrade jike-skill |
| 29 | ``` |
| 30 | |
| 31 | Then ask the user to fully restart Codex, open `/plugins`, and confirm that |
| 32 | `Jike` from `jike-skill` is installed and enabled. In a running Codex |
| 33 | environment, verify success by checking that the installed skill exists under: |
| 34 | |
| 35 | ```text |
| 36 | ~/.codex/plugins/cache/jike-skill/jike/<version>/skills/jike/SKILL.md |
| 37 | ``` |
| 38 | |
| 39 | Do not treat the public repository's root `SKILL.md` as enough for Codex |
| 40 | plugin discovery. Codex loads the packaged plugin from the marketplace cache. |
| 41 | |
| 42 | ## Authenticate |
| 43 | |
| 44 | Prefer the installed CLI when available: |
| 45 | |
| 46 | ```bash |
| 47 | jike auth |
| 48 | ``` |
| 49 | |
| 50 | From a repository or plugin checkout, run: |
| 51 | |
| 52 | ```bash |
| 53 | python3 scripts/auth.py |
| 54 | ``` |
| 55 | |
| 56 | The command prints JSON containing `access_token` and `refresh_token`. Ask the |
| 57 | user to scan the QR code with the Jike app. For later commands, prefer |
| 58 | environment variables: |
| 59 | |
| 60 | ```bash |
| 61 | export JIKE_ACCESS_TOKEN="YOUR_ACCESS_TOKEN" |
| 62 | export JIKE_REFRESH_TOKEN="YOUR_REFRESH_TOKEN" |
| 63 | ``` |
| 64 | |
| 65 | ## Interact |
| 66 | |
| 67 | Use the installed CLI: |
| 68 | |
| 69 | ```bash |
| 70 | jike feed --limit 20 |
| 71 | jike search --keyword "AI" --limit 20 |
| 72 | jike post --content "Hello" |
| 73 | jike profile --username "someone" |
| 74 | jike notifications |
| 75 | ``` |
| 76 | |
| 77 | Or use the bundled script from the plugin root: |
| 78 | |
| 79 | ```bash |
| 80 | python3 scripts/client.py feed --limit 20 |
| 81 | python3 scripts/client.py search --keyword "AI" --limit 20 |
| 82 | python3 scripts/client.py post --content "Hello" |
| 83 | python3 scripts/client.py profile --username "someone" |
| 84 | python3 scripts/client.py notifications |
| 85 | ``` |
| 86 | |
| 87 | ## Export |
| 88 | |
| 89 | Export a user's post history to Markdown: |
| 90 | |
| 91 | ```bash |
| 92 | python3 scripts/export.py --username USERNAME \ |
| 93 | --output posts.md --download-images --json-dump |
| 94 | ``` |
| 95 | |
| 96 | The export paginates through available posts, preserves images, includes repost |
| 97 | or share content, sorts chronologically, and can save raw JSON beside the |
| 98 | Markdown output. |
| 99 | |
| 100 | ## Safety |
| 101 | |
| 102 | - Never hardcode or commit Jike tokens. |
| 103 | - Prefer `JIKE_ACCESS_TOKEN` and `JIKE_REFRESH_TOKEN` for command execution. |
| 104 | - If token refresh fails, re-run QR authentication. |
| 105 | - Read `references/api.md` before changing endpoint behaviour. |