Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
feat(agent-skills): rewrite generator templates to English (GAP-D - template change)
diegosouzapwc73a90134b95
diff --git a/src/lib/agentSkills/generator.ts b/src/lib/agentSkills/generator.tsindex 5df831edfa..45f748cc81 100644--- a/src/lib/agentSkills/generator.ts+++ b/src/lib/agentSkills/generator.ts@@ -75,11 +75,11 @@ function buildApiBody(skill: AgentSkill, sources: BuildSources): string {const lines: string[] = [];- lines.push("## Visão geral\n");+ lines.push("## Overview\n");lines.push(skill.description);lines.push("");- lines.push("## Autenticação\n");+ lines.push("## Authentication\n");lines.push("All requests require a valid Bearer token or session cookie. " +"Obtain a token via `POST /api/auth/login` or configure `REQUIRE_API_KEY=false` for local development.",@@ -134,18 +134,18 @@ function buildCliBody(skill: AgentSkill, sources: BuildSources): string {const lines: string[] = [];- lines.push("## Visão geral\n");+ lines.push("## Overview\n");lines.push(skill.description);lines.push("");- lines.push("## Instalação rápida\n");+ lines.push("## Quick install\n");lines.push("```bash");lines.push("npm install -g omniroute # or: npx omniroute");lines.push("omniroute --version");lines.push("```");lines.push("");- lines.push("## Subcomandos\n");+ lines.push("## Subcommands\n");if (cmds.length === 0) {lines.push("_No CLI subcommands mapped for this family yet._");@@ -166,7 +166,7 @@ function buildCliBody(skill: AgentSkill, sources: BuildSources): string {lines.push("");}- lines.push("**Exemplo:**\n");+ lines.push("**Example:**\n");lines.push("```bash");lines.push(`omniroute ${cmd.name}`);lines.push("```");diff --git a/tests/unit/agentSkills-generator.test.ts b/tests/unit/agentSkills-generator.test.tsindex c8437a92a4..487abe80df 100644--- a/tests/unit/agentSkills-generator.test.ts+++ b/tests/unit/agentSkills-generator.test.ts@@ -174,9 +174,9 @@ test("apply mode writes SKILL.md for a CLI skill with correct structure", asyncconst content = fs.readFileSync(path.join(tmpDir, "cli-serve", "SKILL.md"), "utf-8");assert.ok(content.includes("name: cli-serve"), "Missing name in frontmatter");- assert.ok(content.includes("## Visão geral"), "Missing overview section");- assert.ok(content.includes("## Instalação rápida"), "Missing install section");- assert.ok(content.includes("## Subcomandos"), "Missing subcommands section");+ assert.ok(content.includes("## Overview"), "Missing Overview section");+ assert.ok(content.includes("## Quick install"), "Missing Quick install section");+ assert.ok(content.includes("## Subcommands"), "Missing Subcommands section");} finally {rmTmpDir(tmpDir);}@@ -195,8 +195,8 @@ test("apply mode writes SKILL.md for an API skill with correct sections", asyncassert.equal(report.errors.length, 0);const content = fs.readFileSync(path.join(tmpDir, "omni-auth", "SKILL.md"), "utf-8");- assert.ok(content.includes("## Visão geral"), "Missing overview");- assert.ok(content.includes("## Autenticação"), "Missing auth section");+ assert.ok(content.includes("## Overview"), "Missing Overview section");+ assert.ok(content.includes("## Authentication"), "Missing Authentication section");assert.ok(content.includes("## Endpoints"), "Missing endpoints section");assert.ok(content.includes("## Payloads"), "Missing payloads section");} finally {@@ -438,8 +438,8 @@ test("buildSkillMarkdown API skill body contains expected sections", () => {const sources = emptySources();const result = buildSkillMarkdown("omni-cache", sources);- assert.ok(result.body.includes("## Visão geral"), "Missing Visão geral section");- assert.ok(result.body.includes("## Autenticação"), "Missing Autenticação section");+ assert.ok(result.body.includes("## Overview"), "Missing Overview section");+ assert.ok(result.body.includes("## Authentication"), "Missing Authentication section");assert.ok(result.body.includes("## Endpoints"), "Missing Endpoints section");assert.ok(result.body.includes("## Payloads"), "Missing Payloads section");});@@ -449,9 +449,9 @@ test("buildSkillMarkdown CLI skill body contains expected sections", () => {const sources = emptySources();const result = buildSkillMarkdown("cli-health", sources);- assert.ok(result.body.includes("## Visão geral"), "Missing Visão geral section");- assert.ok(result.body.includes("## Instalação rápida"), "Missing Instalação rápida section");- assert.ok(result.body.includes("## Subcomandos"), "Missing Subcomandos section");+ assert.ok(result.body.includes("## Overview"), "Missing Overview section");+ assert.ok(result.body.includes("## Quick install"), "Missing Quick install section");+ assert.ok(result.body.includes("## Subcommands"), "Missing Subcommands section");});test("buildSkillMarkdown description is at most 2000 chars", () => {