@mohammadhprp/system-prompt 0.12.1 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/framework/agents/README.md +0 -1
- package/framework/commands/README.md +1 -1
- package/framework/commands/mr.md +8 -9
- package/framework/commands/review.md +1 -1
- package/framework/mcps/README.md +0 -4
- package/framework/plugins/ponytail/README.md +0 -1
- package/framework/plugins/ponytail/capabilities.md +1 -1
- package/framework/references/standards/api.md +0 -1
- package/framework/references/standards/architecture.md +0 -1
- package/framework/references/standards/database.md +0 -1
- package/framework/references/standards/debugging.md +0 -1
- package/framework/references/standards/documentation.md +0 -1
- package/framework/references/standards/logging.md +0 -1
- package/framework/references/standards/naming.md +0 -1
- package/framework/references/standards/observability.md +0 -1
- package/framework/references/standards/performance.md +0 -1
- package/framework/references/standards/pull-requests.md +0 -1
- package/framework/references/standards/security.md +0 -1
- package/framework/references/standards/testing.md +0 -1
- package/framework/skills/README.md +4 -14
- package/framework/skills/glab/SKILL.md +222 -0
- package/framework/skills/glab/references/commands-detailed.md +616 -0
- package/framework/skills/glab/references/quick-reference.md +145 -0
- package/framework/skills/glab/references/troubleshooting.md +669 -0
- package/framework/skills/improve/SKILL.md +135 -0
- package/framework/skills/improve/examples.md +19 -0
- package/framework/skills/improve/references/audit-playbook.md +130 -0
- package/framework/skills/improve/references/closing-the-loop.md +96 -0
- package/framework/skills/improve/references/plan-template.md +197 -0
- package/framework/skills/jira-cli/SKILL.md +260 -0
- package/framework/skills/jira-cli/references/commands-detailed.md +268 -0
- package/framework/skills/jira-cli/references/quick-reference.md +111 -0
- package/framework/skills/jira-cli/references/troubleshooting.md +114 -0
- package/framework/skills/laravel-best-practices/SKILL.md +56 -216
- package/framework/skills/laravel-best-practices/references/architecture.md +1 -1
- package/framework/skills/laravel-best-practices/references/checklist.md +139 -0
- package/framework/skills/laravel-best-practices/references/eloquent.md +4 -2
- package/framework/skills/laravel-best-practices/references/infer-conventions.md +97 -0
- package/framework/skills/laravel-best-practices/references/pest-testing.md +47 -18
- package/framework/skills/laravel-best-practices/references/security.md +1 -1
- package/framework/skills/laravel-best-practices/references/style.md +1 -1
- package/framework/skills/laravel-best-practices/references/tailwindcss.md +0 -1
- package/framework/styles/README.md +9 -4
- package/framework/styles/factory/DESIGN.md +360 -0
- package/framework/styles/factory/README.md +32 -0
- package/framework/styles/factory/assets/preview.jpg +0 -0
- package/framework/styles/huly/DESIGN.md +449 -0
- package/framework/styles/huly/README.md +32 -0
- package/framework/styles/huly/assets/preview.jpg +0 -0
- package/framework/styles/notion/DESIGN.md +423 -0
- package/framework/styles/notion/README.md +32 -0
- package/framework/styles/notion/assets/preview.jpg +0 -0
- package/package.json +1 -1
- package/src/catalog.js +7 -19
- package/framework/agents/backend-architect.md +0 -146
- package/framework/mcps/github-mcp/README.md +0 -51
- package/framework/mcps/github-mcp/capabilities.md +0 -83
- package/framework/mcps/github-mcp/configs/.env.example +0 -1
- package/framework/mcps/github-mcp/configs/opencode.json +0 -13
- package/framework/mcps/github-mcp/install.md +0 -60
- package/framework/mcps/github-mcp/troubleshooting.md +0 -79
- package/framework/mcps/gitlab-mcp/README.md +0 -53
- package/framework/mcps/gitlab-mcp/capabilities.md +0 -216
- package/framework/mcps/gitlab-mcp/configs/.env.example +0 -2
- package/framework/mcps/gitlab-mcp/configs/opencode.json +0 -13
- package/framework/mcps/gitlab-mcp/install.md +0 -99
- package/framework/mcps/gitlab-mcp/troubleshooting.md +0 -116
- package/framework/mcps/jira-mcp/README.md +0 -52
- package/framework/mcps/jira-mcp/capabilities.md +0 -79
- package/framework/mcps/jira-mcp/configs/.env.example +0 -2
- package/framework/mcps/jira-mcp/configs/opencode.json +0 -13
- package/framework/mcps/jira-mcp/install.md +0 -94
- package/framework/mcps/jira-mcp/troubleshooting.md +0 -113
- package/framework/mcps/notion-mcp/README.md +0 -57
- package/framework/mcps/notion-mcp/capabilities.md +0 -118
- package/framework/mcps/notion-mcp/configs/opencode.json +0 -9
- package/framework/mcps/notion-mcp/install.md +0 -70
- package/framework/mcps/notion-mcp/troubleshooting.md +0 -95
- package/framework/skills/brainstorming/SKILL.md +0 -159
- package/framework/skills/brainstorming/examples.md +0 -49
- package/framework/skills/brainstorming/scripts/frame-template.html +0 -213
- package/framework/skills/brainstorming/scripts/helper.js +0 -167
- package/framework/skills/brainstorming/scripts/server.cjs +0 -723
- package/framework/skills/brainstorming/scripts/start-server.sh +0 -209
- package/framework/skills/brainstorming/scripts/stop-server.sh +0 -120
- package/framework/skills/brainstorming/visual-companion.md +0 -291
- package/framework/skills/code-review/SKILL.md +0 -72
- package/framework/skills/code-review/examples.md +0 -31
- package/framework/skills/codenavi/SKILL.md +0 -306
- package/framework/skills/codenavi/examples.md +0 -33
- package/framework/skills/codenavi/references/coding-principles.md +0 -143
- package/framework/skills/codenavi/references/notebook-spec.md +0 -171
- package/framework/skills/create-adr/SKILL.md +0 -429
- package/framework/skills/create-adr/examples.md +0 -35
- package/framework/skills/design/SKILL.md +0 -399
- package/framework/skills/design/examples.md +0 -34
- package/framework/skills/gitlab-mcp/SKILL.md +0 -83
- package/framework/skills/gitlab-mcp/examples.md +0 -31
- package/framework/skills/gitlab-mcp/references/code-review.md +0 -110
- package/framework/skills/gitlab-mcp/references/issues.md +0 -141
- package/framework/skills/gitlab-mcp/references/merge-requests.md +0 -120
- package/framework/skills/gitlab-mcp/references/pipelines.md +0 -67
- package/framework/skills/gitlab-mcp/references/search.md +0 -17
- package/framework/skills/gitlab-mcp/references/webhooks.md +0 -32
- package/framework/skills/gitlab-mcp/references/work-items.md +0 -50
- package/framework/skills/great-interface/SKILL.md +0 -43
- package/framework/skills/great-interface/references/animations.md +0 -205
- package/framework/skills/great-interface/references/better-accessibility.md +0 -106
- package/framework/skills/great-interface/references/better-colors.md +0 -100
- package/framework/skills/great-interface/references/better-interface.md +0 -132
- package/framework/skills/great-interface/references/better-layout.md +0 -76
- package/framework/skills/great-interface/references/better-typography.md +0 -157
- package/framework/skills/great-interface/references/better-ui.md +0 -107
- package/framework/skills/great-interface/references/better-writing.md +0 -109
- package/framework/skills/great-interface/references/choosing-fonts.md +0 -64
- package/framework/skills/great-interface/references/color-formats.md +0 -90
- package/framework/skills/great-interface/references/color-usage.md +0 -118
- package/framework/skills/great-interface/references/contrast.md +0 -79
- package/framework/skills/great-interface/references/css-cheat-sheet.md +0 -65
- package/framework/skills/great-interface/references/details-and-accessibility.md +0 -119
- package/framework/skills/great-interface/references/enter-exit.md +0 -147
- package/framework/skills/great-interface/references/explain-interface.md +0 -126
- package/framework/skills/great-interface/references/find-the-effect.md +0 -94
- package/framework/skills/great-interface/references/focus-and-keyboard.md +0 -131
- package/framework/skills/great-interface/references/forms.md +0 -84
- package/framework/skills/great-interface/references/from-an-image.md +0 -55
- package/framework/skills/great-interface/references/grouping-and-alignment.md +0 -123
- package/framework/skills/great-interface/references/hit-areas.md +0 -94
- package/framework/skills/great-interface/references/icon-transitions.md +0 -102
- package/framework/skills/great-interface/references/icons.md +0 -110
- package/framework/skills/great-interface/references/interface-review.md +0 -148
- package/framework/skills/great-interface/references/motion-and-zoom.md +0 -79
- package/framework/skills/great-interface/references/no-browser.md +0 -73
- package/framework/skills/great-interface/references/palette-generation.md +0 -104
- package/framework/skills/great-interface/references/palette-structure.md +0 -76
- package/framework/skills/great-interface/references/performance.md +0 -88
- package/framework/skills/great-interface/references/picker.md +0 -76
- package/framework/skills/great-interface/references/read-the-system.md +0 -178
- package/framework/skills/great-interface/references/removed-signals.md +0 -38
- package/framework/skills/great-interface/references/review-format.md +0 -46
- package/framework/skills/great-interface/references/scope-resolution.md +0 -88
- package/framework/skills/great-interface/references/screen-readers.md +0 -101
- package/framework/skills/great-interface/references/semantics-and-aria.md +0 -84
- package/framework/skills/great-interface/references/spacing-and-adaptivity.md +0 -159
- package/framework/skills/great-interface/references/spacing-and-sizing.md +0 -121
- package/framework/skills/great-interface/references/surfaces.md +0 -219
- package/framework/skills/great-interface/references/token-naming.md +0 -97
- package/framework/skills/great-interface/references/variable-fonts-and-opentype.md +0 -105
- package/framework/skills/great-interface/references/variant.md +0 -104
- package/framework/skills/great-interface/references/wrapping-and-punctuation.md +0 -55
- package/framework/skills/jira-mcp/SKILL.md +0 -57
- package/framework/skills/jira-mcp/examples.md +0 -31
- package/framework/skills/jira-mcp/references/comments.md +0 -27
- package/framework/skills/jira-mcp/references/issues.md +0 -97
- package/framework/skills/jira-mcp/references/projects.md +0 -39
- package/framework/skills/learning-opportunities/SKILL.md +0 -140
- package/framework/skills/learning-opportunities/examples.md +0 -34
- package/framework/skills/learning-opportunities/references/PRINCIPLES.md +0 -42
- package/framework/skills/notion-mcp/SKILL.md +0 -57
- package/framework/skills/notion-mcp/examples.md +0 -31
- package/framework/skills/notion-mcp/references/comments.md +0 -112
- package/framework/skills/notion-mcp/references/databases.md +0 -193
- package/framework/skills/notion-mcp/references/pages.md +0 -235
- package/framework/skills/spec-driven-eval/SKILL.md +0 -341
- package/framework/skills/spec-driven-eval/examples.md +0 -35
- package/framework/skills/spec-driven-eval/references/quickstart.md +0 -118
- package/framework/skills/spec-driven-eval/references/reference.md +0 -295
- package/framework/skills/technical-design-doc-creator/README.md +0 -411
- package/framework/skills/technical-design-doc-creator/SKILL.md +0 -1484
- package/framework/skills/technical-design-doc-creator/examples.md +0 -35
- package/framework/skills/web-design-guidelines/SKILL.md +0 -65
- package/framework/skills/web-design-guidelines/examples.md +0 -32
- package/framework/skills/web-design-guidelines/references/guideline.md +0 -174
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# Learning Opportunities Examples
|
|
2
|
-
|
|
3
|
-
## Offer an exercise after creating a module
|
|
4
|
-
|
|
5
|
-
User just created auth middleware: "Done, that's the middleware working."
|
|
6
|
-
|
|
7
|
-
Good agent behavior:
|
|
8
|
-
|
|
9
|
-
- Offer one short, optional exercise: "Would you like a quick learning exercise on middleware patterns? About 10-15 minutes."
|
|
10
|
-
- If the user agrees, use a predict-then-observe exercise: ask what happens when a request hits the middleware with an expired token.
|
|
11
|
-
- Stop generating immediately after the question and wait for the user's answer.
|
|
12
|
-
- If the prediction is wrong, be direct about what's incorrect, then explore the gap.
|
|
13
|
-
|
|
14
|
-
## Teach it back after a refactor
|
|
15
|
-
|
|
16
|
-
User: "We just replaced the cache layer. I want to make sure I actually understand it."
|
|
17
|
-
|
|
18
|
-
Good agent behavior:
|
|
19
|
-
|
|
20
|
-
- Ask the user to explain the caching layer as if to a new developer joining the project.
|
|
21
|
-
- Stop after posing the question and wait for the response.
|
|
22
|
-
- Confirm the specific parts they nailed, then name one concrete gap to refine.
|
|
23
|
-
- Keep the exercise exploratory rather than test-like.
|
|
24
|
-
|
|
25
|
-
## Decline when the user is in a hurry
|
|
26
|
-
|
|
27
|
-
User: "Just ship it, this needs to go out now."
|
|
28
|
-
|
|
29
|
-
Good agent behavior:
|
|
30
|
-
|
|
31
|
-
- Recognize urgency and skip the exercise offer entirely.
|
|
32
|
-
- Avoid repeating the offer when the user has already declined once this session.
|
|
33
|
-
- Cap the session at two completed exercises and stop offering.
|
|
34
|
-
- Keep any offer to a single sentence without insisting.
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# Learning Principles
|
|
2
|
-
|
|
3
|
-
Consult this file when adapting techniques or making judgment calls about learning approaches. These principles explain WHY the techniques in the main skill work.
|
|
4
|
-
|
|
5
|
-
## Generation Effect
|
|
6
|
-
|
|
7
|
-
Users encode information better when they produce it rather than passively consume it. Active retrieval strengthens memory traces in ways that passive review does not. This is why we ask for predictions and explanations before revealing answers.
|
|
8
|
-
|
|
9
|
-
## Pre-testing
|
|
10
|
-
|
|
11
|
-
Attempting to answer before learning new information produces stronger memory — even when the attempt is wrong. A failed attempt makes the correct answer more memorable by contrast. Wrong predictions are valuable data, not failures.
|
|
12
|
-
|
|
13
|
-
## Spacing Effect
|
|
14
|
-
|
|
15
|
-
Distributing learning over time beats cramming. This is why we use retrieval check-ins at session starts and limit exercises to 2 per session rather than drilling continuously.
|
|
16
|
-
|
|
17
|
-
## Desirable Difficulties
|
|
18
|
-
|
|
19
|
-
Conditions that make learning harder in the short term often produce better long-term retention. Exercises should require effort without being frustrating. Struggle during learning is a sign it's working, not failing.
|
|
20
|
-
|
|
21
|
-
## Fluency Illusion
|
|
22
|
-
|
|
23
|
-
When AI-generated code is clean and readable, users overestimate how well they understand it. The fluency of the output masks gaps in mental models. This is the primary risk this skill counteracts.
|
|
24
|
-
|
|
25
|
-
## Dynamic Testing
|
|
26
|
-
|
|
27
|
-
Errors during learning, when followed by clear corrective feedback, enhance retention compared to error-free learning. This is why we are direct about wrong answers rather than softening them.
|
|
28
|
-
|
|
29
|
-
## Transfer and Interleaving
|
|
30
|
-
|
|
31
|
-
Knowledge transfers better when connected to underlying principles and varied contexts. Asking "where else would this apply?" builds flexible knowledge rather than context-bound recall.
|
|
32
|
-
|
|
33
|
-
## Sources
|
|
34
|
-
|
|
35
|
-
- Bjork, R. A., Dunlosky, J., & Kornell, N. (2013). Self-regulated learning: Beliefs, techniques, and illusions.
|
|
36
|
-
- Dunlosky, J., et al. (2013). Improving students' learning with effective learning techniques.
|
|
37
|
-
- Giebl, S., et al. (2021). Answer first or Google first?
|
|
38
|
-
- Hicks, C. M., Lee, C. S., & Foster-Marks, K. (2025). The New Developer: AI Skill Threat, Identity Change & Developer Thriving.
|
|
39
|
-
- Roediger III, H. L., & Karpicke, J. D. (2006). The power of testing memory.
|
|
40
|
-
- Soderstrom, N. C., & Bjork, R. A. (2015). Learning versus performance: An integrative review.
|
|
41
|
-
- Tankelevitch, L., et al. (2024). The metacognitive demands and opportunities of generative AI.
|
|
42
|
-
- Hicks, C. (2025). Cognitive helmets for the AI bicycle. Fight for the Human.
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: notion-mcp
|
|
3
|
-
description: Use this skill when working with the Notion MCP server tools for pages, databases, comments, search, users, and related Notion workflows.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# notion-mcp
|
|
7
|
-
|
|
8
|
-
Notion MCP server providing 14 tools for interacting with your Notion workspace via the Notion API.
|
|
9
|
-
|
|
10
|
-
## Tools
|
|
11
|
-
|
|
12
|
-
| Category | Tools | Default |
|
|
13
|
-
|------------------|--------------------------------------------------------------------------------------------------------------------------------------------|---------|
|
|
14
|
-
| Pages (6 tools) | `fetch`, `create-pages`, `update-page`, `duplicate-page`, `move-pages`, `search` | yes |
|
|
15
|
-
| Databases (4) | `create-database`, `update-data-source`, `create-view`, `update-view` | yes |
|
|
16
|
-
| Comments (2) | `create-comment`, `get-comments` | yes |
|
|
17
|
-
| Users & Teams (2)| `get-users`, `get-teams` | yes |
|
|
18
|
-
|
|
19
|
-
All tools are available by default — there are no opt-in toolsets for this server.
|
|
20
|
-
|
|
21
|
-
## Key Workflows
|
|
22
|
-
|
|
23
|
-
### Page Lifecycle (see references/pages.md)
|
|
24
|
-
|
|
25
|
-
`fetch` → `create-pages` → `update-page` / `duplicate-page` / `move-pages` → `search`
|
|
26
|
-
|
|
27
|
-
### Database Schema (see references/databases.md)
|
|
28
|
-
|
|
29
|
-
`fetch` → `create-database` → `update-data-source` → `create-view` → `update-view`
|
|
30
|
-
|
|
31
|
-
### Comment Threads (see references/comments.md)
|
|
32
|
-
|
|
33
|
-
`fetch` (with `include_discussions`) → `create-comment` → `get-comments`
|
|
34
|
-
|
|
35
|
-
### Search & Discovery
|
|
36
|
-
|
|
37
|
-
`search` → `fetch` → `get-users` / `get-teams`
|
|
38
|
-
|
|
39
|
-
## Parameter Hints
|
|
40
|
-
|
|
41
|
-
- **page_id / database_id**: UUID (with or without dashes) or full Notion URL. Extract from Notion page URLs or from `<page>` / `<database>` tags in fetch output.
|
|
42
|
-
- **data_source_id**: Found in `<data-source url="collection://...">` tags in fetch output. Used for `create-pages`, `update-data-source`, `create-view`.
|
|
43
|
-
- **Markdown content**: Notion-flavored Markdown. Supports inline formatting (bold, italic, code, links), inline math (`$Equation$`), and mention tags (`<mention-date>`, `<mention-user>`, `<mention-page>`, `<mention-database>`). Do not use `@today`, `@name`, `[[page]]` UI shortcuts.
|
|
44
|
-
- **Properties**: JSON map of property names to SQLite values. Date/place properties use expanded key format (e.g., `date:Due:start`, `place:Office:latitude`).
|
|
45
|
-
- **SQL DDL**: Used for `create-database` and `update-data-source` statements. Column names double-quoted, options single-quoted.
|
|
46
|
-
|
|
47
|
-
## Irreversible Tools
|
|
48
|
-
|
|
49
|
-
`move-pages` — permanently relocates pages. Cannot be undone programmatically. Use with caution.
|
|
50
|
-
|
|
51
|
-
## Advanced
|
|
52
|
-
|
|
53
|
-
- **Enhanced Markdown spec**: Read `notion://docs/enhanced-markdown-spec` through your MCP client's resource reader before writing page content.
|
|
54
|
-
- **View DSL spec**: Read `notion://docs/view-dsl-spec` through your MCP client's resource reader before configuring views.
|
|
55
|
-
- **Templates**: `create-pages` and `update-page` support applying page templates (template IDs shown in `<templates>` section of fetch output).
|
|
56
|
-
- **Multi-source databases**: Some databases have multiple data sources. Use `fetch` to identify the correct `data_source_id`.
|
|
57
|
-
- **Verification**: `update-page` with `update_verification` command supports verifying pages as reviewed (Business/Enterprise plan required).
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Notion MCP Examples
|
|
2
|
-
|
|
3
|
-
## Example 1: Create Project Documentation
|
|
4
|
-
|
|
5
|
-
A new feature needs documentation in the team's Notion workspace. Good agent behavior:
|
|
6
|
-
|
|
7
|
-
- Use `notion-get-teams` to verify which team space the project docs live in.
|
|
8
|
-
- Use `notion-search` to find the existing project folder page.
|
|
9
|
-
- Use `notion-fetch` on the folder page to understand its structure and available templates.
|
|
10
|
-
- Use `notion-create-pages` with the parent, title, properties, and content matching the folder's page template.
|
|
11
|
-
- Use `notion-create-comment` to notify the team about the new documentation.
|
|
12
|
-
|
|
13
|
-
## Example 2: Track Bug Reports
|
|
14
|
-
|
|
15
|
-
A production bug needs to be filed in the team's bug tracking database. Good agent behavior:
|
|
16
|
-
|
|
17
|
-
- Use `notion-search` to find the bug tracking database.
|
|
18
|
-
- Use `notion-fetch` on the database to see its schema, properties, and available templates.
|
|
19
|
-
- Use `notion-create-pages` with the database parent, filling in title, severity, status, assignee, and reproduction steps.
|
|
20
|
-
- Use `notion-get-users` to look up the correct assignee's user ID.
|
|
21
|
-
- Use `notion-create-comment` on the new bug page to add environment details.
|
|
22
|
-
|
|
23
|
-
## Example 3: Query Tasks and Update Status
|
|
24
|
-
|
|
25
|
-
Review all in-progress tasks and update their status. Good agent behavior:
|
|
26
|
-
|
|
27
|
-
- Use `notion-fetch` on the tasks database to see its views and schema.
|
|
28
|
-
- Use `notion-query-database-view` on the "In Progress" view to filter active tasks.
|
|
29
|
-
- Use `notion-fetch` on each task page URL to review full details.
|
|
30
|
-
- Use `notion-update-page` to transition completed tasks to "Done" with a summary of what was completed.
|
|
31
|
-
- Use `notion-create-comment` on blocked tasks to document the blocker.
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
# Comments & Discussions
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
Notion supports page-level comments, content-targeted comments on specific blocks, and discussion threads with replies. Use `fetch` with `include_discussions: true` first to see where discussions are anchored, then `get-comments` for full threads.
|
|
6
|
-
|
|
7
|
-
## Create Comment
|
|
8
|
-
|
|
9
|
-
### Page-level comment
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
create-comment
|
|
13
|
-
page_id: "abc123..."
|
|
14
|
-
markdown: "Comment with **important** context and a [link](https://example.com)."
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
### Comment on specific content
|
|
18
|
-
|
|
19
|
-
Target content by providing a unique start/end snippet:
|
|
20
|
-
|
|
21
|
-
```
|
|
22
|
-
create-comment
|
|
23
|
-
page_id: "abc123..."
|
|
24
|
-
markdown: "This section needs updating."
|
|
25
|
-
selection_with_ellipsis: "# Meeting No...es heading"
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
The snippet format: first ~10 characters, `...`, last ~10 characters. Must uniquely identify the content.
|
|
29
|
-
|
|
30
|
-
### Reply to discussion thread
|
|
31
|
-
|
|
32
|
-
```
|
|
33
|
-
create-comment
|
|
34
|
-
page_id: "abc123..."
|
|
35
|
-
discussion_id: "discussion://pageId/blockId/discussionId"
|
|
36
|
-
markdown: "Fixed this in the latest update."
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
Get `discussion_id` from `fetch` (with `include_discussions`) or `get-comments` output.
|
|
40
|
-
|
|
41
|
-
### Using rich_text instead of markdown
|
|
42
|
-
|
|
43
|
-
For features that markdown cannot express (mentions, custom emoji, colors):
|
|
44
|
-
|
|
45
|
-
```
|
|
46
|
-
create-comment
|
|
47
|
-
page_id: "abc123..."
|
|
48
|
-
rich_text:
|
|
49
|
-
- text:
|
|
50
|
-
content: "Assigned to "
|
|
51
|
-
- mention:
|
|
52
|
-
type: "user"
|
|
53
|
-
user:
|
|
54
|
-
id: "user-uuid"
|
|
55
|
-
- text:
|
|
56
|
-
content: " for review"
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Comment formatting
|
|
60
|
-
|
|
61
|
-
- **Markdown**: inline formatting only (bold, italic, strikethrough, underline, code, links)
|
|
62
|
-
- **Inline math**: `$Equation$`
|
|
63
|
-
- **Mention tags**: `<mention-date start="2024-12-25"/>`, `<mention-page id="..."/>`, `<mention-user id="..."/>`, `<mention-database id="..."/>`
|
|
64
|
-
- ❌ No block-level markdown (headings, lists, tables, blockquotes) — these render as plain text
|
|
65
|
-
- ❌ No UI shortcuts like `@today`, `@name`, `[[page]]`
|
|
66
|
-
|
|
67
|
-
## Read Comments
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
get-comments
|
|
71
|
-
page_id: "abc123..."
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Returns all discussions on the page with full thread content.
|
|
75
|
-
|
|
76
|
-
### Include child block comments
|
|
77
|
-
|
|
78
|
-
```
|
|
79
|
-
get-comments
|
|
80
|
-
page_id: "abc123..."
|
|
81
|
-
include_all_blocks: true
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
### Include resolved discussions
|
|
85
|
-
|
|
86
|
-
```
|
|
87
|
-
get-comments
|
|
88
|
-
page_id: "abc123..."
|
|
89
|
-
include_resolved: true
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
### Get specific discussion by ID
|
|
93
|
-
|
|
94
|
-
```
|
|
95
|
-
get-comments
|
|
96
|
-
page_id: "abc123..."
|
|
97
|
-
discussion_id: "discussion://pageId/blockId/discussionId"
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## Workflow
|
|
101
|
-
|
|
102
|
-
1. `fetch` with `include_discussions: true` — see discussion anchors and `<page-discussions>` summary
|
|
103
|
-
2. `get-comments` with `discussion_id` — read full thread
|
|
104
|
-
3. `create-comment` with `discussion_id` — reply
|
|
105
|
-
4. `create-comment` with `selection_with_ellipsis` — start a new thread on specific content
|
|
106
|
-
5. `create-comment` with just `page_id` — add a general page-level comment
|
|
107
|
-
|
|
108
|
-
## Limitations
|
|
109
|
-
|
|
110
|
-
- **No edit/update** — comments cannot be modified after creation
|
|
111
|
-
- **No delete** — comments cannot be removed via this server
|
|
112
|
-
- **No resolution** — cannot mark discussions as resolved via this server
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
# Database Management
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
Notion databases consist of views on top of data sources. A data source (collection) holds the actual schema and pages. A database can have multiple data sources (linked databases). Use `fetch` first to get the database structure and data source IDs from `<data-source>` tags.
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
fetch
|
|
9
|
-
id: "database-uuid-here"
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Create Database
|
|
13
|
-
|
|
14
|
-
Uses SQL DDL syntax to define the schema:
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
create-database
|
|
18
|
-
title: "Tasks"
|
|
19
|
-
parent:
|
|
20
|
-
page_id: "abc123..." # where to place the database
|
|
21
|
-
schema: |
|
|
22
|
-
CREATE TABLE (
|
|
23
|
-
"Task Name" TITLE,
|
|
24
|
-
"Status" SELECT('To Do':red, 'In Progress':yellow, 'Done':green),
|
|
25
|
-
"Priority" NUMBER FORMAT 'dollar',
|
|
26
|
-
"Due Date" DATE,
|
|
27
|
-
"Assignee" PEOPLE,
|
|
28
|
-
"Tags" MULTI_SELECT('eng':blue, 'design':pink),
|
|
29
|
-
"URL" URL,
|
|
30
|
-
"Email" EMAIL,
|
|
31
|
-
"Complete" CHECKBOX,
|
|
32
|
-
"Task ID" UNIQUE_ID PREFIX 'TASK'
|
|
33
|
-
)
|
|
34
|
-
description: "Team task tracker"
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### Column types
|
|
38
|
-
|
|
39
|
-
| Type | SQL Syntax |
|
|
40
|
-
|------|------------|
|
|
41
|
-
| Title | `TITLE` |
|
|
42
|
-
| Rich text | `RICH_TEXT` |
|
|
43
|
-
| Date | `DATE` |
|
|
44
|
-
| People | `PEOPLE` |
|
|
45
|
-
| Checkbox | `CHECKBOX` |
|
|
46
|
-
| URL | `URL` |
|
|
47
|
-
| Email | `EMAIL` |
|
|
48
|
-
| Phone | `PHONE_NUMBER` |
|
|
49
|
-
| Status | `STATUS` |
|
|
50
|
-
| Files | `FILES` |
|
|
51
|
-
| Number | `NUMBER [FORMAT 'dollar']` |
|
|
52
|
-
| Select | `SELECT('opt1':red, 'opt2':blue)` |
|
|
53
|
-
| Multi-select | `MULTI_SELECT('opt1':green, 'opt2':pink)` |
|
|
54
|
-
| Formula | `FORMULA('prop("A") + prop("B")')` |
|
|
55
|
-
| Relation | `RELATION('data_source_id')` or `RELATION('ds_id', DUAL)` |
|
|
56
|
-
| Rollup | `ROLLUP('relation_prop', 'target_prop', 'function')` |
|
|
57
|
-
| Unique ID | `UNIQUE_ID [PREFIX 'X']` |
|
|
58
|
-
| Created time | `CREATED_TIME` |
|
|
59
|
-
| Last edited | `LAST_EDITED_TIME` |
|
|
60
|
-
|
|
61
|
-
Column colors: `default`, `gray`, `brown`, `orange`, `yellow`, `green`, `blue`, `purple`, ` pink`, `red`
|
|
62
|
-
|
|
63
|
-
Add descriptions: `"Status" STATUS COMMENT 'Current task status'`
|
|
64
|
-
|
|
65
|
-
### Self-referencing relation (two-step)
|
|
66
|
-
|
|
67
|
-
1. Create the database without the relation
|
|
68
|
-
2. Use `update-data-source` with the returned `data_source_id` to add the relation:
|
|
69
|
-
|
|
70
|
-
```
|
|
71
|
-
update-data-source
|
|
72
|
-
data_source_id: "abc123..."
|
|
73
|
-
statements: |
|
|
74
|
-
ADD COLUMN "Parent" RELATION('abc123...', DUAL 'Children' 'children');
|
|
75
|
-
ADD COLUMN "Children" RELATION('abc123...', DUAL 'Parent' 'parent')
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## Update Data Source
|
|
79
|
-
|
|
80
|
-
Modify a data source's schema, title, or description.
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
update-data-source
|
|
84
|
-
data_source_id: "f336d0bc-..."
|
|
85
|
-
title: "Project Tracker 2025"
|
|
86
|
-
|
|
87
|
-
statements: |
|
|
88
|
-
ADD COLUMN "Priority" SELECT('High':red, 'Medium':yellow, 'Low':green);
|
|
89
|
-
ADD COLUMN "Due Date" DATE;
|
|
90
|
-
RENAME COLUMN "Status" TO "Progress";
|
|
91
|
-
ALTER COLUMN "Priority" SET SELECT('P0':red, 'P1':orange, 'P2':green);
|
|
92
|
-
DROP COLUMN "Old Column"
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
### Statements
|
|
96
|
-
|
|
97
|
-
- `ADD COLUMN "Name" <type>` — add a property
|
|
98
|
-
- `DROP COLUMN "Name"` — remove a property (only if unused in views)
|
|
99
|
-
- `RENAME COLUMN "Old" TO "New"` — rename a property
|
|
100
|
-
- `ALTER COLUMN "Name" SET <type>` — change type/options
|
|
101
|
-
- `ALTER COLUMN "Name" SET COMMENT 'new description'` — update description
|
|
102
|
-
|
|
103
|
-
Cannot delete or create title properties. Max one `UNIQUE_ID` property.
|
|
104
|
-
|
|
105
|
-
## Views
|
|
106
|
-
|
|
107
|
-
### Create View
|
|
108
|
-
|
|
109
|
-
```
|
|
110
|
-
create-view
|
|
111
|
-
data_source_id: "abc123..."
|
|
112
|
-
name: "Sprint Board"
|
|
113
|
-
type: "board" # table, board, list, calendar, timeline, gallery, form, chart, map, dashboard
|
|
114
|
-
configure: |
|
|
115
|
-
GROUP BY "Status";
|
|
116
|
-
SORT BY "Due Date" ASC;
|
|
117
|
-
FILTER "Priority" != "Low"
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
Or add a view to an existing database:
|
|
121
|
-
|
|
122
|
-
```
|
|
123
|
-
create-view
|
|
124
|
-
database_id: "abc123..."
|
|
125
|
-
data_source_id: "abc123..."
|
|
126
|
-
name: "All Tasks"
|
|
127
|
-
type: "table"
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
Or create a linked database view on a page:
|
|
131
|
-
|
|
132
|
-
```
|
|
133
|
-
create-view
|
|
134
|
-
parent_page_id: "ghi789..."
|
|
135
|
-
data_source_id: "abc123..."
|
|
136
|
-
name: "Company tasks"
|
|
137
|
-
type: "table"
|
|
138
|
-
configure: |
|
|
139
|
-
FILTER "Company" = "Acme"
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### View types and required directives
|
|
143
|
-
|
|
144
|
-
| View type | Required |
|
|
145
|
-
|-----------|----------|
|
|
146
|
-
| table | — |
|
|
147
|
-
| board | `GROUP BY "Property"` |
|
|
148
|
-
| list | — |
|
|
149
|
-
| calendar | `CALENDAR BY "DateProperty"` |
|
|
150
|
-
| timeline | `TIMELINE BY "Start" TO "End"` |
|
|
151
|
-
| gallery | — |
|
|
152
|
-
| form | — |
|
|
153
|
-
| chart | `CHART column\|bar\|line\|donut\|number` |
|
|
154
|
-
| map | `MAP BY "LocationProperty"` |
|
|
155
|
-
| dashboard | — |
|
|
156
|
-
|
|
157
|
-
### View DSL directives
|
|
158
|
-
|
|
159
|
-
```
|
|
160
|
-
FILTER "Status" = "In Progress" # filter rows
|
|
161
|
-
SORT BY "Due Date" ASC # sort rows
|
|
162
|
-
GROUP BY "Status" # group/board columns
|
|
163
|
-
CALENDAR BY "Date" # calendar date property
|
|
164
|
-
TIMELINE BY "Start" TO "End" # timeline date range
|
|
165
|
-
MAP BY "Location" # map location property
|
|
166
|
-
CHART bar AGGREGATE count # chart type + aggregation
|
|
167
|
-
SHOW "Name", "Status", "Due Date" # visible properties
|
|
168
|
-
HIDE "Internal Note" # hidden properties
|
|
169
|
-
COVER "Image" # cover image property
|
|
170
|
-
WRAP CELLS true # wrap cell content
|
|
171
|
-
FREEZE COLUMNS 2 # freeze first N columns
|
|
172
|
-
FORM CLOSE | OPEN # form submissions
|
|
173
|
-
FORM ANONYMOUS true | false # anonymous submissions
|
|
174
|
-
FORM PERMISSIONS none | reader | editor # form submission permissions
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
### Update View
|
|
178
|
-
|
|
179
|
-
```
|
|
180
|
-
update-view
|
|
181
|
-
view_id: "abc123..." # view:// URI, Notion URL with ?v=, or bare UUID
|
|
182
|
-
name: "Q1 Sprint Board"
|
|
183
|
-
configure: |
|
|
184
|
-
CLEAR FILTER;
|
|
185
|
-
CLEAR SORT;
|
|
186
|
-
GROUP BY "Priority"
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
### Clear directives
|
|
190
|
-
|
|
191
|
-
- `CLEAR FILTER` — remove all filters
|
|
192
|
-
- `CLEAR SORT` — remove all sorts
|
|
193
|
-
- `CLEAR GROUP BY` — remove grouping
|