[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FRXCDQAGNK64T65M4RN8BQ":3,"skill-same:01M6FRXCDQAGNK64T65M4RN8BQ":93},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M6FRXCDQAGNK64T65M4RN8BQ","x-bookmark-archiver",null,"kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fiamadig\u002Fx-bookmark-archiver\u002FSKILL.md",[],[17,18,19],"bookmark","archiver","x bookmark archiver","2026-11-10 10:12:30",false,"# X Bookmark Archiver\n\nArchive your X (Twitter) bookmarks into categorized markdown files with AI-generated summaries.\n\n## Overview\n\nThis skill fetches your X bookmarks using the [bird CLI](https:\u002F\u002Fgithub.com\u002Fsteipete\u002Fbird), categorizes them by URL patterns, generates AI summaries using OpenAI, and saves them as organized markdown files.\n\n## Prerequisites\n\n1. **bird CLI** - Install from [steipete\u002Fbird](https:\u002F\u002Fgithub.com\u002Fsteipete\u002Fbird)\n2. **OpenAI API Key** (optional) - Set `OPENAI_API_KEY` for AI-generated summaries\n3. **Node.js 18+**\n\n## Installation\n\n```bash\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```\n\n## Commands\n\n### `run` - Full Pipeline\n\nFetches new bookmarks and processes them:\n\n```bash\nnode skills\u002Fx-bookmark-archiver\u002Fscripts\u002Frun.cjs\n```\n\n### `run --force` - Process Existing\n\nSkip fetch, process only pending bookmarks:\n\n```bash\nnode skills\u002Fx-bookmark-archiver\u002Fscripts\u002Frun.cjs --force\n```\n\n### `fetch` - Download Bookmarks Only\n\n```bash\nnode skills\u002Fx-bookmark-archiver\u002Fscripts\u002Ffetch.cjs\n```\n\n### `process` - Archive Pending Only\n\n```bash\nnode skills\u002Fx-bookmark-archiver\u002Fscripts\u002Fprocess.cjs\n```\n\n## Category Mapping\n\nBookmarks are automatically categorized based on URL patterns:\n\n| Category | Domains |\n|----------|---------|\n| **tools** | github.com, gitlab.com, github.io, huggingface.co, replicate.com, vercel.com, npmjs.com, pypi.org |\n| **articles** | medium.com, substack.com, dev.to, hashnode.dev, x.com\u002Fi\u002Farticle, blog.*, towardsdatascience.com |\n| **videos** | youtube.com, youtu.be, vimeo.com, twitch.tv |\n| **research** | arxiv.org, paperswithcode.com, semanticscholar.org, researchgate.net, dl.acm.org, ieee.org |\n| **news** | techcrunch.com, theverge.com, hn.algolia.com, news.ycombinator.com, wired.com, arstechnica.com |\n| **bookmarks** | *fallback for unmatched URLs* |\n\n## Output Location\n\nMarkdown files are created in the **OpenClaw workspace** at:\n\n**Legacy installs (old name):**\n```\n~\u002Fclawd\u002FX-knowledge\u002F\n```\n\n**New installs:**\n```\n~\u002F.openclaw\u002Fworkspace\u002FX-knowledge\u002F\n```\n\n**With profile (`OPENCLAW_PROFILE=prod`):**\n```\n~\u002F.openclaw\u002Fworkspace-prod\u002FX-knowledge\u002F\n```\n\n**Override with environment variable:**\n```bash\nexport OPENCLAW_WORKSPACE=\u002Fcustom\u002Fpath\nnode skills\u002Fx-bookmark-archiver\u002Fscripts\u002Frun.cjs\n# Creates: \u002Fcustom\u002Fpath\u002FX-knowledge\u002F\n```\n\n## Output Structure\n\n```\n~\u002F.openclaw\u002Fworkspace\u002FX-knowledge\u002F\n├── tools\u002F\n│   ├── awesome-ai-project.md\n│   └── useful-cli-tool.md\n├── articles\u002F\n│   ├── how-to-build-x.md\n│   └── ml-best-practices.md\n├── videos\u002F\n│   └── conference-talk.md\n├── research\u002F\n│   └── attention-is-all-you-need.md\n├── news\u002F\n│   └── latest-tech-announcement.md\n└── bookmarks\u002F\n    └── misc-link.md\n```\n\n## Markdown Template\n\nEach archived bookmark gets a markdown file with frontmatter:\n\n```markdown\n---\ntitle: \"Awesome AI Project\"\ntype: tool\ndate_archived: 2026-01-31\nsource_tweet: https:\u002F\u002Fx.com\u002Fi\u002Fweb\u002Fstatus\u002F1234567890\nlink: https:\u002F\u002Fgithub.com\u002Fuser\u002Frepo\ntags: [\"ai\", \"machine-learning\", \"github\"]\n---\n\nThis project implements a novel approach to... (AI-generated summary)\n```\n\n## State Management\n\nState files track processing progress:\n\n```\n\u002Froot\u002Fclawd\u002F.state\u002F\n├── x-bookmark-pending.json     # Bookmarks waiting to be processed\n└── x-bookmark-processed.json   # IDs of already-archived bookmarks\n```\n\n## Environment Variables\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `OPENAI_API_KEY` | No | API key for AI-generated summaries |\n\n## Workflow\n\n1. **Fetch**: Downloads latest 50 bookmarks from X\n2. **Filter**: Removes already-processed bookmarks\n3. **Expand**: Resolves t.co shortened URLs\n4. **Categorize**: Assigns category based on URL domain\n5. **Enrich**: Generates title, summary, tags (AI or fallback)\n6. **Write**: Saves as markdown in `X-knowledge\u002F{category}\u002F`\n7. **Track**: Updates processed IDs, clears pending\n\n## Customization\n\n### Adding Categories\n\nEdit `scripts\u002Flib\u002Fcategorize.cjs`:\n\n```javascript\nconst CATEGORIES = {\n  tools: ['github.com', '...'],\n  your_category: ['example.com', '...'],\n  \u002F\u002F ...\n};\n```\n\n### Changing Output Directory\n\nEdit `scripts\u002Fprocess.cjs`:\n\n```javascript\nconst KNOWLEDGE_DIR = 'your-directory-name';\n```\n\n### Using Different AI Provider\n\nModify the `generateMetadata()` function in `scripts\u002Fprocess.cjs` to use your preferred API.\n\n## Testing\n\nRun the test suite:\n\n```bash\n# Run all tests\ncd skills\u002Fx-bookmark-archiver\u002Ftests\nnode test-all.cjs\n\n# Run individual test suites\nnode lib\u002Fcategorize.test.cjs\nnode lib\u002Fstate.test.cjs\nnode integration.test.cjs\n```\n\n### Test Coverage\n\n- **Unit tests**: `categorize.js` (21 tests) - URL pattern matching\n- **Unit tests**: `state.js` (9 tests) - JSON read\u002Fwrite operations\n- **Integration tests** (12 tests) - Full pipeline with mock data\n\n### Manual Testing\n\nWithout bird CLI, you can test with mock data:\n\n```bash\n# Create mock pending data\ncat > \u002Ftmp\u002Ftest-pending.json \u003C\u003C 'EOF'\n[\n  {\n    \"id\": \"test123\",\n    \"url\": \"https:\u002F\u002Fgithub.com\u002Ftest\u002Frepo\",\n    \"text\": \"Test bookmark\"\n  }\n]\nEOF\n\n# Copy to state directory and process\nmkdir -p \u002Froot\u002Fclawd\u002F.state\ncp \u002Ftmp\u002Ftest-pending.json \u002Froot\u002Fclawd\u002F.state\u002Fx-bookmark-pending.json\nnode skills\u002Fx-bookmark-archiver\u002Fscripts\u002Fprocess.cjs\n```\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| `bird: command not found` | Install bird CLI from GitHub releases |\n| No bookmarks fetched | Ensure you're logged into X in bird |\n| AI summaries not generating | Check `OPENAI_API_KEY` is set |\n| t.co links not expanding | May be network\u002Ftimeout issues; will use original URL |\n\n## File Structure\n\n```\nskills\u002Fx-bookmark-archiver\u002F\n├── SKILL.md\n├── scripts\u002F\n│   ├── fetch.cjs          # Download bookmarks from X (CommonJS)\n│   ├── process.cjs        # Generate markdown files (CommonJS)\n│   ├── run.cjs            # Orchestrate fetch → process (CommonJS)\n│   └── lib\u002F\n│       ├── categorize.cjs # URL → category mapping (CommonJS)\n│       └── state.cjs      # JSON state management (CommonJS)\n└── tests\u002F\n    ├── test-all.cjs\n    ├── lib\u002F\n    │   ├── categorize.test.cjs\n│   │   └── state.test.cjs\n    ├── integration.test.cjs\n    └── fixtures\u002F\n        └── sample-bookmarks.json\n```\n\n## License\n\nMIT\n",{},"main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fiamadig\u002Fx-bookmark-archiver",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add kbarbel640-del\u002Fskills --skill x-bookmark-archiver",{"tool":37,"command":38},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill x-bookmark-archiver",{"tool":40,"command":41},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill x-bookmark-archiver","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fiamadig\u002Fx-bookmark-archiver\u002FSKILL.md",true,[45,51,57,61,65,69,73,77,81,85,89],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"_meta.json","REFERENCE","参考文档",292,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fiamadig\u002Fx-bookmark-archiver\u002F_meta.json",{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"scripts\u002Ffetch.cjs","SCRIPT","脚本",1716,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fiamadig\u002Fx-bookmark-archiver\u002Fscripts\u002Ffetch.cjs",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"scripts\u002Flib\u002Fcategorize.cjs",1291,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fiamadig\u002Fx-bookmark-archiver\u002Fscripts\u002Flib\u002Fcategorize.cjs",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"scripts\u002Flib\u002Fstate.cjs",2166,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fiamadig\u002Fx-bookmark-archiver\u002Fscripts\u002Flib\u002Fstate.cjs",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"scripts\u002Fprocess.cjs",8158,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fiamadig\u002Fx-bookmark-archiver\u002Fscripts\u002Fprocess.cjs",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"scripts\u002Frun.cjs",1775,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fiamadig\u002Fx-bookmark-archiver\u002Fscripts\u002Frun.cjs",{"path":74,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":75,"sourceHtmlUrl":76},"tests\u002Ffixtures\u002Fsample-bookmarks.json",891,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fiamadig\u002Fx-bookmark-archiver\u002Ftests\u002Ffixtures\u002Fsample-bookmarks.json",{"path":78,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":79,"sourceHtmlUrl":80},"tests\u002Fintegration.test.cjs",6861,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fiamadig\u002Fx-bookmark-archiver\u002Ftests\u002Fintegration.test.cjs",{"path":82,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":83,"sourceHtmlUrl":84},"tests\u002Flib\u002Fcategorize.test.cjs",3629,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fiamadig\u002Fx-bookmark-archiver\u002Ftests\u002Flib\u002Fcategorize.test.cjs",{"path":86,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":87,"sourceHtmlUrl":88},"tests\u002Flib\u002Fstate.test.cjs",4627,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fiamadig\u002Fx-bookmark-archiver\u002Ftests\u002Flib\u002Fstate.test.cjs",{"path":90,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":91,"sourceHtmlUrl":92},"tests\u002Ftest-all.cjs",1448,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fiamadig\u002Fx-bookmark-archiver\u002Ftests\u002Ftest-all.cjs",[94,120,144,162,167,187],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":20},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":20},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[127,103,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,108,143],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":20},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[151,152,153,154,155,156,157,104,158,141,143,159,103,160,161],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":163,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":20},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[154,153,152,151,161,156,157,104,155,141,143,158,159,103,160],{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":20},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[174,175,176,177,178,179,180,181,182,183,184,185,186],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":188,"name":189,"nameZh":6,"description":190,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":191,"categories":192,"keywords":193,"publishedAt":20},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[194,195,196,197,104,198,199,24,200,159,201,202,203,204,205,117,206,207,208],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]