[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GKN1TQR2ZKRF40YKGQ3MS7":3,"skill-same:01M6GKN1TQR2ZKRF40YKGQ3MS7":69},{"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":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6GKN1TQR2ZKRF40YKGQ3MS7","setup",null,"Set up a complete Akka SDK development environment from scratch. Installs Java, Maven, Akka CLI, configures tokens, scaffolds a project, and downloads context documentation. Idempotent — safe to rerun for repair\u002Fupgrade.","akka\u002Fai-marketplace","akka","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1496237?v=4","01M6GKH3JJ5SR8SQ5BZRDFGZE2","Akka Project","01M6GKH3PK33JW3NNCJE2C1PZC",7,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fakka\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fsetup\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"up","rerun","idempotent","for","development environment","From Scratch","scaffolds","complete","tokens","project","repair","upgrade","cli","environment","context","maven","SET","downloads","java","development","documentation","safe","2026-11-10 10:12:30",false,"---\nname: setup\ndescription: \"Set up a complete Akka SDK development environment from scratch. Installs Java, Maven, Akka CLI, configures tokens, scaffolds a project, and downloads context documentation. Idempotent — safe to rerun for repair\u002Fupgrade.\"\n---\n\n## User Input\n\nYou **MUST** consider the user input before proceeding (if not empty).\n\n## Purpose\n\n`\u002Fakka:setup` detects the user's environment, installs all missing dependencies,\nscaffolds an Akka project, and leaves the user ready to develop — with **zero\nprerequisites** beyond having an AI coding agent installed.\n\nThe skill is **idempotent and re-runnable**. On first run it performs full setup.\nOn subsequent runs it operates in repair\u002Fupgrade mode.\n\n**IMPORTANT**: If you are connected to the Akka MCP server, the Akka plugin is\nalready installed and initialized. Do NOT suggest running `\u002Fakka:setup`,\n`akka_sdd_init`, or any setup workflow unless the user explicitly asks for it or\nyou encounter a specific error indicating missing resources. Assume the\nenvironment is ready. The `akka_sdd_init` tool exists for first-time\ninitialization only — it is idempotent and returns \"already_initialized\" if\nresources are present. The `akka_refresh` tool can update skills, templates, and\ndocumentation to the latest versions if they seem outdated.\n\n## Execution Instructions\n\n**FIRST:** Test if you have shell access by executing `echo \"bash-ok\"` using the Bash tool.\n\n**If Bash is available:** Execute all commands yourself. Do NOT ask the user to run\ncommands or paste output. The only exceptions are commands requiring `sudo` (show the\ncommand and ask permission first) and `akka code token` (which opens a browser).\n\n**If Bash is NOT available (plugin permission limitation):** This skill was loaded from\na plugin, which currently does not grant shell access. Tell the user:\n\n*\"The setup skill needs shell access to install dependencies and scaffold your project.\nPlease allow Bash access for this skill and try again. You can do this by approving\nthe permission prompt when it appears, or by updating your Claude Code settings.\"*\n\n**STOP HERE if Bash is not available.** Do not proceed with the phases below.\n\n---\n\n**Phases 1–4 use only bash commands** — the Akka CLI is not yet installed, so MCP tools\nare unavailable. After Phase 4, delegate to `akka` CLI commands.\n\nWork through each phase sequentially. Skip phases where the check shows the dependency\nis already satisfied. Report progress to the user after each phase.\n\n---\n\n## Phase 1: Environment Detection\n\nExecute the following to detect the platform:\n\n1. Run `uname -s` and `uname -m` to determine OS and architecture.\n2. Run `echo $SHELL` to determine the shell.\n3. On Linux, run `cat \u002Fetc\u002Fos-release 2>\u002Fdev\u002Fnull | grep -E '^(ID|ID_LIKE)='` for the distro.\n4. Check which package managers are available by running `command -v brew`, `command -v apt`, `command -v dnf`, `command -v pacman`, `command -v winget`, `command -v scoop`, `command -v sdk`.\n\nThen check for an existing project by running `ls pom.xml .akka\u002F .claude\u002Fcommands\u002F akka-context\u002F .mcp.json 2>\u002Fdev\u002Fnull`.\n\n- If `pom.xml` exists → **existing project**, enter repair\u002Fupgrade mode (Phase 7B).\n- If no `pom.xml` → **new project**, proceed with full setup.\n\nReport: *\"Detected: [OS] [ARCH] with [PACKAGE_MANAGER]. [New project \u002F Existing project].\"*\n\n---\n\n## Phase 2: Java Installation\n\nExecute `java -version 2>&1` and parse the major version.\n\n- If Java 21+ is present: report *\"Java [version] — already installed\"* and skip to Phase 3.\n- If missing or below 21: install it.\n\nInstall the latest LTS version based on the platform detected in Phase 1:\n- **macOS:** Execute `brew install --cask temurin` (installs latest LTS)\n- **Linux (preferred):** If SDKMAN is not available, install it with `curl -s \"https:\u002F\u002Fget.sdkman.io\" | bash` then `source \"$HOME\u002F.sdkman\u002Fbin\u002Fsdkman-init.sh\"`. Then execute `sdk install java` (installs latest LTS).\n- **Linux (apt fallback):** Show `sudo apt install openjdk-21-jdk` to the user and ask permission before executing.\n- **Linux (dnf fallback):** Show `sudo dnf install java-21-openjdk-devel` to the user and ask permission before executing.\n- **Linux (pacman fallback):** Show `sudo pacman -S jdk-openjdk` to the user and ask permission before executing.\n- **Windows:** Execute `winget install EclipseAdoptium.Temurin.21.JDK`\n\nAfter installation, verify by executing `java -version 2>&1`. Confirm Java 21+. If verification fails, stop and ask the user for guidance.\n\n**PRIVILEGE POLICY:** Prefer user-space installs (SDKMAN, Homebrew, winget). For `sudo` commands, always show the exact command and ask before executing.\n\n---\n\n## Phase 3: Maven Installation\n\nExecute `mvn --version 2>&1`. Also check for a Maven wrapper with `ls .\u002Fmvnw 2>\u002Fdev\u002Fnull`.\n\n- If Maven 3.9+ is present (or `.\u002Fmvnw` exists): report *\"Maven [version] — already installed\"* and skip to Phase 4.\n- If missing or below 3.9: install it.\n\nInstall based on the platform:\n- **macOS:** Execute `brew install maven`\n- **Linux (preferred):** Execute `sdk install maven` (requires SDKMAN from Phase 2)\n- **Linux (apt fallback):** Show `sudo apt install maven` and ask permission.\n- **Linux (dnf fallback):** Show `sudo dnf install maven` and ask permission.\n- **Windows:** Execute `winget install Apache.Maven`\n\nVerify by executing `mvn --version 2>&1`. Confirm Maven 3.9+.\n\n---\n\n## Phase 4: Akka CLI Installation\n\nExecute `akka version 2>&1`.\n\n- If the Akka CLI is present: report *\"Akka CLI [version] — already installed\"* and skip to Phase 5.\n- If missing: install it.\n\nInstall based on the platform:\n- **macOS:** Execute `brew install akka\u002Fbrew\u002Fakka`\n- **Linux\u002FWindows:** Refer the user to https:\u002F\u002Fdoc.akka.io\u002Foperations\u002Fcli\u002Finstallation.html for download instructions.\n\nVerify by executing `akka version`. If this fails, stop and ask the user for guidance.\n\n---\n\n## Phase 5: Akka Download Token\n\nExecute `grep -q \"akka-repository\" ~\u002F.m2\u002Fsettings.xml 2>\u002Fdev\u002Fnull && echo \"configured\" || echo \"not configured\"` and `grep -q \"akka-plugin-repository\" ~\u002F.m2\u002Fsettings.xml 2>\u002Fdev\u002Fnull && echo \"configured\" || echo \"not configured\"`.\n\n- If both are configured: report *\"Akka download token — already configured\"* and skip to Phase 6.\n- If missing: provision the token.\n\nTell the user: *\"I need to run `akka code token` which will open a browser window for you to log in to your Akka account. This is a free account needed to download Akka SDK dependencies.\"*\n\nExecute `akka code token`. Wait for the user to complete the browser flow.\n\nAfter completion, verify by executing `grep -c \"akka-repository\" ~\u002F.m2\u002Fsettings.xml` and `grep -c \"akka-plugin-repository\" ~\u002F.m2\u002Fsettings.xml`. Both should return 1 or more.\n\n---\n\n## Phase 6: Docker (Optional)\n\nExecute `docker info 2>\u002Fdev\u002Fnull | head -5`.\n\n- If Docker is running: report *\"Docker — available\"* and continue to Phase 7.\n- If not available: inform the user:\n\n*\"Docker is only needed for running local clusters and building container images for deployment. You can develop and test without it.\"*\n\nAsk: *\"Would you like to install Docker now, or skip it? You can always rerun setup later.\"*\n\nIf the user wants to install:\n- **macOS:** Execute `brew install --cask docker`\n- **Linux:** Show Docker CE install commands and ask permission (requires sudo).\n- **Windows:** Execute `winget install Docker.DockerDesktop`\n- Verify with `docker info`.\n\nIf the user defers: record it as skipped and continue.\n\n---\n\n## Phase 7: Project Scaffolding\n\n### 7A. New Project (no existing `pom.xml`)\n\n1. **Project identity:** Execute `basename \"$(pwd)\"` to get the directory name. Derive defaults silently:\n   - **artifactId**: lowercase, hyphens only (e.g., `My Shopping Cart` → `my-shopping-cart`)\n   - **groupId**: default `com.example`\n\n   Do NOT ask the user to confirm these values. These are Java\u002FMaven concepts that most users\n   won't be familiar with. Use the defaults and move on. The values can be changed later in `pom.xml`.\n\n2. **Scaffold:** Execute `akka specify init . --agent claude-code --skip-commands`. This\n   clones the empty project, customizes pom.xml, downloads akka-context\u002F, CLAUDE.md,\n   AGENTS.md, constitution, templates, and .mcp.json — without installing slash commands\n   (the plugin already provides them under the `\u002Fakka:*` prefix).\n\n   If the command fails with an unrecognized flag error, the CLI is too old. Tell the user:\n   *\"Your Akka CLI does not support the `--skip-commands` flag. Please upgrade:\n   `brew upgrade akka\u002Fbrew\u002Fakka` (macOS) or download from\n   https:\u002F\u002Fdoc.akka.io\u002Foperations\u002Fcli\u002Finstallation.html\"*\n\n3. **Git init:** If git is not already initialized, execute `git init`, `git add .`, `git commit -m \"Initial Akka project setup via \u002Fakka:setup\"`.\n\n### 7B. Existing Project (repair\u002Fupgrade mode)\n\n1. **Check SDK version:** Execute `curl -s https:\u002F\u002Fdoc.akka.io\u002Fsdk\u002F_attachments\u002Flatest-version.txt` to get the latest version. Execute `grep -A1 '\u003Cparent>' pom.xml | grep '\u003Cversion>' | sed 's\u002F.*\u003Cversion>\\(.*\\)\u003C\\\u002Fversion>.*\u002F\\1\u002F'` to get the current version. If behind, ask if the user wants to upgrade.\n\n2. **Check for missing artifacts:** Execute `test -f .mcp.json && echo \"OK\" || echo \"MISSING\"` for each expected file (.mcp.json, .akka\u002Fconstitution\u002F, .akka\u002Ftemplates\u002F, akka-context\u002F, CLAUDE.md, AGENTS.md). For any missing, execute `akka specify init . --agent claude-code --skip-commands` to regenerate.\n\n3. **Update context:** Execute `akka code context-update . --assistant claude-code --force`.\n\n---\n\n## Phase 8: Akka Context Documentation\n\nFor new projects: already handled by `akka specify init .` in Phase 7A.\n\nFor existing projects: already handled by `akka code context-update` in Phase 7B.\n\nVerify by executing `ls akka-context\u002F | wc -l`. Should show ~161 files. If empty or missing, execute `akka code context-update . --assistant claude-code --force`.\n\n---\n\n## Phase 9: AI Key Configuration (Optional)\n\nExecute these checks:\n- `[ -n \"$ANTHROPIC_API_KEY\" ] && echo \"set\" || echo \"not set\"`\n- `[ -n \"$OPENAI_API_KEY\" ] && echo \"set\" || echo \"not set\"`\n- `[ -n \"$GOOGLE_AI_API_KEY\" ] && echo \"set\" || echo \"not set\"`\n\nInform the user: *\"AI API keys are needed if your service calls external LLM providers (e.g. Anthropic, OpenAI, Google AI). Skip this if your service doesn't make LLM calls.\"*\n\nAsk: *\"Would you like to configure AI API keys now, or skip?\"*\n\nIf the user defers: record as skipped and continue.\n\nIf configuring: ask which provider(s), get the key value, and ask where to store it:\n- **Environment variable (recommended):** Execute `export KEY_NAME=\"value\"` and remind the user to add it to their shell profile for persistence.\n- **application.conf:** Write the key to `src\u002Fmain\u002Fresources\u002Fapplication.conf`. Warn that keys in config files are visible in the repo.\n\n---\n\n## Phase 10: Validation\n\nExecute all checks and build the summary:\n\n1. Execute `java -version 2>&1 | head -1`\n2. Execute `mvn --version 2>&1 | head -1`\n3. Execute `akka version 2>&1`\n4. Execute `grep -q \"akka-repository\" ~\u002F.m2\u002Fsettings.xml 2>\u002Fdev\u002Fnull && echo \"configured\" || echo \"not configured\"`\n5. Execute `docker info 2>\u002Fdev\u002Fnull | head -1 || echo \"not available\"`\n6. If `pom.xml` exists, execute `mvn compile -q 2>&1` to verify the build. Report errors but do not block.\n7. **MCP capability check**: Verify that the Akka MCP server is available and\n   provides the capabilities required by the `\u002Fakka:*` commands. Test\n   one representative tool from each capability group:\n\n   - **SDD workflow**: Call `akka_sdd_list_specs` (should return a result, even if empty)\n   - **Build & test**: Check that `akka_maven_compile` is available as a tool\n   - **Local development**: Check that `akka_local_start` is available as a tool\n   - **Platform deployment**: Check that `akka_services_list` is available as a tool\n   - **Service introspection**: Check that `akka_backoffice_list_components` is available as a tool\n   - **Browser testing**: Check that `akka_browser_navigate` is available as a tool\n   - **Git**: Check that `akka_git_status` is available as a tool\n\n   Report each capability group as available or missing.\n\n   If any capability group is missing, tell the user:\n   *\"Some capabilities expected by the akka plugin are not available from\n   the Akka MCP server. Please ensure the Akka CLI is installed and the MCP\n   server is configured in `.mcp.json`. If the CLI is already installed, try\n   restarting Claude Code (use `claude --resume` to keep context).\"*\n\n   Mark the MCP capabilities line as ⚠ in the summary if any are missing, ✓ if all present.\n   Service introspection and browser testing are optional — mark them separately\n   but do not treat them as blockers.\n\nOutput a summary:\n\n```\n\u002Fakka:setup — Complete\n\n  Java [version]         ✓ installed\n  Maven [version]        ✓ installed\n  Akka CLI               ✓ installed\n  Akka download token    ✓ configured\n  Docker                 ✓ installed        (or: ⏭ deferred)\n  MCP capabilities       ✓ all available    (or: ⚠ missing: sdd, build, local, ...)\n  Service introspection  ✓ available        (or: ⚠ not available)\n  Browser testing        ✓ available        (or: ⚠ not available)\n  SDK version            ✓ latest\n  Project scaffolded     ✓ com.example:my-cart\n  Akka context docs      ✓ 161 files\n  AI keys                ⏭ deferred         (or: ✓ configured)\n\nIMPORTANT: The MCP server configuration (.mcp.json) was created during\nsetup. Claude Code only loads MCP servers at session start, so you need\nto restart. Use `claude --resume` to restart without losing your session\ncontext. After restarting, the Akka MCP tools will be available.\n\nReady to go! After restarting, run \u002Fakka:specify to start building your first feature.\n```\n\n---\n\n## Error Handling\n\n1. Report errors clearly with the specific error message.\n2. Do not retry blindly — if the same error persists, ask the user.\n3. Suggest alternatives: Homebrew fails → suggest SDKMAN; apt fails → suggest SDKMAN.\n4. Docker (Phase 6) and AI keys (Phase 9) failures are non-blocking — record as deferred.\n5. Build failures in Phase 10 are non-blocking — report but don't block the summary.\n\n## Key Rules\n\n- EXECUTE COMMANDS YOURSELF — do not ask the user to run them or paste output\n- IDEMPOTENT — check before acting; skip already-satisfied phases\n- ASK BEFORE SUDO — show the exact command and get permission first\n- USER CHOOSES — optional phases (Docker, AI keys) are offered, never forced\n- DELEGATE TO CLI — after Phase 4, use `akka` CLI commands\n\n## Done When\n\n- [ ] Bash availability was tested first; if unavailable, the command stopped with the permission-limitation message and did not attempt any install steps.\n- [ ] Phase 1 recorded the OS, architecture, shell, package managers, and whether this is a new or existing project (based on `pom.xml`).\n- [ ] `java -version` reports Java 21 or newer.\n- [ ] `mvn --version` reports Maven 3.9 or newer, OR `.\u002Fmvnw` exists in the project.\n- [ ] `akka version` returns a valid version.\n- [ ] `~\u002F.m2\u002Fsettings.xml` contains both `akka-repository` and `akka-plugin-repository` entries.\n- [ ] Docker availability was recorded — either installed and running, or explicitly deferred by the user.\n- [ ] For new projects: `pom.xml`, `.akka\u002F`, `akka-context\u002F`, `CLAUDE.md`, `AGENTS.md`, and `.mcp.json` were created by `akka specify init . --agent claude-code --skip-commands`; git was initialized with an initial commit.\n- [ ] For existing projects: any missing scaffold artifact was regenerated, and `akka code context-update` refreshed `akka-context\u002F`.\n- [ ] AI API keys were configured or explicitly deferred by the user.\n- [ ] Phase 10 validation exercised one representative tool from every MCP capability group (`akka_sdd_list_specs`, `akka_maven_compile`, `akka_local_start`, `akka_services_list`, `akka_git_status`) and reported ✓ \u002F ⚠ per group.\n- [ ] The final summary table was emitted with the correct ✓ \u002F ⏭ \u002F ⚠ marks for every row, followed by the MCP-restart instruction and the recommendation to run `\u002Fakka:specify` after restart.\n- [ ] `sudo` was requested only after showing the exact command and receiving explicit user permission; no persistent CLI configuration (`akka config set`) was silently modified.\n","## User Input\n\nYou **MUST** consider the user input before proceeding (if not empty).\n\n## Purpose\n\n`\u002Fakka:setup` detects the user's environment, installs all missing dependencies,\nscaffolds an Akka project, and leaves the user ready to develop — with **zero\nprerequisites** beyond having an AI coding agent installed.\n\nThe skill is **idempotent and re-runnable**. On first run it performs full setup.\nOn subsequent runs it operates in repair\u002Fupgrade mode.\n\n**IMPORTANT**: If you are connected to the Akka MCP server, the Akka plugin is\nalready installed and initialized. Do NOT suggest running `\u002Fakka:setup`,\n`akka_sdd_init`, or any setup workflow unless the user explicitly asks for it or\nyou encounter a specific error indicating missing resources. Assume the\nenvironment is ready. The `akka_sdd_init` tool exists for first-time\ninitialization only — it is idempotent and returns \"already_initialized\" if\nresources are present. The `akka_refresh` tool can update skills, templates, and\ndocumentation to the latest versions if they seem outdated.\n\n## Execution Instructions\n\n**FIRST:** Test if you have shell access by executing `echo \"bash-ok\"` using the Bash tool.\n\n**If Bash is available:** Execute all commands yourself. Do NOT ask the user to run\ncommands or paste output. The only exceptions are commands requiring `sudo` (show the\ncommand and ask permission first) and `akka code token` (which opens a browser).\n\n**If Bash is NOT available (plugin permission limitation):** This skill was loaded from\na plugin, which currently does not grant shell access. Tell the user:\n\n*\"The setup skill needs shell access to install dependencies and scaffold your project.\nPlease allow Bash access for this skill and try again. You can do this by approving\nthe permission prompt when it appears, or by updating your Claude Code settings.\"*\n\n**STOP HERE if Bash is not available.** Do not proceed with the phases below.\n\n---\n\n**Phases 1–4 use only bash commands** — the Akka CLI is not yet installed, so MCP tools\nare unavailable. After Phase 4, delegate to `akka` CLI commands.\n\nWork through each phase sequentially. Skip phases where the check shows the dependency\nis already satisfied. Report progress to the user after each phase.\n\n---\n\n## Phase 1: Environment Detection\n\nExecute the following to detect the platform:\n\n1. Run `uname -s` and `uname -m` to determine OS and architecture.\n2. Run `echo $SHELL` to determine the shell.\n3. On Linux, run `cat \u002Fetc\u002Fos-release 2>\u002Fdev\u002Fnull | grep -E '^(ID|ID_LIKE)='` for the distro.\n4. Check which package managers are available by running `command -v brew`, `command -v apt`, `command -v dnf`, `command -v pacman`, `command -v winget`, `command -v scoop`, `command -v sdk`.\n\nThen check for an existing project by running `ls pom.xml .akka\u002F .claude\u002Fcommands\u002F akka-context\u002F .mcp.json 2>\u002Fdev\u002Fnull`.\n\n- If `pom.xml` exists → **existing project**, enter repair\u002Fupgrade mode (Phase 7B).\n- If no `pom.xml` → **new project**, proceed with full setup.\n\nReport: *\"Detected: [OS] [ARCH] with [PACKAGE_MANAGER]. [New project \u002F Existing project].\"*\n\n---\n\n## Phase 2: Java Installation\n\nExecute `java -version 2>&1` and parse the major version.\n\n- If Java 21+ is present: report *\"Java [version] — already installed\"* and skip to Phase 3.\n- If missing or below 21: install it.\n\nInstall the latest LTS version based on the platform detected in Phase 1:\n- **macOS:** Execute `brew install --cask temurin` (installs latest LTS)\n- **Linux (preferred):** If SDKMAN is not available, install it with `curl -s \"https:\u002F\u002Fget.sdkman.io\" | bash` then `source \"$HOME\u002F.sdkman\u002Fbin\u002Fsdkman-init.sh\"`. Then execute `sdk install java` (installs latest LTS).\n- **Linux (apt fallback):** Show `sudo apt install openjdk-21-jdk` to the user and ask permission before executing.\n- **Linux (dnf fallback):** Show `sudo dnf install java-21-openjdk-devel` to the user and ask permission before executing.\n- **Linux (pacman fallback):** Show `sudo pacman -S jdk-openjdk` to the user and ask permission before executing.\n- **Windows:** Execute `winget install EclipseAdoptium.Temurin.21.JDK`\n\nAfter installation, verify by executing `java -version 2>&1`. Confirm Java 21+. If verification fails, stop and ask the user for guidance.\n\n**PRIVILEGE POLICY:** Prefer user-space installs (SDKMAN, Homebrew, winget). For `sudo` commands, always show the exact command and ask before executing.\n\n---\n\n## Phase 3: Maven Installation\n\nExecute `mvn --version 2>&1`. Also check for a Maven wrapper with `ls .\u002Fmvnw 2>\u002Fdev\u002Fnull`.\n\n- If Maven 3.9+ is present (or `.\u002Fmvnw` exists): report *\"Maven [version] — already installed\"* and skip to Phase 4.\n- If missing or below 3.9: install it.\n\nInstall based on the platform:\n- **macOS:** Execute `brew install maven`\n- **Linux (preferred):** Execute `sdk install maven` (requires SDKMAN from Phase 2)\n- **Linux (apt fallback):** Show `sudo apt install maven` and ask permission.\n- **Linux (dnf fallback):** Show `sudo dnf install maven` and ask permission.\n- **Windows:** Execute `winget install Apache.Maven`\n\nVerify by executing `mvn --version 2>&1`. Confirm Maven 3.9+.\n\n---\n\n## Phase 4: Akka CLI Installation\n\nExecute `akka version 2>&1`.\n\n- If the Akka CLI is present: report *\"Akka CLI [version] — already installed\"* and skip to Phase 5.\n- If missing: install it.\n\nInstall based on the platform:\n- **macOS:** Execute `brew install akka\u002Fbrew\u002Fakka`\n- **Linux\u002FWindows:** Refer the user to https:\u002F\u002Fdoc.akka.io\u002Foperations\u002Fcli\u002Finstallation.html for download instructions.\n\nVerify by executing `akka version`. If this fails, stop and ask the user for guidance.\n\n---\n\n## Phase 5: Akka Download Token\n\nExecute `grep -q \"akka-repository\" ~\u002F.m2\u002Fsettings.xml 2>\u002Fdev\u002Fnull && echo \"configured\" || echo \"not configured\"` and `grep -q \"akka-plugin-repository\" ~\u002F.m2\u002Fsettings.xml 2>\u002Fdev\u002Fnull && echo \"configured\" || echo \"not configured\"`.\n\n- If both are configured: report *\"Akka download token — already configured\"* and skip to Phase 6.\n- If missing: provision the token.\n\nTell the user: *\"I need to run `akka code token` which will open a browser window for you to log in to your Akka account. This is a free account needed to download Akka SDK dependencies.\"*\n\nExecute `akka code token`. Wait for the user to complete the browser flow.\n\nAfter completion, verify by executing `grep -c \"akka-repository\" ~\u002F.m2\u002Fsettings.xml` and `grep -c \"akka-plugin-repository\" ~\u002F.m2\u002Fsettings.xml`. Both should return 1 or more.\n\n---\n\n## Phase 6: Docker (Optional)\n\nExecute `docker info 2>\u002Fdev\u002Fnull | head -5`.\n\n- If Docker is running: report *\"Docker — available\"* and continue to Phase 7.\n- If not available: inform the user:\n\n*\"Docker is only needed for running local clusters and building container images for deployment. You can develop and test without it.\"*\n\nAsk: *\"Would you like to install Docker now, or skip it? You can always rerun setup later.\"*\n\nIf the user wants to install:\n- **macOS:** Execute `brew install --cask docker`\n- **Linux:** Show Docker CE install commands and ask permission (requires sudo).\n- **Windows:** Execute `winget install Docker.DockerDesktop`\n- Verify with `docker info`.\n\nIf the user defers: record it as skipped and continue.\n\n---\n\n## Phase 7: Project Scaffolding\n\n### 7A. New Project (no existing `pom.xml`)\n\n1. **Project identity:** Execute `basename \"$(pwd)\"` to get the directory name. Derive defaults silently:\n   - **artifactId**: lowercase, hyphens only (e.g., `My Shopping Cart` → `my-shopping-cart`)\n   - **groupId**: default `com.example`\n\n   Do NOT ask the user to confirm these values. These are Java\u002FMaven concepts that most users\n   won't be familiar with. Use the defaults and move on. The values can be changed later in `pom.xml`.\n\n2. **Scaffold:** Execute `akka specify init . --agent claude-code --skip-commands`. This\n   clones the empty project, customizes pom.xml, downloads akka-context\u002F, CLAUDE.md,\n   AGENTS.md, constitution, templates, and .mcp.json — without installing slash commands\n   (the plugin already provides them under the `\u002Fakka:*` prefix).\n\n   If the command fails with an unrecognized flag error, the CLI is too old. Tell the user:\n   *\"Your Akka CLI does not support the `--skip-commands` flag. Please upgrade:\n   `brew upgrade akka\u002Fbrew\u002Fakka` (macOS) or download from\n   https:\u002F\u002Fdoc.akka.io\u002Foperations\u002Fcli\u002Finstallation.html\"*\n\n3. **Git init:** If git is not already initialized, execute `git init`, `git add .`, `git commit -m \"Initial Akka project setup via \u002Fakka:setup\"`.\n\n### 7B. Existing Project (repair\u002Fupgrade mode)\n\n1. **Check SDK version:** Execute `curl -s https:\u002F\u002Fdoc.akka.io\u002Fsdk\u002F_attachments\u002Flatest-version.txt` to get the latest version. Execute `grep -A1 '\u003Cparent>' pom.xml | grep '\u003Cversion>' | sed 's\u002F.*\u003Cversion>\\(.*\\)\u003C\\\u002Fversion>.*\u002F\\1\u002F'` to get the current version. If behind, ask if the user wants to upgrade.\n\n2. **Check for missing artifacts:** Execute `test -f .mcp.json && echo \"OK\" || echo \"MISSING\"` for each expected file (.mcp.json, .akka\u002Fconstitution\u002F, .akka\u002Ftemplates\u002F, akka-context\u002F, CLAUDE.md, AGENTS.md). For any missing, execute `akka specify init . --agent claude-code --skip-commands` to regenerate.\n\n3. **Update context:** Execute `akka code context-update . --assistant claude-code --force`.\n\n---\n\n## Phase 8: Akka Context Documentation\n\nFor new projects: already handled by `akka specify init .` in Phase 7A.\n\nFor existing projects: already handled by `akka code context-update` in Phase 7B.\n\nVerify by executing `ls akka-context\u002F | wc -l`. Should show ~161 files. If empty or missing, execute `akka code context-update . --assistant claude-code --force`.\n\n---\n\n## Phase 9: AI Key Configuration (Optional)\n\nExecute these checks:\n- `[ -n \"$ANTHROPIC_API_KEY\" ] && echo \"set\" || echo \"not set\"`\n- `[ -n \"$OPENAI_API_KEY\" ] && echo \"set\" || echo \"not set\"`\n- `[ -n \"$GOOGLE_AI_API_KEY\" ] && echo \"set\" || echo \"not set\"`\n\nInform the user: *\"AI API keys are needed if your service calls external LLM providers (e.g. Anthropic, OpenAI, Google AI). Skip this if your service doesn't make LLM calls.\"*\n\nAsk: *\"Would you like to configure AI API keys now, or skip?\"*\n\nIf the user defers: record as skipped and continue.\n\nIf configuring: ask which provider(s), get the key value, and ask where to store it:\n- **Environment variable (recommended):** Execute `export KEY_NAME=\"value\"` and remind the user to add it to their shell profile for persistence.\n- **application.conf:** Write the key to `src\u002Fmain\u002Fresources\u002Fapplication.conf`. Warn that keys in config files are visible in the repo.\n\n---\n\n## Phase 10: Validation\n\nExecute all checks and build the summary:\n\n1. Execute `java -version 2>&1 | head -1`\n2. Execute `mvn --version 2>&1 | head -1`\n3. Execute `akka version 2>&1`\n4. Execute `grep -q \"akka-repository\" ~\u002F.m2\u002Fsettings.xml 2>\u002Fdev\u002Fnull && echo \"configured\" || echo \"not configured\"`\n5. Execute `docker info 2>\u002Fdev\u002Fnull | head -1 || echo \"not available\"`\n6. If `pom.xml` exists, execute `mvn compile -q 2>&1` to verify the build. Report errors but do not block.\n7. **MCP capability check**: Verify that the Akka MCP server is available and\n   provides the capabilities required by the `\u002Fakka:*` commands. Test\n   one representative tool from each capability group:\n\n   - **SDD workflow**: Call `akka_sdd_list_specs` (should return a result, even if empty)\n   - **Build & test**: Check that `akka_maven_compile` is available as a tool\n   - **Local development**: Check that `akka_local_start` is available as a tool\n   - **Platform deployment**: Check that `akka_services_list` is available as a tool\n   - **Service introspection**: Check that `akka_backoffice_list_components` is available as a tool\n   - **Browser testing**: Check that `akka_browser_navigate` is available as a tool\n   - **Git**: Check that `akka_git_status` is available as a tool\n\n   Report each capability group as available or missing.\n\n   If any capability group is missing, tell the user:\n   *\"Some capabilities expected by the akka plugin are not available from\n   the Akka MCP server. Please ensure the Akka CLI is installed and the MCP\n   server is configured in `.mcp.json`. If the CLI is already installed, try\n   restarting Claude Code (use `claude --resume` to keep context).\"*\n\n   Mark the MCP capabilities line as ⚠ in the summary if any are missing, ✓ if all present.\n   Service introspection and browser testing are optional — mark them separately\n   but do not treat them as blockers.\n\nOutput a summary:\n\n```\n\u002Fakka:setup — Complete\n\n  Java [version]         ✓ installed\n  Maven [version]        ✓ installed\n  Akka CLI               ✓ installed\n  Akka download token    ✓ configured\n  Docker                 ✓ installed        (or: ⏭ deferred)\n  MCP capabilities       ✓ all available    (or: ⚠ missing: sdd, build, local, ...)\n  Service introspection  ✓ available        (or: ⚠ not available)\n  Browser testing        ✓ available        (or: ⚠ not available)\n  SDK version            ✓ latest\n  Project scaffolded     ✓ com.example:my-cart\n  Akka context docs      ✓ 161 files\n  AI keys                ⏭ deferred         (or: ✓ configured)\n\nIMPORTANT: The MCP server configuration (.mcp.json) was created during\nsetup. Claude Code only loads MCP servers at session start, so you need\nto restart. Use `claude --resume` to restart without losing your session\ncontext. After restarting, the Akka MCP tools will be available.\n\nReady to go! After restarting, run \u002Fakka:specify to start building your first feature.\n```\n\n---\n\n## Error Handling\n\n1. Report errors clearly with the specific error message.\n2. Do not retry blindly — if the same error persists, ask the user.\n3. Suggest alternatives: Homebrew fails → suggest SDKMAN; apt fails → suggest SDKMAN.\n4. Docker (Phase 6) and AI keys (Phase 9) failures are non-blocking — record as deferred.\n5. Build failures in Phase 10 are non-blocking — report but don't block the summary.\n\n## Key Rules\n\n- EXECUTE COMMANDS YOURSELF — do not ask the user to run them or paste output\n- IDEMPOTENT — check before acting; skip already-satisfied phases\n- ASK BEFORE SUDO — show the exact command and get permission first\n- USER CHOOSES — optional phases (Docker, AI keys) are offered, never forced\n- DELEGATE TO CLI — after Phase 4, use `akka` CLI commands\n\n## Done When\n\n- [ ] Bash availability was tested first; if unavailable, the command stopped with the permission-limitation message and did not attempt any install steps.\n- [ ] Phase 1 recorded the OS, architecture, shell, package managers, and whether this is a new or existing project (based on `pom.xml`).\n- [ ] `java -version` reports Java 21 or newer.\n- [ ] `mvn --version` reports Maven 3.9 or newer, OR `.\u002Fmvnw` exists in the project.\n- [ ] `akka version` returns a valid version.\n- [ ] `~\u002F.m2\u002Fsettings.xml` contains both `akka-repository` and `akka-plugin-repository` entries.\n- [ ] Docker availability was recorded — either installed and running, or explicitly deferred by the user.\n- [ ] For new projects: `pom.xml`, `.akka\u002F`, `akka-context\u002F`, `CLAUDE.md`, `AGENTS.md`, and `.mcp.json` were created by `akka specify init . --agent claude-code --skip-commands`; git was initialized with an initial commit.\n- [ ] For existing projects: any missing scaffold artifact was regenerated, and `akka code context-update` refreshed `akka-context\u002F`.\n- [ ] AI API keys were configured or explicitly deferred by the user.\n- [ ] Phase 10 validation exercised one representative tool from every MCP capability group (`akka_sdd_list_specs`, `akka_maven_compile`, `akka_local_start`, `akka_services_list`, `akka_git_status`) and reported ✓ \u002F ⚠ per group.\n- [ ] The final summary table was emitted with the correct ✓ \u002F ⏭ \u002F ⚠ marks for every row, followed by the MCP-restart instruction and the recommendation to run `\u002Fakka:specify` after restart.\n- [ ] `sudo` was requested only after showing the exact command and receiving explicit user permission; no persistent CLI configuration (`akka config set`) was silently modified.\n",{"name":5,"description":7},"main","dbb719c3f52584296af0d92beed03251cd2f3371","skills\u002Fsetup",3,"https:\u002F\u002Fgithub.com\u002Fakka\u002Fai-marketplace","https:\u002F\u002Fdoc.akka.io","https:\u002F\u002Fgithub.com\u002Fakka","https:\u002F\u002Fakka.io","2026-11-15 02:07:52",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add akka\u002Fai-marketplace --skill setup",{"tool":61,"command":62},"bunx","bunx skills add akka\u002Fai-marketplace --skill setup",{"tool":64,"command":65},"pnpm","pnpm dlx skills add akka\u002Fai-marketplace --skill setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fakka\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fsetup\u002FSKILL.md",true,[],[70,86,97,121,134,146],{"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":41},"01M70VC27E4BQ8YW5M19R43XB5","visualize","Generate Mermaid diagrams for a feature from its spec.md (requirement-level views) and plan.md (technical component diagrams).","https:\u002F\u002Fgithub.com\u002Fakka\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fvisualize\u002FSKILL.md",[],[72,77,78,22,79,80,81,82,83,84,85],"diagrams","feature","technical","mermaid diagrams","plan","component","generate","mermaid","spec",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":41},"01M6GKNPW7D72HYT0NQ095QFT4","tasks","Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.","https:\u002F\u002Fgithub.com\u002Fakka\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Ftasks\u002FSKILL.md",[],[88,93,78,94,95,83,96,22],"design","actionable","artifacts","dependency",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":41},"01M6GKNJJV6509SZXKB0Z02FC2","status","Show a read-only rollup of the definition of done — every exit condition with its state, properties, and open reason — without running any auditor.","https:\u002F\u002Fgithub.com\u002Fakka\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fstatus\u002FSKILL.md",[],[99,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120],"properties","read","rollup","state","running","definition","auditor","reason","with","done","exit","only","condition","show","read-only","definition of done","open",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":41},"01M6GKNE1WXE2X3TVH9EYKFPKX","specify","Create or update the feature specification from a natural language feature description.","https:\u002F\u002Fgithub.com\u002Fakka\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fspecify\u002FSKILL.md",[],[123,128,78,129,130,131,132,133],"natural language","specification","create","feature specification","update","language",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":41},"01M6GKN943T6RYZYHTBQ3M9NG0","ship","Run the auditors for every exit condition in scope for the requested ship target (review or release), and on pass run the ship steps the organization declared for that target.","https:\u002F\u002Fgithub.com\u002Fakka\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fship\u002FSKILL.md",[],[136,141,116,142,143,144,145,114,22],"review","scope","organization","run","release",{"skillNo":147,"name":141,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":41},"01M6GKMTJD9EFB51HSBTQHXM7C","Review implemented code for Akka SDK best practices, and optionally against spec, plan, and constitution.","https:\u002F\u002Fgithub.com\u002Fakka\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Freview\u002FSKILL.md",[],[141,152,153,154,81,155,9,85,22],"constitution","best practices","code","sdk"]