Yida Logout logo

Yida Logout

Organization
openyida
yida-logout

退出宜搭登录或解绑当前项目登录态。默认只解绑当前项目 profile pointer;显式传 --profile 或 --all 才删除共享登录 profile。

Overview

Publisheropenyida
Repositoryopenyida
Skill nameyida-logout
Stars
228
Forks
50
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by openyida on GitHub. Read the source before you install it.

Installation

Install the Yida Logout AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/openyida/openyida/tree/main/yida-skills/skills/yida-logout
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/openyida/openyida.git /tmp/openyida
mkdir -p .claude/skills
cp -r /tmp/openyida/yida-skills/skills/yida-logout .claude/skills/yida-logout
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Yida Logout in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Yida Logout on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Yida Logout is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

退出登录

严格禁止 (NEVER DO)

  • 不要把默认 openyida logout 当成删除共享登录态;它只解绑当前项目 profile pointer,并清当前项目 legacy token
  • 不要在目标 profile 已存在时要求用户重新 OAuth 登录;应先执行 openyida auth profile switch <auth_profile>
  • 不要手动删除或编辑 .cache/auth-token-<env>.json、.cache/openyida/auth-profile-<env>.json 或用户 auth profile 文件
  • 运行环境注入 token 模式下,不要尝试写入或删除本地 user profile

严格要求 (MUST DO)

  • 默认退出后如需继续使用,先执行 openyida auth status / openyida auth profiles,优先切换已有 profile
  • 只有目标 profile 不存在时,才执行 openyida login 新增登录态
  • 删除共享 profile 必须显式使用 openyida auth logout --profile <auth_profile> 或 openyida auth logout --all
  • 本技能不读写 memory:退出操作仅清空当前环境的 token session,不依赖跨会话的 memory 状态

适用场景

用户意图触发条件
解绑当前项目"退出登录"、当前项目绑定了错误 profile
切换账号"切换账号"、"换个账号登录",且已有目标 profile 可切换
切换组织"切换组织"、当前 token 绑定了错误组织,且已有目标 profile 可切换
重置登录态refresh token 缺失、过期或服务端拒绝刷新
删除共享 profile用户明确要求删除某个 profile 或清空全部本地共享登录态

触发条件

正向触发:

  • "切换账号"、"换个账号登录"、"退出登录"
  • "切换组织"、"换个组织"
  • refresh token 失效且无法自动刷新,需要重置登录态

不适用场景(不要触发):

  • 仅需刷新 access token(优先 openyida auth refresh)
  • 登录态正常但命令失败(先排查其他原因)

命令

bash
openyida logout
openyida auth profiles
openyida auth profile switch <auth_profile>
openyida auth logout --profile <auth_profile>
openyida auth logout --all

openyida logout / openyida auth logout 默认只解绑当前项目的 profile pointer,并清当前项目 legacy token;不会删除用户级共享 profile。

适用场景:解绑当前项目、切换到已有 profile、显式删除共享 profile、refresh token 失效无法自动刷新。

异常处理

异常场景处理方式
logout 后仍需继续操作执行 openyida auth profiles,优先 openyida auth profile switch <auth_profile>
目标 profile 不存在执行 openyida login 新增登录态,再切到新增 profile
手动删除了 auth-token 文件执行 openyida auth status 检查状态,不要继续手动删 profile
logout 后立即执行需要登录的命令先确认 openyida auth status 返回可用登录态

Agent 错误处理策略

当 Agent 执行本技能遇到错误时,必须遵循以下默认行为:

错误类型默认处理策略
命令执行失败停止执行,向用户展示错误信息,询问是否重试
auth-token 文件不存在无需处理;默认 logout 仍会尝试解绑 project pointer
文件权限不足提示用户检查 .cache/ 目录权限
logout 后需要继续操作提示用户先 openyida auth profiles 并切换已有 profile;目标不存在时再 openyida login
未知错误停止执行,完整展示错误信息,建议用户反馈问题

Frequently asked questions

What does the Yida Logout AI skill do?

退出宜搭登录或解绑当前项目登录态。默认只解绑当前项目 profile pointer;显式传 --profile 或 --all 才删除共享登录 profile。

Why use Yida Logout on TypingMind?

Because you install it once and use it with any model. Yida Logout is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Yida Logout in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/openyida/openyida/tree/main/yida-skills/skills/yida-logout. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Yida Logout?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Yida Logout?

As many as you like. As long as a model supports skills, you can use Yida Logout with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Yida Logout AI skill free?

Yes. It is published on GitHub by openyida under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇