@rubytech/create-maxy-code 0.1.22 → 0.1.24
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/dist/__tests__/samba-provision.test.js +202 -0
- package/dist/index.js +127 -73
- package/dist/samba-provision.js +215 -0
- package/dist/uninstall.js +160 -3
- package/package.json +1 -1
- package/payload/platform/plugins/admin/PLUGIN.md +4 -0
- package/payload/platform/plugins/admin/skills/admin-user-management/SKILL.md +47 -0
- package/payload/platform/plugins/admin/skills/commitment-followthrough/SKILL.md +60 -0
- package/payload/platform/plugins/admin/skills/file-presentation/SKILL.md +67 -0
- package/payload/platform/plugins/admin/skills/session-management/SKILL.md +62 -0
- package/payload/platform/plugins/deep-research/.claude-plugin/plugin.json +1 -1
- package/payload/platform/plugins/deep-research/PLUGIN.md +7 -1
- package/payload/platform/plugins/deep-research/recipes/README.md +36 -0
- package/payload/platform/plugins/deep-research/skills/academic-verify/SKILL.md +75 -0
- package/payload/platform/plugins/deep-research/skills/book-mirror/SKILL.md +68 -0
- package/payload/platform/plugins/deep-research/skills/data-research/SKILL.md +108 -0
- package/payload/platform/plugins/deep-research/skills/strategic-reading/SKILL.md +69 -0
- package/payload/platform/plugins/docs/references/deployment.md +23 -2
- package/payload/platform/plugins/email/mcp/dist/lib/imap.d.ts +1 -1
- package/payload/platform/plugins/email/mcp/dist/scripts/email-fetch.d.ts +7 -2
- package/payload/platform/plugins/email/mcp/dist/scripts/email-fetch.d.ts.map +1 -1
- package/payload/platform/plugins/email/mcp/dist/scripts/email-fetch.js +7 -2
- package/payload/platform/plugins/email/mcp/dist/scripts/email-fetch.js.map +1 -1
- package/payload/platform/plugins/email/references/email-reference.md +4 -4
- package/payload/platform/plugins/linkedin-import/skills/linkedin-import/SKILL.md +2 -0
- package/payload/platform/plugins/memory/PLUGIN.md +6 -0
- package/payload/platform/plugins/memory/skills/archive-crawler/SKILL.md +67 -0
- package/payload/platform/plugins/memory/skills/concept-synthesis/SKILL.md +80 -0
- package/payload/platform/plugins/memory/skills/conversation-archive/SKILL.md +2 -0
- package/payload/platform/plugins/memory/skills/document-ingest/SKILL.md +2 -0
- package/payload/platform/plugins/scheduling/PLUGIN.md +4 -1
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.d.ts +7 -3
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.d.ts.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.js +7 -3
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.js.map +1 -1
- package/payload/platform/plugins/scheduling/skills/briefing/SKILL.md +75 -0
- package/payload/platform/plugins/scheduling/skills/daily-prep/SKILL.md +61 -0
- package/payload/platform/plugins/workflows/PLUGIN.md +2 -2
- package/payload/platform/plugins/workflows/skills/workflow-manager/SKILL.md +1 -1
- package/payload/platform/services/claude-session-manager/dist/http-server.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/http-server.js +14 -1
- package/payload/platform/services/claude-session-manager/dist/http-server.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.d.ts +14 -0
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.js +9 -2
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/system-prompt.d.ts +25 -1
- package/payload/platform/services/claude-session-manager/dist/system-prompt.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/system-prompt.js +54 -3
- package/payload/platform/services/claude-session-manager/dist/system-prompt.js.map +1 -1
- package/payload/platform/templates/agents/admin/IDENTITY.md +39 -291
- package/payload/platform/templates/agents/admin/SOUL.md +4 -4
- package/payload/platform/templates/specialists/agents/content-producer.md +24 -69
- package/payload/platform/templates/specialists/agents/database-operator.md +49 -155
- package/payload/platform/templates/specialists/agents/personal-assistant.md +27 -177
- package/payload/platform/templates/specialists/agents/project-manager.md +29 -96
- package/payload/platform/templates/specialists/agents/research-assistant.md +36 -78
- package/payload/premium-plugins/real-agency/agents/compliance.md +14 -0
- package/payload/premium-plugins/real-agency/agents/negotiator.md +22 -0
- package/payload/premium-plugins/real-agency/agents/valuer.md +16 -0
- package/payload/premium-plugins/real-agency/plugins/estate-business/.claude-plugin/plugin.json +1 -1
- package/payload/premium-plugins/real-agency/plugins/estate-business/PLUGIN.md +29 -13
- package/payload/premium-plugins/real-agency/plugins/estate-business/skills/commission-calculator/SKILL.md +40 -0
- package/payload/premium-plugins/real-agency/plugins/estate-business/skills/month-end-close/SKILL.md +69 -0
- package/payload/premium-plugins/real-agency/plugins/estate-business/skills/payment-batch-stager/SKILL.md +42 -0
- package/payload/premium-plugins/real-agency/plugins/estate-business/skills/period-reconciler/SKILL.md +42 -0
- package/payload/premium-plugins/real-agency/plugins/estate-sales/.claude-plugin/plugin.json +1 -1
- package/payload/premium-plugins/real-agency/plugins/estate-sales/PLUGIN.md +27 -13
- package/payload/premium-plugins/real-agency/plugins/estate-sales/skills/chase-progression/SKILL.md +107 -0
- package/payload/premium-plugins/real-agency/plugins/estate-sales/skills/risk-scorer/SKILL.md +42 -0
- package/payload/premium-plugins/real-agency/plugins/leads/.claude-plugin/plugin.json +1 -1
- package/payload/premium-plugins/real-agency/plugins/leads/PLUGIN.md +24 -10
- package/payload/premium-plugins/real-agency/plugins/leads/skills/chain-progression-tracker/SKILL.md +51 -0
- package/payload/premium-plugins/real-agency/plugins/leads/skills/diary-builder/SKILL.md +38 -0
- package/payload/premium-plugins/real-agency/plugins/leads/skills/enquiry-triage/SKILL.md +36 -0
- package/payload/premium-plugins/real-agency/plugins/leads/skills/morning-round/SKILL.md +72 -0
- package/payload/premium-plugins/real-agency/plugins/listings/.claude-plugin/plugin.json +1 -1
- package/payload/premium-plugins/real-agency/plugins/listings/PLUGIN.md +43 -12
- package/payload/premium-plugins/real-agency/plugins/listings/skills/comparable-finder/SKILL.md +52 -0
- package/payload/premium-plugins/real-agency/plugins/listings/skills/epc-checker/SKILL.md +38 -0
- package/payload/premium-plugins/real-agency/plugins/listings/skills/listing-copy-writer/SKILL.md +55 -0
- package/payload/premium-plugins/real-agency/plugins/listings/skills/local-market-stats/SKILL.md +33 -0
- package/payload/premium-plugins/real-agency/plugins/listings/skills/new-instruction/SKILL.md +78 -0
- package/payload/premium-plugins/real-agency/plugins/listings/skills/particulars-builder/SKILL.md +48 -0
- package/payload/premium-plugins/real-agency/plugins/listings/skills/portal-launch-scheduler/SKILL.md +49 -0
- package/payload/premium-plugins/real-agency/plugins/listings/skills/pricing-scenario-builder/SKILL.md +35 -0
- package/payload/premium-plugins/real-agency/plugins/listings/skills/supplier-booker/SKILL.md +39 -0
- package/payload/premium-plugins/real-agency/plugins/listings/skills/talk-track-composer/SKILL.md +36 -0
- package/payload/premium-plugins/real-agency/plugins/listings/skills/terms-of-business-drafter/SKILL.md +54 -0
- package/payload/premium-plugins/real-agency/plugins/listings/skills/valuation-prep/SKILL.md +69 -0
- package/payload/premium-plugins/real-agency/plugins/loop/PLUGIN.md +20 -0
- package/payload/premium-plugins/real-agency/plugins/loop/skills/compliance-flag-checker/SKILL.md +53 -0
- package/payload/premium-plugins/real-agency/plugins/loop/skills/priority-ranker/SKILL.md +40 -0
- package/payload/premium-plugins/real-agency/plugins/loop/skills/tone-matched-drafter/SKILL.md +53 -0
- package/payload/premium-plugins/real-agency/plugins/loop/skills/variance-narrator/SKILL.md +50 -0
- package/payload/premium-plugins/real-agency/plugins/loop/skills/vendor-research/SKILL.md +54 -0
- package/payload/server/public/assets/{Checkbox-B79fVxpA.js → Checkbox-D1OQD43b.js} +1 -1
- package/payload/server/public/assets/admin-czNBxWor.js +216 -0
- package/payload/server/public/assets/{architectureDiagram-Q4EWVU46-D8e59YJ0.js → architectureDiagram-Q4EWVU46-BcwgT80u.js} +1 -1
- package/payload/server/public/assets/{blockDiagram-DXYQGD6D-CxaDkc0A.js → blockDiagram-DXYQGD6D-BMSyZUQA.js} +1 -1
- package/payload/server/public/assets/{brand-Cg9t5U6J.css → brand-2cku8WFs.css} +1 -1
- package/payload/server/public/assets/{brand-jT16ErmC.js → brand-CSQuxS9w.js} +1 -1
- package/payload/server/public/assets/{c4Diagram-AHTNJAMY-D0PAvq-q.js → c4Diagram-AHTNJAMY-DPRGY1jJ.js} +1 -1
- package/payload/server/public/assets/channel-fxEghWew.js +1 -0
- package/payload/server/public/assets/{chunk-336JU56O-B-CXn-Et.js → chunk-336JU56O-B7oQ3g1c.js} +2 -2
- package/payload/server/public/assets/{chunk-426QAEUC-BLzCQHKA.js → chunk-426QAEUC-C1P0yFXw.js} +1 -1
- package/payload/server/public/assets/{chunk-4TB4RGXK-Bql1UwLT.js → chunk-4TB4RGXK-LI7kOJd0.js} +1 -1
- package/payload/server/public/assets/{chunk-5FUZZQ4R-CQK7jBtX.js → chunk-5FUZZQ4R-CXQRGTQE.js} +1 -1
- package/payload/server/public/assets/{chunk-5PVQY5BW-AJc1-lvX.js → chunk-5PVQY5BW-NSyzpXRy.js} +1 -1
- package/payload/server/public/assets/{chunk-EDXVE4YY-Cf3E3THL.js → chunk-EDXVE4YY-voNwxbDs.js} +1 -1
- package/payload/server/public/assets/{chunk-ENJZ2VHE-BNx6z6hJ.js → chunk-ENJZ2VHE-CMEMPzYY.js} +1 -1
- package/payload/server/public/assets/{chunk-ICPOFSXX-DBUEFs2-.js → chunk-ICPOFSXX-hEbwu-pe.js} +1 -1
- package/payload/server/public/assets/{chunk-OYMX7WX6-Csx2p315.js → chunk-OYMX7WX6-DxskDrLs.js} +1 -1
- package/payload/server/public/assets/{chunk-U2HBQHQK-x17h7UYW.js → chunk-U2HBQHQK-D7TKgUo0.js} +1 -1
- package/payload/server/public/assets/{chunk-X2U36JSP--Lkl5yjV.js → chunk-X2U36JSP-BvPUQEPm.js} +1 -1
- package/payload/server/public/assets/{chunk-YZCP3GAM-C4GsNX8A.js → chunk-YZCP3GAM-BY-RWQUW.js} +1 -1
- package/payload/server/public/assets/{chunk-ZZ45TVLE-YrhUPmZc.js → chunk-ZZ45TVLE-DZvOYDY6.js} +1 -1
- package/payload/server/public/assets/classDiagram-6PBFFD2Q-BsWzGW0N.js +1 -0
- package/payload/server/public/assets/classDiagram-v2-HSJHXN6E-BGVa3h90.js +1 -0
- package/payload/server/public/assets/clone-Khvocke2.js +1 -0
- package/payload/server/public/assets/{dagre-YVALPG-M.js → dagre-Bt-fpckL.js} +1 -1
- package/payload/server/public/assets/{dagre-KV5264BT-D6JU6DW_.js → dagre-KV5264BT-Cnj0mUZl.js} +1 -1
- package/payload/server/public/assets/data-DBd-Buhp.js +1 -0
- package/payload/server/public/assets/device-url-actions-Bjz3Xzbm.js +33 -0
- package/payload/server/public/assets/{diagram-5BDNPKRD-yeO06N5Q.js → diagram-5BDNPKRD-DjLzvOlx.js} +1 -1
- package/payload/server/public/assets/{diagram-G4DWMVQ6-DzbVT_BC.js → diagram-G4DWMVQ6-DTfuRd-T.js} +1 -1
- package/payload/server/public/assets/{diagram-MMDJMWI5-DwYO5VZF.js → diagram-MMDJMWI5-BaL2mCnx.js} +1 -1
- package/payload/server/public/assets/{diagram-TYMM5635-BLUcdkDS.js → diagram-TYMM5635-C5InWY5R.js} +1 -1
- package/payload/server/public/assets/{erDiagram-SMLLAGMA-BiEUB19e.js → erDiagram-SMLLAGMA-DO7BXTpn.js} +1 -1
- package/payload/server/public/assets/{flowDiagram-DWJPFMVM-TILIKxOp.js → flowDiagram-DWJPFMVM-DDdAKfLf.js} +1 -1
- package/payload/server/public/assets/{ganttDiagram-T4ZO3ILL-B7cGzYqT.js → ganttDiagram-T4ZO3ILL-arJD8Utm.js} +1 -1
- package/payload/server/public/assets/{gitGraphDiagram-UUTBAWPF-DFOxN5bc.js → gitGraphDiagram-UUTBAWPF-C55GH-OS.js} +1 -1
- package/payload/server/public/assets/graph-DUtVdnZ6.js +1 -0
- package/payload/server/public/assets/graph-labels-Dxfue-fP.js +1 -0
- package/payload/server/public/assets/{graphlib-BBibixaA.js → graphlib-DL9PM7Ex.js} +1 -1
- package/payload/server/public/assets/{infoDiagram-42DDH7IO-nH2azhY8.js → infoDiagram-42DDH7IO-BMSGqUbG.js} +1 -1
- package/payload/server/public/assets/{ishikawaDiagram-UXIWVN3A-WD3tfqFi.js → ishikawaDiagram-UXIWVN3A-Dw6BZ6BG.js} +1 -1
- package/payload/server/public/assets/{journeyDiagram-VCZTEJTY-LUkaVSqw.js → journeyDiagram-VCZTEJTY-DrywUGXw.js} +1 -1
- package/payload/server/public/assets/{kanban-definition-6JOO6SKY-Dk-lYgpJ.js → kanban-definition-6JOO6SKY-DuwtVBBc.js} +1 -1
- package/payload/server/public/assets/{line-BDv6CEnp.js → line-JAksyKHj.js} +1 -1
- package/payload/server/public/assets/{mermaid-parser.core-D2XsSGgp.js → mermaid-parser.core-BMq-ApBW.js} +1 -1
- package/payload/server/public/assets/{mermaid.core-FyN-UmQV.js → mermaid.core-tH4oX0Kh.js} +3 -3
- package/payload/server/public/assets/{mindmap-definition-QFDTVHPH-BRAHEUIS.js → mindmap-definition-QFDTVHPH-D1OiiJga.js} +1 -1
- package/payload/server/public/assets/page-BZpoS7iR.js +1 -0
- package/payload/server/public/assets/{page-CTbSJbem.js → page-CkvBvezS.js} +2 -2
- package/payload/server/public/assets/{pieDiagram-DEJITSTG-BqibVC2X.js → pieDiagram-DEJITSTG-Ckwm69PW.js} +1 -1
- package/payload/server/public/assets/{public-BDUZIabs.js → public-C-dTMgXu.js} +5 -5
- package/payload/server/public/assets/{quadrantDiagram-34T5L4WZ-DNuExGnr.js → quadrantDiagram-34T5L4WZ-COw3yZ1j.js} +1 -1
- package/payload/server/public/assets/{requirementDiagram-MS252O5E-5JXTdydh.js → requirementDiagram-MS252O5E-DqGzM4K-.js} +1 -1
- package/payload/server/public/assets/{sankeyDiagram-XADWPNL6-B_8rhvcR.js → sankeyDiagram-XADWPNL6-D-l1c_Pl.js} +1 -1
- package/payload/server/public/assets/{sequenceDiagram-FGHM5R23-BznkBgjf.js → sequenceDiagram-FGHM5R23-BeIi0DtJ.js} +1 -1
- package/payload/server/public/assets/{stateDiagram-FHFEXIEX-BeAZOQfs.js → stateDiagram-FHFEXIEX-C-jgegLk.js} +1 -1
- package/payload/server/public/assets/stateDiagram-v2-QKLJ7IA2-BaMs8Znv.js +1 -0
- package/payload/server/public/assets/{timeline-definition-GMOUNBTQ-CpJAs-Vw.js → timeline-definition-GMOUNBTQ-BGFKkYmi.js} +1 -1
- package/payload/server/public/assets/{vennDiagram-DHZGUBPP-BzH3ItkG.js → vennDiagram-DHZGUBPP-5NuIhJLS.js} +1 -1
- package/payload/server/public/assets/{wardleyDiagram-NUSXRM2D-ax9AgwA1.js → wardleyDiagram-NUSXRM2D-Be9ytVut.js} +1 -1
- package/payload/server/public/assets/{xychartDiagram-5P7HB3ND-CV6vt_tW.js → xychartDiagram-5P7HB3ND-DCyHg41R.js} +1 -1
- package/payload/server/public/data.html +5 -5
- package/payload/server/public/graph.html +6 -6
- package/payload/server/public/index.html +8 -8
- package/payload/server/public/public.html +5 -5
- package/payload/server/server.js +62 -101
- package/payload/server/public/assets/admin-CXLuiXFU.js +0 -216
- package/payload/server/public/assets/channel-BU_eIdRB.js +0 -1
- package/payload/server/public/assets/classDiagram-6PBFFD2Q-DMpM1d2b.js +0 -1
- package/payload/server/public/assets/classDiagram-v2-HSJHXN6E-D_XbuPVj.js +0 -1
- package/payload/server/public/assets/clone-BBT00JUO.js +0 -1
- package/payload/server/public/assets/data-BdwO_kv-.js +0 -1
- package/payload/server/public/assets/device-url-actions-C8dD0ydz.js +0 -33
- package/payload/server/public/assets/graph-DpgsOhUZ.js +0 -1
- package/payload/server/public/assets/graph-labels-DJ717p00.js +0 -1
- package/payload/server/public/assets/page-BWHYktEF.js +0 -1
- package/payload/server/public/assets/stateDiagram-v2-QKLJ7IA2-iVlXKz7S.js +0 -1
|
@@ -5,6 +5,8 @@ description: Import a LinkedIn Basic Data Export into a {{productName}} Neo4j gr
|
|
|
5
5
|
|
|
6
6
|
# LinkedIn Import
|
|
7
7
|
|
|
8
|
+
**Default parent.** Every `:Person`, `:Organization`, `:Position`, `:Skill`, and `:Message` node this skill writes is anchored to the archive-owner `:Person` (the user whose LinkedIn account produced the export). That Person is itself anchored to the account's `:LocalBusiness`. The archive owner's elementId is the first thing this skill confirms — without it, every row would land as an orphan and the importer refuses to start. Cross-hierarchy edges (`CONNECTED_ON_LINKEDIN`, `WORKS_FOR`, `HAS_SKILL`) describe the relationships; the containment edge from the archive owner is what makes the rows reachable.
|
|
9
|
+
|
|
8
10
|
Ingests a LinkedIn Basic Data Export (unzipped directory of CSVs + subdirs) into a {{productName}} Neo4j graph. Every edge written corresponds to a real relationship expressed by the data — not a convenience anchor.
|
|
9
11
|
|
|
10
12
|
## Archive-owner confirmation (mandatory first step)
|
|
@@ -39,6 +39,8 @@ skills:
|
|
|
39
39
|
- skills/document-ingest/SKILL.md
|
|
40
40
|
- skills/conversation-archive/SKILL.md
|
|
41
41
|
- skills/conversation-archive-enrich/SKILL.md
|
|
42
|
+
- skills/concept-synthesis/SKILL.md
|
|
43
|
+
- skills/archive-crawler/SKILL.md
|
|
42
44
|
always: true
|
|
43
45
|
embed: false
|
|
44
46
|
---
|
|
@@ -61,6 +63,10 @@ Ranking is ephemeral and contextual — nothing is written back to the graph. Wh
|
|
|
61
63
|
|
|
62
64
|
Use `expandHops: 0` for listing and inventory queries (returns node properties only — compact output). Use `expandHops: 1` (default) for deep context queries where related nodes add value. Queries that combine a high `limit` with `expandHops: 1` on node types that have many relationships (e.g. KnowledgeDocument with HAS_SECTION) are most likely to trigger trimming.
|
|
63
65
|
|
|
66
|
+
## Hierarchy
|
|
67
|
+
|
|
68
|
+
Every node in the graph sits under a parent in the canonical chain `LocalBusiness → Project → Task | Person | Organisation | KnowledgeDocument`. `memory-write` and `memory-ingest` require the caller to name the parent (an `elementId` for the resolved parent node) and refuse the write if the parent does not exist or is at the wrong level of the chain. Specialists author the parent resolution — typically via `memory-search` against the brief — before invoking the write. Cross-hierarchy edges (a `:Person` linked to several Projects, a `:KnowledgeDocument` about several Organisations) are normal and are added as separate `memory-write` calls; the hierarchy rule governs the containment edge that anchors the node, not the additional cross-edges that describe what the node relates to.
|
|
69
|
+
|
|
64
70
|
## Anchoring writes to provenance — `producedByTaskId` and the conversation env-stamp
|
|
65
71
|
|
|
66
72
|
Writes targeting `:Person`, `:UserProfile`, `:AdminUser`, `:Organization`, `:LocalBusiness`, `:CloudflareTunnel`, or `:CloudflareHostname` require an inbound `:PRODUCED` edge whose source is one of `:Task`, `:Conversation`, or `:Message` (deterministic bootstrap paths run as `createdBy.agent === 'system'` and are exempt). Two surfaces feed the gate:
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: archive-crawler
|
|
3
|
+
description: "Walks a folder of files the owner has accumulated over time (Downloads, Dropbox, an old archive), classifies each candidate, presents a filtered list for confirmation, and routes the approved set to the right ingest skill. Triggers when the owner says 'scan my Downloads for X', 'mine my old files', 'crawl my Dropbox archive'. Compresses at ingest; never writes without explicit operator filter selection."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Archive crawler
|
|
7
|
+
|
|
8
|
+
This skill imports volume in a controlled way. It walks a folder, classifies each file, asks the owner to filter, and routes only the approved set through the existing ingest skills. It does not invent a new write path; it sits in front of `document-ingest` and `conversation-archive` and gates them.
|
|
9
|
+
|
|
10
|
+
**Default parent.** This skill performs no graph writes itself. The downstream ingest skill it dispatches to (`document-ingest`, `conversation-archive`, or a per-source archive importer) is responsible for naming the parent in the canonical hierarchy `LocalBusiness → Project → KnowledgeDocument | ConversationArchive`. The operator's filter selection answers the parent question implicitly — "scan my Downloads for pricing notes" names the topical scope that the downstream skill resolves into a `:Project` anchor before any write.
|
|
11
|
+
|
|
12
|
+
## When to run
|
|
13
|
+
|
|
14
|
+
Run when the owner names a folder and a kind of content to find inside it. Examples:
|
|
15
|
+
|
|
16
|
+
- "scan my Downloads for articles from this year"
|
|
17
|
+
- "mine my Dropbox archive for old meeting notes"
|
|
18
|
+
- "find every PDF in this folder about pricing"
|
|
19
|
+
- "crawl this folder and import the conversations"
|
|
20
|
+
|
|
21
|
+
Do not run when the owner uploads a single file (use `document-ingest` directly) or a single archive in a known format (use the matching per-source skill).
|
|
22
|
+
|
|
23
|
+
## Required inputs
|
|
24
|
+
|
|
25
|
+
| Input | Meaning |
|
|
26
|
+
|---|---|
|
|
27
|
+
| `folder` | Absolute path to the folder to walk. Must be inside `$ACCOUNT_DIR` or a path the owner explicitly authorised this turn. |
|
|
28
|
+
| `filter` | One or more of: file type (extension), date range, keyword in filename, size band. At least one filter is required. |
|
|
29
|
+
| `scope` | `admin` or `public`. Where the resulting graph nodes live. |
|
|
30
|
+
|
|
31
|
+
If any required input is missing, call `AskUserQuestion` for the missing one. Never guess.
|
|
32
|
+
|
|
33
|
+
## Method
|
|
34
|
+
|
|
35
|
+
1. **Walk the folder.** Use `Bash` with `find` against the named folder, applying the filter as `find` predicates (`-type f`, `-name`, `-newer`, `-size`). Cap the candidate count at 1000 per run. If the count exceeds the cap, surface the count and ask the owner to tighten the filter.
|
|
36
|
+
2. **Classify each candidate.** Inspect the file's extension and first kilobyte:
|
|
37
|
+
- Narrative document (`.pdf`, `.md`, `.txt`, `.docx`, `.html`, `.rtf`) → routes to `document-ingest`.
|
|
38
|
+
- Conversation transcript (`_chat.txt` from WhatsApp, `.json` from Telegram export, `.vtt` from Zoom, similar) → routes to `conversation-archive`.
|
|
39
|
+
- Flat dataset (`.csv` matching a known per-source archive shape such as LinkedIn `Connections.csv`) → routes to the named per-source skill.
|
|
40
|
+
- Unknown → set aside under "needs operator decision".
|
|
41
|
+
3. **Present the candidate list.** Group by classification. Show the count per group and a sample of three file names per group. Ask the owner to confirm each group with **wire all**, **wire some** (the owner names which), or **skip group**.
|
|
42
|
+
4. **Route the approved set.** For each approved group, invoke the matching ingest skill, passing the file path and the operator-confirmed anchor (the document subject for documents, the archive owner for conversations). The ingest skill is the only path that touches the graph; this skill never writes directly.
|
|
43
|
+
|
|
44
|
+
## What it does not do
|
|
45
|
+
|
|
46
|
+
- It does not classify file content beyond extension and first kilobyte. The downstream ingest skill (`memory-classify` inside `document-ingest`) is the classifier. This skill is the gate.
|
|
47
|
+
- It does not compress files. It selects which files to ingest, and downstream `memory-write` writes the compressed representation.
|
|
48
|
+
- It does not flatten subdirectories silently. If the folder has subdirectories, list them and ask whether to recurse.
|
|
49
|
+
- It does not create placeholder graph nodes for files in the "needs operator decision" group.
|
|
50
|
+
|
|
51
|
+
## Output to the operator
|
|
52
|
+
|
|
53
|
+
A short report:
|
|
54
|
+
|
|
55
|
+
- `<N>` candidate files found across `<G>` classifications.
|
|
56
|
+
- `<K>` approved, `<S>` skipped, `<U>` left as "needs operator decision".
|
|
57
|
+
- For each approved group: the count routed to the named downstream skill, with the count of writes the downstream skill returned.
|
|
58
|
+
|
|
59
|
+
## Failure modes
|
|
60
|
+
|
|
61
|
+
- **Folder does not exist or is outside `$ACCOUNT_DIR`.** Refuse with the path and the reason. Do not walk.
|
|
62
|
+
- **Filter matches zero files.** Report the filter and ask whether to widen it.
|
|
63
|
+
- **Downstream ingest skill fails mid-batch.** Stop. Report which files completed and which did not. Do not retry inline.
|
|
64
|
+
|
|
65
|
+
## Why the filter is mandatory
|
|
66
|
+
|
|
67
|
+
A folder of 30,000 accumulated files exceeds the operator's ability to review case-by-case. The filter is not a convenience; it is the precondition for ingest. Without it, the owner cannot meaningfully consent to what enters the graph, and the graph becomes a landfill. The compress-at-ingest doctrine is enforced at this skill, not in `memory-write`: if a file gets here without an operator-confirmed filter, the skill refuses.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: concept-synthesis
|
|
3
|
+
description: "Walks the knowledge documents already in the graph, clusters them by topic, and proposes Concept nodes that connect related material. Triggers when the owner says 'synthesise my notes', 'find patterns across what I've stored', 'build a concept map', or 'deduplicate my knowledge'. The owner approves each cluster before any write."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Concept synthesis
|
|
7
|
+
|
|
8
|
+
This skill turns a pile of saved documents into a usable concept map. It reads what the graph already holds, groups related material, names the groups, and connects them back to their sources. It writes nothing without the owner's approval, and it never auto-merges across groups.
|
|
9
|
+
|
|
10
|
+
**Default parent.** Every `:Concept` node this skill creates is anchored to a `:Project` (when the scope is a project) or to the account's `:LocalBusiness` (when the scope is a topic phrase or date range that crosses projects). The parent is named at proposal time and shown in the per-cluster row the operator approves — a Concept with no project or LocalBusiness parent is a write defect, never an option.
|
|
11
|
+
|
|
12
|
+
## When to run
|
|
13
|
+
|
|
14
|
+
Run when the owner asks to make sense of accumulated knowledge: "synthesise my notes", "find patterns across what I've stored", "build a concept map", "deduplicate my knowledge", "what themes are in my graph". Do not run as a routine maintenance pass. A concept map ages quickly and is most useful when the owner has a specific reason to ask.
|
|
15
|
+
|
|
16
|
+
## Inputs
|
|
17
|
+
|
|
18
|
+
The owner names the scope. Three shapes:
|
|
19
|
+
|
|
20
|
+
1. **A LocalBusiness or Project.** Cluster every `:KnowledgeDocument` linked to that entity.
|
|
21
|
+
2. **A topic phrase** ("everything I've saved about pricing"). Cluster the `:KnowledgeDocument` and `:Section` nodes that match the phrase by vector similarity.
|
|
22
|
+
3. **Date range.** Cluster every document ingested in the given window.
|
|
23
|
+
|
|
24
|
+
If the owner names none of these, ask one question: "Which scope: a project, a topic phrase, or a date range?".
|
|
25
|
+
|
|
26
|
+
## What it produces
|
|
27
|
+
|
|
28
|
+
For each cluster the skill produces a proposal:
|
|
29
|
+
|
|
30
|
+
- A name for the cluster (one short noun phrase, owner-domain language).
|
|
31
|
+
- A one-sentence description of what the documents in the cluster share.
|
|
32
|
+
- The list of source `:KnowledgeDocument` and `:Section` nodes (element IDs and human-readable titles).
|
|
33
|
+
- The proposed `:Concept` node properties and the `:RELATES_TO` edges from `:Concept` back to each source.
|
|
34
|
+
|
|
35
|
+
Present one row per cluster, in a numbered list. The owner picks one of three actions per row: **wire** (write the `:Concept` and the edges), **skip** (drop the proposal), or **rename** (the owner gives a different name; the skill re-proposes).
|
|
36
|
+
|
|
37
|
+
## Method
|
|
38
|
+
|
|
39
|
+
1. **Pull the candidate set.** Call `memory-search` for the topic phrase, or `mcp__graph__maxy-graph-read_neo4j_cypher` for a project or date range. Bound the set: never cluster more than 500 nodes in one run. If the set is larger, ask the owner to narrow.
|
|
40
|
+
2. **Cluster by embedding similarity.** Use the existing embedding on each node. Group nodes whose pairwise similarity is above the cluster threshold (default 0.78). Clusters of one are surfaced separately as "isolated" rows the owner can wire as standalone concepts or skip.
|
|
41
|
+
3. **Name each cluster.** Compose a one-line name from the highest-weighted terms shared across the cluster's sections. Never use a name that is just a copy of a document title; the name should generalise the cluster.
|
|
42
|
+
4. **Present proposals.** One numbered row per cluster, in the format above.
|
|
43
|
+
5. **Wait for owner decisions.** Apply each decision one at a time. Never auto-merge two clusters into one even if their names look similar; if the owner wants two clusters merged, they say so.
|
|
44
|
+
|
|
45
|
+
## Writes
|
|
46
|
+
|
|
47
|
+
For each approved cluster:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
memory-write {
|
|
51
|
+
label: "Concept",
|
|
52
|
+
properties: { name, description, accountId, createdByAgent: "concept-synthesis", createdAt: datetime() },
|
|
53
|
+
parent: { elementId: <project-or-localbusiness-elementId>, edgeType: "PART_OF" },
|
|
54
|
+
relationships: [
|
|
55
|
+
{ type: "RELATES_TO", direction: "out", target: <source elementId> }
|
|
56
|
+
... one per source
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
If an approved cluster matches an existing `:Concept` node by name, ask the owner whether to merge into it or create a new one. Never silently overwrite.
|
|
62
|
+
|
|
63
|
+
## Output to the operator
|
|
64
|
+
|
|
65
|
+
Return a short report:
|
|
66
|
+
|
|
67
|
+
- `<N>` clusters proposed, `<K>` approved, `<S>` skipped, `<R>` renamed.
|
|
68
|
+
- For each approved cluster: the cluster name, the count of `:RELATES_TO` edges written, and the new `:Concept` element ID.
|
|
69
|
+
- Any source nodes that could not be wired (e.g. because the source was deleted between proposal and approval), with the reason.
|
|
70
|
+
|
|
71
|
+
## Failure modes
|
|
72
|
+
|
|
73
|
+
- **Candidate set too large.** Tell the owner the count and ask to narrow the scope. Do not proceed.
|
|
74
|
+
- **Embedding missing on a node.** Skip the node, list it in the report under "no embedding". Do not synthesise an embedding inline.
|
|
75
|
+
- **Owner approves the same cluster name twice in one run.** Treat the second as a merge request for the first; confirm.
|
|
76
|
+
- **`memory-write` failure mid-batch.** Stop. Report which clusters wired before the failure and which did not.
|
|
77
|
+
|
|
78
|
+
## Owner discipline
|
|
79
|
+
|
|
80
|
+
The owner approves each cluster, not a batch. Approve-all is not a supported action. The single-row-at-a-time gate is the only path because the operator's intent is to curate the concept layer of the graph, and curation cannot be automated.
|
|
@@ -5,6 +5,8 @@ description: Source-agnostic ingest for conversation transcripts. One skill for
|
|
|
5
5
|
|
|
6
6
|
# Conversation Archive — source-agnostic transcript ingestion
|
|
7
7
|
|
|
8
|
+
**Default parent.** Every `:ConversationArchive` is anchored to the operator-confirmed owner (`:AdminUser` for the account owner, `:Person` for a third-party archive). The owner's elementId is supplied to the bash entry as `--owner-element-id` and becomes the containment parent for the archive node. Per-session `:Section:Conversation` chunks attach to the archive via `:PART_OF`. Participant cross-edges from the archive to each distinct sender (`:Person` / `:AdminUser`) are added alongside the containment edge — they describe the conversation, they do not substitute for the parent.
|
|
9
|
+
|
|
8
10
|
One skill, one bash entry, one writer. The pipeline is identical for every conversation source. The only source-specific code is the per-source normaliser (a pluggable function under [`platform/plugins/memory/mcp/src/lib/conversation-normalisers/`](../../mcp/src/lib/conversation-normalisers/)). New sources = a new normaliser file + an enum entry, never a new skill.
|
|
9
11
|
|
|
10
12
|
## Confirmed sources (Phase 0)
|
|
@@ -5,6 +5,8 @@ description: Universal document ingestion — maps any unstructured document (PD
|
|
|
5
5
|
|
|
6
6
|
# Document Ingest
|
|
7
7
|
|
|
8
|
+
**Default parent.** Every `:KnowledgeDocument` (document mode) and `:ConversationArchive` (chat mode) is anchored to a `:Project` when the dispatch brief names one, or to the account's `:LocalBusiness` when the document is account-scoped rather than project-scoped. The admin agent's brief carries the parent elementId; `memory-ingest` refuses the write if the parent is missing or does not exist. Brief-named entity wiring (Persons, Organizations, Tasks) creates cross-hierarchy edges from the document — never substitutes for the containment parent.
|
|
9
|
+
|
|
8
10
|
Ingests any unstructured input — documents (PDF, text, transcript, web page) and chat archives (WhatsApp `_chat.txt`) — into the graph. Every classified section becomes one `:Section` node. **Two parent shapes, one pipeline:**
|
|
9
11
|
|
|
10
12
|
| Input shape | Parent label | Section secondary label | Identity property | mode |
|
|
@@ -10,6 +10,9 @@ tools:
|
|
|
10
10
|
- schedule-export-ics
|
|
11
11
|
- schedule-import-ics
|
|
12
12
|
- time-resolve
|
|
13
|
+
skills:
|
|
14
|
+
- skills/daily-prep/SKILL.md
|
|
15
|
+
- skills/briefing/SKILL.md
|
|
13
16
|
always: false
|
|
14
17
|
embed: false
|
|
15
18
|
metadata: {"platform":{}}
|
|
@@ -49,7 +52,7 @@ For recurring events, `schedule-update` with `skipNext: true` advances `nextRun`
|
|
|
49
52
|
|
|
50
53
|
## Event actions
|
|
51
54
|
|
|
52
|
-
Events can carry an automated action that fires when the event's time arrives. The
|
|
55
|
+
Events can carry an automated action that fires when the event's time arrives. The dispatcher binary that reads due events and spawns the target plugin's MCP server lives at `scheduling/mcp/dist/scripts/check-due-events.js`. As of Task 039 it is **not currently scheduled on any install**: the legacy crontab writer was removed and migration of the dispatcher to Desktop scheduled tasks (the canonical dispatch surface — see `maxy-code-prd.md` §Scheduled tasks) is tracked separately. Until that landing, `action:` payloads are stored on the event and only execute when an operator invokes the dispatcher manually.
|
|
53
56
|
|
|
54
57
|
To create an event with an action, pass the `action` parameter to `schedule-event`:
|
|
55
58
|
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Dispatcher script: check-due-events
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Standalone dispatcher. Not fired automatically on a running install — the
|
|
5
|
+
* installer-registered cron entry was removed in Task 039 and the replacement
|
|
6
|
+
* surface (Claude Code's desktop scheduled tasks, per maxy-code-prd.md
|
|
7
|
+
* §Scheduled tasks) is not yet wired. Until that lands, this binary runs only
|
|
8
|
+
* when invoked manually or by a future scheduled-task dispatcher. Finds events
|
|
9
|
+
* whose time has arrived and marks them appropriately:
|
|
6
10
|
*
|
|
7
11
|
* - One-time events: set eventStatus = 'due'
|
|
8
12
|
* - Recurring events: set lastTriggered, advance nextRun, append trigger note
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-due-events.d.ts","sourceRoot":"","sources":["../../src/scripts/check-due-events.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"check-due-events.d.ts","sourceRoot":"","sources":["../../src/scripts/check-due-events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Dispatcher script: check-due-events
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Standalone dispatcher. Not fired automatically on a running install — the
|
|
5
|
+
* installer-registered cron entry was removed in Task 039 and the replacement
|
|
6
|
+
* surface (Claude Code's desktop scheduled tasks, per maxy-code-prd.md
|
|
7
|
+
* §Scheduled tasks) is not yet wired. Until that lands, this binary runs only
|
|
8
|
+
* when invoked manually or by a future scheduled-task dispatcher. Finds events
|
|
9
|
+
* whose time has arrived and marks them appropriately:
|
|
6
10
|
*
|
|
7
11
|
* - One-time events: set eventStatus = 'due'
|
|
8
12
|
* - Recurring events: set lastTriggered, advance nextRun, append trigger note
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-due-events.js","sourceRoot":"","sources":["../../src/scripts/check-due-events.ts"],"names":[],"mappings":"A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AE,CAAC,CAAC;YACxF,MAAM,EAAE,CAAC;QACX,CAAC;QAED,OAAO,CAAC,KAAK,CAAC,qBAAqB,SAAS,eAAe,UAAU,gBAAgB,MAAM,SAAS,CAAC,CAAC;IACxG,CAAC;YAAS,CAAC;QACT,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;QACrB,WAAW,EAAE,CAAC;IAChB,CAAC;IAED,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACnC,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,sBAAsB,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACxF,WAAW,EAAE,CAAC;IACd,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: briefing
|
|
3
|
+
description: "Composes a one-screen daily briefing covering outstanding commitments, today's calendar with attendee context, the highest-priority open tasks, and overnight changes. Triggers when the owner says 'daily briefing', 'what's happening today', 'morning update', or 'brief me'."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Briefing
|
|
7
|
+
|
|
8
|
+
This skill produces the owner's daily reading pack. It pulls four signals from the graph and composes them into a single screen of output. It is read-only. It does not draft replies, schedule events, or mark tasks complete.
|
|
9
|
+
|
|
10
|
+
## When to run
|
|
11
|
+
|
|
12
|
+
Run when the owner asks to be briefed on the day. The trigger phrases are above. The briefing is also the typical first message of a session, so the owner may not name the skill: when the system prompt carries a `<previous-context>` block and the owner opens with "morning" or similar, this skill is the right response.
|
|
13
|
+
|
|
14
|
+
## Inputs
|
|
15
|
+
|
|
16
|
+
None required. Optional: a `topic` parameter that narrows the four sections to one project or one named person.
|
|
17
|
+
|
|
18
|
+
## Method
|
|
19
|
+
|
|
20
|
+
The briefing has four sections, in this fixed order. Sections with no content collapse to one line ("nothing outstanding" rather than disappearing) so the owner sees that the skill checked.
|
|
21
|
+
|
|
22
|
+
### 1. Outstanding commitments
|
|
23
|
+
|
|
24
|
+
Call `task-list` filtered to `status: open` AND (`dueDate <= today` OR `priority: high`). Order by due date ascending, then by priority. List the top five with one line each: title, due date, related entity. If more than five qualify, end the list with "+ N more open" and the total count.
|
|
25
|
+
|
|
26
|
+
### 2. Today's calendar
|
|
27
|
+
|
|
28
|
+
Chain into `daily-prep` with `date: today`. Reproduce its chronological event list and the per-event context blocks. Length cap: collapse to event titles only if the briefing would otherwise exceed one screen.
|
|
29
|
+
|
|
30
|
+
### 3. Open tasks ranked
|
|
31
|
+
|
|
32
|
+
Call `memory-rank` with `kind: task` and `limit: 5`. This returns the tasks the ranker considers most urgent given current context, with one-line reasoning per task. Reproduce the ranked list with its reasoning. Do not re-rank against memory-search results.
|
|
33
|
+
|
|
34
|
+
### 4. Overnight changes
|
|
35
|
+
|
|
36
|
+
Two sub-pieces:
|
|
37
|
+
|
|
38
|
+
- **Messages awaiting reply.** Call `memory-search` for `:Message` nodes with `direction: inbound` and `repliedAt: null` since the owner's last active session. Count and list the top three by inferred priority (sender role, message length, named urgency).
|
|
39
|
+
- **Fresh inbox items.** Same query, scope it to messages that arrived since the previous session's end timestamp. List the count and the senders' names.
|
|
40
|
+
|
|
41
|
+
## Output format
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
## Daily briefing
|
|
45
|
+
|
|
46
|
+
**Outstanding.** 3 commitments: invoice follow-up with Acme (due today), draft offer to Daniel Park (overdue 2 days), confirm photographer for 12 Park Road (due tomorrow). + 2 more open.
|
|
47
|
+
|
|
48
|
+
**Today.**
|
|
49
|
+
08:30: Coffee with Alice Cohen
|
|
50
|
+
09:30: Pricing review with the team
|
|
51
|
+
14:00: Call with Daniel Park
|
|
52
|
+
|
|
53
|
+
(per-event context blocks if there is room, otherwise titles only)
|
|
54
|
+
|
|
55
|
+
**Priorities.** 1. Chase 14 Garth Road buyer's solicitor (mortgage offer expires in 6 days). 2. Approve the Acme intro draft (sat for 4 days). 3. Confirm the Cohen viewing slot (vendor has asked twice).
|
|
56
|
+
|
|
57
|
+
**Overnight.** 4 inbound messages awaiting reply (top: Cohen: viewing follow-up; Singh: pricing question; Park: booking confirmation; Webber: referral thanks). 2 fresh items in the inbox since last session: Cohen, Webber.
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## One-screen cap
|
|
61
|
+
|
|
62
|
+
The whole briefing must fit in one screen. If any section would overflow, collapse it (event titles only, top-three not top-five, count plus example). Never spread the briefing across two screens; the operator's intent is a scannable pack, not a report.
|
|
63
|
+
|
|
64
|
+
## Failure modes
|
|
65
|
+
|
|
66
|
+
- **`task-list` empty.** Section 1 collapses to "nothing outstanding".
|
|
67
|
+
- **`schedule-list` empty.** Section 2 collapses to "nothing in the diary today".
|
|
68
|
+
- **`memory-rank` returns fewer than five.** List what it returned; do not pad.
|
|
69
|
+
- **`profile-read` shows the owner has no `lastActiveSession`.** Section 4 collapses to "no prior session recorded" rather than reporting from training data.
|
|
70
|
+
|
|
71
|
+
## What this skill does not do
|
|
72
|
+
|
|
73
|
+
- Draft replies to the inbound messages. The owner sees the count and the senders; if they want a draft, they ask and the right skill is loaded.
|
|
74
|
+
- Mark tasks complete or update priorities. Read-only.
|
|
75
|
+
- Speak in marketing voice or add encouragement. The owner reads the briefing for facts, not for cheerleading.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: daily-prep
|
|
3
|
+
description: "Fetches today's calendar and produces a per-event context block for each meeting using what the graph already knows about the attendees. Triggers when the owner says 'what's on today', 'morning prep', 'meeting context', 'who am I seeing today', or names an upcoming meeting and asks for a brief on the attendees."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Daily prep
|
|
7
|
+
|
|
8
|
+
This skill turns today's calendar into a ready-to-read context pack. For each event, it looks up the attendees in the graph and surfaces what the owner already knows about each one. It never invents context; if the graph has no record of a person, it says so out loud.
|
|
9
|
+
|
|
10
|
+
## When to run
|
|
11
|
+
|
|
12
|
+
Run when the owner asks for a per-meeting brief for today. The trigger phrases are above. Also run when the `briefing` skill calls into this skill for the calendar section of a daily briefing.
|
|
13
|
+
|
|
14
|
+
## Inputs
|
|
15
|
+
|
|
16
|
+
`date` (default: today in the owner's timezone). Optional: a `personName` filter to brief on one named attendee across every meeting.
|
|
17
|
+
|
|
18
|
+
## Method
|
|
19
|
+
|
|
20
|
+
1. **Fetch today's events.** Call `schedule-list` with the date filter and the owner's timezone. Sort by start time.
|
|
21
|
+
2. **For each event, list the attendees.** Read the event's `attendees` field or the `SCHEDULED_FOR` relationships in the graph. If the event has no attendees recorded, mark it as "solo or unspecified".
|
|
22
|
+
3. **For each attendee, look up the graph.** Call `memory-search` with the attendee's name. Take the highest-confidence `:Person` node. From the node and its neighbours, pull:
|
|
23
|
+
- Role and current company (one line).
|
|
24
|
+
- The most recent `:ConversationArchive` or `:Conversation` involving them, with the conversation's last-message timestamp.
|
|
25
|
+
- Open `:Task` nodes that name them.
|
|
26
|
+
- Open commitments the owner made to them (tasks with status `open` and the attendee in `SCHEDULED_FOR`).
|
|
27
|
+
4. **Compose one context block per event.** Keep each block to three short sentences: who is attending, what the latest contact was, what is open between the owner and them.
|
|
28
|
+
5. **Output a chronological list.** One event per line at the top; the context blocks below, each headed by the event's time and title.
|
|
29
|
+
|
|
30
|
+
## What "no record yet" means
|
|
31
|
+
|
|
32
|
+
When `memory-search` returns no `:Person` node for an attendee, say "no record yet" in the context block. Do not infer from training data. Do not guess. The "no record yet" signal is itself useful: it tells the owner this is the first meeting with this person from the graph's perspective, which may mean the contact has not been logged yet, or that the person is new.
|
|
33
|
+
|
|
34
|
+
## Output format
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
## Today
|
|
38
|
+
|
|
39
|
+
08:30-09:00: Coffee with Alice Cohen (Acme Corp)
|
|
40
|
+
09:30-10:30: Pricing review with the team
|
|
41
|
+
14:00-15:00: Call with Daniel Park (newco)
|
|
42
|
+
|
|
43
|
+
### Coffee with Alice Cohen
|
|
44
|
+
CFO at Acme Corp since 2024. Last conversation 11 days ago, where she asked for a referral introduction. One open task: send the intro to Sam Webber.
|
|
45
|
+
|
|
46
|
+
### Pricing review with the team
|
|
47
|
+
Three attendees: Mark Lee, Priya Singh, Jordan Lee. No active commitments between the owner and any of them this week. Standing recurring meeting; last week's notes are in the graph as :Section nodes under the team's ConversationArchive.
|
|
48
|
+
|
|
49
|
+
### Call with Daniel Park
|
|
50
|
+
No record yet. The event was created from a calendar invite three days ago. The owner may want to add a one-line note on the meeting's purpose before joining.
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Failure modes
|
|
54
|
+
|
|
55
|
+
- **`schedule-list` returns no events.** Say so. Offer to brief on the next-business-day events instead.
|
|
56
|
+
- **`memory-search` returns no match for a high-stakes attendee** (e.g. someone whose name is in the event title). Surface the gap explicitly. The owner needs to know the graph has no context for this person.
|
|
57
|
+
- **Owner timezone is missing.** Refuse to compose times; ask the owner to set their timezone first via `profile-update`.
|
|
58
|
+
|
|
59
|
+
## What this skill does not do
|
|
60
|
+
|
|
61
|
+
It does not draft messages, schedule new events, or take any write action. It is read-only. Drafting a message to one of the attendees is `personal-assistant`'s job, invoked separately.
|
|
@@ -15,7 +15,7 @@ metadata: {"platform":{"always":false,"embed":[],"pluginKey":"workflows"}}
|
|
|
15
15
|
|
|
16
16
|
# Workflows
|
|
17
17
|
|
|
18
|
-
> **Loading note:** `platform.always:false` in the frontmatter above refers to **prose embedding** — this file's contents are not auto-injected into every agent system prompt. It does **not** refer to MCP server loading. The workflows MCP server is always loaded in admin sessions (registered in `getMcpServers()` in `claude-agent.ts` alongside `tasks` / `scheduling` / `email`)
|
|
18
|
+
> **Loading note:** `platform.always:false` in the frontmatter above refers to **prose embedding** — this file's contents are not auto-injected into every agent system prompt. It does **not** refer to MCP server loading. The workflows MCP server is always loaded in admin sessions (registered in `getMcpServers()` in `claude-agent.ts` alongside `tasks` / `scheduling` / `email`). The same binary is designed to be spawned ad-hoc by the platform's scheduled-task dispatcher for `workflow-execute` calls via `.mcp.json`; that dispatcher is currently unwired (see `maxy-code-prd.md` §Scheduled tasks for the canonical destination surface).
|
|
19
19
|
|
|
20
20
|
Workflows are persistent, named compositions of executable steps that the user creates and the engine executes. Steps can chain MCP tool calls and LLM reasoning into composable pipelines. Steps are validated at creation time — a workflow with unmet dependencies cannot be activated. The user manages them conversationally.
|
|
21
21
|
|
|
@@ -207,7 +207,7 @@ To trigger a workflow on a schedule, create an Event with the scheduling plugin
|
|
|
207
207
|
action: { plugin: "workflows", tool: "workflow-execute", args: { workflowId: "..." } }
|
|
208
208
|
```
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
Scheduled workflows are dispatched by `check-due-events`, which is currently unwired pending migration to Desktop scheduled tasks (see `maxy-code-prd.md` §Scheduled tasks). When the dispatcher fires, the WorkflowRun captures `trigger: "schedule"`.
|
|
211
211
|
|
|
212
212
|
## Managing Workflows
|
|
213
213
|
|
|
@@ -85,4 +85,4 @@ To run a workflow on a schedule, create a scheduling event with action dispatch:
|
|
|
85
85
|
- Tool: `schedule-event`
|
|
86
86
|
- Action: `{ plugin: "workflows", tool: "workflow-execute", args: { workflowId: "..." } }`
|
|
87
87
|
|
|
88
|
-
The
|
|
88
|
+
The `check-due-events` dispatcher (currently unwired — see `maxy-code-prd.md` §Scheduled tasks) is the surface that will fire the workflow at the scheduled time. The WorkflowRun captures `trigger: "schedule"` when the dispatcher fires.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-server.d.ts","sourceRoot":"","sources":["../src/http-server.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,OAAO,KAAK,EAAE,YAAY,EAAiB,MAAM,oBAAoB,CAAA;AACrE,OAAO,EAAqC,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAiBpF,MAAM,WAAW,QAAS,SAAQ,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC;IACxD,KAAK,EAAE,YAAY,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,EAAE,MAAM,CAAA;CAC1B;AAsDD,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"http-server.d.ts","sourceRoot":"","sources":["../src/http-server.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,OAAO,KAAK,EAAE,YAAY,EAAiB,MAAM,oBAAoB,CAAA;AACrE,OAAO,EAAqC,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAiBpF,MAAM,WAAW,QAAS,SAAQ,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC;IACxD,KAAK,EAAE,YAAY,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,EAAE,MAAM,CAAA;CAC1B;AAsDD,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAuejD"}
|
|
@@ -128,7 +128,20 @@ export function buildHttpApp(deps) {
|
|
|
128
128
|
const channels = Array.isArray(body.channels)
|
|
129
129
|
? body.channels.filter((c) => typeof c === 'string' && c.length > 0)
|
|
130
130
|
: undefined;
|
|
131
|
-
|
|
131
|
+
// Task 043 — optional onboarding payload from the admin UI wrapper.
|
|
132
|
+
// Accepts `{ step: number | null }`. Any other shape is dropped silently
|
|
133
|
+
// (treated as no onboarding) — the manager never blocks a spawn over a
|
|
134
|
+
// malformed onboarding field; the spawn-time block simply omits the
|
|
135
|
+
// third section, which matches today's two-section behaviour.
|
|
136
|
+
let onboarding;
|
|
137
|
+
if (body.onboarding && typeof body.onboarding === 'object') {
|
|
138
|
+
const raw = body.onboarding.step;
|
|
139
|
+
if (raw === null || typeof raw === 'number') {
|
|
140
|
+
onboarding = { step: raw };
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const accountId = typeof body.accountId === 'string' ? body.accountId : undefined;
|
|
144
|
+
const result = await spawnClaudeSession({ ...deps, store: deps.store }, { senderId, role: role, channel: channel, channels, onboarding, accountId });
|
|
132
145
|
if (!result.ok) {
|
|
133
146
|
timed(deps.logger, 'POST', '/spawn', 500, Date.now() - start);
|
|
134
147
|
return c.json({ error: 'spawn-failed', reason: result.reason }, 500);
|