Agent skill

Yida Logout

by openyida in openyida/openyida

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

MITAuto-check passed

Install Yida Logout

skills CLI
$ npx skills add openyida/openyida --skill yida-logout -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install openyida/openyida yida-logout --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/openyida/openyida.git skills-src && mkdir -p .claude/skills && cp -r skills-src/yida-skills/skills/yida-logout .claude/skills/yida-logout && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
yida-logout
GitHub stars
220
Token cost
~574 tokens
SKILL.md length
196 words
Files
1
Skills in repo
58
Repo updated
First seen
Licence
MIT

At a glance

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

  • SKILL.md covers 严格禁止 (NEVER DO), 严格要求 (MUST DO), 适用场景 and 触发条件, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Yida Logout is an agent skill from openyida/openyida. 退出宜搭登录或解绑当前项目登录态。默认只解绑当前项目 profile pointer;显式传 --profile 或 --all 才删除共享登录 profile。

Its SKILL.md is about 570 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Your own personal YiDA AI assistant! The licence is MIT.

Example prompts

  • “/yida-logout”

What it can do on your machine

Read from SKILL.md and the folder at commit 3dd4693. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Yida Logout loads about 574 tokens when it runs. Until then it costs about 23 tokens; SKILL.md has 196 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~23
When it runs · the whole SKILL.md, loaded when a task matches
~574

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from openyida/openyida at commit 3dd4693, republished under its MIT licence (© openyida). 196 words, ~574 tokens.

Download SKILL.mdSave it as .claude/skills/yida-logout/SKILL.md (or your agent's skills folder).
name
yida-logout
description
退出宜搭登录或解绑当前项目登录态。默认只解绑当前项目 profile pointer;显式传 --profile 或 --all 才删除共享登录 profile。

退出登录

严格禁止 (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
未知错误停止执行,完整展示错误信息,建议用户反馈问题

© openyida, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in yida-skills/skills/yida-logout of openyida/openyida.

Open the folder on GitHubat commit 3dd4693

Compare with similar skills

Yida Logout next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Yida Logout compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Yida Logout this skillopenyida/openyida220—~574Automated safety check: PassMIT
Profileccusage/ccusage19k—~430Automated safety check: PassCustom licence
No Pointerremotion-dev/remotion62k—~532Automated safety check: PassCustom licence
Cpu ProfileClickHouse/ClickHouse50k—~1.9kAutomated safety check: NotesApache-2.0
Codex Profilessickn33/agentic-awesome-skills47k1 repos~1.7kAutomated safety check: PassMIT
Collectors Snmp Profilesnetdata/netdata81k—~3.1kAutomated safety check: PassGPL-3.0

Similar skills

  • Profile

    ccusage/ccusage

    Profiles ccusage performance. An agent skill from ccusage/ccusage.

    19k GitHub stars~430 tokensUpdated yesterday
    Auto-check passed
  • No Pointer

    remotion-dev/remotion

    Official

    Apply Remotion Studio's pointerless interaction styling to clickable controls.

    62k GitHub stars~532 tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Cpu Profile

    ClickHouse/ClickHouse

    Profile a ClickHouse query using the sampling query profiler and system.tracelog.

    50k GitHub stars~1.9k tokensUpdated yesterday
    DatabasesAuto-check: notes
  • Codex Profiles

    sickn33/agentic-awesome-skills

    Use codex-profiles to run Codex CLI or Codex Desktop with isolated CODEXHOME profiles for separate accounts, projects, and local state.

    47k GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Author or review Netdata SNMP polling profiles, ddsnmp parsing, topology/licensing/BGP rows and profile-format documentation.

    81k GitHub stars~3.1k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Alloc Profile

    ClickHouse/ClickHouse

    Analyze a jemalloc (or other) allocation profile in collapsed stack format.

    50k GitHub stars~4.3k tokensUpdated yesterday
    DatabasesAuto-check passed

More from openyida/openyida

All 58 skills in this repo
  • Yida Canvas Custom Page

    openyida/openyida

    宜搭自定义页面开发规范,使用 YidaCodeCanvas 组件实现现代 React18 自定义页面。用于官网、看板、工作台、列表、详情、门户壳、可视化、hooks 交互、表单入口,以及需要门户组件、数据管理视图、成员、部门或上传组件的场景;发布层自动注入 yida/utils window 桥。

    220 GitHub stars~4.3k tokensUpdated 8 days ago
    Auto-check passed
  • Openyida Release

    openyida/openyida

    快速发布 OpenYida npm 正式版或测试版。用户说“发布正式版”“发布测试版”“发 beta”或要求按当天日期生成版本 tag 时使用;不用于宜搭应用或自定义页面发布。

    220 GitHub stars~520 tokensUpdated 8 days ago
    Auto-check passed
  • Yida Design Plan

    openyida/openyida

    Plan 模式的视觉设计分支。基于需求选择视觉方向,再结合业务页面规划维护 build-plan.json 的 visualStyle,供 CLI 派生 design.md。

    220 GitHub stars~756 tokensUpdated 8 days ago
    Auto-check passed
  • Prevent stale local OpenYida custom page source from overwriting live designer edits.

    220 GitHub stars~1.2k tokensUpdated 8 days ago
    Auto-check passed
  • Codemap

    openyida/openyida

    Generate, update, or drift-check agent-facing CodeMaps as progressive code terrain indexes for projects, features, capabilities, functions, modules, or bug chains.

    220 GitHub stars~1k tokensUpdated 8 days ago
    Auto-check passed
  • Sdd Riper One Light

    openyida/openyida

    面向 GPT-5.5 等强模型和熟练用户的轻量 AI Agent Harness / checkpoint-driven coding skill。默认用户已经把任务切到基本可执行的最小混沌单元;模型自行分解、探索与推进,人类通过最终目标、最小 spec、复述、checkpoint、证据验证与回写来低干扰控盘。

    220 GitHub stars~1.5k tokensUpdated 8 days ago
    Auto-check passed

Questions about Yida Logout

What does Yida Logout do?

退出宜搭登录或解绑当前项目登录态。默认只解绑当前项目 profile pointer;显式传 --profile 或 --all 才删除共享登录 profile。. Yida Logout is an agent skill from openyida/openyida.

How do I install Yida Logout in Claude Code?

Run `npx skills add openyida/openyida --skill yida-logout -a claude-code`. Or copy the skill folder (yida-skills/skills/yida-logout in openyida/openyida) into .claude/skills/yida-logout in your project. Claude Code loads it when a task matches its description.

How do I install Yida Logout in Codex?

Run `npx skills add openyida/openyida --skill yida-logout -a codex`. Or copy the skill folder (yida-skills/skills/yida-logout in openyida/openyida) into .agents/skills/yida-logout in your project. Codex loads it when a task matches its description.

Can I use Yida Logout in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openyida/openyida --skill yida-logout -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/yida-logout, .gemini/skills/yida-logout, .github/skills/yida-logout and .opencode/skills/yida-logout in your project.

What does Yida Logout need to run?

SKILL.md names no scripts, command-line tools or credentials: Yida Logout is instructions for the agent only.

Does Yida Logout access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Yida Logout safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Yida Logout use?

Yida Logout is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Yida Logout use?

About 574 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Yida Logout?

Skills that share tags, products or a category with Yida Logout: Profile (ccusage/ccusage, 19k stars), No Pointer (remotion-dev/remotion, 62k stars), Cpu Profile (ClickHouse/ClickHouse, 50k stars) and Codex Profiles (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Yida Logout?

openyida (a GitHub organization) maintains it in openyida/openyida, which has 220 GitHub stars. The repository holds 58 skills in this directory. The repository was last updated on September 30, 2026.

Source: openyida/openyida on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.