[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75TSMP7GSHA4DFCVMY8T9BF":3,"skill-same:01M75TSMP7GSHA4DFCVMY8T9BF":64},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":27,"install":28,"resources":41},"01M75TSMP7GSHA4DFCVMY8T9BF","file_hub_tools",null,"damien-robotsix\u002Frobotsix-chat","damien-robotsix","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F130368771?v=4","01M75TS5N09AA5MQAS3V6TPNM5","Damien SIX","01M75TS5NMBPJ3RRHERKBVA7DY",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdamien-robotsix\u002Frobotsix-chat\u002Fblob\u002Fmain\u002Fsrc\u002Frobotsix_chat\u002Ffile_hub_tools\u002Fskill.md",[],[],"2026-11-12 13:55:43",false,"## File-hub tools — document fetch, fill, render, and upload\n\nYou have six tools for working with files via the robotsix-file-hub service:\n\n### `file_hub_get` — download a file from file-hub\n\nDownloads a file by its file-hub UUID to a local working directory and returns the local path plus\nmetadata (filename, size, content-type, category, tags, summary).\n\n**Use when:** you need to inspect, process, or fill a document that was pushed to file-hub (e.g. a\nPDF attachment from an email).\n\n**Example:** `file_hub_get(file_id=\"e0367d94-1895-4756-8730-3867f694fd05\")`\n\n### `list_pdf_form_fields` — inspect fillable fields in a PDF\n\nLists all AcroForm form fields in a PDF: field names, types, current values, and available options\n(for dropdowns\u002Fcheckboxes). Use this before `fill_pdf_document` to discover what fields are\navailable.\n\n**Use when:** you have a PDF and need to know what form fields it contains before filling them.\n\n**Example:** `list_pdf_form_fields(pdf_path=\"\u002Fdata\u002Ffile_hub_work\u002Fform.pdf\")`\n\n### `render_pdf_page` — render a PDF page to a viewable image\n\nRenders page N of a local PDF to a raster image (PNG) so you can visually inspect the page — see\nfield box positions, verify overlay placement, or identify where to draw text. Returns the image as\nbase64 data plus pixel dimensions and PDF-point page size for coordinate conversion.\n\n**Use when:** you need to see a PDF page visually — to find form field box positions before\noverlaying text, or to verify that filled overlays are correctly placed.\n\n**Coordinate conversion:** The response includes `page_width_points` and `page_height_points` (the\npage size in PDF points, 1 pt = 1\u002F72 inch). To convert a pixel position from the rendered image to\nPDF overlay coordinates:\n\n```text\npdf_x = pixel_x * page_width_points \u002F width\npdf_y = page_height_points - (pixel_y * page_height_points \u002F height)\n```\n\nNote the Y-axis flip: rendered images have Y=0 at the **top**, but PDF coordinates have Y=0 at the\n**bottom**.\n\n**Example:**\n\n```text\nrender_pdf_page(pdf_path=\"\u002Fdata\u002Ffile_hub_work\u002Fsepa_mandate.pdf\", page=0, dpi=120)\n```\n\n### `fill_pdf_document` — fill a PDF form, overlay text, or stamp images\n\nFills a PDF in one or more of three modes:\n\n1. **Form-field fill** — for PDFs with AcroForm fields. Pass `field_values` as a JSON object mapping\n   field names to values: `{\"name\": \"John Doe\", \"date\": \"2025-01-15\"}`\n\n1. **Text overlay** — for flat\u002Fnon-form PDFs. Pass `text_overlays` as a JSON array:\n   `[{\"page\": 0, \"x\": 100, \"y\": 700, \"text\": \"John Doe\", \"font_size\": 12}]`\n\n1. **Image overlay** — stamp a local image (PNG with transparency) onto the PDF. Pass\n   `image_overlays` as a JSON array:\n   `[{\"page\": 0, \"x\": 400, \"y\": 50, \"image_path\": \"\u002Fdata\u002Ffile_hub_work\u002Fsignature.png\", \"width\": 150}]`\n   If only `width` or `height` is given, the other is derived from the image's aspect ratio.\n\nCoordinates are in PDF points (72 per inch) from the bottom-left corner of the page. All three modes\ncan be combined in a single call.\n\n**Constraints:**\n\n- **No signature forging.** This tool writes text, field values, and stamps provided images only. It\n  must not generate or synthesize signatures. The human operator provides their own signature image\n  for the agent to stamp.\n- Use `list_pdf_form_fields` first to discover available field names.\n\n**Example (form fill):**\n\n```text\nfill_pdf_document(\n    pdf_path=\"\u002Fdata\u002Ffile_hub_work\u002Fsepa_mandate.pdf\",\n    field_values='{\"account_holder\": \"Jean Dupont\", \"iban\": \"FR76...\", \"bic\": \"BNPAFRPP\"}',\n    output_path=\"\u002Fdata\u002Ffile_hub_work\u002Fsepa_mandate_filled.pdf\"\n)\n```\n\n**Example (overlay):**\n\n```text\nfill_pdf_document(\n    pdf_path=\"\u002Fdata\u002Ffile_hub_work\u002Fflat_form.pdf\",\n    text_overlays='[{\"page\": 0, \"x\": 150, \"y\": 680, \"text\": \"Jean Dupont\"}]',\n    output_path=\"\u002Fdata\u002Ffile_hub_work\u002Fflat_form_filled.pdf\"\n)\n```\n\n**Example (image stamp):**\n\n```text\nfill_pdf_document(\n    pdf_path=\"\u002Fdata\u002Ffile_hub_work\u002Fsepa_mandate.pdf\",\n    image_overlays='[{\"page\": 0, \"x\": 400, \"y\": 50, \"image_path\": \"\u002Fdata\u002Ffile_hub_work\u002Fsignature.png\", \"width\": 150}]',\n    output_path=\"\u002Fdata\u002Ffile_hub_work\u002Fsepa_mandate_signed.pdf\"\n)\n```\n\n### `transform_image` — resize, compress, convert, or strip metadata from an image\n\nRuns a trivial binary-asset transform on an image stored in file-hub. Fetches the source by file-hub\nid, processes it locally with Pillow, uploads the result back to file-hub, and returns the new\nfile-hub id plus before\u002Fafter byte sizes and pixel dimensions. It does the whole file-hub round-trip\nitself — you do **not** need `file_hub_get`\u002F`file_hub_put` around it.\n\n**Use when:** you need to shrink\u002Fcompress a large photo before adding it to a website, convert\nbetween formats (JPEG\u002FPNG\u002FWebP), or strip EXIF\u002FICC metadata.\n\nPass `operations` as a JSON object; every field is optional:\n\n- `resize` — `{\"max_width\": 1600, \"max_height\": 1200}` (either key optional). Preserves aspect ratio\n  and never upscales.\n- `quality` — JPEG\u002FWebP quality 1–100 (default 75).\n- `format` — `\"jpeg\"`, `\"png\"`, or `\"webp\"` (default: keep the source format).\n- `strip_metadata` — bool (default `true`); strip EXIF\u002FICC\u002Fother metadata.\n\n**Constraints:** input images larger than 50 MB are rejected; non-image objects return a clear\nerror. Only the transforms above are available (no arbitrary processing).\n\n**Example:**\n\n```text\ntransform_image(\n    file_id=\"e0367d94-1895-4756-8730-3867f694fd05\",\n    operations='{\"resize\": {\"max_width\": 1600}, \"quality\": 75}',\n    output_filename=\"hero.jpg\"\n)\n```\n\n### `file_hub_put` — upload a file to file-hub\n\nUploads a local file to file-hub, preserving the filename and content-type. Returns the new file-hub\nUUID so the file can be retrieved later or shared.\n\n**Use when:** you have a filled\u002Fprocessed document that needs to go back into file-hub for the\noperator to download, sign, or forward.\n\n**Example:** `file_hub_put(file_path=\"\u002Fdata\u002Ffile_hub_work\u002Fsepa_mandate_filled.pdf\")`\n\n### Typical workflow\n\n1. `file_hub_get` — fetch the document from file-hub\n1. `render_pdf_page` — view the page to identify field positions\n1. `list_pdf_form_fields` — inspect what form fields are available\n1. `fill_pdf_document` — fill the form fields or overlay text\n1. `render_pdf_page` — verify the filled document looks correct\n1. `file_hub_put` — upload the filled document back to file-hub\n\n### Error handling\n\n- **Unknown file id** — `file_hub_get` returns a clear \"File not found\" message.\n- **File-hub unreachable** — all tools return a clear \"File-hub unavailable\" message with the\n  connection error details.\n- **Non-PDF input** — `fill_pdf_document` and `list_pdf_form_fields` return a clear \"Not a valid\n  PDF\" message when the file lacks a `%PDF` header.\n- **Non-image \u002F oversize input** — `transform_image` returns a clear \"Not a decodable image\" message\n  for non-image objects and an \"Image too large\" message when the source exceeds 50 MB.\n",{},"main","c1d7c05ced8b81c2750ddc6e5e49a7803fc90940","src\u002Frobotsix_chat\u002Ffile_hub_tools","https:\u002F\u002Fgithub.com\u002Fdamien-robotsix\u002Frobotsix-chat","https:\u002F\u002Fgithub.com\u002Fdamien-robotsix","2026-11-14 18:49:02",{"source":7,"skillName":5,"commands":29,"prompt":39,"zipAvailable":40},[30,33,36],{"tool":31,"command":32},"npx","npx skills add damien-robotsix\u002Frobotsix-chat --skill file_hub_tools",{"tool":34,"command":35},"bunx","bunx skills add damien-robotsix\u002Frobotsix-chat --skill file_hub_tools",{"tool":37,"command":38},"pnpm","pnpm dlx skills add damien-robotsix\u002Frobotsix-chat --skill file_hub_tools","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdamien-robotsix\u002Frobotsix-chat\u002Fblob\u002Fmain\u002Fsrc\u002Frobotsix_chat\u002Ffile_hub_tools\u002Fskill.md",true,[42,48,52,56,60],{"path":43,"resourceType":44,"resourceTypeDesc":45,"sizeBytes":46,"sourceHtmlUrl":47},"__init__.py","SCRIPT","脚本",19353,"https:\u002F\u002Fgithub.com\u002Fdamien-robotsix\u002Frobotsix-chat\u002Fblob\u002Fmain\u002Fsrc\u002Frobotsix_chat\u002Ffile_hub_tools\u002F__init__.py",{"path":49,"resourceType":44,"resourceTypeDesc":45,"sizeBytes":50,"sourceHtmlUrl":51},"client.py",7765,"https:\u002F\u002Fgithub.com\u002Fdamien-robotsix\u002Frobotsix-chat\u002Fblob\u002Fmain\u002Fsrc\u002Frobotsix_chat\u002Ffile_hub_tools\u002Fclient.py",{"path":53,"resourceType":44,"resourceTypeDesc":45,"sizeBytes":54,"sourceHtmlUrl":55},"image_tools.py",8574,"https:\u002F\u002Fgithub.com\u002Fdamien-robotsix\u002Frobotsix-chat\u002Fblob\u002Fmain\u002Fsrc\u002Frobotsix_chat\u002Ffile_hub_tools\u002Fimage_tools.py",{"path":57,"resourceType":44,"resourceTypeDesc":45,"sizeBytes":58,"sourceHtmlUrl":59},"pdf_tools.py",17337,"https:\u002F\u002Fgithub.com\u002Fdamien-robotsix\u002Frobotsix-chat\u002Fblob\u002Fmain\u002Fsrc\u002Frobotsix_chat\u002Ffile_hub_tools\u002Fpdf_tools.py",{"path":61,"resourceType":44,"resourceTypeDesc":45,"sizeBytes":62,"sourceHtmlUrl":63},"settings.py",2532,"https:\u002F\u002Fgithub.com\u002Fdamien-robotsix\u002Frobotsix-chat\u002Fblob\u002Fmain\u002Fsrc\u002Frobotsix_chat\u002Ffile_hub_tools\u002Fsettings.py",[65,71,77,83,89,95],{"skillNo":66,"name":67,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M75TTQ70FE02S8DNAB423T5H","volume_tools","https:\u002F\u002Fgithub.com\u002Fdamien-robotsix\u002Frobotsix-chat\u002Fblob\u002Fmain\u002Fsrc\u002Frobotsix_chat\u002Fvolume_tools\u002Fskill.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M75TTNCPAPZBKHJTM4WFVAP1","ticket_poll","https:\u002F\u002Fgithub.com\u002Fdamien-robotsix\u002Frobotsix-chat\u002Fblob\u002Fmain\u002Fsrc\u002Frobotsix_chat\u002Fticket_poll\u002Fskill.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M75TTHW71NXKXW144682SPF1","subsessions","https:\u002F\u002Fgithub.com\u002Fdamien-robotsix\u002Frobotsix-chat\u002Fblob\u002Fmain\u002Fsrc\u002Frobotsix_chat\u002Fsubsessions\u002Fskill.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M75TTGBAFPVH6759BNB3G3NR","security","https:\u002F\u002Fgithub.com\u002Fdamien-robotsix\u002Frobotsix-chat\u002Fblob\u002Fmain\u002Fsrc\u002Frobotsix_chat\u002Frepo\u002Fsecurity\u002Fskill.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M75TTCZN8GTQQ92GR7Z6E7Y2","direct","https:\u002F\u002Fgithub.com\u002Fdamien-robotsix\u002Frobotsix-chat\u002Fblob\u002Fmain\u002Fsrc\u002Frobotsix_chat\u002Frepo\u002Fdirect\u002Fskill.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M75TT98KF65BJQNPQ61GQFKV","actions","https:\u002F\u002Fgithub.com\u002Fdamien-robotsix\u002Frobotsix-chat\u002Fblob\u002Fmain\u002Fsrc\u002Frobotsix_chat\u002Frepo\u002Factions\u002Fskill.md",[],[]]