// Advanced memory and knowledge management workflows for Byterover MCP Server. Use when creating implementation reports with timelines, documenting features as PRDs, or syncing project documentation folders with automatic conflict resolution. Extends basic retrieve/store operations with structured workflows for documentation, analysis, and knowledge synthesis.
| name | byterover-notion-sync |
| description | Advanced memory and knowledge management workflows for Byterover MCP Server. Use when creating implementation reports with timelines, documenting features as PRDs, or syncing project documentation folders with automatic conflict resolution. Extends basic retrieve/store operations with structured workflows for documentation, analysis, and knowledge synthesis. |
Bidirectional knowledge synchronization between Byterover memories and Notion documentation. Converts agent-readable memories into team-digestible documentation (reports, PRDs, architecture docs) and imports structured Notion content back into searchable memories.
This skill provides two primary directions for knowledge flow:
Transform Byterover memories into structured, human-readable documentation in Notion:
Convert Notion pages into searchable, agent-optimized memories:
When user requests documentation creation, use this decision tree:
Is the user asking to:
1. Create/Generate documentation in Notion FROM memories?
โ Go to: Memories to Notion Workflow
2. Import/Convert Notion pages TO memories?
โ Go to: Notion to Memories Workflow
3. Unclear which direction?
โ Ask: "Would you like to:
A) Create Notion documentation from your Byterover memories
B) Import Notion content into Byterover memories"
Convert Byterover memories into structured Notion documentation.
Extract from user query:
If format not specified, use the Format Selection Guide to determine appropriate format based on content characteristics.
Call Byterover:byterover-retrieve-knowledge multiple times (3-5 calls) with variations:
Example for "authentication implementation July 10-15":
- Query 1: "authentication implementation July 2025"
- Query 2: "JWT token user login July"
- Query 3: "authentication security decisions"
- Query 4: "user authentication challenges errors"
- Query 5: "auth deployment July 15"
Important: Aggregate results from multiple queries to get comprehensive context.
Based on content analysis and user request, choose format:
Implementation Report โ references/implementation-report-format.md
PRD โ references/prd-format.md
Feature Documentation โ references/feature-documentation-format.md
Technical Architecture โ references/technical-architecture-format.md
See references/format-selection-guide.md for detailed selection criteria.
Follow the selected format template:
User specified destination:
Notion:notion-create-pages with page_id parentNotion:notion-fetch to get data source, then use data_source_id parentNotion:notion-create-pages with teamspace_idUser did not specify:
Default: Create as standalone workspace-level page if user prefers not to specify.
Use Notion:notion-create-pages:
{
"parent": {
"page_id": "..." // or data_source_id or omit for workspace-level
},
"pages": [{
"properties": {
"title": "[Document Title]",
// Add other properties if creating in database
},
"content": "[Structured markdown content from template]"
}]
}
For databases, include appropriate properties based on format:
Return to user:
Example response:
Created Implementation Report: "User Authentication Implementation"
๐ Notion page: https://notion.so/...
Summary:
- Documented 5-day implementation timeline (July 10-15)
- Captured 3 major technical decisions
- Included challenges and resolutions
- Added 8 code examples from memories
Note: Timeline dates were approximate based on memory context. You may want to verify exact dates.
Convert Notion pages into Byterover memories while preserving structure.
Extract from user query:
If user provided URL:
Notion:notion-fetch with the page URL/IDIf user provided topic/search query:
Notion:notion-search to find relevant pagesReview fetched content for:
Follow references/notion-to-memory-guide.md chunking strategy:
Create separate memories for:
Memory size guidelines:
For each planned chunk:
Extract content with surrounding context
Format based on content type:
See references/notion-to-memory-guide.md for templates.
Add metadata:
**Source**: [Page Title] - [Section Name]
**Topic**: [Main topic]
[Content formatted according to type]
**Notion Source**: [Page URL]
Store memory using Byterover:byterover-store-knowledge
For each child page found in tags:
Notion:notion-fetchQuality checks before finalizing:
Return to user:
Example response:
Converted Notion page to memories: "API Authentication Guide"
โ
Created 8 memories:
- 1 overview memory
- 3 procedure memories (getting token, using token, refreshing)
- 2 code example memories
- 1 troubleshooting memory
- 1 API reference memory
Processed 2 nested pages:
- "JWT Token Implementation"
- "OAuth2 Integration"
Total: 8 parent page memories + 12 nested page memories = 20 memories
All memories include source URLs for traceability.
User: "Document the auth implementation from last week"
Workflow:
1. Retrieve memories: "authentication", "auth implementation", "JWT", "user login"
2. Format: Implementation Report with Timeline
3. Structure: Timeline, challenges, solutions, outcomes
4. Create in Notion with properties: Type=Implementation Report, Status=Completed
User: "Create PRD for notification system based on our discussions"
Workflow:
1. Retrieve memories: "notification system", "push notifications", "notification requirements"
2. Format: PRD
3. Structure: User stories, requirements, technical approach
4. Create in Notion with properties: Type=PRD, Status=Draft, Priority=P0
User: "Import our API docs from Notion into memories"
Workflow:
1. Search Notion: "API documentation"
2. Fetch confirmed page
3. Chunk by endpoint/section
4. Format as API Reference memories
5. Store with source URL and context
User: "Document our microservices architecture"
Workflow:
1. Retrieve memories: "microservices", "architecture", "service design", "infrastructure"
2. Format: Technical Architecture
3. Structure: Components, interactions, design decisions
4. Create in Notion with diagrams (using mermaid syntax)
Solution:
Solution:
Solution:
Solution:
Solution:
All reference materials are available in the references/ directory:
User: "Create a report on the payment system implementation we did from Oct 10-15"
Process:
User: "Turn our notification system discussions into a PRD"
Process:
User: "Import the authentication guide from Notion into memories"
Process:
User: "Create architecture doc for our microservices setup"
Process: