@forge/cli-shared

9.9.0-next.189.9.0-next.19
out/ui/text.js
~out/ui/text.jsModified
+46
Index: package/out/ui/text.js
===================================================================
--- package/out/ui/text.js
+++ package/out/ui/text.js
@@ -224,8 +224,9 @@
         url: (link) => `Next, enter your Forge CLI scoped token. If you don’t have one, visit ${buildTerminalLink(link)}`,
         promptToken: 'Enter your Atlassian API token:',
         checking: 'Logging you in...',
         nextStep: `Now try ${forge('create')} to start a new app.`,
+        skillsHint: `Using an AI coding agent? Run ${forge('skills', 'install')} to add Forge developer skills and the Forge and ADS MCP servers.`,
         success: (name) => `Logged in as ${name}.`,
         error: "We couldn't log you in with those credentials. Check your email address and token before rerunning the command."
     },
     logout: {
@@ -1727,8 +1728,53 @@
             invalidUrl: 'Invalid proxy URL specified. Valid proxy URLs must start with http:// or https://',
             setupError: 'The Forge CLI could not initialise the configured proxy. Check your FORGE_PROXY environment variable or proxy setting, update it with forge settings set proxy <proxy-url>, or remove it with forge settings delete proxy.'
         }
     },
+    skills: {
+        description: 'manage Forge developer skills and MCP servers for AI coding agents',
+        optionAgent: 'specify AI agents: claude, cursor, codex, gemini, copilot, vscode',
+        optionScope: 'set the scope to user or project',
+        agentFailed: (agent, message) => `${agent}: ${message}`,
+        mcpSkipped: 'MCP servers skipped',
+        mcpUnsupported: (scope) => `MCP servers not supported at ${scope} scope`,
+        mcpChange: (action, path) => `MCP servers ${action} (${path})`,
+        install: {
+            description: 'install the latest Forge developer skills and configure the Forge and ADS MCP servers',
+            optionSkill: 'install only the specified Forge skills',
+            optionNoMcp: 'skip configuring the Forge and ADS MCP servers',
+            optionDryRun: 'show the changes without making them',
+            prompt: 'Select the AI agents to install Forge skills for:',
+            progress: 'Installing the latest Forge skills',
+            dryRun: 'Dry run: no changes were made.',
+            done: (agent, count, path, mcp) => `${greenTick} ${agent}: installed ${count} Forge skills in ${path}; ${mcp}.`,
+            planned: (agent, count, path, mcp) => `${agent}: would install ${count} Forge skills in ${path}; ${mcp}.`,
+            restart: 'Start a new session in your AI agent to load the Forge skills and MCP servers.'
+        },
+        status: {
+            description: 'show which AI agents have Forge skills and MCP servers, and at which scope',
+            columns: { agent: 'Agent', skills: 'Forge skills', mcp: 'MCP servers' },
+            none: 'Not installed'
+        },
+        remove: {
+            description: 'remove Forge skills and the Forge and ADS MCP servers from AI agents',
+            prompt: 'Select the AI agents to remove Forge skills from:',
+            confirm: (agents, scope) => `Remove Forge skills and MCP servers from ${agents} at ${scope} scope?`,
+            done: (agent) => `${greenTick} ${agent}: Forge skills and MCP servers removed.`,
+            notFound: (agent, scope) => `${agent}: no Forge skills or MCP servers found at ${scope} scope.`,
+            kept: (agent, count) => `${agent}: kept ${count} Forge skills that another agent still uses.`,
+            nothingInstalled: (scope) => `No Forge skills or MCP servers found at ${scope} scope.`
+        },
+        errors: {
+            unknownAgent: (agent) => `Unknown AI agent: ${agent}. Run ${forge('skills', 'install', '--help')} to see the supported agents.`,
+            invalidScope: 'Unknown scope. Specify user or project with --scope.',
+            noAgentsDetected: `No AI agents detected. Specify one with --agent, for example ${forge('skills', 'install', '--agent', 'claude')}.`,
+            noAgentsSelected: 'Select at least one AI agent.',
+            unknownSkills: (skills) => `Unknown Forge skills: ${skills.join(', ')}.`,
+            downloadFailed: 'Could not download the latest Forge skills. Check your network access to GitHub and try again.',
+            invalidRelease: 'The downloaded Forge skills could not be read. Try again later.',
+            invalidMcpConfig: (path) => `The MCP configuration at ${path} is not valid. Fix it, then try again.`
+        }
+    },
     assistant: {
         description: '[⚠️ experimental feature] manage AI assistant settings (Rovo/Gemini)',
         on: {
             description: `[⚠️ experimental feature] enable AI assistant for error analysis (specify name: rovo or gemini)