ask-notion 0.1.2
Agent Skills SKILL.md definition fileAgent skill markdown file name
SHA-2567077d4c73113c6396acc4863249fb32406a13ce834cd701278926a8125eadcd3
MaleculeO₂(AsEr)
Evidence
1# frozen_string_literal: true
2
3require "notion-ruby-client"
4require "ask/auth"
5
6module Ask
7 module Notion
8 # Default number of retries for transient failures.
9 DEFAULT_RETRIES = 3
10
11 # Returns an authenticated Notion API client configured for an AI agent.
12 #
13 # Resolves the Notion token via +Ask::Auth.resolve(:notion_token)+ and
14 # wraps the client in a proxy that converts authentication, timeout, and
15 # network errors into ask-rb equivalents.
16 #
17 # …
45:17… _missing(name, ...)
46 retries = 0
47 begin
48 @client.public_send(name, ...)
49 rescue ::Notion::Api::Errors::Unauthorized
50 ::Kernel.raise ::Ask::Auth::InvalidCredential, …
30:44… y is malformed. Check JSON structure and field types.",
31 401 => "Unauthorized — Integration token is missing, invalid, or revoked. Re-authenticate at https://www.notion.so/my-integrations.",
32 403 => "Forbidden — Integration lacks access to the requested resource. Share the page or database with the integration in Notion.",
33 40 …
1---
2name: notion.use_notion
3description: How to navigate the Notion API with notion-ruby-client — discover endpoints, handle auth, pagination, and errors
4---
5
6Use this skill when you need to interact with Notion — reading/writing pages and
7databases, managing b …
81:24… x: true },
82 "Email": { email: "user@example.com" },
83 "URL": { url: "https://example.com" },
84 "Relation": { relation: [{ id: "RELATED_PAGE_ID" }] }
85}
86```
87
88The `notion-ruby-client` gem does minimal conversion — you …
No evidence locations were recorded for this file. Raw result