{
  "schemaVersion": "1.0",
  "item": {
    "slug": "x-bookmark-archiver",
    "name": "X Bookmarks Archiver",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/Iamadig/x-bookmark-archiver",
    "canonicalUrl": "https://clawhub.ai/Iamadig/x-bookmark-archiver",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/x-bookmark-archiver",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=x-bookmark-archiver",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/run.cjs",
      "scripts/fetch.cjs",
      "scripts/process.cjs",
      "scripts/lib/state.cjs",
      "scripts/lib/categorize.cjs"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/x-bookmark-archiver"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/x-bookmark-archiver",
    "agentPageUrl": "https://openagent3.xyz/skills/x-bookmark-archiver/agent",
    "manifestUrl": "https://openagent3.xyz/skills/x-bookmark-archiver/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/x-bookmark-archiver/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "X Bookmark Archiver",
        "body": "Archive your X (Twitter) bookmarks into categorized markdown files with AI-generated summaries."
      },
      {
        "title": "Overview",
        "body": "This skill fetches your X bookmarks using the bird CLI, categorizes them by URL patterns, generates AI summaries using OpenAI, and saves them as organized markdown files."
      },
      {
        "title": "Prerequisites",
        "body": "bird CLI - Install from steipete/bird\nOpenAI API Key (optional) - Set OPENAI_API_KEY for AI-generated summaries\nNode.js 18+"
      },
      {
        "title": "Installation",
        "body": "# Ensure bird CLI is installed and authenticated\nbird --version\n\n# Set OpenAI API key (optional, for AI summaries)\nexport OPENAI_API_KEY=\"sk-...\""
      },
      {
        "title": "run - Full Pipeline",
        "body": "Fetches new bookmarks and processes them:\n\nnode skills/x-bookmark-archiver/scripts/run.cjs"
      },
      {
        "title": "run --force - Process Existing",
        "body": "Skip fetch, process only pending bookmarks:\n\nnode skills/x-bookmark-archiver/scripts/run.cjs --force"
      },
      {
        "title": "fetch - Download Bookmarks Only",
        "body": "node skills/x-bookmark-archiver/scripts/fetch.cjs"
      },
      {
        "title": "process - Archive Pending Only",
        "body": "node skills/x-bookmark-archiver/scripts/process.cjs"
      },
      {
        "title": "Category Mapping",
        "body": "Bookmarks are automatically categorized based on URL patterns:\n\nCategoryDomainstoolsgithub.com, gitlab.com, github.io, huggingface.co, replicate.com, vercel.com, npmjs.com, pypi.orgarticlesmedium.com, substack.com, dev.to, hashnode.dev, x.com/i/article, blog.*, towardsdatascience.comvideosyoutube.com, youtu.be, vimeo.com, twitch.tvresearcharxiv.org, paperswithcode.com, semanticscholar.org, researchgate.net, dl.acm.org, ieee.orgnewstechcrunch.com, theverge.com, hn.algolia.com, news.ycombinator.com, wired.com, arstechnica.combookmarksfallback for unmatched URLs"
      },
      {
        "title": "Output Location",
        "body": "Markdown files are created in the OpenClaw workspace at:\n\nLegacy installs (old name):\n\n~/clawd/X-knowledge/\n\nNew installs:\n\n~/.openclaw/workspace/X-knowledge/\n\nWith profile (OPENCLAW_PROFILE=prod):\n\n~/.openclaw/workspace-prod/X-knowledge/\n\nOverride with environment variable:\n\nexport OPENCLAW_WORKSPACE=/custom/path\nnode skills/x-bookmark-archiver/scripts/run.cjs\n# Creates: /custom/path/X-knowledge/"
      },
      {
        "title": "Output Structure",
        "body": "~/.openclaw/workspace/X-knowledge/\n├── tools/\n│   ├── awesome-ai-project.md\n│   └── useful-cli-tool.md\n├── articles/\n│   ├── how-to-build-x.md\n│   └── ml-best-practices.md\n├── videos/\n│   └── conference-talk.md\n├── research/\n│   └── attention-is-all-you-need.md\n├── news/\n│   └── latest-tech-announcement.md\n└── bookmarks/\n    └── misc-link.md"
      },
      {
        "title": "Markdown Template",
        "body": "Each archived bookmark gets a markdown file with frontmatter:\n\n---\ntitle: \"Awesome AI Project\"\ntype: tool\ndate_archived: 2026-01-31\nsource_tweet: https://x.com/i/web/status/1234567890\nlink: https://github.com/user/repo\ntags: [\"ai\", \"machine-learning\", \"github\"]\n---\n\nThis project implements a novel approach to... (AI-generated summary)"
      },
      {
        "title": "State Management",
        "body": "State files track processing progress:\n\n/root/clawd/.state/\n├── x-bookmark-pending.json     # Bookmarks waiting to be processed\n└── x-bookmark-processed.json   # IDs of already-archived bookmarks"
      },
      {
        "title": "Environment Variables",
        "body": "VariableRequiredDescriptionOPENAI_API_KEYNoAPI key for AI-generated summaries"
      },
      {
        "title": "Workflow",
        "body": "Fetch: Downloads latest 50 bookmarks from X\nFilter: Removes already-processed bookmarks\nExpand: Resolves t.co shortened URLs\nCategorize: Assigns category based on URL domain\nEnrich: Generates title, summary, tags (AI or fallback)\nWrite: Saves as markdown in X-knowledge/{category}/\nTrack: Updates processed IDs, clears pending"
      },
      {
        "title": "Adding Categories",
        "body": "Edit scripts/lib/categorize.cjs:\n\nconst CATEGORIES = {\n  tools: ['github.com', '...'],\n  your_category: ['example.com', '...'],\n  // ...\n};"
      },
      {
        "title": "Changing Output Directory",
        "body": "Edit scripts/process.cjs:\n\nconst KNOWLEDGE_DIR = 'your-directory-name';"
      },
      {
        "title": "Using Different AI Provider",
        "body": "Modify the generateMetadata() function in scripts/process.cjs to use your preferred API."
      },
      {
        "title": "Testing",
        "body": "Run the test suite:\n\n# Run all tests\ncd skills/x-bookmark-archiver/tests\nnode test-all.cjs\n\n# Run individual test suites\nnode lib/categorize.test.cjs\nnode lib/state.test.cjs\nnode integration.test.cjs"
      },
      {
        "title": "Test Coverage",
        "body": "Unit tests: categorize.js (21 tests) - URL pattern matching\nUnit tests: state.js (9 tests) - JSON read/write operations\nIntegration tests (12 tests) - Full pipeline with mock data"
      },
      {
        "title": "Manual Testing",
        "body": "Without bird CLI, you can test with mock data:\n\n# Create mock pending data\ncat > /tmp/test-pending.json << 'EOF'\n[\n  {\n    \"id\": \"test123\",\n    \"url\": \"https://github.com/test/repo\",\n    \"text\": \"Test bookmark\"\n  }\n]\nEOF\n\n# Copy to state directory and process\nmkdir -p /root/clawd/.state\ncp /tmp/test-pending.json /root/clawd/.state/x-bookmark-pending.json\nnode skills/x-bookmark-archiver/scripts/process.cjs"
      },
      {
        "title": "Troubleshooting",
        "body": "IssueSolutionbird: command not foundInstall bird CLI from GitHub releasesNo bookmarks fetchedEnsure you're logged into X in birdAI summaries not generatingCheck OPENAI_API_KEY is sett.co links not expandingMay be network/timeout issues; will use original URL"
      },
      {
        "title": "File Structure",
        "body": "skills/x-bookmark-archiver/\n├── SKILL.md\n├── scripts/\n│   ├── fetch.cjs          # Download bookmarks from X (CommonJS)\n│   ├── process.cjs        # Generate markdown files (CommonJS)\n│   ├── run.cjs            # Orchestrate fetch → process (CommonJS)\n│   └── lib/\n│       ├── categorize.cjs # URL → category mapping (CommonJS)\n│       └── state.cjs      # JSON state management (CommonJS)\n└── tests/\n    ├── test-all.cjs\n    ├── lib/\n    │   ├── categorize.test.cjs\n│   │   └── state.test.cjs\n    ├── integration.test.cjs\n    └── fixtures/\n        └── sample-bookmarks.json"
      },
      {
        "title": "License",
        "body": "MIT"
      }
    ],
    "body": "X Bookmark Archiver\n\nArchive your X (Twitter) bookmarks into categorized markdown files with AI-generated summaries.\n\nOverview\n\nThis skill fetches your X bookmarks using the bird CLI, categorizes them by URL patterns, generates AI summaries using OpenAI, and saves them as organized markdown files.\n\nPrerequisites\nbird CLI - Install from steipete/bird\nOpenAI API Key (optional) - Set OPENAI_API_KEY for AI-generated summaries\nNode.js 18+\nInstallation\n# Ensure bird CLI is installed and authenticated\nbird --version\n\n# Set OpenAI API key (optional, for AI summaries)\nexport OPENAI_API_KEY=\"sk-...\"\n\nCommands\nrun - Full Pipeline\n\nFetches new bookmarks and processes them:\n\nnode skills/x-bookmark-archiver/scripts/run.cjs\n\nrun --force - Process Existing\n\nSkip fetch, process only pending bookmarks:\n\nnode skills/x-bookmark-archiver/scripts/run.cjs --force\n\nfetch - Download Bookmarks Only\nnode skills/x-bookmark-archiver/scripts/fetch.cjs\n\nprocess - Archive Pending Only\nnode skills/x-bookmark-archiver/scripts/process.cjs\n\nCategory Mapping\n\nBookmarks are automatically categorized based on URL patterns:\n\nCategory\tDomains\ntools\tgithub.com, gitlab.com, github.io, huggingface.co, replicate.com, vercel.com, npmjs.com, pypi.org\narticles\tmedium.com, substack.com, dev.to, hashnode.dev, x.com/i/article, blog.*, towardsdatascience.com\nvideos\tyoutube.com, youtu.be, vimeo.com, twitch.tv\nresearch\tarxiv.org, paperswithcode.com, semanticscholar.org, researchgate.net, dl.acm.org, ieee.org\nnews\ttechcrunch.com, theverge.com, hn.algolia.com, news.ycombinator.com, wired.com, arstechnica.com\nbookmarks\tfallback for unmatched URLs\nOutput Location\n\nMarkdown files are created in the OpenClaw workspace at:\n\nLegacy installs (old name):\n\n~/clawd/X-knowledge/\n\n\nNew installs:\n\n~/.openclaw/workspace/X-knowledge/\n\n\nWith profile (OPENCLAW_PROFILE=prod):\n\n~/.openclaw/workspace-prod/X-knowledge/\n\n\nOverride with environment variable:\n\nexport OPENCLAW_WORKSPACE=/custom/path\nnode skills/x-bookmark-archiver/scripts/run.cjs\n# Creates: /custom/path/X-knowledge/\n\nOutput Structure\n~/.openclaw/workspace/X-knowledge/\n├── tools/\n│   ├── awesome-ai-project.md\n│   └── useful-cli-tool.md\n├── articles/\n│   ├── how-to-build-x.md\n│   └── ml-best-practices.md\n├── videos/\n│   └── conference-talk.md\n├── research/\n│   └── attention-is-all-you-need.md\n├── news/\n│   └── latest-tech-announcement.md\n└── bookmarks/\n    └── misc-link.md\n\nMarkdown Template\n\nEach archived bookmark gets a markdown file with frontmatter:\n\n---\ntitle: \"Awesome AI Project\"\ntype: tool\ndate_archived: 2026-01-31\nsource_tweet: https://x.com/i/web/status/1234567890\nlink: https://github.com/user/repo\ntags: [\"ai\", \"machine-learning\", \"github\"]\n---\n\nThis project implements a novel approach to... (AI-generated summary)\n\nState Management\n\nState files track processing progress:\n\n/root/clawd/.state/\n├── x-bookmark-pending.json     # Bookmarks waiting to be processed\n└── x-bookmark-processed.json   # IDs of already-archived bookmarks\n\nEnvironment Variables\nVariable\tRequired\tDescription\nOPENAI_API_KEY\tNo\tAPI key for AI-generated summaries\nWorkflow\nFetch: Downloads latest 50 bookmarks from X\nFilter: Removes already-processed bookmarks\nExpand: Resolves t.co shortened URLs\nCategorize: Assigns category based on URL domain\nEnrich: Generates title, summary, tags (AI or fallback)\nWrite: Saves as markdown in X-knowledge/{category}/\nTrack: Updates processed IDs, clears pending\nCustomization\nAdding Categories\n\nEdit scripts/lib/categorize.cjs:\n\nconst CATEGORIES = {\n  tools: ['github.com', '...'],\n  your_category: ['example.com', '...'],\n  // ...\n};\n\nChanging Output Directory\n\nEdit scripts/process.cjs:\n\nconst KNOWLEDGE_DIR = 'your-directory-name';\n\nUsing Different AI Provider\n\nModify the generateMetadata() function in scripts/process.cjs to use your preferred API.\n\nTesting\n\nRun the test suite:\n\n# Run all tests\ncd skills/x-bookmark-archiver/tests\nnode test-all.cjs\n\n# Run individual test suites\nnode lib/categorize.test.cjs\nnode lib/state.test.cjs\nnode integration.test.cjs\n\nTest Coverage\nUnit tests: categorize.js (21 tests) - URL pattern matching\nUnit tests: state.js (9 tests) - JSON read/write operations\nIntegration tests (12 tests) - Full pipeline with mock data\nManual Testing\n\nWithout bird CLI, you can test with mock data:\n\n# Create mock pending data\ncat > /tmp/test-pending.json << 'EOF'\n[\n  {\n    \"id\": \"test123\",\n    \"url\": \"https://github.com/test/repo\",\n    \"text\": \"Test bookmark\"\n  }\n]\nEOF\n\n# Copy to state directory and process\nmkdir -p /root/clawd/.state\ncp /tmp/test-pending.json /root/clawd/.state/x-bookmark-pending.json\nnode skills/x-bookmark-archiver/scripts/process.cjs\n\nTroubleshooting\nIssue\tSolution\nbird: command not found\tInstall bird CLI from GitHub releases\nNo bookmarks fetched\tEnsure you're logged into X in bird\nAI summaries not generating\tCheck OPENAI_API_KEY is set\nt.co links not expanding\tMay be network/timeout issues; will use original URL\nFile Structure\nskills/x-bookmark-archiver/\n├── SKILL.md\n├── scripts/\n│   ├── fetch.cjs          # Download bookmarks from X (CommonJS)\n│   ├── process.cjs        # Generate markdown files (CommonJS)\n│   ├── run.cjs            # Orchestrate fetch → process (CommonJS)\n│   └── lib/\n│       ├── categorize.cjs # URL → category mapping (CommonJS)\n│       └── state.cjs      # JSON state management (CommonJS)\n└── tests/\n    ├── test-all.cjs\n    ├── lib/\n    │   ├── categorize.test.cjs\n│   │   └── state.test.cjs\n    ├── integration.test.cjs\n    └── fixtures/\n        └── sample-bookmarks.json\n\nLicense\n\nMIT"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Iamadig/x-bookmark-archiver",
    "publisherUrl": "https://clawhub.ai/Iamadig/x-bookmark-archiver",
    "owner": "Iamadig",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/x-bookmark-archiver",
    "downloadUrl": "https://openagent3.xyz/downloads/x-bookmark-archiver",
    "agentUrl": "https://openagent3.xyz/skills/x-bookmark-archiver/agent",
    "manifestUrl": "https://openagent3.xyz/skills/x-bookmark-archiver/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/x-bookmark-archiver/agent.md"
  }
}