task icon Task

Build Notion Profile

Build your personal Notion profile - documents you write to, topics, collaboration patterns, writing style

1

Tell the user you're connecting to Notion to build their personal profile based on the last 90 days of activity. Explain you'll analyze all documents they write to, identify topics and collaboration patterns, and capture their writing style.

3

Use your task tool to run these tasks in parallel as subagents. Do not do this in code:

4

If the analysis shows zero substantial documents (the script output will say 'Above threshold (≥500 chars): 0'), inform the user: 'Your Notion pages were found but most content was too brief for detailed style analysis. Your profile is based on metadata (page titles, databases, collaborators) only. This is normal for workspaces with many short notes or database entries.' Then continue with presenting whatever profile information is available.

5

Present the completed profiles to the user. From the Notion profile, highlight key insights: how many documents they write to, their most active databases, who they collaborate with, topics they write about. From the writing style analysis, mention the style patterns observed (or note if insufficient content). If any persistent interests or work domain were extracted to your user profile, mention those briefly. Ask if the profiles accurately reflect how they use Notion.

                    You MUST use a todo list to complete these steps in order. Never move on to one step if you haven't completed the previous step. If you have multiple CONSECUTIVE read steps in a row, read them all at once (in parallel). Otherwise, do not read a file until you reach that step.

Add all steps to your todo list now and begin executing.

## Steps

1. Tell the user you're connecting to Notion to build their personal profile based on the last 90 days of activity. Explain you'll analyze all documents they write to, identify topics and collaboration patterns, and capture their writing style.

2. [Gather Arguments: Analyze Notion Workspace] The next step has the following requirements for arguments, do not proceed until you have all the required information:
- `analysisOutputPath` (default: "session/notion-profile-analysis.json"): session/notion-profile-analysis.json
- `writingSamplesOutputPath` (default: "session/writing-samples.json"): session/writing-samples.json

3. [Run Code: Analyze Notion Workspace]: Call `run_script` with:

```json
{
  "file": {
    "path": https://sk.ills.app/code/notion.workspace.analyze/preview,
    "args": [
      "analysisOutputPath",
      "writingSamplesOutputPath"
    ]
  },
  "packages": null
}
```

4. Use your task tool to run these tasks in parallel as subagents. Do not do this in code:
- `skills/sauna/[skill_id]/references/recipes/notion.workspace.analyze.md` to create the Notion usage profile
- `skills/sauna/[skill_id]/references/recipes/context.style.analyze.md` to analyze writing style
- `skills/sauna/[skill_id]/references/recipes/context.profile.extract.md` to extract persistent user insights
Wait for all three to complete.


5. If the analysis shows zero substantial documents (the script output will say 'Above threshold (≥500 chars): 0'), inform the user: 'Your Notion pages were found but most content was too brief for detailed style analysis. Your profile is based on metadata (page titles, databases, collaborators) only. This is normal for workspaces with many short notes or database entries.' Then continue with presenting whatever profile information is available.

6. Present the completed profiles to the user. From the Notion profile, highlight key insights: how many documents they write to, their most active databases, who they collaborate with, topics they write about. From the writing style analysis, mention the style patterns observed (or note if insufficient content). If any persistent interests or work domain were extracted to your user profile, mention those briefly. Ask if the profiles accurately reflect how they use Notion.