Paperspark Workspace Data
Apps & Automationpaperspark-workspace-dataPaperspark Workspace Data is an Agent Skill for apps & automation published in the zongxi1115/PaperSpark repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Access and inspect live PaperSpark workspace data, including knowledge base entries, immersive-reading full text, guide summaries, assets, thoughts, assistant conversations, and document versions. Use when asked to answer questions from the user's local PaperSpark data, list saved materials, fetch article full text or summaries, or query PaperSpark workspace content through the local service bridge.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/zongxi1115/PaperSpark/blob/HEAD/skills/paperspark-workspace-data/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/paperspark-workspace-data, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
PaperSpark Workspace Data
Overview
Use the PaperSpark local service bridge instead of scraping repo files or guessing browser storage. The app now auto-bridges browser data to the local Next service while the page is open, and the CLI should query the HTTP API by default.
Query Workflow
- Check whether the local service bridge is available.
.\paperspark-data.ps1 summary
If the command says the bridge has no data yet, tell the user to keep the PaperSpark page open for a few seconds. If needed, ask them to open Settings and click 立即同步.
- Discover the right records before reading large payloads.
.\paperspark-data.ps1 list knowledge
.\paperspark-data.ps1 list assets
.\paperspark-data.ps1 list documents
- Read a specific record once you know its id.
.\paperspark-data.ps1 get knowledge <knowledgeId>
.\paperspark-data.ps1 get assets <assetId>
- Pull raw full text or other nested fields with
--fieldand--raw.
.\paperspark-data.ps1 get knowledge <knowledgeId> --field immersive.fullText --raw
.\paperspark-data.ps1 get knowledge <knowledgeId> --field immersive.guide.summary
.\paperspark-data.ps1 get documents <documentId> --field plainText --raw
- Use full-text search when the user does not know exact ids.
.\paperspark-data.ps1 search "transformer"
High-Value Sections
knowledge: metadata, overview text, immersive full text, translation cache, guide cache, annotations, local file metadataassets: asset content plus extracted plain text and preview textdocuments: editor documents plus extracted plain textdocumentVersions: saved historical snapshots of documentsthoughts: thought records plus extracted plain textconversations: assistant conversations and messagesassistantNotes: assistant scratch notesknowledgeGraph: saved graph nodes and edges
Response Strategy
- Start with
summaryorlistwhen you need orientation. - Use
searchwhen the user describes content but not ids. - Use
get ... --field immersive.fullText --rawwhen the user asks for the full paper text. - Use
getwithout--fieldwhen you need metadata, summaries, annotations, or guide data together. - Cite the ids you used in your final answer when multiple similarly named records exist.
Failure Recovery
- If the local service is down, tell the user to start PaperSpark with
pnpm devorpnpm start. - If the service is up but reports no bridged data yet, tell the user to open PaperSpark and wait a few seconds for auto-sync, or click
立即同步in Settings. - Only use
--snapshotwhen the user explicitly wants an offline JSON backup path. Do not lead with snapshot mode. - If the user asks why this bridge exists at all, explain briefly that the source data still lives in browser-local storage and IndexedDB, so the CLI needs the running app to relay that data into an HTTP-accessible local bridge.