invos 1.0.0
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/README.md +39 -0
- package/bin/invos.js +78 -0
- package/kit/.agents/skills/apple/DESCRIPTION.md +2 -0
- package/kit/.agents/skills/apple/apple-notes/SKILL.md +90 -0
- package/kit/.agents/skills/apple/apple-reminders/SKILL.md +130 -0
- package/kit/.agents/skills/audit/SKILL.md +177 -0
- package/kit/.agents/skills/design-marca/SKILL.md +92 -0
- package/kit/.agents/skills/humanizer/SKILL.md +476 -0
- package/kit/.agents/skills/instagram-carrossel/SKILL.md +79 -0
- package/kit/.agents/skills/instagram-carrossel/references/fetch-assets.md +77 -0
- package/kit/.agents/skills/instagram-carrossel/references/publish.md +48 -0
- package/kit/.agents/skills/instagram-carrossel/references/render-png.md +147 -0
- package/kit/.agents/skills/instagram-carrossel/scripts/publish.js +165 -0
- package/kit/.agents/skills/llm-wiki/SKILL.md +507 -0
- package/kit/.agents/skills/onboard/SKILL.md +152 -0
- package/kit/.agents/skills/pd-ikigai/SKILL.md +269 -0
- package/kit/.agents/skills/popular-web-designs/SKILL.md +214 -0
- package/kit/.agents/skills/popular-web-designs/templates/airbnb.md +259 -0
- package/kit/.agents/skills/popular-web-designs/templates/airtable.md +102 -0
- package/kit/.agents/skills/popular-web-designs/templates/apple.md +326 -0
- package/kit/.agents/skills/popular-web-designs/templates/bmw.md +193 -0
- package/kit/.agents/skills/popular-web-designs/templates/cal.md +272 -0
- package/kit/.agents/skills/popular-web-designs/templates/claude.md +325 -0
- package/kit/.agents/skills/popular-web-designs/templates/clay.md +317 -0
- package/kit/.agents/skills/popular-web-designs/templates/clickhouse.md +294 -0
- package/kit/.agents/skills/popular-web-designs/templates/cohere.md +279 -0
- package/kit/.agents/skills/popular-web-designs/templates/coinbase.md +142 -0
- package/kit/.agents/skills/popular-web-designs/templates/composio.md +320 -0
- package/kit/.agents/skills/popular-web-designs/templates/cursor.md +322 -0
- package/kit/.agents/skills/popular-web-designs/templates/elevenlabs.md +278 -0
- package/kit/.agents/skills/popular-web-designs/templates/expo.md +294 -0
- package/kit/.agents/skills/popular-web-designs/templates/figma.md +233 -0
- package/kit/.agents/skills/popular-web-designs/templates/framer.md +259 -0
- package/kit/.agents/skills/popular-web-designs/templates/hashicorp.md +291 -0
- package/kit/.agents/skills/popular-web-designs/templates/ibm.md +345 -0
- package/kit/.agents/skills/popular-web-designs/templates/intercom.md +159 -0
- package/kit/.agents/skills/popular-web-designs/templates/kraken.md +138 -0
- package/kit/.agents/skills/popular-web-designs/templates/linear.app.md +380 -0
- package/kit/.agents/skills/popular-web-designs/templates/lovable.md +311 -0
- package/kit/.agents/skills/popular-web-designs/templates/minimax.md +270 -0
- package/kit/.agents/skills/popular-web-designs/templates/mintlify.md +339 -0
- package/kit/.agents/skills/popular-web-designs/templates/miro.md +121 -0
- package/kit/.agents/skills/popular-web-designs/templates/mistral.ai.md +274 -0
- package/kit/.agents/skills/popular-web-designs/templates/mongodb.md +279 -0
- package/kit/.agents/skills/popular-web-designs/templates/notion.md +322 -0
- package/kit/.agents/skills/popular-web-designs/templates/nvidia.md +306 -0
- package/kit/.agents/skills/popular-web-designs/templates/ollama.md +280 -0
- package/kit/.agents/skills/popular-web-designs/templates/opencode.ai.md +294 -0
- package/kit/.agents/skills/popular-web-designs/templates/pinterest.md +243 -0
- package/kit/.agents/skills/popular-web-designs/templates/posthog.md +269 -0
- package/kit/.agents/skills/popular-web-designs/templates/raycast.md +281 -0
- package/kit/.agents/skills/popular-web-designs/templates/replicate.md +274 -0
- package/kit/.agents/skills/popular-web-designs/templates/resend.md +316 -0
- package/kit/.agents/skills/popular-web-designs/templates/revolut.md +198 -0
- package/kit/.agents/skills/popular-web-designs/templates/runwayml.md +257 -0
- package/kit/.agents/skills/popular-web-designs/templates/sanity.md +370 -0
- package/kit/.agents/skills/popular-web-designs/templates/sentry.md +275 -0
- package/kit/.agents/skills/popular-web-designs/templates/spacex.md +207 -0
- package/kit/.agents/skills/popular-web-designs/templates/spotify.md +259 -0
- package/kit/.agents/skills/popular-web-designs/templates/stripe.md +335 -0
- package/kit/.agents/skills/popular-web-designs/templates/supabase.md +268 -0
- package/kit/.agents/skills/popular-web-designs/templates/superhuman.md +265 -0
- package/kit/.agents/skills/popular-web-designs/templates/together.ai.md +276 -0
- package/kit/.agents/skills/popular-web-designs/templates/uber.md +308 -0
- package/kit/.agents/skills/popular-web-designs/templates/vercel.md +323 -0
- package/kit/.agents/skills/popular-web-designs/templates/voltagent.md +336 -0
- package/kit/.agents/skills/popular-web-designs/templates/warp.md +266 -0
- package/kit/.agents/skills/popular-web-designs/templates/webflow.md +105 -0
- package/kit/.agents/skills/popular-web-designs/templates/wise.md +186 -0
- package/kit/.agents/skills/popular-web-designs/templates/x.ai.md +270 -0
- package/kit/.agents/skills/popular-web-designs/templates/zapier.md +341 -0
- package/kit/.agents/skills/productivity/DESCRIPTION.md +3 -0
- package/kit/.agents/skills/productivity/google-workspace/SKILL.md +335 -0
- package/kit/.agents/skills/productivity/google-workspace/references/gmail-search-syntax.md +63 -0
- package/kit/.agents/skills/productivity/google-workspace/scripts/_hermes_home.py +42 -0
- package/kit/.agents/skills/productivity/google-workspace/scripts/google_api.py +1225 -0
- package/kit/.agents/skills/productivity/google-workspace/scripts/gws_bridge.py +111 -0
- package/kit/.agents/skills/productivity/google-workspace/scripts/setup.py +481 -0
- package/kit/.agents/skills/productivity/nano-pdf/SKILL.md +52 -0
- package/kit/.agents/skills/productivity/notion/SKILL.md +448 -0
- package/kit/.agents/skills/productivity/notion/references/block-types.md +112 -0
- package/kit/.agents/skills/productivity/ocr-and-documents/DESCRIPTION.md +3 -0
- package/kit/.agents/skills/productivity/ocr-and-documents/SKILL.md +172 -0
- package/kit/.agents/skills/productivity/ocr-and-documents/scripts/extract_marker.py +87 -0
- package/kit/.agents/skills/productivity/ocr-and-documents/scripts/extract_pymupdf.py +98 -0
- package/kit/.agents/skills/productivity/powerpoint/LICENSE.txt +30 -0
- package/kit/.agents/skills/productivity/powerpoint/SKILL.md +237 -0
- package/kit/.agents/skills/productivity/powerpoint/editing.md +205 -0
- package/kit/.agents/skills/productivity/powerpoint/pptxgenjs.md +420 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/__init__.py +0 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/add_slide.py +195 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/clean.py +286 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/helpers/__init__.py +0 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/helpers/merge_runs.py +199 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/helpers/simplify_redlines.py +197 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/pack.py +159 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ecma/fourth-edition/opc-contentTypes.xsd +42 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ecma/fourth-edition/opc-coreProperties.xsd +50 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ecma/fourth-edition/opc-digSig.xsd +49 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ecma/fourth-edition/opc-relationships.xsd +33 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/mce/mc.xsd +75 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/kit/.agents/skills/proposta/SKILL.md +159 -0
- package/kit/.agents/skills/proposta/references/proposta-avancada.md +17 -0
- package/kit/.agents/skills/proposta/references/proposta.html +187 -0
- package/kit/.agents/skills/session-checkpoint/SKILL.md +80 -0
- package/kit/.agents/skills/session-end/SKILL.md +166 -0
- package/kit/.agents/skills/session-start/SKILL.md +149 -0
- package/kit/.agents/skills/social-content/SKILL.md +119 -0
- package/kit/.agents/skills/stop-slop/CHANGELOG.md +24 -0
- package/kit/.agents/skills/stop-slop/LICENSE +21 -0
- package/kit/.agents/skills/stop-slop/README.md +62 -0
- package/kit/.agents/skills/stop-slop/SKILL.md +68 -0
- package/kit/.agents/skills/stop-slop/references/examples.md +59 -0
- package/kit/.agents/skills/stop-slop/references/phrases.md +128 -0
- package/kit/.agents/skills/stop-slop/references/structures.md +134 -0
- package/kit/.agents/squads/advisory-board/README.md +34 -0
- package/kit/.agents/squads/advisory-board/agents/board-chair.md +161 -0
- package/kit/.agents/squads/advisory-board/agents/brene-brown.md +296 -0
- package/kit/.agents/squads/advisory-board/agents/charlie-munger.md +590 -0
- package/kit/.agents/squads/advisory-board/agents/derek-sivers.md +268 -0
- package/kit/.agents/squads/advisory-board/agents/naval-ravikant.md +251 -0
- package/kit/.agents/squads/advisory-board/agents/patrick-lencioni.md +394 -0
- package/kit/.agents/squads/advisory-board/agents/peter-thiel.md +269 -0
- package/kit/.agents/squads/advisory-board/agents/ray-dalio.md +587 -0
- package/kit/.agents/squads/advisory-board/agents/reid-hoffman.md +278 -0
- package/kit/.agents/squads/advisory-board/agents/simon-sinek.md +291 -0
- package/kit/.agents/squads/advisory-board/agents/yvon-chouinard.md +275 -0
- package/kit/.agents/squads/advisory-board/checklists/output-quality.md +73 -0
- package/kit/.agents/squads/advisory-board/config/config.yaml +67 -0
- package/kit/.agents/squads/advisory-board/data/mental-models-catalog.yaml +178 -0
- package/kit/.agents/squads/advisory-board/data/routing-catalog.yaml +89 -0
- package/kit/.agents/squads/advisory-board/squad.yaml +50 -0
- package/kit/.agents/squads/advisory-board/tasks/convene-board.md +152 -0
- package/kit/.agents/squads/advisory-board/tasks/diagnose.md +138 -0
- package/kit/.agents/squads/advisory-board/tasks/evaluate-scaling.md +165 -0
- package/kit/.agents/squads/advisory-board/tasks/get-founder-counsel.md +169 -0
- package/kit/.agents/squads/advisory-board/tasks/resolve-culture-crisis.md +164 -0
- package/kit/.agents/squads/advisory-board/tasks/review.md +133 -0
- package/kit/.agents/squads/advisory-board/tasks/seek-investment-counsel.md +161 -0
- package/kit/.agents/squads/advisory-board/workflows/wf-board-meeting.yaml +115 -0
- package/kit/.agents/squads/advisory-board/workflows/wf-decision-framework.yaml +135 -0
- package/kit/.agents/squads/brand/README.md +179 -0
- package/kit/.agents/squads/brand/agents/alexandra-watkins.md +1869 -0
- package/kit/.agents/squads/brand/agents/april-dunford.md +1781 -0
- package/kit/.agents/squads/brand/agents/brand-chief.md +600 -0
- package/kit/.agents/squads/brand/agents/emily-heyward.md +1685 -0
- package/kit/.agents/squads/brand/agents/marty-neumeier.md +1642 -0
- package/kit/.agents/squads/brand/agents/michael-johnson.md +1814 -0
- package/kit/.agents/squads/brand/agents/sagi-haviv.md +2025 -0
- package/kit/.agents/squads/brand/checklists/brand-book-checklist.md +31 -0
- package/kit/.agents/squads/brand/checklists/brand-launch-checklist.md +52 -0
- package/kit/.agents/squads/brand/checklists/brand-strategy-checklist.md +45 -0
- package/kit/.agents/squads/brand/checklists/naming-checklist.md +48 -0
- package/kit/.agents/squads/brand/checklists/positioning-checklist.md +48 -0
- package/kit/.agents/squads/brand/checklists/smoke-tests.md +180 -0
- package/kit/.agents/squads/brand/checklists/visual-identity-checklist.md +61 -0
- package/kit/.agents/squads/brand/config.yaml +135 -0
- package/kit/.agents/squads/brand/data/brand-archetypes.md +135 -0
- package/kit/.agents/squads/brand/data/brand-audit-methodology.md +99 -0
- package/kit/.agents/squads/brand/data/brand-pantheon.md +61 -0
- package/kit/.agents/squads/brand/data/brand-voice-matrix.md +92 -0
- package/kit/.agents/squads/brand/data/color-psychology.md +125 -0
- package/kit/.agents/squads/brand/squad.yaml +123 -0
- package/kit/.agents/squads/brand/tasks/brand-audit.md +150 -0
- package/kit/.agents/squads/brand/tasks/brand-book-creation.md +136 -0
- package/kit/.agents/squads/brand/tasks/brand-diagnosis.md +135 -0
- package/kit/.agents/squads/brand/tasks/brand-touchpoint-audit.md +100 -0
- package/kit/.agents/squads/brand/tasks/coherence-check.md +132 -0
- package/kit/.agents/squads/brand/tasks/logo-evaluation.md +103 -0
- package/kit/.agents/squads/brand/tasks/movement-architecture.md +136 -0
- package/kit/.agents/squads/brand/tasks/naming-exercise.md +134 -0
- package/kit/.agents/squads/brand/tasks/positioning-exercise.md +146 -0
- package/kit/.agents/squads/brand/tasks/research-references.md +225 -0
- package/kit/.agents/squads/brand/tasks/visual-identity-brief.md +134 -0
- package/kit/.agents/squads/brand/templates/brand-book-tmpl.md +148 -0
- package/kit/.agents/squads/brand/templates/brand-soul-canvas-tmpl.md +80 -0
- package/kit/.agents/squads/brand/templates/naming-brief-tmpl.md +83 -0
- package/kit/.agents/squads/brand/templates/positioning-canvas-tmpl.md +60 -0
- package/kit/.agents/squads/brand/templates/visual-identity-brief-tmpl.md +109 -0
- package/kit/.agents/squads/brand/workflows/wf-brand-audit.yaml +148 -0
- package/kit/.agents/squads/brand/workflows/wf-brand-from-zero.yaml +229 -0
- package/kit/.agents/squads/brand/workflows/wf-brief-to-references.yaml +141 -0
- package/kit/.agents/squads/hormozi-squad/README.md +25 -0
- package/kit/.agents/squads/hormozi-squad/agents/hormozi-ads.md +159 -0
- package/kit/.agents/squads/hormozi-squad/agents/hormozi-advisor.md +178 -0
- package/kit/.agents/squads/hormozi-squad/agents/hormozi-audit.md +178 -0
- package/kit/.agents/squads/hormozi-squad/agents/hormozi-chief.md +121 -0
- package/kit/.agents/squads/hormozi-squad/agents/hormozi-closer.md +179 -0
- package/kit/.agents/squads/hormozi-squad/agents/hormozi-content.md +166 -0
- package/kit/.agents/squads/hormozi-squad/agents/hormozi-copy.md +152 -0
- package/kit/.agents/squads/hormozi-squad/agents/hormozi-hooks.md +177 -0
- package/kit/.agents/squads/hormozi-squad/agents/hormozi-launch.md +160 -0
- package/kit/.agents/squads/hormozi-squad/agents/hormozi-leads.md +198 -0
- package/kit/.agents/squads/hormozi-squad/agents/hormozi-models.md +191 -0
- package/kit/.agents/squads/hormozi-squad/agents/hormozi-offers.md +197 -0
- package/kit/.agents/squads/hormozi-squad/agents/hormozi-pricing.md +151 -0
- package/kit/.agents/squads/hormozi-squad/agents/hormozi-retention.md +166 -0
- package/kit/.agents/squads/hormozi-squad/agents/hormozi-scale.md +175 -0
- package/kit/.agents/squads/hormozi-squad/agents/hormozi-workshop.md +160 -0
- package/kit/.agents/squads/hormozi-squad/checklists/output-quality.md +71 -0
- package/kit/.agents/squads/hormozi-squad/config/config.yaml +183 -0
- package/kit/.agents/squads/hormozi-squad/data/hormozi-frameworks.yaml +105 -0
- package/kit/.agents/squads/hormozi-squad/data/routing-catalog.yaml +94 -0
- package/kit/.agents/squads/hormozi-squad/squad.yaml +60 -0
- package/kit/.agents/squads/hormozi-squad/tasks/audit-business.md +186 -0
- package/kit/.agents/squads/hormozi-squad/tasks/close-sale.md +179 -0
- package/kit/.agents/squads/hormozi-squad/tasks/create-hooks.md +159 -0
- package/kit/.agents/squads/hormozi-squad/tasks/create-offer.md +178 -0
- package/kit/.agents/squads/hormozi-squad/tasks/design-workshop.md +192 -0
- package/kit/.agents/squads/hormozi-squad/tasks/diagnose.md +166 -0
- package/kit/.agents/squads/hormozi-squad/tasks/generate-leads.md +187 -0
- package/kit/.agents/squads/hormozi-squad/tasks/plan-launch.md +179 -0
- package/kit/.agents/squads/hormozi-squad/tasks/review.md +133 -0
- package/kit/.agents/squads/hormozi-squad/tasks/set-pricing.md +167 -0
- package/kit/.agents/squads/hormozi-squad/workflows/wf-business-turnaround.yaml +104 -0
- package/kit/.agents/squads/hormozi-squad/workflows/wf-offer-creation.yaml +105 -0
- package/kit/.agents/squads/index.md +14 -0
- package/kit/.agents/squads/instagram-carrossel/DEPENDENCIES.md +75 -0
- package/kit/.agents/squads/instagram-carrossel/README.md +52 -0
- package/kit/.agents/squads/instagram-carrossel/RUN.md +115 -0
- package/kit/.agents/squads/instagram-carrossel/_memory/memories.md +16 -0
- package/kit/.agents/squads/instagram-carrossel/agents/copywriter/tasks/create-slides.md +96 -0
- package/kit/.agents/squads/instagram-carrossel/agents/copywriter/tasks/generate-angles.md +111 -0
- package/kit/.agents/squads/instagram-carrossel/agents/copywriter/tasks/optimize-copy.md +81 -0
- package/kit/.agents/squads/instagram-carrossel/agents/copywriter.custom.md +73 -0
- package/kit/.agents/squads/instagram-carrossel/agents/image-designer/tasks/create-slides.md +132 -0
- package/kit/.agents/squads/instagram-carrossel/agents/image-designer/tasks/propose-visual-identities.md +89 -0
- package/kit/.agents/squads/instagram-carrossel/agents/image-designer/tasks/render-export.md +100 -0
- package/kit/.agents/squads/instagram-carrossel/agents/image-designer.custom.md +47 -0
- package/kit/.agents/squads/instagram-carrossel/agents/publisher/tasks/validate-publish.md +50 -0
- package/kit/.agents/squads/instagram-carrossel/agents/publisher.custom.md +26 -0
- package/kit/.agents/squads/instagram-carrossel/agents/researcher/tasks/find-and-rank-news.md +105 -0
- package/kit/.agents/squads/instagram-carrossel/agents/researcher.custom.md +46 -0
- package/kit/.agents/squads/instagram-carrossel/agents/reviewer/tasks/generate-feedback.md +91 -0
- package/kit/.agents/squads/instagram-carrossel/agents/reviewer/tasks/score-content.md +103 -0
- package/kit/.agents/squads/instagram-carrossel/agents/reviewer.custom.md +53 -0
- package/kit/.agents/squads/instagram-carrossel/output/.gitkeep +0 -0
- package/kit/.agents/squads/instagram-carrossel/output/slides/.gitkeep +0 -0
- package/kit/.agents/squads/instagram-carrossel/output/slides/rendered/.gitkeep +0 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/data/anti-patterns.md +125 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/data/domain-framework.md +92 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/data/instagram-feed-best-practices.md +235 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/data/output-examples.md +244 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/data/quality-criteria.md +120 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/data/research-brief.md +135 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/data/tone-of-voice.md +32 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/pipeline.yaml +136 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-01-input-content.md +38 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-02-find-news.md +42 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-03-select-story.md +59 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-04-generate-angles.md +45 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-05-select-angle.md +64 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-06-create-copy.md +51 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-07-approve-copy.md +52 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-08-propose-visuals.md +42 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-09-select-visual.md +61 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-10-create-slides.md +55 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-11-approve-images.md +60 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-12-review.md +55 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-13-publish.md +79 -0
- package/kit/.agents/squads/instagram-carrossel/squad-party.csv +6 -0
- package/kit/.agents/squads/instagram-carrossel/squad.yaml +70 -0
- package/kit/AGENTS.md +175 -0
- package/kit/CLAUDE.md +1 -0
- package/kit/COMECE-AQUI.md +207 -0
- package/kit/INVOS.json +37 -0
- package/kit/MEMORY.md +31 -0
- package/kit/README.md +434 -0
- package/kit/SECURITY.md +39 -0
- package/kit/clientes/README.md +72 -0
- package/kit/clientes/_index.md +32 -0
- package/kit/clientes/_template/arquivos/.gitkeep +0 -0
- package/kit/clientes/_template/contexto.md +21 -0
- package/kit/clientes/_template/entregas.md +20 -0
- package/kit/clientes/_template/perfil.md +47 -0
- package/kit/clientes/_template/propostas/.gitkeep +0 -0
- package/kit/conteudo/README.md +12 -0
- package/kit/conteudo/_fila.md +12 -0
- package/kit/conteudo/carrosseis/.gitkeep +0 -0
- package/kit/conteudo/publicados/.gitkeep +0 -0
- package/kit/docs/audit-enxugamento-sieve.md +187 -0
- package/kit/docs/cli.md +62 -0
- package/kit/docs/hotmart-webhook.md +96 -0
- package/kit/docs/lab-user.md +35 -0
- package/kit/docs/prd-invos-cli.md +264 -0
- package/kit/integracoes/README.md +31 -0
- package/kit/integracoes/composio/README.md +128 -0
- package/kit/integracoes/composio/marketing-tools.md +61 -0
- package/kit/marca/README.md +13 -0
- package/kit/marca/assets/.gitkeep +0 -0
- package/kit/marca/marca.md +57 -0
- package/kit/memoria/ativo.md +18 -0
- package/kit/memoria/decisoes.md +26 -0
- package/kit/memoria/empresa.md +46 -0
- package/kit/memoria/historico/README.md +8 -0
- package/kit/memoria/insights.md +11 -0
- package/kit/memoria/perfil.md +29 -0
- package/kit/memoria/projetos.md +27 -0
- package/kit/memoria/regras/_TEMPLATE-exemplo.md +15 -0
- package/kit/memoria/regras/task-com-dono.md +18 -0
- package/kit/scripts/smoke-estado.sh +32 -0
- package/kit/scripts/validar.sh +206 -0
- package/package.json +43 -0
- package/src/commands/doctor.js +104 -0
- package/src/commands/init.js +44 -0
- package/src/commands/install.js +41 -0
- package/src/commands/update.js +113 -0
- package/src/lock.js +47 -0
- package/src/manifest.js +10 -0
- package/src/resolve-kit.js +33 -0
- package/src/symlinks.js +78 -0
- package/src/utils.js +113 -0
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: notion
|
|
3
|
+
description: "Notion API + ntn CLI: pages, databases, markdown, Workers."
|
|
4
|
+
version: 2.0.0
|
|
5
|
+
author: community
|
|
6
|
+
license: MIT
|
|
7
|
+
platforms: [linux, macos, windows]
|
|
8
|
+
prerequisites:
|
|
9
|
+
env_vars: [NOTION_API_KEY]
|
|
10
|
+
metadata:
|
|
11
|
+
hermes:
|
|
12
|
+
tags: [Notion, Productivity, Notes, Database, API, CLI, Workers]
|
|
13
|
+
homepage: https://developers.notion.com
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Notion
|
|
17
|
+
|
|
18
|
+
Talk to Notion two ways. Same integration token works for both — pick by what's available.
|
|
19
|
+
|
|
20
|
+
◆ **`ntn` CLI** — Notion's official CLI. Shorter syntax, one-line file uploads, required for Workers. macOS + Linux only as of May 2026 (Windows support "coming soon"). **Default when installed.**
|
|
21
|
+
◆ **HTTP + curl** — works everywhere including Windows. **Default fallback** when `ntn` isn't installed.
|
|
22
|
+
|
|
23
|
+
## Setup
|
|
24
|
+
|
|
25
|
+
### 1. Get an integration token (required for both paths)
|
|
26
|
+
|
|
27
|
+
1. Create an integration at https://notion.so/my-integrations
|
|
28
|
+
2. Copy the API key (starts with `ntn_` or `secret_`)
|
|
29
|
+
3. Store in `~/.hermes/.env`:
|
|
30
|
+
```
|
|
31
|
+
NOTION_API_KEY=ntn_your_key_here
|
|
32
|
+
```
|
|
33
|
+
4. **Share target pages/databases with the integration** in Notion: page menu `...` → `Connect to` → your integration name. Without this, the API returns 404 for that page even though it exists.
|
|
34
|
+
|
|
35
|
+
### 2. Install `ntn` (preferred path on macOS / Linux)
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# Recommended
|
|
39
|
+
curl -fsSL https://ntn.dev | bash
|
|
40
|
+
|
|
41
|
+
# Or via npm (needs Node 22+, npm 10+)
|
|
42
|
+
npm install --global ntn
|
|
43
|
+
|
|
44
|
+
ntn --version # verify
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**Skip `ntn login` — use the integration token instead.** This works headlessly, no browser needed:
|
|
48
|
+
```bash
|
|
49
|
+
export NOTION_API_TOKEN=$NOTION_API_KEY # ntn reads NOTION_API_TOKEN
|
|
50
|
+
export NOTION_KEYRING=0 # don't try to use the OS keychain
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Add those exports to your shell profile (or to `~/.hermes/.env`) so every session inherits them.
|
|
54
|
+
|
|
55
|
+
### 3. Choose path at runtime
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
if command -v ntn >/dev/null 2>&1; then
|
|
59
|
+
# use ntn
|
|
60
|
+
else
|
|
61
|
+
# fall back to curl
|
|
62
|
+
fi
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Windows users: skip step 2 entirely until native `ntn` ships — Path B works fine. If you want CLI ergonomics now, install `ntn` inside WSL2.
|
|
66
|
+
|
|
67
|
+
## API Basics
|
|
68
|
+
|
|
69
|
+
`Notion-Version: 2025-09-03` is required on all HTTP requests. `ntn` handles this for you. In this version, what users call "databases" are called **data sources** in the API.
|
|
70
|
+
|
|
71
|
+
## Path A — `ntn` CLI (preferred, macOS / Linux)
|
|
72
|
+
|
|
73
|
+
### Raw API calls (shorthand for curl)
|
|
74
|
+
```bash
|
|
75
|
+
ntn api v1/users # GET
|
|
76
|
+
ntn api v1/pages parent[page_id]=abc123 \ # POST with inline body
|
|
77
|
+
properties[title][0][text][content]="Notes"
|
|
78
|
+
ntn api v1/pages/abc123 -X PATCH archived:=true # PATCH; := is non-string (bool/num/null)
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Syntax notes:
|
|
82
|
+
- `key=value` — string fields
|
|
83
|
+
- `key[nested]=value` — nested object fields
|
|
84
|
+
- `key:=value` — typed assignment (booleans, numbers, null, arrays)
|
|
85
|
+
|
|
86
|
+
### Search
|
|
87
|
+
```bash
|
|
88
|
+
ntn api v1/search query="page title"
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Read page metadata
|
|
92
|
+
```bash
|
|
93
|
+
ntn api v1/pages/{page_id}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Read page as Markdown (agent-friendly)
|
|
97
|
+
```bash
|
|
98
|
+
ntn api v1/pages/{page_id}/markdown
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Read page content as blocks
|
|
102
|
+
```bash
|
|
103
|
+
ntn api v1/blocks/{page_id}/children
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Create page from Markdown
|
|
107
|
+
```bash
|
|
108
|
+
ntn api v1/pages \
|
|
109
|
+
parent[page_id]=xxx \
|
|
110
|
+
properties[title][0][text][content]="Notes from meeting" \
|
|
111
|
+
markdown="# Agenda
|
|
112
|
+
|
|
113
|
+
- Q3 roadmap
|
|
114
|
+
- Hiring"
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Patch a page with Markdown
|
|
118
|
+
```bash
|
|
119
|
+
ntn api v1/pages/{page_id}/markdown -X PATCH \
|
|
120
|
+
markdown="## Update
|
|
121
|
+
|
|
122
|
+
Shipped the prototype."
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Query a database (data source)
|
|
126
|
+
```bash
|
|
127
|
+
ntn api v1/data_sources/{data_source_id}/query -X POST \
|
|
128
|
+
filter[property]=Status filter[select][equals]=Active
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
For complex queries with `sorts`, multiple filter clauses, or compound logic, pipe JSON in:
|
|
132
|
+
```bash
|
|
133
|
+
echo '{"filter": {"property": "Status", "select": {"equals": "Active"}}, "sorts": [{"property": "Date", "direction": "descending"}]}' | \
|
|
134
|
+
ntn api v1/data_sources/{data_source_id}/query -X POST --json -
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### File uploads (one-liner — biggest CLI win)
|
|
138
|
+
```bash
|
|
139
|
+
ntn files create < photo.png
|
|
140
|
+
ntn files create --external-url https://example.com/photo.png
|
|
141
|
+
ntn files list
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Compare to the 3-step HTTP flow (create upload → PUT bytes → reference).
|
|
145
|
+
|
|
146
|
+
### Useful env vars
|
|
147
|
+
| Var | Effect |
|
|
148
|
+
|---|---|
|
|
149
|
+
| `NOTION_API_TOKEN` | Auth token (overrides keychain) — set this to your integration token |
|
|
150
|
+
| `NOTION_KEYRING=0` | File-based creds at `~/.config/notion/auth.json` instead of OS keychain |
|
|
151
|
+
| `NOTION_WORKSPACE_ID` | Skip the workspace picker prompt |
|
|
152
|
+
|
|
153
|
+
## Path B — HTTP + curl (cross-platform, default on Windows)
|
|
154
|
+
|
|
155
|
+
All requests share this pattern:
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
curl -s -X GET "https://api.notion.com/v1/..." \
|
|
159
|
+
-H "Authorization: Bearer $NOTION_API_KEY" \
|
|
160
|
+
-H "Notion-Version: 2025-09-03" \
|
|
161
|
+
-H "Content-Type: application/json"
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
On Windows the `curl` shipped with Windows 10+ works as-is. PowerShell users can also use `Invoke-RestMethod`.
|
|
165
|
+
|
|
166
|
+
### Search
|
|
167
|
+
```bash
|
|
168
|
+
curl -s -X POST "https://api.notion.com/v1/search" \
|
|
169
|
+
-H "Authorization: Bearer $NOTION_API_KEY" \
|
|
170
|
+
-H "Notion-Version: 2025-09-03" \
|
|
171
|
+
-H "Content-Type: application/json" \
|
|
172
|
+
-d '{"query": "page title"}'
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Read page metadata
|
|
176
|
+
```bash
|
|
177
|
+
curl -s "https://api.notion.com/v1/pages/{page_id}" \
|
|
178
|
+
-H "Authorization: Bearer $NOTION_API_KEY" \
|
|
179
|
+
-H "Notion-Version: 2025-09-03"
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Read page as Markdown (agent-friendly)
|
|
183
|
+
|
|
184
|
+
Easier to feed to a model than block JSON.
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
curl -s "https://api.notion.com/v1/pages/{page_id}/markdown" \
|
|
188
|
+
-H "Authorization: Bearer $NOTION_API_KEY" \
|
|
189
|
+
-H "Notion-Version: 2025-09-03"
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Read page content as blocks (when you need structure)
|
|
193
|
+
```bash
|
|
194
|
+
curl -s "https://api.notion.com/v1/blocks/{page_id}/children" \
|
|
195
|
+
-H "Authorization: Bearer $NOTION_API_KEY" \
|
|
196
|
+
-H "Notion-Version: 2025-09-03"
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### Create page from Markdown
|
|
200
|
+
|
|
201
|
+
`POST /v1/pages` accepts a `markdown` body param.
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
curl -s -X POST "https://api.notion.com/v1/pages" \
|
|
205
|
+
-H "Authorization: Bearer $NOTION_API_KEY" \
|
|
206
|
+
-H "Notion-Version: 2025-09-03" \
|
|
207
|
+
-H "Content-Type: application/json" \
|
|
208
|
+
-d '{
|
|
209
|
+
"parent": {"page_id": "xxx"},
|
|
210
|
+
"properties": {"title": [{"text": {"content": "Notes from meeting"}}]},
|
|
211
|
+
"markdown": "# Agenda\n\n- Q3 roadmap\n- Hiring\n\n## Decisions\n- Ship MVP Friday"
|
|
212
|
+
}'
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Patch a page with Markdown
|
|
216
|
+
```bash
|
|
217
|
+
curl -s -X PATCH "https://api.notion.com/v1/pages/{page_id}/markdown" \
|
|
218
|
+
-H "Authorization: Bearer $NOTION_API_KEY" \
|
|
219
|
+
-H "Notion-Version: 2025-09-03" \
|
|
220
|
+
-H "Content-Type: application/json" \
|
|
221
|
+
-d '{"markdown": "## Update\n\nShipped the prototype."}'
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### Create page in a database (typed properties)
|
|
225
|
+
```bash
|
|
226
|
+
curl -s -X POST "https://api.notion.com/v1/pages" \
|
|
227
|
+
-H "Authorization: Bearer $NOTION_API_KEY" \
|
|
228
|
+
-H "Notion-Version: 2025-09-03" \
|
|
229
|
+
-H "Content-Type: application/json" \
|
|
230
|
+
-d '{
|
|
231
|
+
"parent": {"database_id": "xxx"},
|
|
232
|
+
"properties": {
|
|
233
|
+
"Name": {"title": [{"text": {"content": "New Item"}}]},
|
|
234
|
+
"Status": {"select": {"name": "Todo"}}
|
|
235
|
+
}
|
|
236
|
+
}'
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Query a database (data source)
|
|
240
|
+
```bash
|
|
241
|
+
curl -s -X POST "https://api.notion.com/v1/data_sources/{data_source_id}/query" \
|
|
242
|
+
-H "Authorization: Bearer $NOTION_API_KEY" \
|
|
243
|
+
-H "Notion-Version: 2025-09-03" \
|
|
244
|
+
-H "Content-Type: application/json" \
|
|
245
|
+
-d '{
|
|
246
|
+
"filter": {"property": "Status", "select": {"equals": "Active"}},
|
|
247
|
+
"sorts": [{"property": "Date", "direction": "descending"}]
|
|
248
|
+
}'
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
### Create a database
|
|
252
|
+
```bash
|
|
253
|
+
curl -s -X POST "https://api.notion.com/v1/data_sources" \
|
|
254
|
+
-H "Authorization: Bearer $NOTION_API_KEY" \
|
|
255
|
+
-H "Notion-Version: 2025-09-03" \
|
|
256
|
+
-H "Content-Type: application/json" \
|
|
257
|
+
-d '{
|
|
258
|
+
"parent": {"page_id": "xxx"},
|
|
259
|
+
"title": [{"text": {"content": "My Database"}}],
|
|
260
|
+
"properties": {
|
|
261
|
+
"Name": {"title": {}},
|
|
262
|
+
"Status": {"select": {"options": [{"name": "Todo"}, {"name": "Done"}]}},
|
|
263
|
+
"Date": {"date": {}}
|
|
264
|
+
}
|
|
265
|
+
}'
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Update page properties
|
|
269
|
+
```bash
|
|
270
|
+
curl -s -X PATCH "https://api.notion.com/v1/pages/{page_id}" \
|
|
271
|
+
-H "Authorization: Bearer $NOTION_API_KEY" \
|
|
272
|
+
-H "Notion-Version: 2025-09-03" \
|
|
273
|
+
-H "Content-Type: application/json" \
|
|
274
|
+
-d '{"properties": {"Status": {"select": {"name": "Done"}}}}'
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### Append blocks to a page
|
|
278
|
+
```bash
|
|
279
|
+
curl -s -X PATCH "https://api.notion.com/v1/blocks/{page_id}/children" \
|
|
280
|
+
-H "Authorization: Bearer $NOTION_API_KEY" \
|
|
281
|
+
-H "Notion-Version: 2025-09-03" \
|
|
282
|
+
-H "Content-Type: application/json" \
|
|
283
|
+
-d '{
|
|
284
|
+
"children": [
|
|
285
|
+
{"object": "block", "type": "paragraph", "paragraph": {"rich_text": [{"text": {"content": "Hello from Hermes!"}}]}}
|
|
286
|
+
]
|
|
287
|
+
}'
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
### File uploads (3-step flow)
|
|
291
|
+
```bash
|
|
292
|
+
# 1. Create upload
|
|
293
|
+
curl -s -X POST "https://api.notion.com/v1/file_uploads" \
|
|
294
|
+
-H "Authorization: Bearer $NOTION_API_KEY" \
|
|
295
|
+
-H "Notion-Version: 2025-09-03" \
|
|
296
|
+
-H "Content-Type: application/json" \
|
|
297
|
+
-d '{"filename": "photo.png", "content_type": "image/png"}'
|
|
298
|
+
|
|
299
|
+
# 2. PUT bytes to the upload_url returned above
|
|
300
|
+
curl -s -X PUT "{upload_url}" --data-binary @photo.png
|
|
301
|
+
|
|
302
|
+
# 3. Reference {file_upload_id} in a page/block payload
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
## Property Types
|
|
306
|
+
|
|
307
|
+
Common property formats for database items:
|
|
308
|
+
|
|
309
|
+
- **Title:** `{"title": [{"text": {"content": "..."}}]}`
|
|
310
|
+
- **Rich text:** `{"rich_text": [{"text": {"content": "..."}}]}`
|
|
311
|
+
- **Select:** `{"select": {"name": "Option"}}`
|
|
312
|
+
- **Multi-select:** `{"multi_select": [{"name": "A"}, {"name": "B"}]}`
|
|
313
|
+
- **Date:** `{"date": {"start": "2026-01-15", "end": "2026-01-16"}}`
|
|
314
|
+
- **Checkbox:** `{"checkbox": true}`
|
|
315
|
+
- **Number:** `{"number": 42}`
|
|
316
|
+
- **URL:** `{"url": "https://..."}`
|
|
317
|
+
- **Email:** `{"email": "user@example.com"}`
|
|
318
|
+
- **Relation:** `{"relation": [{"id": "page_id"}]}`
|
|
319
|
+
|
|
320
|
+
## API Version 2025-09-03 — Databases vs Data Sources
|
|
321
|
+
|
|
322
|
+
- **Databases became data sources.** Use `/data_sources/` endpoints for queries and retrieval.
|
|
323
|
+
- **Two IDs per database:** `database_id` and `data_source_id`.
|
|
324
|
+
- `database_id` when creating pages: `parent: {"database_id": "..."}`
|
|
325
|
+
- `data_source_id` when querying: `POST /v1/data_sources/{id}/query`
|
|
326
|
+
- Search returns databases as `"object": "data_source"` with the `data_source_id` field.
|
|
327
|
+
|
|
328
|
+
## Notion Workers (advanced, requires `ntn`)
|
|
329
|
+
|
|
330
|
+
Workers are TypeScript programs Notion hosts for you. One worker can expose any combination of:
|
|
331
|
+
- **Syncs** — pull data from external APIs into a Notion database on a schedule (default 30 min).
|
|
332
|
+
- **Tools** — appear as callable tools inside Notion's Custom Agents.
|
|
333
|
+
- **Webhooks** — receive HTTP events from external services (GitHub, Stripe, etc.) and act in Notion.
|
|
334
|
+
|
|
335
|
+
**Plan / platform gating:**
|
|
336
|
+
- CLI works on all plans. **Deploying Workers requires Business or Enterprise.**
|
|
337
|
+
- `ntn` is macOS/Linux only as of May 2026. Windows users need WSL2 or to wait for native support.
|
|
338
|
+
- Free through August 11, 2026; metered on Notion credits after.
|
|
339
|
+
|
|
340
|
+
### Minimal Worker
|
|
341
|
+
|
|
342
|
+
```bash
|
|
343
|
+
ntn workers new my-worker # scaffold
|
|
344
|
+
cd my-worker
|
|
345
|
+
# Edit src/index.ts
|
|
346
|
+
ntn workers deploy --name my-worker
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
`src/index.ts`:
|
|
350
|
+
```typescript
|
|
351
|
+
import { Worker } from "@notionhq/workers";
|
|
352
|
+
|
|
353
|
+
const worker = new Worker();
|
|
354
|
+
export default worker;
|
|
355
|
+
|
|
356
|
+
worker.tool("greet", {
|
|
357
|
+
title: "Greet a User",
|
|
358
|
+
description: "Returns a friendly greeting",
|
|
359
|
+
inputSchema: { type: "object", properties: { name: { type: "string" } }, required: ["name"] },
|
|
360
|
+
execute: async ({ name }) => `Hello, ${name}!`,
|
|
361
|
+
});
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
### Webhook capability
|
|
365
|
+
|
|
366
|
+
```typescript
|
|
367
|
+
worker.webhook("onGithubPush", {
|
|
368
|
+
title: "GitHub Push Handler",
|
|
369
|
+
execute: async (events, { notion }) => {
|
|
370
|
+
for (const event of events) {
|
|
371
|
+
// event.body, event.rawBody (for signature verification), event.headers
|
|
372
|
+
console.log("got delivery", event.deliveryId);
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
});
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
After deploy: `ntn workers webhooks list` shows the URL Notion generates. Treat that URL as a secret — anyone with it can POST events unless you add signature verification.
|
|
379
|
+
|
|
380
|
+
### Worker lifecycle commands
|
|
381
|
+
|
|
382
|
+
```bash
|
|
383
|
+
ntn workers deploy
|
|
384
|
+
ntn workers list
|
|
385
|
+
ntn workers exec <capability-key> -d '{"name": "world"}'
|
|
386
|
+
ntn workers sync trigger <key> # run a sync now
|
|
387
|
+
ntn workers sync pause <key>
|
|
388
|
+
ntn workers env set GITHUB_WEBHOOK_SECRET=...
|
|
389
|
+
ntn workers runs list # recent invocations
|
|
390
|
+
ntn workers runs logs <run-id>
|
|
391
|
+
ntn workers webhooks list
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
When asked to build a Worker, scaffold with `ntn workers new`, write the code in `src/index.ts`, set any secrets with `ntn workers env set`, and deploy. Notion's docs at https://developers.notion.com/workers cover the full API surface.
|
|
395
|
+
|
|
396
|
+
## Notion-Flavored Markdown (used by `/markdown` endpoints)
|
|
397
|
+
|
|
398
|
+
Standard CommonMark plus XML-like tags for Notion-specific blocks. Use **tabs** for indentation.
|
|
399
|
+
|
|
400
|
+
**Blocks beyond CommonMark:**
|
|
401
|
+
```
|
|
402
|
+
<callout icon="🎯" color="blue_bg">
|
|
403
|
+
Ship the MVP by **Friday**.
|
|
404
|
+
</callout>
|
|
405
|
+
|
|
406
|
+
<details color="gray">
|
|
407
|
+
<summary>Toggle title</summary>
|
|
408
|
+
Children indented one tab
|
|
409
|
+
</details>
|
|
410
|
+
|
|
411
|
+
<columns>
|
|
412
|
+
<column>Left side</column>
|
|
413
|
+
<column>Right side</column>
|
|
414
|
+
</columns>
|
|
415
|
+
|
|
416
|
+
<table_of_contents color="gray"/>
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
**Inline:**
|
|
420
|
+
- Mentions: `<mention-user url="..."/>`, `<mention-page url="...">Title</mention-page>`, `<mention-date start="2026-05-15"/>`
|
|
421
|
+
- Underline: `<span underline="true">text</span>`
|
|
422
|
+
- Color: `<span color="blue">text</span>` or block-level `{color="blue"}` on the first line
|
|
423
|
+
- Math: inline `$x^2$`, block `$$ ... $$`
|
|
424
|
+
- Citations: `[^https://example.com]`
|
|
425
|
+
|
|
426
|
+
**Colors:** `gray brown orange yellow green blue purple pink red`, plus `*_bg` variants for backgrounds.
|
|
427
|
+
|
|
428
|
+
Headings 5/6 collapse to H4. Multiple `>` lines render as separate quote blocks — use `<br>` inside a single `>` for multi-line quotes.
|
|
429
|
+
|
|
430
|
+
## Choosing the Right Path
|
|
431
|
+
|
|
432
|
+
| Task | mac / Linux | Windows |
|
|
433
|
+
|---|---|---|
|
|
434
|
+
| Read/write pages, search, query databases | `ntn api ...` | curl |
|
|
435
|
+
| Read a page for an agent to summarize | `ntn api v1/pages/{id}/markdown` | curl `/markdown` endpoint |
|
|
436
|
+
| Upload a file | `ntn files create < file` | 3-step HTTP flow |
|
|
437
|
+
| One-off API exploration | `ntn api ...` | curl |
|
|
438
|
+
| Build a sync / webhook / agent tool hosted by Notion | `ntn workers ...` | WSL2 + `ntn workers ...` |
|
|
439
|
+
|
|
440
|
+
## Notes
|
|
441
|
+
|
|
442
|
+
- Page/database IDs are UUIDs (with or without dashes — both accepted).
|
|
443
|
+
- Rate limit: ~3 requests/second average. The CLI doesn't bypass this.
|
|
444
|
+
- The API cannot set database **view** filters — that's UI-only.
|
|
445
|
+
- Use `"is_inline": true` when creating data sources to embed them in a page.
|
|
446
|
+
- Always pass `-s` to curl to suppress progress bars (cleaner agent output).
|
|
447
|
+
- Pipe JSON through `jq` when reading: `... | jq '.results[0].properties'`.
|
|
448
|
+
- Notion also ships an MCP server now (`Notion MCP`, ~91% more token-efficient on DB ops than the previous version) — wire it via Hermes' MCP support if you want streaming Notion access from inside a session, but the paths above are enough for most one-shot tasks.
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Notion Block Types
|
|
2
|
+
|
|
3
|
+
Reference for creating and reading all common Notion block types via the API.
|
|
4
|
+
|
|
5
|
+
## Creating blocks
|
|
6
|
+
|
|
7
|
+
Use `PATCH /v1/blocks/{page_id}/children` with a `children` array. Each block follows this structure:
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
{"object": "block", "type": "<type>", "<type>": { ... }}
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Paragraph
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{"type": "paragraph", "paragraph": {"rich_text": [{"text": {"content": "Hello world"}}]}}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Headings
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{"type": "heading_1", "heading_1": {"rich_text": [{"text": {"content": "Title"}}]}}
|
|
23
|
+
{"type": "heading_2", "heading_2": {"rich_text": [{"text": {"content": "Section"}}]}}
|
|
24
|
+
{"type": "heading_3", "heading_3": {"rich_text": [{"text": {"content": "Subsection"}}]}}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Bulleted list
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
{"type": "bulleted_list_item", "bulleted_list_item": {"rich_text": [{"text": {"content": "Item"}}]}}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Numbered list
|
|
34
|
+
|
|
35
|
+
```json
|
|
36
|
+
{"type": "numbered_list_item", "numbered_list_item": {"rich_text": [{"text": {"content": "Step 1"}}]}}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### To-do / checkbox
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{"type": "to_do", "to_do": {"rich_text": [{"text": {"content": "Task"}}], "checked": false}}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Quote
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{"type": "quote", "quote": {"rich_text": [{"text": {"content": "Something wise"}}]}}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Callout
|
|
52
|
+
|
|
53
|
+
```json
|
|
54
|
+
{"type": "callout", "callout": {"rich_text": [{"text": {"content": "Important note"}}], "icon": {"emoji": "💡"}}}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Code
|
|
58
|
+
|
|
59
|
+
```json
|
|
60
|
+
{"type": "code", "code": {"rich_text": [{"text": {"content": "print('hello')"}}], "language": "python"}}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Toggle
|
|
64
|
+
|
|
65
|
+
```json
|
|
66
|
+
{"type": "toggle", "toggle": {"rich_text": [{"text": {"content": "Click to expand"}}]}}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Divider
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{"type": "divider", "divider": {}}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Bookmark
|
|
76
|
+
|
|
77
|
+
```json
|
|
78
|
+
{"type": "bookmark", "bookmark": {"url": "https://example.com"}}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Image (external URL)
|
|
82
|
+
|
|
83
|
+
```json
|
|
84
|
+
{"type": "image", "image": {"type": "external", "external": {"url": "https://example.com/photo.png"}}}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Reading blocks
|
|
88
|
+
|
|
89
|
+
When reading blocks from `GET /v1/blocks/{page_id}/children`, each block has a `type` field. Extract readable text like this:
|
|
90
|
+
|
|
91
|
+
| Type | Text location | Extra fields |
|
|
92
|
+
|------|--------------|--------------|
|
|
93
|
+
| `paragraph` | `.paragraph.rich_text` | — |
|
|
94
|
+
| `heading_1/2/3` | `.heading_N.rich_text` | — |
|
|
95
|
+
| `bulleted_list_item` | `.bulleted_list_item.rich_text` | — |
|
|
96
|
+
| `numbered_list_item` | `.numbered_list_item.rich_text` | — |
|
|
97
|
+
| `to_do` | `.to_do.rich_text` | `.to_do.checked` (bool) |
|
|
98
|
+
| `toggle` | `.toggle.rich_text` | has children |
|
|
99
|
+
| `code` | `.code.rich_text` | `.code.language` |
|
|
100
|
+
| `quote` | `.quote.rich_text` | — |
|
|
101
|
+
| `callout` | `.callout.rich_text` | `.callout.icon.emoji` |
|
|
102
|
+
| `divider` | — | — |
|
|
103
|
+
| `image` | `.image.caption` | `.image.file.url` or `.image.external.url` |
|
|
104
|
+
| `bookmark` | `.bookmark.caption` | `.bookmark.url` |
|
|
105
|
+
| `child_page` | — | `.child_page.title` |
|
|
106
|
+
| `child_database` | — | `.child_database.title` |
|
|
107
|
+
|
|
108
|
+
Rich text arrays contain objects with `.plain_text` — concatenate them for readable output.
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
*Contributed by [@dogiladeveloper](https://github.com/dogiladeveloper)*
|