mmk-notion-database-ai-summarylisted
Install: claude install-skill magic-meal-kits/mmk-skills
# Recipe: Bulk AI Summary for Notion Database
> **Prerequisite:** Read [`../mmk-shared/SKILL.md`](../mmk-shared/SKILL.md) for auth, global flags, and error handling.
> Uses: [`mmk-notion-database`](../mmk-notion-database/SKILL.md) — Schema, query, and AI summary commands.
A multi-step workflow that discovers AI configuration for a database, collects all page IDs, and triggers AI summary generation in batches.
**This recipe has side effects** (triggers AI summary writes on Notion pages). It requires manual invocation only.
## Workflow
### Step 1: Discover database properties
```bash
mmk notion database schema --database-id <db-uuid> -o json
```
Review the schema output to understand the database structure and confirm it has an AI summary property.
### Step 2: Detect AI configuration
```bash
mmk notion database schema --database-id <db-uuid> --detect-ai --page-id <page-uuid> -o json
```
Pick any existing page ID from the database. The output provides:
- `property-id` — the AI summary property identifier
- `workflow-id` — the AI workflow identifier
Both values are needed for the `ai-summary` command. Save them for Step 4.
### Step 3: Collect all page IDs
```bash
mmk notion database query --database-id <db-uuid> -o json
```
Collect all page IDs from the query results. If the database has more than 100 pages, use `--cursor` for pagination:
```bash
mmk notion database query --database-id <db-uuid> --cursor "<next-cursor>" -o json
```
Repeat until all pages are colle