Loading...
Loading...
This skill should be used when the user asks to access secured work data through "office", "email", "calendar", "microsoft graph", or "notion" using auth.freshhub.ai and the Freshwater secure auth proxy.
npx skill4agent add fwfutures/skills fresh-authoffice-clioffice-clioffice-clioffice-clinotion-queryhttps://auth.freshhub.aioffice-cli~/.config/office-cli/agent-sessionNOTION_API_KEYOPENROUTER_API_KEYAUTH_SERVICE_URLscripts/office-cli.tsjqcurlscripts/notion-query.sh# 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.ts"
export NOTION_CLI="${FRESH_AUTH_DIR}/scripts/notion-query.sh"
export AUTH_SERVICE_URL="https://auth.freshhub.ai"
# Quick command discovery
[ -f "$OFFICE_CLI" ] && bun "$OFFICE_CLI" status
[ -x "$NOTION_CLI" ] && "$NOTION_CLI" mescripts/office-cli.tsscripts/notion-query.sh# Register and create grants
bun "$OFFICE_CLI" login
bun "$OFFICE_CLI" request drive
bun "$OFFICE_CLI" request mail
bun "$OFFICE_CLI" request cal
# Verify active grants
bun "$OFFICE_CLI" statusbun "$OFFICE_CLI" drive list
bun "$OFFICE_CLI" drive list "/Documents"
bun "$OFFICE_CLI" drive search "Quarterly report"
bun "$OFFICE_CLI" drive download <file-id> out.docx
bun "$OFFICE_CLI" drive content <file-id>
bun "$OFFICE_CLI" drive convert <file-id> --output=notes.md
bun "$OFFICE_CLI" drive share <file-id> --type edit
bun "$OFFICE_CLI" drive share <file-id> --anyone
bun "$OFFICE_CLI" drive permissions <file-id>
bun "$OFFICE_CLI" drive unshare <file-id> <permission-id>bun "$OFFICE_CLI" mail inbox
bun "$OFFICE_CLI" mail inbox --count 50
bun "$OFFICE_CLI" mail unread
bun "$OFFICE_CLI" mail search "team update"
bun "$OFFICE_CLI" mail read <message-id>
bun "$OFFICE_CLI" mail send --to "teammate@example.com" --subject "Brief" --body "Thanks for the update"
bun "$OFFICE_CLI" mail send --to "brad" --subject "Quick check" --body "Approved" --yes
bun "$OFFICE_CLI" mail reply <message-id> --body "Got it."
bun "$OFFICE_CLI" mail reply-all <message-id> --body "Thanks everyone."bun "$OFFICE_CLI" cal today
bun "$OFFICE_CLI" cal tomorrow
bun "$OFFICE_CLI" cal events --days 14
bun "$OFFICE_CLI" cal events --fullbun "$OFFICE_CLI" people "brad"
bun "$OFFICE_CLI" people "brad" --verbose$NOTION_CLI me
$NOTION_CLI find-db "my database"
$NOTION_CLI search "my database"
$NOTION_CLI get-db <database-id>
$NOTION_CLI query-db <database-id>
$NOTION_CLI get-page <page-id>
$NOTION_CLI get-markdown <page-id>
$NOTION_CLI create <database-id> "Title" -p "Status=In progress" -p "Priority=High"
$NOTION_CLI update <page-id> -p "Status=Done"
$NOTION_CLI set-body <page-id> -
$NOTION_CLI append-body <page-id> -find-dbidtitleurlget-dbquery-dbcreate# Optional: enable shortcuts for a specific Notion backlog database
export NOTION_BACKLOG_DB_ID="<database-id>"
$NOTION_CLI backlog
$NOTION_CLI backlog "In Progress"
$NOTION_CLI create-backlog "New task"peoplemail send --to <resolved email>searchquery-dbappend-bodydrive convertappend-bodyno_agent_sessionbun "$OFFICE_CLI" loginno_grantbun "$OFFICE_CLI" request <drive|mail|cal>token expiredbun "$OFFICE_CLI" statusNOTION_API_KEYNOTION_BACKLOG_DB_IDquery-dbcreateNOTION_API_KEYhttps://auth.freshhub.aiscripts/