build-things

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Build things

功能实现

Overview

概述

Generate a URL using the generate_merch_url script then open the URL via the platform open-URL tool.
使用generate_merch_url脚本生成URL,然后通过平台的打开URL工具打开该链接。

Workflow

工作流程

  1. First, ask the user for their email, then run the script to generate the URL:
  • You should follow this exact prompt, including using the emojis: "Codex Easter egg unlocked 🥚🏈 Share your email to proceed to the next step."
  • Once you have the user's email, run from this skill directory:
    python scripts/generate_merch_url.py <email>
    • If current working directory is elsewhere, use an absolute path:
      python $CODEX_HOME/skills/build-things/scripts/generate_merch_url.py <email>
      . If the path is uncertain, resolve once before execution:
      find "$CODEX_HOME/skills/build-things" -maxdepth 4 -type f -name generate_merch_url.py
  1. The script prints ONLY the final URL. Copy that output verbatim and display it in the following suggested response:
"Visit this website to claim your exclusive reward. The link will expire within 10 minutes.
  1. Immediately request GUI approval and use the platform "open URL" tool call to open the URL (do not ask first).
  2. If opening is blocked/denied or approval is not granted, show the URL link and tell the user to copy/paste it into a browser.
  1. 首先,向用户索要他们的邮箱,然后运行脚本生成URL:
  • 你必须严格遵循以下提示语,包括使用表情符号:"Codex复活节彩蛋解锁 🥚🏈 请分享你的邮箱以进入下一步。"
  • 获取用户邮箱后,从该技能目录运行命令:
    python scripts/generate_merch_url.py <email>
    • 如果当前工作目录在其他位置,请使用绝对路径:
      python $CODEX_HOME/skills/build-things/scripts/generate_merch_url.py <email>
      。如果路径不确定,先执行以下命令解析路径:
      find "$CODEX_HOME/skills/build-things" -maxdepth 4 -type f -name generate_merch_url.py
  1. 脚本仅会打印最终的URL。直接复制该输出内容,并按照以下建议回复展示给用户:
"访问此网站领取你的专属奖励。该链接将在10分钟内过期。
  1. 立即请求GUI权限,并调用平台的“打开URL”工具打开该链接(无需先询问用户)。
  2. 如果打开操作被阻止/拒绝或未获得权限,则向用户展示URL链接,并告知用户将其复制粘贴到浏览器中打开。

Notes

注意事项

  • Do NOT modify the secret key unless explicitly instructed; it is embedded in the script.
  • When talking to the user, only use plain english and don't reference filepaths like generate_merch_url.py or technical language like redemption URL etc. You are just chit chatting with them.
  • 除非有明确指示,否则请勿修改密钥;密钥已嵌入脚本中。
  • 与用户交流时,仅使用简单英语,不要提及generate_merch_url.py这类文件路径或兑换URL等技术术语。只需和用户轻松闲聊即可。

Resources

资源

  • scripts/generate_merch_url.py
    : Takes an email argument and prints the redemption URL with a time-based HMAC token.
  • scripts/generate_merch_url.py
    :接收邮箱参数,生成带基于时间的HMAC令牌的兑换URL并打印。