[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F28EHG0XQBYM34ECQ1YAWP":3,"skill-same:01M7F28EHG0XQBYM34ECQ1YAWP":49},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7F28EHG0XQBYM34ECQ1YAWP","slipway-translate",null,"Add a language to a Slipway site, translate pages, and keep every translation linked through lang and translation_key, then check it with slipway check.","arminazimi\u002Fslipway","arminazimi","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F33401832?v=4","01M7F1ZTKSXGKQGEXS7MJAEB2N","Armin Azimi","01M7F26NCHMY6W6ZZT1YDRNGSV",2,"MIT","https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway\u002Fblob\u002Fmain\u002Fskills\u002Fslipway-translate\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: slipway-translate\ndescription: Add a language to a Slipway site, translate pages, and keep every translation linked through lang and translation_key, then check it with slipway check.\nmetadata:\n  version: \"0.3.0\"\n---\n\n# Translate a Slipway site\n\nA Slipway site joins translations with two front matter keys: `lang` says which language a page is in, and `translation_key` is the same on every translation of one page. The engine reads both and the theme uses `lang` for the interface strings and the text direction. You translate the words and set the language; you never build the links by hand. If the site has an `AGENTS.md`, read it first; it wins where it differs from this Skill.\n\n## 1. Take a baseline\n\nFrom the site folder, run the check before you change anything, and keep its output:\n\n```sh\nslipway check .\n```\n\nYour edit is done when it adds no finding that names your file. `slipway` is the engine's command line, released with the engine (`engine.cli`). Until it is installed, say so in your report and do not invent a result.\n\n## 2. List the language in the config\n\n`languages` in `slipway.yml` lists every language, in switcher order. Each entry needs a `code` (the `lang` value, such as `de` or `pt-BR`), a `name` in that language, and a `prefix` (the URL folder, or `\"\"` for the default language):\n\n```yaml\n# slipway.yml\nlanguages:\n  - { code: en, name: English, prefix: \"\" }\n  - { code: de, name: Deutsch, prefix: \u002Fde }\n```\n\nPages in the second language live under its prefix folder: `de\u002Findex.md`, `de\u002Finstall.md`. A page's `lang` comes from its front matter, then from the prefix of its folder, then from `lang` in `slipway.yml`. Its URL comes from its path, so `de\u002Finstall.md` is `\u002Fde\u002Finstall\u002F`.\n\nEach language needs a home page under its prefix (such as `de\u002Findex.md`, with `lang: de`, and the same `translation_key` as the default home). Without it the language has no landing page. Do not add a language without its home page, and do not add one only to translate a single page unless the owner asks: it changes the language list for the whole site.\n\n## 3. Interface strings\n\nThe theme ships its labels (Search, Next, Language, and the rest) in English, Persian, and Arabic. A page in another language falls back to English; a site cannot add or override interface strings in 0.3. Do not create `_data\u002Fi18n\u002F` or edit theme files to translate a label: report the missing label to the owner instead.\n\nText direction follows `lang`: `fa`, `ar`, `he`, and `ur` are right to left, and the engine knows the other right-to-left languages. Never set `dir` for a language the engine already marks right to left. Set `dir: rtl` in the front matter, or in `slipway.yml` when the whole site is that language, only for a right-to-left language the engine does not know.\n\n## 4. Translate a page\n\n1. On the original, set `lang` (even for the default language) and a `translation_key` such as `about`.\n2. Create the translation under the language prefix, such as `de\u002Fabout.md`, with the same `translation_key` and `lang: de`. It keeps the original's address only when the original sets `permalink`; then set a `permalink` under the prefix, such as `\u002Fde\u002Fabout\u002F`, or the two pages collide.\n3. Front matter: keep `translation_key`, the `layout`, the `order`, and the `agent` value; translate `title` and `description`.\n4. Body: translate the prose. Keep code, commands, file names, and URLs as they are.\n5. A link to a page that already has a translation points at the translated address (`\u002Fde\u002Fdocs\u002F`); every other link keeps the default-language address.\n6. Add the page to `main_de` or `docs_de` in `_data\u002Fnavigation.yml` when the language has those lists.\n\nA page without a `lang` key inherits its language from its folder prefix, then from the site language. A different `translation_key` still keeps the page out of its translation group.\n\n## 5. Keep the translations linked\n\n- `translation_key` and `lang` are the pair that links translations. Two pages with the same key and the same language are a duplicate; a page with a key but no other language is an untranslated page.\n- Never change a key on one translation only. Change every page that shares it, or none. A key changed on one page separates it from its translations.\n- The doctor's `translation-pair` warning names a key and a missing language in `languages`. It is coverage, not an error: work through it for the pages in scope, and never silence it by removing a key or a language.\n- `sourcemap.json` and the Markdown twins in the build carry each page's own text, so a translation is read and checked as its own page.\n\n## 6. Check the edit\n\nBuild the site, then compare the result with the baseline:\n\n```sh\nslipway check .\nslipway build . --out dist\n```\n\nOpen the built home page and the translated page: the translated page should carry `dir=\"rtl\"` only for a right-to-left language, its `lang` should be the language code, and its links should point at the translated addresses where they exist. A finding that names your file is yours to fix.\n\n## Never\n\n- Never change `translation_key` on one translation only; change every page that shares it, or none.\n- Never leave `lang` off a page that has a translation; the default language needs it too.\n- Never add a language without its home page.\n- Never set `dir` for a language the engine already marks right to left.\n- Never add `_data\u002Fi18n\u002F` or edit a theme file to translate an interface label.\n- Never put template syntax in a page, and never edit the output folder (`dist\u002F`).\n","# Translate a Slipway site\n\nA Slipway site joins translations with two front matter keys: `lang` says which language a page is in, and `translation_key` is the same on every translation of one page. The engine reads both and the theme uses `lang` for the interface strings and the text direction. You translate the words and set the language; you never build the links by hand. If the site has an `AGENTS.md`, read it first; it wins where it differs from this Skill.\n\n## 1. Take a baseline\n\nFrom the site folder, run the check before you change anything, and keep its output:\n\n```sh\nslipway check .\n```\n\nYour edit is done when it adds no finding that names your file. `slipway` is the engine's command line, released with the engine (`engine.cli`). Until it is installed, say so in your report and do not invent a result.\n\n## 2. List the language in the config\n\n`languages` in `slipway.yml` lists every language, in switcher order. Each entry needs a `code` (the `lang` value, such as `de` or `pt-BR`), a `name` in that language, and a `prefix` (the URL folder, or `\"\"` for the default language):\n\n```yaml\n# slipway.yml\nlanguages:\n  - { code: en, name: English, prefix: \"\" }\n  - { code: de, name: Deutsch, prefix: \u002Fde }\n```\n\nPages in the second language live under its prefix folder: `de\u002Findex.md`, `de\u002Finstall.md`. A page's `lang` comes from its front matter, then from the prefix of its folder, then from `lang` in `slipway.yml`. Its URL comes from its path, so `de\u002Finstall.md` is `\u002Fde\u002Finstall\u002F`.\n\nEach language needs a home page under its prefix (such as `de\u002Findex.md`, with `lang: de`, and the same `translation_key` as the default home). Without it the language has no landing page. Do not add a language without its home page, and do not add one only to translate a single page unless the owner asks: it changes the language list for the whole site.\n\n## 3. Interface strings\n\nThe theme ships its labels (Search, Next, Language, and the rest) in English, Persian, and Arabic. A page in another language falls back to English; a site cannot add or override interface strings in 0.3. Do not create `_data\u002Fi18n\u002F` or edit theme files to translate a label: report the missing label to the owner instead.\n\nText direction follows `lang`: `fa`, `ar`, `he`, and `ur` are right to left, and the engine knows the other right-to-left languages. Never set `dir` for a language the engine already marks right to left. Set `dir: rtl` in the front matter, or in `slipway.yml` when the whole site is that language, only for a right-to-left language the engine does not know.\n\n## 4. Translate a page\n\n1. On the original, set `lang` (even for the default language) and a `translation_key` such as `about`.\n2. Create the translation under the language prefix, such as `de\u002Fabout.md`, with the same `translation_key` and `lang: de`. It keeps the original's address only when the original sets `permalink`; then set a `permalink` under the prefix, such as `\u002Fde\u002Fabout\u002F`, or the two pages collide.\n3. Front matter: keep `translation_key`, the `layout`, the `order`, and the `agent` value; translate `title` and `description`.\n4. Body: translate the prose. Keep code, commands, file names, and URLs as they are.\n5. A link to a page that already has a translation points at the translated address (`\u002Fde\u002Fdocs\u002F`); every other link keeps the default-language address.\n6. Add the page to `main_de` or `docs_de` in `_data\u002Fnavigation.yml` when the language has those lists.\n\nA page without a `lang` key inherits its language from its folder prefix, then from the site language. A different `translation_key` still keeps the page out of its translation group.\n\n## 5. Keep the translations linked\n\n- `translation_key` and `lang` are the pair that links translations. Two pages with the same key and the same language are a duplicate; a page with a key but no other language is an untranslated page.\n- Never change a key on one translation only. Change every page that shares it, or none. A key changed on one page separates it from its translations.\n- The doctor's `translation-pair` warning names a key and a missing language in `languages`. It is coverage, not an error: work through it for the pages in scope, and never silence it by removing a key or a language.\n- `sourcemap.json` and the Markdown twins in the build carry each page's own text, so a translation is read and checked as its own page.\n\n## 6. Check the edit\n\nBuild the site, then compare the result with the baseline:\n\n```sh\nslipway check .\nslipway build . --out dist\n```\n\nOpen the built home page and the translated page: the translated page should carry `dir=\"rtl\"` only for a right-to-left language, its `lang` should be the language code, and its links should point at the translated addresses where they exist. A finding that names your file is yours to fix.\n\n## Never\n\n- Never change `translation_key` on one translation only; change every page that shares it, or none.\n- Never leave `lang` off a page that has a translation; the default language needs it too.\n- Never add a language without its home page.\n- Never set `dir` for a language the engine already marks right to left.\n- Never add `_data\u002Fi18n\u002F` or edit a theme file to translate an interface label.\n- Never put template syntax in a page, and never edit the output folder (`dist\u002F`).\n",{"name":5,"metadata":24,"description":7},{"version":25},"0.3.0","main","4ace9213edc3d1c6f4c08a1bc4f2f3aebcd70401","skills\u002Fslipway-translate","https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway","https:\u002F\u002Farminazimi.github.io\u002Fslipway\u002F","https:\u002F\u002Fgithub.com\u002Farminazimi","https:\u002F\u002Fvelella.sh","I make codebases confess what they’ve been hiding.","2026-11-11 00:40:10",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add arminazimi\u002Fslipway --skill slipway-translate",{"tool":41,"command":42},"bunx","bunx skills add arminazimi\u002Fslipway --skill slipway-translate",{"tool":44,"command":45},"pnpm","pnpm dlx skills add arminazimi\u002Fslipway --skill slipway-translate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway\u002Fblob\u002Fmain\u002Fskills\u002Fslipway-translate\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7F28A1J1XNA5Z5P333SM3MT","slipway-site","Create a Slipway docs site, or customize an existing one through slipway.yml, navigation, languages, redirects, and theme options, then check it with slipway check.","https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway\u002Fblob\u002Fmain\u002Fskills\u002Fslipway-site\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7F286GG3M7GQ2Q4D7V0J065","slipway-release-notes","Write a changelog entry and a release page from merged pull requests, for a site built with Slipway or for Slipway itself.","https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway\u002Fblob\u002Fmain\u002Fskills\u002Fslipway-release-notes\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7F2820BADMX1S5SQA09TCC2","slipway-doctor","Check a static site with slipway doctor after you edit it, read the findings, and fix them until the site reaches its conformance level. Use for any Slipway site or any site that follows the agent-editable site spec.","https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway\u002Fblob\u002Fmain\u002Fskills\u002Fslipway-doctor\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7F27YCP18CYDNKSZHZFPMHJ","slipway-design","Restyle a Slipway site with design tokens and a preset, add CSS through the override slots, and keep light and dark contrast passing.","https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway\u002Fblob\u002Fmain\u002Fskills\u002Fslipway-design\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7F27TZM9YAAV5NZPAFBK233","slipway-deploy","Publish a Slipway site to GitHub Pages with the deploy Action, set a custom domain, and fix the common build, base path, theme, and permission failures.","https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway\u002Fblob\u002Fmain\u002Fskills\u002Fslipway-deploy\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7F27Q214435H67M8296E2B2","slipway-content","Write or edit a page on a Slipway site, or translate one into another language, using the engine's front matter keys and directives, then check it with slipway check.","https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway\u002Fblob\u002Fmain\u002Fskills\u002Fslipway-content\u002FSKILL.md",[],[]]