Przejdź do treści
Biblioteka skilli
Marketing i treści · Integracja z narzędziem

juejin

/juejin

Czyta i publikuje na platformie 掘金 (Juejin) przez własne ciasteczka logowania: wyświetla opublikowane artykuły ze statystykami, sprawdza pojedynczy artykuł i publikuje nowy.

Repozytorium
Skills ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
25.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 25.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/juejin.py

Co robi i kiedy

Czyta i publikuje na platformie 掘金 (Juejin) przez własne ciasteczka logowania: wyświetla opublikowane artykuły ze statystykami, sprawdza pojedynczy artykuł i publikuje nowy.

Wyzwalacze z opisu

我的掘金文章
Oryginalny opis (EN)

Read and publish on 掘金 / Juejin (juejin.cn) with the user's own login cookies (BYOC) — list their published articles with view/like/comment stats, inspect one article, and publish a new article. Use when the user mentions 掘金 / Juejin, "我的掘金文章", reading their article stats (阅读/点赞), or publishing/发文 to 掘金.

Jak działa

  1. CLI
  2. Verify the connection first
  3. Publishing — GATED (dry-run unless trailing --confirm)
  4. Gotchas
  5. Record the output
Sekcje z nagłówków SKILL.md, w oryginale · 79 linii, 509 słów
Podgląd SKILL.md
---
name: juejin
description: Read and publish on 掘金 / Juejin (juejin.cn) with the user's own login cookies (BYOC) — list their published articles with view/like/comment stats, inspect one article, and publish a new article. Use when the user mentions 掘金 / Juejin, "我的掘金文章", reading their article stats (阅读/点赞), or publishing/发文 to 掘金.
when_to_use: |
  Trigger for anything on the user's 掘金 (juejin.cn) account driven by their own
  login cookie: show who they are, list their published articles with view /
  like / comment counts, look at one article, or publish a new article. This
  acts as the user's real account, so writes are gated behind an explicit
  confirmation.
connections: [juejin]
allowed_tools: [Bash]
license: Apache-2.0
metadata:
  author: acedatacloud
  version: "1.0"
---

# juejin — read & publish on 掘金 via your own cookies

Drives the user's **real** 掘金 account through the same `api.juejin.cn` web
endpoints the site uses, authenticated by the login cookie they captured with
the ACE extension. No browser, no third-party deps — just `urllib`.

The connector injects the cookie jar as an env var:

- `JUEJIN_COOKIES` — a JSON array of cookies. **Secret — never echo or print it.**

## CLI

The skill ships [`scripts/juejin.py`](scripts/juejin.py) — self-contained, stdlib only.

```sh
# $SKILL_DIR can point at another skill loaded this turn — anchor on our own
# script, and re-run this at the top of every Bash block (fresh shell each time).
JJ="$SKILL_DIR/scripts/juejin.py"; [ -f "$JJ" ] || JJ=$(find /tmp -maxdepth 8 -path '*/skills/*/scripts/juejin.py' 2>/dev/null | head -1)
[ -f "$JJ" ] || { echo "juejin script not found (SKILL_DIR=$SKILL_DIR)" >&2; exit 1; }
python3 "$JJ" whoami                     # who is logged in (+ totals)
python3 "$JJ" articles --limit 20        # my published articles + stats
python3 "$JJ" article <article-id>       # one article's stats
```

Stats come straight from 掘金: `view_count` (阅读), `digg_count` (点赞),
`comment_count` (评论), `collect_count` (收藏). `audit_status` 2 = online.

## Verify the connection first

```sh
JJ="$SKILL_DIR/scripts/juejin.py"; [ -f "$JJ" ] || JJ=$(find /tmp -maxdepth 8 -path '*/skills/*/scripts/juejin.py' 2>/dev/null | head -1)
python3 "$JJ" whoami
# → {"user_id": "...", "name": "...", "post_article_count": 0}
```

On an auth error (`err_no` 401 / "请登录") the cookie is expired — have the user
reconnect at <https://studio.acedata.cloud/console/connectors>. Do **not** loop-retry.

## Publishing — GATED (dry-run unless trailing `--confirm`)

`publish` writes to the user's real account. Content is **Markdown**. Without a
trailing `--confirm` it dry-runs. `--confirm` is honored **only as the last
argument**. Always show the dry-run, get an explicit "yes", then re-run.

```sh
JJ="$SKILL_DIR/scripts/juejin.py"; [ -f "$JJ" ] || JJ=$(find /tmp -maxdepth 8 -path '*/skills/*/scripts/juejin.py' 2>/dev/null | head -1)
python3 "$JJ" publish --title "标题" --content-file a.md                       # dry-run
python3 "$JJ" publish --title "标题" --content-file a.md --draft-only --confirm   # private draft
python3 "$JJ" publish --title "标题" --content-file a.md \
    --category-id 6809637769959178254 --tag-ids 6809640407484334093 --confirm # PUBLIC
```

- `--draft-only` creates a private draft (掘金 `article_draft`) — safe.
- To **actually publish** (go through 审核), 掘金 requires a valid `--category-id`
  and at least one `--tag-id`. Without them, use `--draft-only` and let the user
  pick category/tags in the 掘金 editor. Default to `--draft-only`.

## Gotchas

- **This is the user's real 掘金 account.** Confirm before any publish.
- Publishing without a category + tag is rejected in 审核; prefer `--draft-only`.
- **Never print `JUEJIN_COOKIES`** — it is full account access.
- **ToS**: acts only on the user's own account with their own captured cookie.


## Record the output

After you successfully publish and obtain the live result URL, call the built-in
`publish_artifact` tool ONCE so the user can track this deliverable in **My Outputs**:

```
publish_artifact(kind="article", channel="juejin", title="<title>", url="<the REAL returned URL>", status="delivered")
```

Use the real returned URL — never fabricate one. Call it once per published item,
only after delivery is confirmed; skip it (or use `status="failed"`) if publishing failed.
See `_shared/artifacts.md`.
Pliki w paczce (2)
  • SKILL.md 4 KB
  • scripts/juejin.py 11 KB

Wersje

W bazie nie ma innych skilli o nazwie juejin.

Migawka bazy z 28.10.2026 · wersja paczki aa23501c1435 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100csdn
    Odczytuje i publikuje na CSDN (blog.csdn.net) z użyciem własnych ciasteczek logowania użytkownika: wyświetla opublikowane artykuły ze statystykami, sprawdza jeden artykuł i publikuje nowy.
  • 100bilibili
    Czyta i publikuje artykuły (专栏) na Bilibili z własnymi ciasteczkami logowania: lista opublikowanych tekstów ze statystykami, podgląd jednego artykułu i publikacja nowego.
  • 95juejin-article-to-markdown
    Zamienia artykuły z serwisu Juejin na czysty plik Markdown: usuwa nawigację, komentarze i polecane artykuły oraz zachowuje bloki kodu, tabele i obrazy.
  • 100wechatsync
    Publikuje i synchronizuje artykuły Markdown lub HTML na ponad 29 platform, np. Zhihu, Juejin, CSDN, Weibo i WordPress.
  • 100publish-zsxq-article
    Publikuje artykuły Markdown w Zsxq jako szkice, nigdy automatycznie jako opublikowane.
  • 95publish-x-article
    Publikuje artykuły z plików lub adresów Markdown w edytorze X Articles, wgrywa obraz okładki, konwertuje Markdown na tekst sformatowany i zamienia tabele oraz diagramy mermaid na obrazy.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.