跳到正文
Skillpedia
社交媒体33k · #8710

curviate-quickstart

它能做什么

这个技能引导你的 AI 智能体首次设置用于 LinkedIn 的 Curviate 命令行工具。适合第一次连接 LinkedIn 的人。

适用场景

  • ✓当你第一次在新电脑上设置 Curviate 时。
  • ✓当 Curviate 命令缺失,或你尚未登录时。
  • ✓当某个 Curviate 命令因登录或账号错误而失败时。

技能链接

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/curviate/curviate-quickstart/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/curviate/curviate-quickstart/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我设置 Curviate,让我的智能体能使用我的 LinkedIn 账号。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会安装该工具,通过浏览器中的验证码登录,连接 LinkedIn 账号,并运行只读检查。密钥会保存在本地,不会被打印出来。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Curviate: the first run

Four steps, in this order: install, authenticate, connect an account, prove it. Every command here is a read. Nothing in this skill posts, messages, invites, follows or endorses anyone.

Established against CLI 0.33.0.

1. Install the CLI

npm install -g @curviate/cli
curviate --version    # needs Node 18 or newer

2. Authenticate this machine: curviate setup

setup opens the dashboard, takes the short code it shows you, and saves an API key into a local profile. The key is never printed and never passed on a command line.

The command has two shapes, and which one you get is decided by whether stdout is a terminal.

Agent shape: two legs, because a browser has to happen in between

When stdout is not a terminal, or when --json is passed, setup prints a JSON object and exits 0. It does not prompt and it does not open a browser:

curviate setup --json
# {"authorize_url":"…","next_step":"curviate setup --code -","instructions":"…"}

Open authorize_url in a browser signed in to the workspace, press Authorize, and read back the code it displays. Then hand that code to the second leg on stdin:

printf '%s' "$CODE" | curviate setup --code -
# {"ok":true,"tenant":"…","profile":"default","account_id":"…"}
  • --code - reads from stdin deliberately. Passing the code as a flag value works but warns: a value on the command line is visible to other processes through ps and is saved in shell history.
  • The two legs must run on the same machine, under the same configuration directory. Leg one writes a short-lived resume file beside the config file, readable only by you, holding the session id and the private key that opens the delivered credential. Leg two reads it and deletes it. Split the legs across machines, users, containers or config-directory overrides and the exchange cannot complete.
  • --code - with no setup in progress exits 2 and says so. Run leg one first.
  • The code is short, case-insensitive, and drops anything that is not one of its own characters, so a pasted code with stray spaces or punctuation is still accepted.

Human shape

With stdout on a terminal and no --json, setup prints the link, opens a browser, and prompts for the code (up to three attempts). --no-browser prints the link rather than opening it, which is what you want over SSH or anywhere a browser would open on the wrong machine.

One asymmetry to know before scripting it: stdout on a terminal with stdin piped is refused at exit 2, because there is nowhere to paste a code into. It names CURVIATE_API_KEY and curviate login --api-key - as the alternatives. A fully piped invocation is not that case: it is the agent shape above, and it exits 0.

What each failure means

Exit Cause What to do
0 Authenticated. The key is saved to the named profile. Continue to doctor.
2 Usage: no setup in progress, or a terminal was needed and there was none. Fix the invocation. Never retry unchanged.
3 The code was wrong, expired, or the attempts ran out; or the workspace has no API key to deliver; or the key saved but a verifying call did not succeed. Read the message: these are deliberately four different sentences, and only the first is fixed by starting over. Wrong or expired code: run setup again for a fresh one. No API key: create one in the dashboard first. Saved but unverified: run doctor.
6 Too many attempts against this endpoint. Wait, then try again.
7 The API could not be reached. Check the network, and the base URL if you overrode it.
1 The exchange failed in a way the CLI did not expect, or the delivered credential could not be opened by this process. Worth one retry. If it repeats it is a bug to report, not a state to work around.

A code is short-lived and allows only a handful of attempts. If in doubt, start a fresh setup rather than reusing anything.

3. Confirm: curviate doctor

curviate doctor --json

It reports the CLI version, the config path, the active profile, the base URL, where the credential resolved from, which workspace it authenticated as, whether the API is reachable, whether the credential is accepted, and every connected account with its status.

Three things that surprise people:

  • Run setup first, then doctor, not the other way round. Reachability is only tes
常见问题

这个技能会在 LinkedIn 上发布任何内容吗?

不会。设置步骤只读取数据,不会发帖、发消息或发出邀请。

该工具运行需要什么?

命令行工具需要 Node 18 或更高版本。

登录是如何进行的?

你打开一个链接,在浏览器中批准,然后你看到的代码会被传回,以完成登录。

详情

作者的原始描述

The first run: install the Curviate CLI, authenticate this machine with `curviate setup`, confirm with `curviate doctor`, connect a LinkedIn account, and prove the whole path works by reading the same profile live and then from the store. Use when Curviate is being set up for the first time, when `curviate` is not installed or not authenticated, when a command fails with a credential or account error, or when someone asks how to get started. Reads only: it issues no write of any kind.

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#8710
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能