{
  "id": "skl_9e5cf7c42e5f",
  "slug": "skill-database-query",
  "asset_type": "skill",
  "name": "Notion Database Schema Inspection, Filtered Queries & Rollups",
  "tagline": "Query Notion databases deterministically by ID or title: resolve property schemas (`status`, `select`, `relation`, `date`), apply compound filters, and for",
  "description_md": "### Overview & Capability Scope\n**Notion Database Schema Inspection, Filtered Queries & Rollups** (`skill-database-query`) is a verified, portable `SKILL.md` playbook curated with **@mckaywrigley** for Grok Bot (`x.ai/bot/`), Claude Code (`~/.claude/skills/`), and Cursor (`.cursor/skills/`).\n\nQuery Notion databases deterministically by ID or title: resolve property schemas (`status`, `select`, `relation`, `date`), apply compound filters, and format structured tables.\n\n### Required Stack & Tooling\n- **Primary Stack:** Notion MCP, Database Queries, Structured Knowledge, Workspace Ops\n- **Category:** `chief-of-staff`\n- **Source & Reference:** [https://github.com/makenotion/notion-mcp-server](https://github.com/makenotion/notion-mcp-server)\n\n### Quickstart Installation\nInstall this `SKILL.md` playbook directly into your agent workspace:\n```bash\nnpx lightstate install skill-database-query\n```\nOr copy the complete `SKILL.md` specification below into `.cursor/skills/skill-database-query/SKILL.md` or `~/.claude/skills/skill-database-query/SKILL.md`.\n\n### Verification Commands\n```bash\nclaude mcp add --transport http notion https://mcp.notion.com/mcp\n```\n",
  "primary_category": "chief-of-staff",
  "categories_json": "[\"chief-of-staff\", \"skills\"]",
  "tags_json": "[\"notion-mcp\", \"database-queries\", \"structured-knowledge\", \"workspace-ops\", \"skill-md\", \"chief-of-staff\"]",
  "compatible_agents_json": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "integrations_json": "[\"Notion MCP\", \"Database Queries\", \"Structured Knowledge\"]",
  "includes_json": "[]",
  "safety_level": "Read-Only / Ask-First",
  "safety_summary": "Verified capability blueprint by @mckaywrigley.",
  "share_url": "",
  "deep_link_uri": "",
  "mcp_endpoint": "",
  "mcp_transport": "http",
  "install_command": "npx lightstate install skill-database-query",
  "skill_markdown": "---\nname: database-query\ndescription: Query Notion databases deterministically by ID or title: resolve property schemas (`status`, `select`, `relation`, `date`), apply compound filters, and format structured tables. Use when working with Notion MCP, Database Queries, Structured Knowledge, Workspace Ops.\ntriggers:\n  - database query\n  - notion mcp\n  - database queries\n---\n\n# Notion Database Schema Inspection, Filtered Queries & Rollups\n\n## 1. When to Use This Skill\nLoad `skill-database-query` whenever an engineering or operations task involves **Notion MCP, Database Queries, Structured Knowledge, Workspace Ops**. Specifically:\n- Query Notion databases deterministically by ID or title: resolve property schemas (`status`, `select`, `relation`, `date`), apply compound filters, and format structured tables.\n- Designing, reviewing, or debugging production configurations without guesswork or deprecated flags.\n- Running deterministic pre-flight and post-execution verification checks before reporting completion.\n\n## 2. Prerequisites & Required Environment\n- **Target Stack:** Notion MCP, Database Queries, Structured Knowledge, Workspace Ops\n- **Permissions:** Read-only inspection by default; ask for explicit confirmation before executing destructive mutations or production deployments.\n- **Reference Repository:** `https://github.com/makenotion/notion-mcp-server`\n\n## 3. Step-by-Step Execution Playbook\n1. **Context & Configuration Discovery:**\n   Inspect existing project manifests (`package.json`, `wrangler.jsonc`, schema files, or environment declarations) before proposing changes. Never overwrite existing bindings or credentials blindly.\n2. **Deterministic Implementation:**\n   Apply the canonical patterns for **Notion MCP**:\n   - Enforce strict schema/type validation at every external boundary.\n   - Include explicit error handling, structured logging, and idempotency keys on all mutating calls.\n   - Keep secrets in environment variables or secret stores—never hardcode tokens in source files.\n3. **Verification & Regression Gate:**\n   Run the verification commands below and inspect both exit codes and output payloads before marking the task complete.\n\n## 4. Reference Commands & CLI Workflow\n```bash\nclaude mcp add --transport http notion https://mcp.notion.com/mcp\n```\n\n## 5. Edge Cases & Anti-Hallucination Guardrails\n- **Zero Unverified Claims:** Never claim a deployment, migration, or API call succeeded without inspecting the command output or HTTP status code.\n- **Rollback Readiness:** Always record the previous state or migration version so changes can be reverted cleanly if downstream health checks fail.\n",
  "starter_prompt": "Load the Notion Database Schema Inspection, Filtered Queries & Rollups (skill-database-query) playbook. First inspect our current configuration and codebase for Notion MCP, Database Queries, Structured Knowledge, Workspace Ops. Then propose a concrete, step-by-step implementation plan following the skill-database-query guardrails, run the non-destructive verification commands (claude mcp add --transport http notion https://mcp.notion.com/mcp), and summarize any findings, risks, or required environment variables before making production changes.",
  "project_url": "https://github.com/makenotion/notion-mcp-server",
  "repo_url": "https://github.com/makenotion/notion-mcp-server",
  "creator_handle": "mckaywrigley",
  "creator_name": "Mckay Wrigley (@mckaywrigley)",
  "creator_avatar_url": null,
  "creator_url": "https://x.com/mckaywrigley",
  "creator_platform": "x",
  "creator_cal_url": null,
  "claimed_by_user_id": null,
  "scouted_by_handle": null,
  "source_url": "https://github.com/makenotion/notion-mcp-server",
  "source_tweet_id": null,
  "source_origin": "certified_builder",
  "source_posted_at": null,
  "x_likes": 272,
  "x_bookmarks": 631,
  "x_retweets": 157,
  "x_views": 3808,
  "human_upvotes": 272,
  "human_installs": 272,
  "bot_pulls": 631,
  "pulse_score": 93,
  "gravity_rank_score": 2267,
  "is_featured": 0,
  "is_verified": 1,
  "is_sponsored": 0,
  "sponsor_tier": "free",
  "sponsor_label": "",
  "sponsor_cta_url": "",
  "sponsor_expires_at": null,
  "commercial_intent_score": 0,
  "status": "active",
  "created_at": "2026-10-24T20:00:00Z",
  "updated_at": "2026-10-24T20:00:00Z",
  "verified_at": null,
  "primitive": "skill",
  "title": "Notion Database Schema Inspection, Filtered Queries & Rollups",
  "description": "Query Notion databases deterministically by ID or title: resolve property schemas (`status`, `select`, `relation`, `date`), apply compound filters, and for",
  "category": "chief-of-staff",
  "tags": "[\"notion-mcp\", \"database-queries\", \"structured-knowledge\", \"workspace-ops\", \"skill-md\", \"chief-of-staff\"]",
  "agent_compatibility": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "author_handle": "mckaywrigley",
  "author_name": "Mckay Wrigley (@mckaywrigley)",
  "author_avatar": null,
  "source_tweet_url": "https://github.com/makenotion/notion-mcp-server",
  "github_url": "https://github.com/makenotion/notion-mcp-server",
  "external_url": "https://github.com/makenotion/notion-mcp-server",
  "upvotes_count": 272,
  "installs_count": 272
}