Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

fresh-auth新鲜的授权

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

659

周安装

28

GitHub Stars

公开资料未说明

下载量

231
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fresh-auth(新鲜的授权)
来源仓库:https://github.com/fwfutures/skills
仓库路径:skills/fresh-auth
安装命令:
npx skills add https://github.com/fwfutures/skills --skill fresh-auth
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/fwfutures/skills --skill fresh-auth

简介

用于辅助安全审计、权限检查、凭据风险和认证流程分析,支持常见漏洞排查。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境,帮助梳理敏感配置和鉴权逻辑。
  • 使用时不能把工具输出直接当最终结论,涉及密钥、令牌或生产系统时应确认最小权限和操作边界。
  • 建议结合脱敏方式和实际业务场景使用,避免对真实用户数据造成影响。
  • fresh-auth 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Fresh Auth Workspace CLI

Use this skill as the single entry point for secure, identity-aware access to Microsoft 365 (Graph) and Notion.

Use this skill for

  • Drive operations, OneDrive file access, and share links through office-cli.
  • Outlook inbox, search, send, and reply actions through office-cli.
  • Calendar lookup and scheduling visibility through office-cli.
  • People lookups through office-cli.
  • Notion database search, query, page read/write, and markdown conversion through notion-query.
  • Any request that mixes Office and Notion data in one workflow.

Security model

  • Use the Auth Service Proxy at https://auth.freshhub.ai for Microsoft Graph and Notion actions.
  • Use agent-session grants and OAuth approvals, never raw provider tokens.
  • Keep ~/.config/fresh-auth/agent-session at secure mode (600).
  • Legacy ~/.config/office-cli/agent-session is still read for compatibility.
  • Store secrets in environment variables.
  • Use OPENROUTER_API_KEY for Office PDF/image conversion.
  • Use AUTH_SERVICE_URL only when overriding the default proxy endpoint.

Runtime prerequisites

  • Install Node.js (18+) for scripts/office-cli.js and scripts/notion-query.js.
  • Run commands from this skill folder or export explicit paths.
# Resolve skill location for common installers
export FRESH_AUTH_DIR="${HOME}/.agents/skills/fresh-auth"
[ -d "$FRESH_AUTH_DIR" ] || export FRESH_AUTH_DIR="${HOME}/.codex/skills/fresh-auth"

export OFFICE_CLI="${FRESH_AUTH_DIR}/scripts/office-cli.js"
export NOTION_CLI="${FRESH_AUTH_DIR}/scripts/notion-query.js"
export AUTH_SERVICE_URL="https://auth.freshhub.ai"

# Quick command discovery
[ -f "$OFFICE_CLI" ] && node "$OFFICE_CLI" status
[ -f "$NOTION_CLI" ] && node "$NOTION_CLI" status

Bundled scripts

  • scripts/office-cli.js for Microsoft Graph-backed Drive, Mail, Calendar, and People actions.
  • scripts/notion-query.js for Notion read/write workflows through auth service proxy.

Office + Graph: canonical flow

Follow this flow when granting access for Graph-backed tools.

# Register and create grants
node "$OFFICE_CLI" login
node "$OFFICE_CLI" request drive
node "$OFFICE_CLI" request mail
node "$OFFICE_CLI" request cal
node "$NOTION_CLI" request

# Verify active grants
node "$OFFICE_CLI" status
node "$NOTION_CLI" status

Agent-assisted verification handoff

When the agent runs login or request, the CLI may print a verification URL and code for human approval.

  1. Agent runs the auth command and captures the exact verification output.
  2. Agent sends the verification URL and code to the user (do not paraphrase).
  3. Prefer sharing the prefilled URL format: https://auth.freshhub.ai/agent/verify?code=<CODE>
  4. User opens the URL, confirms the code, clicks Verify Code, then manually clicks Approve on the next screen.
  5. Agent waits for approval polling to complete, then continues with the requested task.

If approval fails, repeat the flow and confirm the user is signed into the intended Fresh Auth account before entering the code.

Command map: Office CLI

Drive / Graph storage

node "$OFFICE_CLI" drive list
node "$OFFICE_CLI" drive list "/Documents"
node "$OFFICE_CLI" drive search "Quarterly report"
node "$OFFICE_CLI" drive download <file-id> out.docx
node "$OFFICE_CLI" drive content <file-id>
node "$OFFICE_CLI" drive convert <file-id> --output=notes.md
node "$OFFICE_CLI" drive share <file-id> --type edit
node "$OFFICE_CLI" drive share <file-id> --anyone
node "$OFFICE_CLI" drive permissions <file-id>
node "$OFFICE_CLI" drive unshare <file-id> <permission-id>

Mail / Email

node "$OFFICE_CLI" mail inbox
node "$OFFICE_CLI" mail inbox --count 50
node "$OFFICE_CLI" mail unread
node "$OFFICE_CLI" mail search "team update"
node "$OFFICE_CLI" mail read <message-id>
node "$OFFICE_CLI" mail send --to "teammate@example.com" --subject "Brief" --body "Thanks for the update"
node "$OFFICE_CLI" mail send --to "brad" --subject "Quick check" --body "Approved" --yes
node "$OFFICE_CLI" mail reply <message-id> --body "Got it."
node "$OFFICE_CLI" mail reply-all <message-id> --body "Thanks everyone."

Calendar

node "$OFFICE_CLI" cal today
node "$OFFICE_CLI" cal tomorrow
node "$OFFICE_CLI" cal events --days 14
node "$OFFICE_CLI" cal events --full

People lookup (Graph contact helper)

node "$OFFICE_CLI" people "brad"
node "$OFFICE_CLI" people "brad" --verbose

Notion command map

node "$NOTION_CLI" login
node "$NOTION_CLI" request
node "$NOTION_CLI" status
node "$NOTION_CLI" me
node "$NOTION_CLI" find-db "my database"
node "$NOTION_CLI" search "my database"
node "$NOTION_CLI" get-db <database-id>
node "$NOTION_CLI" query-db <database-id>
node "$NOTION_CLI" get-page <page-id>
node "$NOTION_CLI" get-markdown <page-id>
node "$NOTION_CLI" create <database-id> "Title" -p "Status=In progress" -p "Priority=High"
node "$NOTION_CLI" update <page-id> -p "Status=Done"
node "$NOTION_CLI" set-body <page-id> -
node "$NOTION_CLI" append-body <page-id> -

Use find-db first when the database ID is unknown. It returns database id, title, and url so the ID can be copied directly into get-db, query-db, or create.

Notion backlog helper

# Optional: enable shortcuts for a specific Notion backlog database
export NOTION_BACKLOG_DB_ID="<database-id>"

node "$NOTION_CLI" backlog
node "$NOTION_CLI" backlog "In Progress"
node "$NOTION_CLI" create-backlog "New task"

Multi-tool patterns

  • Run people first, then mail send --to <resolved email> for safer identity resolution.
  • Pull a Notion task with search or query-db, then append context with append-body.
  • Convert a meeting PDF in Drive to markdown with drive convert, then store notes in Notion via append-body.

Error handling

  • no_agent_session: run node "$OFFICE_CLI" login.
  • no_grant: run node "$OFFICE_CLI" request <drive|mail|cal>.
  • token expired: run node "$OFFICE_CLI" status and follow the returned re-authorisation URL.
  • no agent session (Notion): run node "$NOTION_CLI" login.
  • no grant (Notion): run node "$NOTION_CLI" request.
  • NOTION_BACKLOG_DB_ID missing: set variable or call generic query-db/create commands instead of backlog shortcuts.
  • Microsoft account not linked: follow the URL output by Graph proxy responses.
  • Notion account not linked: follow the Notion connect URL output by the CLI.

Public publication checks

  • Keep proxy URL configurable by AUTH_SERVICE_URL.
  • Do not embed API keys or session IDs in skill outputs.
  • Keep all commands pointed at https://auth.freshhub.ai by default.
  • Include both CLIs under this skill's scripts/ folder for self-contained installation.
  • Mention both Microsoft 365 and Notion capabilities in onboarding docs because this is a unified user-facing access path.

适合场景

01

调用多模型

02

代码和文本生成

03

Agent 推理流程

04

OpenRouter 模型接入

能力概览

能力 1

统一调用多种 LLM

能力 2

支持 Claude、Gemini、Kimi 等模型

能力 3

适合聊天、代码和推理任务

能力 4

可作为 Agent 模型调用入口

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.92%
按下载量换算76

Claude

30.25%
按下载量换算70

Cursor

17.94%
按下载量换算41

Gemini CLI

9.82%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills