Skip to content

Commit 2ea1420

Browse files
authored
Add attachment feature matrix to Cuey skill (#21)
1 parent 26e6dfd commit 2ea1420

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

plugins/cuey/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cuey",
3-
"version": "0.4.16",
3+
"version": "0.4.17",
44
"description": "Cuey is an agentic financial intelligence system that analyzes prompts and Excel workbooks, improves decision accuracy through cross-checking and fact-checking, and delivers evidence-backed recommendations.",
55
"author": {
66
"name": "TensorBlock",

plugins/cuey/skills/cuey/SKILL.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Preserve Claude's normal attachment workflow. Users attach files in Claude's com
2323

2424
If the request includes Claude-visible attachments of any type, read them with Claude's available file, spreadsheet, document, or vision capability and add compact, relevant attachment context to `context`. This applies to Excel, PDF, image, document, text, CSV, and other Claude-readable files. For each relevant attachment, include the filename, file type, extracted content or observations needed for the user's request, and any omitted sections when the file is too large to include fully. Do not include only a filename when actual attachment content is available.
2525

26+
Also collect the current-message attachment feature matrix when Claude exposes file metadata. This is metadata only, not file contents. Use the same field set defined in **Attachment Feature Probe** when cheap and available: declared filename, MIME type, visible file UUID or handle, sandbox path presence, readable-by-Claude flag, size bytes, mtime, inode, SHA-256, magic/type detection, and cheap format metadata such as `.xlsx` sheet names, ZIP/OOXML entry count, CSV line count, JSON top-level keys, or PDF page/header signals. Pass this matrix as `attachmentFeatureMatrix` so the local Cuey runtime can ask the user's authorized file bridge to locate the original local file. Do not include base64, raw bytes, file contents, or Claude sandbox paths as upload sources.
27+
2628
If the request includes a native Claude `.xlsx` attachment, also build compact workbook context in `spreadsheet` containing:
2729

2830
- workbook filename;
@@ -44,6 +46,32 @@ Send this payload:
4446
"filename": "attached workbook filename, or empty when none",
4547
"context": "structured workbook context extracted from the attached .xlsx, or empty when none"
4648
},
49+
"attachmentFeatureMatrix": [
50+
{
51+
"declaredFilename": "example.xlsx",
52+
"declaredMimeType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
53+
"fileUuid": "if visible",
54+
"sandboxPathPresent": true,
55+
"sandboxPathReadableByClaude": true,
56+
"filesystem": {
57+
"sizeBytes": 123,
58+
"mode": "regular file",
59+
"mtime": "timestamp if available",
60+
"inode": "inode if available",
61+
"sha256": "lowercase sha256 if available",
62+
"magicMimeType": "detected type if available"
63+
},
64+
"formatMetadata": {
65+
"kind": "xlsx | pdf | png | jpeg | csv | text | zip | unknown",
66+
"availableFields": {}
67+
},
68+
"transport": {
69+
"rawBytesReadableByClaude": true,
70+
"sandboxPathVisibleToClaude": true,
71+
"localMcpPathReadableEstimate": false
72+
}
73+
}
74+
],
4775
"worklog": true,
4876
"source": "claude_plugin"
4977
}
@@ -53,7 +81,7 @@ Choose `compare` for comparisons, `verify` for risk or correctness checks, `summ
5381

5482
Set `"worklog": true` only when the request is clearly a CFO, FP&A, finance, financial model, forecast, budget, board, investor, audit, reporting, variance, revenue, cost, cash, runway, or unit-economics task where generated artifacts should include candidate worklogs. For ordinary questions, normal summaries, and simple Excel generation, omit `worklog` or set it to `false`.
5583

56-
Do not send `sourceFiles`, `smart_merge`, `models`, `reasoningLevel`, agent names, or merge settings. Those choices belong to Cuey backend.
84+
Do not send `sourceFiles`, raw `attachments`, raw `files`, `upload`, `base64`, `dataBase64`, `contentBase64`, `bytes`, `content`, `smart_merge`, `models`, `reasoningLevel`, agent names, or merge settings. Those choices belong to Cuey backend and the local Cuey runtime.
5785

5886
Requests to create, generate, build, export, or return an Excel workbook are always `ask`, never `verify`. Do not change a workbook-generation request into a requirements analysis. Example: `Create a downloadable Excel workbook...` must be sent as `{"mode":"ask","question":"Create a downloadable Excel workbook..."}`.
5987

0 commit comments

Comments
 (0)