vault-x-bookmarks
Use when X bookmarks need to be captured into raw/sources or existing X bookmark source records need relevance triage
What this skill does
# Vault X Bookmarks
Use this skill in one of two modes:
- **Capture mode:** Use the bundled TypeScript helper to review a bounded slice
of the authenticated user's X bookmarks and capture selected items into
`raw/sources/`.
- **Prune mode:** Triage existing X bookmark source records in `raw/sources/`
using LLM judgment, deleting only records that are clearly irrelevant or too
thin to be useful.
This is source-first: the helper writes `external` source records, records
captured bookmark IDs in `raw/state/x-bookmarks/`, and leaves organization to a
follow-up `vault-ingest` run.
Run prune mode after capture and before `vault-ingest` whenever a batch contains
X bookmarks. Capture mode intentionally does not decide source value; prune mode
is the LLM judgment step that keeps thin bookmark pointers from entering the
curated vault.
When a bookmarked post contains an X Article, the helper requests the `article`
post field and includes the article title, preview, body text, and article
entity links in the source record.
When a bookmarked post links to external non-X content, the helper may fetch the
direct linked page and include readable text in the source record. This is
strictly one level deep: fetch URLs surfaced by the bookmark payload, but do not
follow or recursively crawl links found inside fetched pages.
## Requirements
- Node.js 18+ for `tsx` and `dotenv`.
- Run `npm i` from this skill directory before running capture mode so the
bundled TypeScript helper's dependencies are installed.
- An X Developer account and app. See
[X API docs](https://developer.twitter.com/en/docs/twitter-api) for details.
- [`xurl`](https://github.com/xdevplatform/xurl/) CLI tool installed and
authenticated with OAuth 2.0.
## Capture Command
Run from this skill directory:
```sh
npm i
npx tsx scripts/x-bookmarks.ts [--limit N] [--max-pages N] [--head-pages N] [--path PATH]
```
## Parameters
- `--limit N` (default: `15`, range: `1..100`): maximum selected bookmarks to
evaluate and capture in one run.
- `--max-pages N` (default: `10`, range: `1..100`): maximum bookmark pages to
fetch across the head scan and catch-up scan.
- `--head-pages N` (default: `2`, range: `1..100`): newest bookmark pages to
scan before resuming backlog pagination.
- `--path PATH` (default: current working directory): vault root containing
`raw/sources/` and `raw/state/x-bookmarks/`.
Capture mode has no report mode. The helper is apply-only and bounded by
`--limit`. It writes source records, appends reviewed/run state, and updates the
catch-up checkpoint after successful runs.
## Authentication
Install `xurl`, authenticate it with OAuth 2.0 for the X account whose bookmarks
should be captured, and verify it before running the helper:
```sh
xurl auth apps add vault-x-bookmarks --client-id <YOUR_CLIENT_ID> --client-secret <YOUR_CLIENT_SECRET>
xurl auth oauth2 --app vault-x-bookmarks
xurl default # to set the default authenticated app for later `xurl` commands
xurl auth status
xurl whoami
```
Required scopes:
- `bookmark.read`
- `tweet.read`
- `users.read`
- `offline.access`
Do not use an app-only bearer token. The helper resolves the authenticated user
through `xurl whoami`; do not pass a manual user ID.
## Capture Behavior
1. Load reviewed IDs from `raw/state/x-bookmarks/reviewed.jsonl`.
2. Fetch bookmark pages by shelling out to `xurl --auth oauth2`.
3. Always scan newest `--head-pages` first so newly saved bookmarks are found
even after backlog has been processed.
4. If backlog remains and the head scan does not fill `--limit`, continue from
the saved catch-up pagination token until `--max-pages` or `--limit` is
reached.
5. Advance the saved catch-up token only past pages whose unreviewed bookmarks
have all been captured or recorded; if `--limit` stops mid-page, save the
token for that same page.
6. Select the newest unreviewed bookmarks reachable in the combined scan, up to
`--limit`.
7. Process the selected slice newest-to-oldest, matching X bookmark order.
8. Capture every selected bookmark to `raw/sources/` as markdown tagged
`external`, including X Article text and direct external linked-page text
when available.
9. Append every captured bookmark to `reviewed.jsonl`.
10. Append the run summary to `runs.jsonl` and update `checkpoint.json` only
after reviewed entries are durable.
Never mutate X bookmarks. Never route captured files directly into permanent
vault folders.
## Capture Policy
Capture every selected bookmark. Do not apply regex scoring, string scoring, or
filtering; the user's bookmark action is the relevance signal. Manually delete
unwanted source records after a run.
## Prune Mode
Use prune mode when `raw/sources/` contains captured X bookmark records that may
not be worth keeping. This is an LLM judgment workflow, not a regex or scoring
workflow.
Before judging records, read the calibration examples:
- `resources/good-quality-bookmarks.md`
- `resources/low-quality-bookmarks.md`
Default to **report mode** unless the user explicitly asks to apply deletion. In
report mode, list each candidate and the keep/delete decision with concise
reasoning. In apply mode, delete only the source files that are clearly
discardable and append one `log.md` entry.
### Prune Scope
- Inspect only captured bookmark source records still present in `raw/sources/`.
Use `raw/state/x-bookmarks/reviewed.jsonl` as the source of truth: read each
`source_record_path`, keep paths that still exist under `raw/sources/`, and
ignore records that have already been routed, archived, or deleted.
- Do not inspect or delete non-bookmark captures.
- Do not query X.
- Do not mutate X bookmarks.
- Do not edit, prune, compact, or remove entries from
`raw/state/x-bookmarks/reviewed.jsonl`, `runs.jsonl`, or `checkpoint.json`.
The state files intentionally continue to mark deleted bookmarks as reviewed so
future capture runs do not refetch unhelpful bookmarks.
### Prune Judgment
Do not use regex, string scoring, keyword scoring, or mechanical thresholds to
decide deletion. Read the source record and judge whether it contains durable
value for the vault.
Treat article/link sections as evidence, not automatic keep/delete switches. A
short post with a useful captured article can be high value. A long post can be
low value when it only points to missing media, a missing thread, or a stronger
canonical source already in the vault.
Delete only when the bookmark is clearly low-value, such as:
- the post is mostly a bare link, reaction, teaser, or media pointer
- no `## Article` or `## Linked Content` section provides meaningful substance
- fetched link content is absent, boilerplate, login-gated, or too thin to
support later synthesis
- the topic is plainly unrelated to the vault's interests, projects, products,
research, or recurring concepts
- keeping it would create inbox noise rather than usable evidence
Keep when there is plausible future value, such as:
- concrete app, product, marketing, design, AI, engineering, or business insight
- useful X Article or fetched linked-page text
- evidence relevant to existing ideas, active projects, topic notes, or concepts
- a source that is thin but points to a clearly important person, project, tool,
market, or competitor
- any ambiguous case where deletion would be a judgment call rather than an
obvious cleanup
### Prune Output
Return:
- files reviewed
- files kept with short reasons
- files proposed for deletion or deleted with short reasons
- confirmation that X bookmark state files were not modified
- `log.md` entry appended when apply mode deletes files
## Output
The command prints a JSON summary with the authenticated X user ID, pages
fetched, evaluated and captured counts, created source paths, state files
updated, and errors or partial failures.
## Examples
Regular run:
```sh
npx tsx scripts/x-bookmarks.ts --limit 15
```
Catch up more backlog in one run:
```sh
npx tsx scripRelated in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.