[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EMCKA8SMSS7MT8G0DJHVXF":3,"skill-same:01M7EMCKA8SMSS7MT8G0DJHVXF":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7EMCKA8SMSS7MT8G0DJHVXF","base64-pro",null,"Encode and decode Base64 correctly with URL-safe variants, padding rules, and binary handling.","TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-base64-pro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: base64-pro\ndescription: Encode and decode Base64 correctly with URL-safe variants, padding rules, and binary handling.\ncategory: utilities\n---\n\n## Overview\n\nBase64 shows up everywhere: data URIs, JWTs, basic auth headers, email attachments, embedding binary\nin JSON. It's simple — 3 bytes become 4 ASCII characters — but the variants (standard vs URL-safe),\npadding rules, and text-vs-binary confusions cause endless bugs. This skill covers correct Base64\nhandling in practice.\n\n## When to use\n\n- Encoding\u002Fdecoding Base64 strings and files\n\n- Working with data URIs, JWTs, or auth headers\n\n- Choosing between standard and URL-safe Base64\n\n- Debugging padding errors and character-set issues\n\n- Embedding binary data in text formats (JSON, XML)\n\n## Core concepts\n\n- - **What it is (and isn't).** Base64 is an encoding, not encryption — it provides zero security.\n  It expands data by ~33% (plus padding). Anyone can decode it; never put secrets in Base64 thinking\n  they're protected.\n- - **Standard vs URL-safe.** Standard alphabet: `A–Z a–z 0–9 + \u002F`. URL-safe replaces `+`→`-` and\n  `\u002F`→`_` (JWTs, URLs, filenames). Mixing alphabets is the #1 decode failure — know which variant\n  you're holding.\n- - **Padding.** `=` pads the output to a multiple of 4 characters. Some systems omit padding (JWT\n  does); some require it. When decoding, you may need to re-add padding: `s + \"=\" * (-len(s) % 4)`.\n- - **Text vs bytes.** Base64 operates on bytes. Encoding text requires choosing a character\n  encoding first (UTF-8, almost always). The classic bug: encoding a Python `str` without\n  `.encode(\"utf-8\")`, or decoding to bytes and printing garbage instead of `.decode(\"utf-8\")`.\n- - **Line wrapping.** MIME Base64 wraps at 76 characters (email); most modern uses don't wrap.\n  Unexpected newlines in encoded output break naive decoders — strip whitespace before decoding.\n- - **Data URIs.** `data:image\u002Fpng;base64,iVBOR...` embeds images in HTML\u002FCSS. Convenient for small\n  assets; bloats pages for large ones (33% overhead + no caching). Rule of thumb: inline under ~4KB,\n  link above.\n\n## Practical workflow\n\n1. 1. **Identify the variant.** Look at the alphabet: `+`\u002F`\u002F` = standard, `-`\u002F`_` = URL-safe. Check\n   for padding (`=` at the end) or its absence. JWT segments are URL-safe without padding.\n2. 2. **Encode correctly.** Text → UTF-8 bytes → Base64. Binary files → read as bytes → Base64.\n   Specify the variant explicitly; don't rely on defaults across languages.\n3. 3. **Decode defensively.** Strip whitespace\u002Fnewlines, restore padding if missing, use the\n   matching variant decoder. Validate the decoded bytes (is it actually UTF-8 text? a valid image\n   header?).\n4. **Handle in code.** Python:\n   ```python\n   import base64\n   # Standard\n   enc = base64.b64encode(b\"hello\").decode()          # 'aGVsbG8='\n   dec = base64.b64decode(\"aGVsbG8=\").decode()        # 'hello'\n   # URL-safe (JWT-style), no padding\n   enc = base64.urlsafe_b64encode(b\"hello\").decode().rstrip(\"=\")\n   padded = enc + \"=\" * (-len(enc) % 4)\n   dec = base64.urlsafe_b64decode(padded).decode()\n   ```\n   Shell: `echo -n \"hello\" | base64` \u002F `echo \"aGVsbG8=\" | base64 -d`\n5. 5. **Size-check the use case.** For large binaries in JSON\u002FAPIs, consider whether Base64 (33%\n   overhead) is right vs multipart upload or direct binary transfer.\n6. 6. **Never for secrecy.** If the data needs protection, encrypt first (then Base64 the ciphertext\n   for transport if needed). Base64 alone is obfuscation, not security.\n\n## Common pitfalls\n\n- - **Variant mismatch.** Decoding URL-safe input with a standard decoder (or vice versa) — fails on\n  `-`, `_`, `+`, `\u002F`. Match the variant.\n- - **Missing padding.** \"Incorrect padding\" errors from JWT-style unpadded input. Re-pad before\n  decoding.\n- - **Str\u002Fbytes confusion.** Forgetting to encode text to bytes first, or forgetting to decode bytes\n  after. In typed languages this is a compile error; in Python it's a runtime surprise.\n- - **Wrong text encoding.** Encoding as Latin-1 but decoding as UTF-8 (or vice versa) corrupts\n  non-ASCII text. UTF-8 everywhere, explicitly.\n- - **Newlines in output.** MIME-wrapped Base64 pasted into JSON or URLs breaks. Strip whitespace or\n  use non-wrapping encoders.\n- - **Security theater.** \"We Base64-encoded the API key in the client\" — it's visible to anyone who\n  looks. Encoding ≠ encryption, ever.\n","## Overview\n\nBase64 shows up everywhere: data URIs, JWTs, basic auth headers, email attachments, embedding binary\nin JSON. It's simple — 3 bytes become 4 ASCII characters — but the variants (standard vs URL-safe),\npadding rules, and text-vs-binary confusions cause endless bugs. This skill covers correct Base64\nhandling in practice.\n\n## When to use\n\n- Encoding\u002Fdecoding Base64 strings and files\n\n- Working with data URIs, JWTs, or auth headers\n\n- Choosing between standard and URL-safe Base64\n\n- Debugging padding errors and character-set issues\n\n- Embedding binary data in text formats (JSON, XML)\n\n## Core concepts\n\n- - **What it is (and isn't).** Base64 is an encoding, not encryption — it provides zero security.\n  It expands data by ~33% (plus padding). Anyone can decode it; never put secrets in Base64 thinking\n  they're protected.\n- - **Standard vs URL-safe.** Standard alphabet: `A–Z a–z 0–9 + \u002F`. URL-safe replaces `+`→`-` and\n  `\u002F`→`_` (JWTs, URLs, filenames). Mixing alphabets is the #1 decode failure — know which variant\n  you're holding.\n- - **Padding.** `=` pads the output to a multiple of 4 characters. Some systems omit padding (JWT\n  does); some require it. When decoding, you may need to re-add padding: `s + \"=\" * (-len(s) % 4)`.\n- - **Text vs bytes.** Base64 operates on bytes. Encoding text requires choosing a character\n  encoding first (UTF-8, almost always). The classic bug: encoding a Python `str` without\n  `.encode(\"utf-8\")`, or decoding to bytes and printing garbage instead of `.decode(\"utf-8\")`.\n- - **Line wrapping.** MIME Base64 wraps at 76 characters (email); most modern uses don't wrap.\n  Unexpected newlines in encoded output break naive decoders — strip whitespace before decoding.\n- - **Data URIs.** `data:image\u002Fpng;base64,iVBOR...` embeds images in HTML\u002FCSS. Convenient for small\n  assets; bloats pages for large ones (33% overhead + no caching). Rule of thumb: inline under ~4KB,\n  link above.\n\n## Practical workflow\n\n1. 1. **Identify the variant.** Look at the alphabet: `+`\u002F`\u002F` = standard, `-`\u002F`_` = URL-safe. Check\n   for padding (`=` at the end) or its absence. JWT segments are URL-safe without padding.\n2. 2. **Encode correctly.** Text → UTF-8 bytes → Base64. Binary files → read as bytes → Base64.\n   Specify the variant explicitly; don't rely on defaults across languages.\n3. 3. **Decode defensively.** Strip whitespace\u002Fnewlines, restore padding if missing, use the\n   matching variant decoder. Validate the decoded bytes (is it actually UTF-8 text? a valid image\n   header?).\n4. **Handle in code.** Python:\n   ```python\n   import base64\n   # Standard\n   enc = base64.b64encode(b\"hello\").decode()          # 'aGVsbG8='\n   dec = base64.b64decode(\"aGVsbG8=\").decode()        # 'hello'\n   # URL-safe (JWT-style), no padding\n   enc = base64.urlsafe_b64encode(b\"hello\").decode().rstrip(\"=\")\n   padded = enc + \"=\" * (-len(enc) % 4)\n   dec = base64.urlsafe_b64decode(padded).decode()\n   ```\n   Shell: `echo -n \"hello\" | base64` \u002F `echo \"aGVsbG8=\" | base64 -d`\n5. 5. **Size-check the use case.** For large binaries in JSON\u002FAPIs, consider whether Base64 (33%\n   overhead) is right vs multipart upload or direct binary transfer.\n6. 6. **Never for secrecy.** If the data needs protection, encrypt first (then Base64 the ciphertext\n   for transport if needed). Base64 alone is obfuscation, not security.\n\n## Common pitfalls\n\n- - **Variant mismatch.** Decoding URL-safe input with a standard decoder (or vice versa) — fails on\n  `-`, `_`, `+`, `\u002F`. Match the variant.\n- - **Missing padding.** \"Incorrect padding\" errors from JWT-style unpadded input. Re-pad before\n  decoding.\n- - **Str\u002Fbytes confusion.** Forgetting to encode text to bytes first, or forgetting to decode bytes\n  after. In typed languages this is a compile error; in Python it's a runtime surprise.\n- - **Wrong text encoding.** Encoding as Latin-1 but decoding as UTF-8 (or vice versa) corrupts\n  non-ASCII text. UTF-8 everywhere, explicitly.\n- - **Newlines in output.** MIME-wrapped Base64 pasted into JSON or URLs breaks. Strip whitespace or\n  use non-wrapping encoders.\n- - **Security theater.** \"We Base64-encoded the API key in the client\" — it's visible to anyone who\n  looks. Encoding ≠ encryption, ever.\n",{"name":5,"category":24,"description":7},"utilities","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-base64-pro",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill base64-pro",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill base64-pro",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill base64-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-base64-pro\u002FSKILL.md",true,[],[48,55,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]