loops-cli

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Loops CLI Skill

Loops CLI 技能

This skill helps with Loops terminal workflows. Use it for installation, auth and configuration, command selection, and shell-first operational tasks.
此技能可助力Loops终端工作流。适用于安装、身份验证与配置、命令选择以及以shell优先的运维任务。

When To Use

使用场景

Use this skill when the user needs to:
  • install, update, or troubleshoot the Loops CLI
  • authenticate with Loops from the terminal
  • manage stored team keys or switch between them
  • run one-off contact, list, event, or transactional-email commands
  • create draft campaigns and update email-message content from the shell
  • list or inspect themes and reusable components for LMX
  • inspect CLI output in text or JSON locally
This skill is for command-line usage, not application integrations or email-strategy review.
当用户需要完成以下操作时使用此技能:
  • 安装、更新或排查Loops CLI问题
  • 从终端进行Loops身份验证
  • 管理已存储的团队密钥或在多个密钥间切换
  • 运行一次性的联系人、列表、事件或事务性邮件命令
  • 从shell创建营销活动草稿并更新邮件消息内容
  • 列出或查看LMX的主题与可复用组件
  • 在本地以文本或JSON格式查看CLI输出
此技能仅用于命令行使用场景,不支持应用集成或邮件策略评审。

Working Style

工作方式

When this skill is active:
  1. Prefer
    loops agent-context
    for exact flags and the latest command shape.
  2. Prefer the CLI for shell workflows, one-off operational tasks, credential validation, and quick troubleshooting.
  3. Use
    --output json
    when the result needs to feed another tool or script.
  4. Use named stored keys plus
    --team
    when the user works across multiple Loops teams.
  5. Avoid printing secrets. Prefer keyring-backed auth or environment variables over hardcoded API keys.
  6. If the task becomes application-code integration or exact HTTP payload design, use the separate
    loops-api
    skill.
Official references:
  • CLI docs:
    https://loops.so/docs/cli
  • CLI repo:
    https://github.com/loops-so/cli
  • CLI README:
    https://github.com/loops-so/cli/blob/main/README.md
激活此技能时:
  1. 优先使用
    loops agent-context
    获取准确的参数和最新的命令格式。
  2. 优先使用CLI完成shell工作流、一次性运维任务、凭证验证和快速排查问题。
  3. 当结果需要供其他工具或脚本使用时,添加
    --output json
    参数。
  4. 当用户跨多个Loops团队工作时,使用已命名的存储密钥加上
    --team
    参数。
  5. 避免打印机密信息。优先使用密钥环支持的身份验证或环境变量,而非硬编码的API密钥。
  6. 如果任务涉及应用代码集成或精确的HTTP负载设计,请使用独立的
    loops-api
    技能。
官方参考资料:
  • CLI文档:
    https://loops.so/docs/cli
  • CLI仓库:
    https://github.com/loops-so/cli
  • CLI README:
    https://github.com/loops-so/cli/blob/main/README.md

Category Routing

分类路由

  • Installation, auth flows, config resolution, global flags, and common Loops CLI workflows: Read
    references/cli.md
  • Campaigns, email messages, themes, components, revision handling, and LMX file flags: Read
    references/cli.md
    . For LMX markup itself, also use the
    loops-lmx
    skill.
If the task becomes application-code integration or exact HTTP payload design beyond the CLI, use the
loops-api
skill.
  • 安装、身份验证流程、配置解析、全局参数以及常见Loops CLI工作流: 查阅
    references/cli.md
  • 营销活动、邮件消息、主题、组件、版本处理以及LMX文件参数: 查阅
    references/cli.md
    。若涉及LMX标记本身,还需使用
    loops-lmx
    技能。
如果任务超出CLI范畴,涉及应用代码集成或精确的HTTP负载设计,请使用
loops-api
技能。

Output Checklist

输出检查清单

Aim to leave the user with:
  • the right command or install path for the task
  • any auth or team-selection caveats that affect behavior
  • safe handling of credentials
  • the next validation step, such as
    loops --help
    ,
    loops auth status
    ,
    loops api-key
    , or
    loops agent-context
目标为用户提供:
  • 适用于当前任务的正确命令或安装路径
  • 任何会影响操作行为的身份验证或团队选择注意事项
  • 安全的凭据处理方式
  • 后续验证步骤,例如
    loops --help
    loops auth status
    loops api-key
    loops agent-context