promptfolio-logout
Sign out this CLI device from promptfolio by clearing local credentials, with optional remote API token revocation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Sign out this CLI device from promptfolio by clearing local credentials, with optional remote API token revocation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyze AI conversation history across Claude Code, Cursor, Codex, ChatGPT, Gemini CLI, Trae, OpenCode, Antigravity, Windsurf, OpenClaw and other coding agents to find framework sentences — moments where the user teaches the AI how to think — and build a portrait that reveals who this person is.
Search the promptfolio platform for people with specific skills or expertise. Find collaborators, mentors, or experts based on their AI-verified skill profiles.
Search the promptfolio platform for reusable AI interaction techniques and skills. Find proven prompting patterns, problem-solving tricks, and workflow techniques shared by other users.
| name | promptfolio-logout |
| description | Sign out this CLI device from promptfolio by clearing local credentials, with optional remote API token revocation. |
| allowed-tools | Bash, Read |
You are helping the user log out of promptfolio from their current CLI device.
~/.promptfolio/config.json).--revoke: also revoke the current API token on the server before local cleanup.Before anything else, run the auto-updater to ensure you have the latest skill files and data formats:
bash ~/.promptfolio/update-check.sh
UPDATED v... → tell the user: "Skills updated to v{version}." Then re-read this SKILL.md file since it may have changed, and continue from Step 1.UP_TO_DATE v... → continue silently.OFFLINE v... → tell the user: "Could not check for updates (offline). Running with local v{version}." Continue normally.Then continue with Step 1 normally.
Check if local config exists:
if [ -f ~/.promptfolio/config.json ]; then
cat ~/.promptfolio/config.json
else
echo "NO_CONFIG"
fi
If config is missing, reply: "Already logged out on this device."
--revoke)If the user includes --revoke, revoke the current API token:
API_TOKEN=$(cat ~/.promptfolio/config.json | grep api_token | cut -d'"' -f4)
API_URL=$(cat ~/.promptfolio/config.json | grep api_url | cut -d'"' -f4)
curl -s -X POST "$API_URL/api/auth/logout" \
-H "Authorization: Bearer $API_TOKEN"
If revoke fails, continue local logout and tell the user: "Local logout completed, but remote token revoke failed. You can retry with /promptfolio-logout --revoke."
Delete local credentials:
rm -f ~/.promptfolio/config.json
Return a concise status:
--revoke: "Logged out on this device. Other devices stay signed in."--revoke success: "Logged out on this device and revoked this device token."--revoke failure: "Logged out on this device, but remote revoke failed."