Skip to content
Back to skills

Auth Permission

ASecurity

业务Skill执行前的权限检查服务,这是系统安全基础步骤。如果业务Skill中添加了前置条件指向这里,必须在执行其他业务 Skill 前先调用本Skill,做认证和鉴权操作。同时,auth-permission也支持重置登录态操作(清除当前Agent身份)。

  • 279 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolsshellbash

Works with

  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add infometa/workbuddyskills --skill auth-permission --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Auth Permission?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Auth Permission
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/infometa-auth-permission/badge)](https://www.skillsdirectory.com/skills/infometa-auth-permission)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: auth-permission
description: "业务Skill执行前的权限检查服务,这是系统安全基础步骤。如果业务Skill中添加了前置条件指向这里,必须在执行其他业务 Skill 前先调用本Skill,做认证和鉴权操作。同时,auth-permission也支持重置登录态操作(清除当前Agent身份)。"
---

# auth-permission,认证+权限检测

> ⚠️ **执行前必须先识别用户当前操作系统**,并按下表加载对应文件作为本 Skill 的真正执行说明。**只读其一,不要把两个文件都跑一遍。**

| 操作系统 | 应加载的文件 | 说明 |
| --- | --- | --- |
| macOS / Linux(bash / zsh) | [`SKILL_unix.md`](./SKILL_unix.md) | 使用 POSIX 前缀内联环境变量、`curl` + `chmod` 安装 authcli |
| Windows(PowerShell) | [`SKILL_windows.md`](./SKILL_windows.md) | 使用 `$env:KEY=...` 设置环境变量、`Invoke-WebRequest` 安装 authcli.exe |

## 路由判定步骤
1. 通过 shell 探测当前操作系统(任选其一):
   - 已知是 PowerShell(`$PSVersionTable` 可用、提示符以 `PS` 开头、命令分隔符为 `;`)→ **Windows**
   - 已知是 bash / zsh(`uname -s` 可用)→ **macOS / Linux**
2. 按上表打开对应的 `SKILL_*.md`,**严格遵循其中的安装、鉴权、重置、安全规范**执行。
3. 两个文件的字段、参数、动态参数(ResourceID / CredentialId)、安全机制完全一致,差别**仅在于 shell 语法与安装脚本**。

Files in this skill

  • SKILL.md1.5 KB
  • SKILL_unix.md7.4 KB
  • SKILL_windows.md7.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…