Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
57fae6a
chore(log): grow run 2026-05-25 21:00 — /for-homelab/ gh-pages landing
cemheren May 26, 2026
b884af7
chore(log): grow run 2026-05-26 18:00 — selection stats PR #189
cemheren May 27, 2026
3b98e6d
chore(log): grow run 2026-05-26 19:00 — /for-traders/ landing page
cemheren May 27, 2026
5f31e3b
chore(log): grow run 2026-05-26 21:00 — /for-developers/ landing page
cemheren May 27, 2026
60347d4
chore: update grow log — /for-writers/ page run 2026-05-26 23:00
cemheren May 27, 2026
db74732
chore: update grow log — quicksheet-sysmon run 2026-05-27 00:00
cemheren May 27, 2026
9cec1c2
chore(log): grow run 2026-05-27 01:00 — export-sql PR #199
cemheren May 27, 2026
b8a93f1
chore(log): grow run 2026-05-27 02:00 — export-sql site update
cemheren May 27, 2026
77242c6
chore: update grow log — /for-homelab/ page run 2026-05-27 03:00
cemheren May 27, 2026
3a7de8b
chore: update grow log — quicksheet-words run 2026-05-27 04:00
cemheren May 27, 2026
2716d64
chore: update grow log — /for-ai-engineers/ page run 2026-05-27 05:00
cemheren May 27, 2026
ff75e93
chore: update grow log — quicksheet-ai-costs run 2026-05-27 06:00
cemheren May 27, 2026
f8deae1
chore: update grow log — cell bookmarks run 2026-05-27 07:00
cemheren May 27, 2026
e2d2e44
chore(grow): log 2026-05-27 08:00 run — ai-costs on /for-ai-engineers…
cemheren May 27, 2026
4a7afaf
chore(grow): log 2026-05-27 09:00 run — progress bar prefix PR #208
cemheren May 27, 2026
d89a128
chore(grow): log 2026-05-27 10:00 run — /for-researchers/ page
cemheren May 27, 2026
13f2295
chore: update grow log — quicksheet-health-ext run 2026-05-27 11:00
cemheren May 27, 2026
23babde
chore: update grow log — /for-freelancers/ page run 2026-05-27 12:00
cemheren May 27, 2026
fc94a7f
chore: update grow log — quicksheet-unitconv run 2026-05-27 13:00
cemheren May 27, 2026
9bc62d6
chore: update grow log — quicksheet-hashgen run 2026-05-27 15:00
cemheren May 27, 2026
501a504
chore: update grow log — countdown prefix run 2026-05-27 17:00
cemheren May 28, 2026
28c3858
chore(grow): log 2026-05-27 18:00 run — /for-musicians/ page
cemheren May 28, 2026
a8c6559
chore: update grow log — quicksheet-pubmed run 2026-05-27 19:00
cemheren May 28, 2026
efb9a4b
chore: update grow log — /for-gamers/ page run 2026-05-28 19:00
cemheren May 29, 2026
9457cf4
chore(skill): log 2026-05-28 run — docs PR #226
cemheren May 29, 2026
2650ce1
chore(skill): log --theme CLI flag run
cemheren May 29, 2026
6e4e36c
chore(skill): log 2026-05-28 run — 18 missing extensions PR #228
cemheren May 29, 2026
ccd9c65
chore: log grow run 2026-05-29 (Wayland investigation)
cemheren May 29, 2026
526e006
chore: log pubmed extension run
cemheren May 29, 2026
174fed8
chore: log grow run 2026-05-29 (for-dms page)
cemheren May 29, 2026
d1276cb
chore: log grow run 2026-05-29 (--import-json feature)
cemheren May 29, 2026
02eaca2
chore(grow): research — package manager distribution strategy
cemheren May 29, 2026
5b20aaf
chore: log grow run 2026-05-29 (release CI workflow)
cemheren May 29, 2026
a76538b
chore(skill): log grow run 2026-05-29 (--stats feature)
cemheren May 29, 2026
1ea746c
chore: log salestax-ext run
cemheren May 29, 2026
0f37a65
docs(grow): draft r/selfhosted post — Homepage alternative angle
cemheren May 29, 2026
45c08e3
chore(skill): log grow run 2026-05-29 (r/selfhosted draft)
cemheren May 29, 2026
75e11c7
chore(skill): log grow run 2026-05-29 (init-ext)
cemheren May 29, 2026
e753fdd
chore(skill): log grow run 2026-05-29 (for-artists page)
cemheren May 29, 2026
c84c38b
chore(grow): log duplicate arxiv-ext run + scaffold reference
cemheren May 30, 2026
2ccfb9e
chore(skill): log grow run 2026-05-30 (tabs design spec)
cemheren May 30, 2026
d5945f3
chore(skill): log grow run 2026-05-30 (--get feature)
cemheren May 30, 2026
8dc931d
feat: add p: progress bar cell prefix
cemheren May 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .agents/skills/grow-quicksheet/cron-runs.log
Original file line number Diff line number Diff line change
Expand Up @@ -897,3 +897,35 @@ Tokens ↑ 5.0m (4.9m cached) • ↓ 13.7k
2026-05-24T13:05:36-07:00 — Run complete
---
2026-05-24T14:00:00-07:00 — Starting grow-quicksheet run
2026-05-25T20:05:59-07:00 — Run complete
---
2026-05-25T21:00:00-07:00 — Starting grow-quicksheet run
2026-05-27T01:05:09-07:00 — Run complete
---
2026-05-27T02:00:00-07:00 — Starting grow-quicksheet run
2026-05-27T18:05:46-07:00 — Run complete
---
2026-05-27T19:00:00-07:00 — Starting grow-quicksheet run
● Push log via PR (shell)
│ cd /home/akif/Projects/QuickSheet && git checkout -b grow/log-pubmed && git
│ push origin grow/log-pubmed 2>&1 | tail -3 && gh pr create --title "chore:
│ update grow log — quicksheet-pubmed run 2026-05-27 19:00" --body "Internal
│ bookkeeping — logs the pubmed extension run." --head grow/log-pubmed --base
│ main 2>&1
└ 9 lines...

Done. Let me clean up and report:

● Cleanup (shell)
│ cd /home/akif/Projects/QuickSheet && git checkout main 2>&1 | head -2 && rm
│ -rf /tmp/quicksheet-pubmed
└ 3 lines...



Changes +308 -0
AI Credits 169 (5m 37s)
Tokens ↑ 2.0m (1.9m cached) • ↓ 12.3k
2026-05-27T19:05:40-07:00 — Run complete
---
2026-05-28T19:00:00-07:00 — Starting grow-quicksheet run
318 changes: 316 additions & 2 deletions .agents/skills/grow-quicksheet/log.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin/
obj/
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>QuickSheetArxiv</RootNamespace>
<AssemblyName>ArxivExtension</AssemblyName>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 cemheren

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
using System.Collections.Concurrent;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Text.RegularExpressions;
using System.Xml.Linq;

/// <summary>
/// QuickSheet arXiv Extension — looks up papers by arXiv ID.
/// Usage: `arxiv: 2301.07041` or `arxiv: 2301.07041v2`
/// Returns: title, authors (up to 4), first ~120 chars of abstract, link.
/// Free API, no auth, no NuGet deps.
/// </summary>
class Program
{
private static readonly JsonSerializerOptions JsonOpts = new()
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
WriteIndented = false
};

private static readonly HttpClient Http = new() { Timeout = TimeSpan.FromSeconds(10) };

static Program()
{
Http.DefaultRequestHeaders.UserAgent.ParseAdd(
"quicksheet-arxiv-ext/1.0 (https://github.com/cemheren/quicksheet-arxiv-ext)");
}

private static readonly ConcurrentDictionary<string, List<string>> Cache = new(StringComparer.OrdinalIgnoreCase);

static void Main()
{
Console.OutputEncoding = System.Text.Encoding.UTF8;
string? line;
while ((line = Console.ReadLine()) != null)
{
if (string.IsNullOrWhiteSpace(line)) continue;
try
{
using var doc = JsonDocument.Parse(line);
string? type = doc.RootElement.TryGetProperty("type", out var tp) ? tp.GetString() : null;
switch (type)
{
case "init": HandleInit(); break;
case "activate": HandleActivate(doc.RootElement); break;
}
}
catch (Exception ex)
{
SendLog($"parse error: {ex.Message}");
}
}
}

static void HandleInit()
{
SendJson(new
{
type = "register",
prefix = "arxiv",
name = "arXiv Lookup",
version = "1.0.0"
});
SendLog("arXiv extension registered with prefix 'arxiv'");
}

static void HandleActivate(JsonElement root)
{
string id = root.TryGetProperty("id", out var idProp) ? idProp.GetString() ?? "" : "";
int gridRows = root.TryGetProperty("gridRows", out var gr) ? gr.GetInt32() : 4;

string[] extParams = [];
if (root.TryGetProperty("params", out var p) && p.ValueKind == JsonValueKind.Array)
extParams = p.EnumerateArray().Select(x => x.GetString() ?? "").ToArray();

if (extParams.Length == 0 || string.IsNullOrWhiteSpace(extParams[0]))
{
WriteCells(id, new[] { new[] { "arxiv: <id> (e.g. 2301.07041)" } });
return;
}

string arxivId = NormalizeId(extParams[0]);
if (string.IsNullOrEmpty(arxivId))
{
WriteCells(id, new[] { new[] { "err: invalid arXiv ID" } });
return;
}

try
{
var lines = FetchPaper(arxivId);
if (lines.Count == 0)
{
WriteCells(id, new[] { new[] { $"{arxivId}: not found" } });
return;
}
var rows = lines.Select(l => new[] { l }).ToList();
while (rows.Count < gridRows) rows.Add(new[] { "" });
if (rows.Count > gridRows) rows = rows.Take(gridRows).ToList();
WriteCells(id, rows);
}
catch (Exception ex)
{
WriteCells(id, new[] { new[] { $"err: {ex.Message}" } });
}
}

static string NormalizeId(string s)
{
s = s.Trim();
// Strip common URL prefixes
if (s.StartsWith("https://arxiv.org/abs/", StringComparison.OrdinalIgnoreCase))
s = s[22..];
else if (s.StartsWith("http://arxiv.org/abs/", StringComparison.OrdinalIgnoreCase))
s = s[21..];
else if (s.StartsWith("arxiv:", StringComparison.OrdinalIgnoreCase))
s = s[6..];
s = s.Trim();
// Validate: new-style (YYMM.NNNNN[vN]) or old-style (category/YYMMNNN)
if (Regex.IsMatch(s, @"^\d{4}\.\d{4,5}(v\d+)?$")) return s;
if (Regex.IsMatch(s, @"^[a-z\-]+/\d{7}(v\d+)?$")) return s;
return "";
}

static List<string> FetchPaper(string arxivId)
{
if (Cache.TryGetValue(arxivId, out var cached)) return cached;

string url = $"https://export.arxiv.org/api/query?id_list={Uri.EscapeDataString(arxivId)}";
var resp = Http.GetAsync(url).GetAwaiter().GetResult();
if (!resp.IsSuccessStatusCode) { Cache[arxivId] = []; return []; }
string xml = resp.Content.ReadAsStringAsync().GetAwaiter().GetResult();

var lines = new List<string>();
XNamespace atom = "http://www.w3.org/2005/Atom";
var feed = XDocument.Parse(xml);
var entry = feed.Root?.Element(atom + "entry");
if (entry == null) { Cache[arxivId] = lines; return lines; }

// Check for error (arXiv returns an entry with id containing "api/errors")
string? entryId = entry.Element(atom + "id")?.Value;
if (entryId != null && entryId.Contains("api/errors"))
{
Cache[arxivId] = lines;
return lines;
}

// Title
string title = entry.Element(atom + "title")?.Value?.Trim() ?? "";
title = Regex.Replace(title, @"\s+", " ");
if (!string.IsNullOrEmpty(title))
lines.Add(title.Length > 100 ? title[..97] + "..." : title);

// Authors (up to 4)
var authors = entry.Elements(atom + "author")
.Select(a => a.Element(atom + "name")?.Value ?? "")
.Where(n => !string.IsNullOrEmpty(n))
.ToList();
if (authors.Count > 0)
{
string authStr = authors.Count <= 4
? string.Join(", ", authors)
: string.Join(", ", authors.Take(4)) + ", et al.";
lines.Add(authStr);
}

// Abstract snippet
string abs = entry.Element(atom + "summary")?.Value?.Trim() ?? "";
abs = Regex.Replace(abs, @"\s+", " ");
if (!string.IsNullOrEmpty(abs))
lines.Add(abs.Length > 120 ? abs[..117] + "..." : abs);

// Link
lines.Add($"https://arxiv.org/abs/{arxivId}");

Cache[arxivId] = lines;
return lines;
}

static void WriteCells(string id, IEnumerable<string[]> rows)
{
SendJson(new { type = "write", id, cells = rows });
}

static void SendJson(object obj)
{
Console.WriteLine(JsonSerializer.Serialize(obj, JsonOpts));
}

static void SendLog(string message)
{
SendJson(new { type = "log", message });
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# quicksheet-arxiv-ext

> **2026-05-30: DUPLICATE.** `Deskworks/quicksheet-arxiv` already covers the `arxiv:` prefix
> and is listed in the main README. This repo (`cemheren/quicksheet-arxiv-ext`) was pushed
> before discovering the existing one. User should delete `cemheren/quicksheet-arxiv-ext`
> or repurpose it. Do NOT cross-link from main README — prefix collision.

A QuickSheet extension that looks up arXiv papers by ID. Type an arXiv ID in a cell and get the title, authors, abstract snippet, and link — right on your desktop.

**Persona:** Researchers, grad students, and academics who keep a reading list on their desktop and want quick paper metadata without opening a browser.

## Install

```
ext: github:cemheren/quicksheet-arxiv-ext
```

## Usage

```
arxiv: 2301.07041
arxiv: 2301.07041v2
arxiv: hep-th/9802150
arxiv: https://arxiv.org/abs/2301.07041
```

## Output

The extension fills cells vertically:

| Cell | Content |
|------|---------|
| Row 0 | Paper title (truncated to ~100 chars) |
| Row 1 | Authors (up to 4, then "et al.") |
| Row 2 | Abstract snippet (~120 chars) |
| Row 3 | `https://arxiv.org/abs/<id>` (clickable in QuickSheet) |

## Pairs with

- **`cite:`** — use `cite:` for DOI-based citation formatting, `arxiv:` for preprint lookup.
- Together they cover the full academic workflow: discover on arXiv → cite the published version.

## API

Uses the free [arXiv API](https://info.arxiv.org/help/api/index.html) (Atom feed, no auth, no rate-limit key needed). Requests are cached in-memory for the session.

## Build

```bash
dotnet build ArxivExtension.csproj
```

.NET 9, MIT, zero NuGet dependencies.

## Protocol

Standard QuickSheet JSON-lines:

1. On `{"type":"init"}`, emits `{"type":"register","prefix":"arxiv","name":"arXiv Lookup","version":"1.0.0"}`.
2. On `{"type":"activate","id":"...","params":["2301.07041"]}`, fetches from arXiv API and replies with `{"type":"write","id":"...","cells":[...]}`.

See [docs/extension-protocol.md](https://github.com/cemheren/QuickSheet/blob/main/docs/extension-protocol.md).

## License

MIT.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "arxiv",
"version": "1.0.0",
"prefix": "arxiv",
"description": "arXiv paper lookup — title, authors, abstract for QuickSheet",
"entry": "dotnet run --project ArxivExtension.csproj",
"minProtocolVersion": 1
}
Loading