Challenge Loginのロゴ

Challenge Login

組織人気
AgibotTech
challenge-login

Use when the contestant needs to obtain or refresh their Simulation Challenge JWT (CHALLENGE_TOKEN), or wants to inspect the current logged-in user. Trigger words include "log in", "token", "401", "current user", "name", "refresh".

Add to TypingMind

概要

公開者AgibotTech
リポジトリgenie_sim
スキル名challenge-login
スター
1.4K
フォーク
119
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    AgibotTechがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Challenge Login」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/AgibotTech/genie_sim/tree/main/source/geniesim_benchmark/skills/robocoliseum/challenge-login
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AgibotTech/genie_sim.git /tmp/genie_sim
mkdir -p .claude/skills
cp -r /tmp/genie_sim/source/geniesim_benchmark/skills/robocoliseum/challenge-login .claude/skills/challenge-login
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでChallenge Loginを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にChallenge Loginを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Challenge Loginは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

challenge-login — Acquire and refresh the JWT

The challenge API is gated by a JWT delivered as Authorization: Bearer <token>. Almost everything else fails with 401 until this is set.

Note: the challenge API uses email + password auth, NOT the Casdoor OAuth path used elsewhere on the platform.

Inputs

VariableRequiredNotes
BASE_URLnofixed default https://robocoliseum.ai (override only if explicitly told)
EMAILfor first logincontestant email
PASSWORDfor first logincontestant password
CHALLENGE_TOKENfor refresh / current-userexisting JWT

If any are missing, ask before proceeding. Never print the password back to the user.

Step 1 — Login (read-only on the platform; safe to run)

When echoing this command back to the user, redact the password (show [REDACTED] or just its length). Never include the literal $PASSWORD value in your transcript or log output.

bash
# Helper (define once per shell; or inline at the top of each Bash call)
challenge_save_var() {
  local f=~/.simubotix-challenge.env key="$1" val="$2"
  touch "$f" && chmod 600 "$f"
  if [ -s "$f" ]; then
    awk -v k="$key" '$0 !~ "^" k "="' "$f" > "$f.tmp" && mv "$f.tmp" "$f"
  fi
  printf '%s=%q\n' "$key" "$val" >> "$f"
  chmod 600 "$f"
  export "$key=$val"
}

LOGIN_RESP=$(curl -fsS -X POST "$BASE_URL/api/challenge/login" \
  -H "Content-Type: application/json" \
  -d "{\"email\":\"$EMAIL\",\"password\":\"$PASSWORD\"}")

STATUS=$(echo "$LOGIN_RESP" | jq -r '.status // "error"')
TOKEN=$(echo  "$LOGIN_RESP" | jq -r '.token  // empty')

if [ "$STATUS" != "ok" ] || [ -z "$TOKEN" ] || [ "$TOKEN" = "null" ]; then
  echo "login failed: $LOGIN_RESP" >&2
  exit 1
fi

challenge_save_var CHALLENGE_TOKEN "$TOKEN"
echo "CHALLENGE_TOKEN persisted to ~/.simubotix-challenge.env (length=${#TOKEN})"

Always check .status == "ok" AND .token is non-null/non-empty before persisting — a malformed response would otherwise silently leave CHALLENGE_TOKEN=null on disk, breaking every later call with a confusing 401.

challenge_save_var writes CHALLENGE_TOKEN=<jwt> to ~/.simubotix-challenge.env (mode 0600) and exports it in the current shell. Subsequent Bash calls (even fresh subshells) recover it via . ~/.simubotix-challenge.env.

Anything other than {"status":"ok","token":"<JWT>"} → stop and report the body verbatim to the user.

Step 2 — Inspect the current user (recommended after login)

bash
[ -f ~/.simubotix-challenge.env ] && . ~/.simubotix-challenge.env
curl -fsS "$BASE_URL/api/challenge/current-user-info" \
  -H "Authorization: Bearer $CHALLENGE_TOKEN" | jq

Read these fields back to the user:

  • name — what shows up on the leaderboard.
  • max_concurrent_cases (if exposed) — the per-user parallelism cap; remember this for challenge-run-agent.

If this returns HTTP 5xx (e.g. curl: (22) ... error 500), do NOT assume the platform is down. The most common cause is $CHALLENGE_TOKEN being unset / empty / not exported into the current shell — the server may surface that as a 500 instead of a clean 401. Drop -f to see the body, and confirm the state file is being sourced:

bash
[ -f ~/.simubotix-challenge.env ] && . ~/.simubotix-challenge.env
echo "token length=${#CHALLENGE_TOKEN}"   # 0 → still missing; re-run Step 1
curl -sS -i "$BASE_URL/api/challenge/current-user-info" \
  -H "Authorization: Bearer $CHALLENGE_TOKEN" | tail -15

Only treat the 5xx as a real platform issue after the token is confirmed valid (e.g. login itself just succeeded with the same value).

Step 3 — Refresh an expired token

/login/refresh works even when the JWT has expired, as long as it can still be parsed. Once it's truly malformed, fall back to Step 1.

Confirm before running. Refresh is read-only on the platform but mutates the user's shell $CHALLENGE_TOKEN — that's a side effect they should approve. Print the command, name the consequence, and wait for "yes". Exception: if the user has already said "just refresh" / "auto-refresh on 401", treat that as standing consent.

bash
[ -f ~/.simubotix-challenge.env ] && . ~/.simubotix-challenge.env

REFRESH_RESP=$(curl -fsS "$BASE_URL/api/challenge/login/refresh" \
  -H "Authorization: Bearer $CHALLENGE_TOKEN")
NEW=$(echo "$REFRESH_RESP" | jq -r '.token // empty')

if [ -z "$NEW" ] || [ "$NEW" = "null" ]; then
  echo "refresh failed: $REFRESH_RESP" >&2
  echo "fall back to Step 1 (email + password)" >&2
else
  challenge_save_var CHALLENGE_TOKEN "$NEW"   # rewrites ~/.simubotix-challenge.env
  echo "refreshed (length=${#NEW})"
fi

If refresh returns null (token unparseable, account disabled, etc.), do NOT loop — go to Step 1 and ask the user for EMAIL / PASSWORD if they aren't in the environment.

Failure modes

SymptomAction
curl exits non-zero / HTTP 4xxShow the response body. Do NOT retry blindly.
.token is null / emptyAuth credentials wrong; ask the user to verify; never auto-retry with guesses.
Subsequent calls still return 401Token may be for a different BASE_URL. Confirm the host.

Resetting state

The state file ~/.simubotix-challenge.env is not auto-cleaned. To reset:

bash
# Forget everything (forces a fresh login + submit-job)
rm -f ~/.simubotix-challenge.env

# Or: keep token, drop only job vars (e.g. before working on a different job)
challenge_reset_job() {
  local f=~/.simubotix-challenge.env
  [ -f "$f" ] || return 0
  awk '$0 !~ /^(JOB_ID|JOB_UUID|JOB_TOKEN|PARALLELISM|TUNNEL_ENDPOINT)=/' "$f" > "$f.tmp" && mv "$f.tmp" "$f"
  chmod 600 "$f"
  unset JOB_ID JOB_UUID JOB_TOKEN PARALLELISM TUNNEL_ENDPOINT
}

Use challenge_reset_job when the user wants a clean slate before challenge-submit-job and the previous job's JOB_ID is no longer needed (or already terminal).

Hand-off

After login, suggest the next skill based on the user's stated goal:

  • "I want to submit a model" → challenge-submit-job
  • "I want to know my rank" → challenge-ranking
  • "Just checking my account" → done.

Do NOT proceed automatically; wait for the user to confirm.

よくある質問

AIスキル「Challenge Login」では何ができますか?

Use when the contestant needs to obtain or refresh their Simulation Challenge JWT (CHALLENGE_TOKEN), or wants to inspect the current logged-in user. Trigger words include "log in", "token", "401", "current user", "name", "refresh".

TypingMindでChallenge Loginを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Challenge Loginはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにChallenge Loginをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/AgibotTech/genie_sim/tree/main/source/geniesim_benchmark/skills/robocoliseum/challenge-loginを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Challenge Loginを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Challenge Loginで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもChallenge Loginを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Challenge Login」は無料ですか?

AgibotTechがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇