Skip to content
Back to skills

Implement

ASecurity

Execute the implementation plan by processing and executing all tasks defined in tasks.md

  • 8 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 20, 2026
developmentjavascripttypescriptpythonrustgojavarubyphpswiftkotlin

Works with

  • vscode
  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 27, 2026

npx -y skills add akka/ai-marketplace --skill implement --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Implement?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Implement
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/akka-implement/badge)](https://www.skillsdirectory.com/skills/akka-implement)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: implement
description: "Execute the implementation plan by processing and executing all tasks defined in tasks.md"
---

## User Input

You **MUST** consider the user input before proceeding (if not empty).

## Before anything else

This command keeps a run in the idea's record when the akka CLI has one: the
`akka_run_start` MCP tool is available, or the output of `akka specify run start
--help` contains `--station`. A CLI without it predates the idea record. With
such a CLI, say so once and carry this command out as before: skip every step
marked **Idea record**, and open no run.

**Idea record: a console run.** Call the `akka_run_context` MCP tool first when
it is available: it answers `{ console, idea, station, run, spec, topic,
questions, sentBack, tasks }`, and `console: true` means the console started this command. Only
without that tool, the console started it when `AKKA_RUN_ID` is set in its
environment, or when the command has no shell to run the akka CLI in. The
console has already opened the run and enforced the rules for it, so in a
console run the run is open from the first step: its id is the `run`
`akka_run_context` answered. Any stop before the normal close, such as a
mode-check refusal, a missing argument, or a check that needs a tool this run
lacks, closes it with `akka_run_close`, that `run`, `outcome: failed` and the
reason. So in a console run: the feature is `akka_run_context`'s `spec` (for
`/akka:discover`, the topic is its `topic`), and the command never searches for
one; skip every step that finds, adopts, starts or links an idea, and never ask
a person a question: wherever this command would ask one, it closes the run with
`outcome: waiting` and `question` set to the question (`--outcome waiting
--question "<question>"` on the CLI); the owner answers in the console, and the
re-run reads the answer from `akka_run_context`'s `questions` (`{station, run,
question, answer}`) and does not ask it again; run the mode check with `--idea`
set to the `idea` `akka_run_context` answered, and skip it when it cannot run
here or no idea is known; open the run by calling `akka_run_start` with
`command` and `args` only, no `idea` and no `station`, and the CLI joins the
console's run; close it as usual; and skip the carry-on step, because the
console moves the idea on. A run with no shell for the akka CLI that
`akka_run_context` answers `console: false` for is not a console run and keeps
no record: open no run, ask nothing about ideas or lanes, and carry the command
out as before the idea record, skipping every step marked **Idea record**.

**Idea record: a station sent back to.** When `akka_run_context` answers
`sentBack` (`{ from, reason, by, at }`), the idea was sent back to this station
from `from`, and `reason` says why. Work on that reason first: read it as the
instruction for this run from `by`, change this station's outputs where the
reason points, and keep what it does not touch. `sentBack` is `null` when no
send-back opened this station's visit.

**Idea record: implement in a console run.** When a checklist is incomplete, do
not ask whether to proceed: close the run with `outcome: waiting` and that
question. Never merge to the default branch in a console run: skip the merge question and
leave the branch, because the merge is a person's choice. This command works on the branch the project is on and never creates or switches a branch. Skip the docs refresh and say in one line that it is
left for a laptop run: `/akka:docs` writes under `.akka/` and needs tools a
console run lacks. When a delivery phase's gate mock is not approved in
`mocks/index.md`, close the run `waiting`; the re-run checks `mocks/index.md`
again, and a recorded answer is not the approval. Build and test with `mvn` in the shell (for example `mvn -q compile`, `mvn
test` and `mvn verify`), which a console run of this command may run: it refuses
the `akka_maven_*` tools, so a task that names one runs as the matching `mvn`
command.

**Idea record: find the idea.** On a laptop run, find the feature this command
works on first: call `akka_sdd_list_specs` and identify the target feature as
the first step below does. Its idea is the one in `akka specify idea list
--json` whose `spec` is the feature's folder name (`NNN-name`); an idea is never
found from the git branch. When that idea has `derived: true`, it has no record
yet: adopt it with `akka specify ideas adopt --idea <id>`, then use it. When no
idea has it, read the mode with `akka specify mode`. In À la carte mode, open no
run: say in one line that this run is not recorded, and continue. In Enforced
mode, stop: the project's specs and topics get their ideas once with `akka
specify ideas adopt`, and this command runs after that. Pass the idea's id as
`--idea <id>` to the mode check and `idea` to the run start.

Run `akka specify mode --allows implement`, adding `--idea <id>` when the idea
record found the idea. With a CLI that predates the idea record, add
`--as-engine` when you are carrying this command out as a step of the sequence
`/akka:specify` drives in Enforced mode, rather than because a person invoked
it. It exits non-zero when the project's mode does not permit the command. On a
non-zero exit, print its message verbatim and stop. Do not continue, and do not
work around it. The one exception is a CLI that rejects `--allows` as an unknown
flag: it predates the mode check (older than 3.0.74), so say so and continue
without the check.

With the idea record, Enforced mode runs a station command when the idea's
previous station is done and approved, and the CLI's run start decides;
`/akka:specify` does not drive the sequence. With an older CLI, Enforced mode
gives the sequence to the engine, so a step it sequences is refused to a person
and permitted to the engine. A refusal with a reason of its own, such as
re-running setup, stands either way. The message names the remedy.

**Idea record: open the run.** On a laptop run, call the `akka_run_start` MCP
tool with `station: implement`, `command: /akka:implement`, `idea` set to the
idea found above and `args` set to the user input. Where the tool is not
available, run `akka specify run start --station implement --command
/akka:implement --idea <id> --args "<the user input>" --json`, with the input
quoted as one argument. A run is never started without its idea. It answers
JSON: `recorded`, and for a recorded run its `idea` and `run.id`. Keep both: the
last steps use them.

- When it answers `recorded: false`, continue without a run, and say in one line
  that this run is not recorded, with its `reason`.
- A refusal by rule is an error whose JSON is `{refused, message, remedy}`,
  `refused` naming the rule: `paused`, `limit`, `shipped`, `dropped`,
  `approval`, `order`, `no-idea-enforced`, `idea-unresolved` or `console-run`. Print `message` and `remedy` verbatim and stop.
- Any other error, one without `refused` (such as no login), does not stop the
  command: continue without a run, and say in one line that this run is not
  recorded.

**Idea record: a run that fails is closed too.** Once the run is open, every way
the command ends closes it. When the work fails (a build or tests fail, or a
step stops the command early), call `akka_run_close` with `run`, `outcome:
failed` and `error` set to what failed, in one line, then stop. Where the tool
is not available, run `akka specify run close --run <id> --outcome failed
--error "<what failed>"`. When the person stops the command, close the run with
`outcome: stopped`. This holds in a console run too. The close step below is for
the work's normal end.

## Outline

1. Call the `akka_sdd_list_specs` MCP tool to find features. Verify that tasks.md exists for the target feature (has_tasks must be true). If tasks.md is missing, instruct the user to run `/akka:tasks` first. Read the tasks.md content from FEATURE_DIR. Also note which other artifacts are available (AVAILABLE_DOCS).

2. **Work on the current branch.** Call `akka_git_status` to read the current branch and work on it. This command never creates or switches a branch; the branch is the person's choice. Note its name for step 13.

3. **Check checklists status** (if FEATURE_DIR/checklists/ exists):
   - Scan all checklist files in the checklists/ directory
   - For each checklist, count:
     - Total items: All lines matching `- [ ]` or `- [X]` or `- [x]`
     - Completed items: Lines matching `- [X]` or `- [x]`
     - Incomplete items: Lines matching `- [ ]`
   - Create a status table:

     ```text
     | Checklist | Total | Completed | Incomplete | Status |
     |-----------|-------|-----------|------------|--------|
     | ux.md     | 12    | 12        | 0          | ✓ PASS |
     | test.md   | 8     | 5         | 3          | ✗ FAIL |
     | security.md | 6   | 6         | 0          | ✓ PASS |
     ```

   - Calculate overall status:
     - **PASS**: All checklists have 0 incomplete items
     - **FAIL**: One or more checklists have incomplete items

   - **If any checklist is incomplete**:
     - Display the table with incomplete item counts
     - **STOP** and ask: "Some checklists are incomplete. Do you want to proceed with implementation anyway? (yes/no)"
     - Wait for user response before continuing
     - If user says "no" or "wait" or "stop", halt execution
     - If user says "yes" or "proceed" or "continue", proceed to step 3

   - **If all checklists are complete**:
     - Display the table showing all checklists passed
     - Automatically proceed to step 3

4. Load and analyze the implementation context:
   - **REQUIRED**: Read tasks.md for the complete task list and execution plan
   - **REQUIRED**: Read plan.md for tech stack, architecture, and file structure — including the Component Architecture table, which fixes the Akka component for each domain concept
   - **IF EXISTS**: Read data-model.md for entities and relationships
   - **IF EXISTS**: Read contracts/ for API specifications and test requirements
   - **IF EXISTS**: Read research.md for technical decisions and constraints
   - **IF EXISTS**: Read quickstart.md for integration scenarios
   - **IF EXISTS**: Read `.akka/models.md`, the project's model policy: the model and effort for each purpose (design, implementation, review, tests, research, visual checks, documentation), the tier order, the downgrade rule and its exceptions

5. **Project Setup Verification**:
   - **REQUIRED**: Create/verify ignore files based on actual project setup:

   **Detection & Creation Logic**:
   - Call `akka_git_status` to determine if the repository is a git repo (create/verify .gitignore if so)
   - Check if Dockerfile* exists or Docker in plan.md → create/verify .dockerignore
   - Check if .eslintrc* exists → create/verify .eslintignore
   - Check if eslint.config.* exists → ensure the config's `ignores` entries cover required patterns
   - Check if .prettierrc* exists → create/verify .prettierignore
   - Check if .npmrc or package.json exists → create/verify .npmignore (if publishing)
   - Check if terraform files (*.tf) exist → create/verify .terraformignore
   - Check if .helmignore needed (helm charts present) → create/verify .helmignore

   **If ignore file already exists**: Verify it contains essential patterns, append missing critical patterns only
   **If ignore file missing**: Create with full pattern set for detected technology

   **Common Patterns by Technology** (from plan.md tech stack):
   - **Node.js/JavaScript/TypeScript**: `node_modules/`, `dist/`, `build/`, `*.log`, `.env*`
   - **Python**: `__pycache__/`, `*.pyc`, `.venv/`, `venv/`, `dist/`, `*.egg-info/`
   - **Java**: `target/`, `*.class`, `*.jar`, `.gradle/`, `build/`
   - **C#/.NET**: `bin/`, `obj/`, `*.user`, `*.suo`, `packages/`
   - **Go**: `*.exe`, `*.test`, `vendor/`, `*.out`
   - **Ruby**: `.bundle/`, `log/`, `tmp/`, `*.gem`, `vendor/bundle/`
   - **PHP**: `vendor/`, `*.log`, `*.cache`, `*.env`
   - **Rust**: `target/`, `debug/`, `release/`, `*.rs.bk`, `*.rlib`, `*.prof*`, `.idea/`, `*.log`, `.env*`
   - **Kotlin**: `build/`, `out/`, `.gradle/`, `.idea/`, `*.class`, `*.jar`, `*.iml`, `*.log`, `.env*`
   - **C++**: `build/`, `bin/`, `obj/`, `out/`, `*.o`, `*.so`, `*.a`, `*.exe`, `*.dll`, `.idea/`, `*.log`, `.env*`
   - **C**: `build/`, `bin/`, `obj/`, `out/`, `*.o`, `*.a`, `*.so`, `*.exe`, `Makefile`, `config.log`, `.idea/`, `*.log`, `.env*`
   - **Swift**: `.build/`, `DerivedData/`, `*.swiftpm/`, `Packages/`
   - **R**: `.Rproj.user/`, `.Rhistory`, `.RData`, `.Ruserdata`, `*.Rproj`, `packrat/`, `renv/`
   - **Universal**: `.DS_Store`, `Thumbs.db`, `*.tmp`, `*.swp`, `.vscode/`, `.idea/`

   **Tool-Specific Patterns**:
   - **Docker**: `node_modules/`, `.git/`, `Dockerfile*`, `.dockerignore`, `*.log*`, `.env*`, `coverage/`
   - **ESLint**: `node_modules/`, `dist/`, `build/`, `coverage/`, `*.min.js`
   - **Prettier**: `node_modules/`, `dist/`, `build/`, `coverage/`, `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`
   - **Terraform**: `.terraform/`, `*.tfstate*`, `*.tfvars`, `.terraform.lock.hcl`
   - **Kubernetes/k8s**: `*.secret.yaml`, `secrets/`, `.kube/`, `kubeconfig*`, `*.key`, `*.crt`

6. Parse tasks.md structure and extract:
   - **Task groups**: Setup, Tests, Core, Integration, Polish
   - **Task dependencies**: Sequential vs parallel execution rules
   - **Task details**: ID, description, file paths, parallel markers [P], delivery-phase tags [Ph<n>], model tags [model: <name>], effort tags [effort: low|medium|high]
   - **Execution flow**: Order and dependency requirements
   - **Delivery phases** (when tasks carry [Ph<n>] tags): each phase's acceptance test and gate from plan.md's Delivery Phases and Review Gates

   **Choosing the model for a sub-agent**: when a task is handed to a sub-agent (for example parallel [P] tasks), choose its model and effort in this order, and use the first that applies:
   1. The task's `[model: <name>]` and `[effort: <level>]` tags.
   2. The row in plan.md's Model Plan for the task's [Ph<n>] phase and purpose.
   3. The row in `.akka/models.md` for the task's purpose.
   4. The harness default.

   Then apply the downgrade rule: when usage has reached 85% of the plan's allowance (the harness reports it, or the user says so), move the chosen model one tier down the tier list in `.akka/models.md` (the last tier stays), unless the policy's Exceptions name that purpose or phase. Do not change the main session's model; tell the user once that the rule is in effect and suggest they switch the main session themselves. Without a policy file, the tiers are, most capable first: opus, sonnet, haiku. Name the model used in the progress report for each task.

   **Numbering the agents and recording task events**: number each agent `agent-1`, `agent-2` and so on in the order it starts; a run with a single agent uses `agent-1`. Begin each sub-agent's prompt with the line `[akka-agent: agent-<n>]`, so the gateway's records can be joined to that agent. Tell each sub-agent to record its tasks as follows, and call the same steps yourself for tasks you run in this session as `agent-1`:
   1. If a run was opened and `akka_run_context` returned `tasks`, take the next task from `tasks.next` first.
   2. Before starting a task, call the `akka_run_task` MCP tool with `run` set to the run id, `task` set to the task's T-id, `agent` set to `agent-<n>` and `action: start`. Where the tool is not available, run `akka specify run task start --run <id> --task <T> --agent agent-<n>`. If it answers that the task is held, handed over or already started, skip that task and take another. Follow any instructions it returns.
   3. When the task's acceptance passes, call the same tool with `action: tick`, or run `akka specify run task tick --run <id> --task <T> --agent agent-<n>`. The CLI sets the task's box in tasks.md under its lock, so when either is available do not edit the box yourself; only when neither is available, tick the box in tasks.md as before.
   4. When a task needs a person's decision, call the same tool with `action: raise`, `text` set to the question on one line, `options` set to a list of options each with `label` and `text`, `recommended` set to the recommended option's label and `owner` set to the role that decides, or run `akka specify run task raise --run <id> --task <T> --agent agent-<n> --text <question> --option <label>=<sentence> ... --recommended <label> --owner <role>`. Do not choose a question id: the CLI assigns the next one and returns it, and you use that id afterwards. Once the raise is recorded, move to another task. When neither the tool nor the command is available, the command's existing question handling applies unchanged; in a console run the question closes the run as `waiting`.

   These calls are best-effort and never stop the run. When a run was not opened, or neither the `akka_run_task` tool nor `akka specify run task` exists on an older CLI, carry on exactly as before and say once that task progress is not recorded, unless the command has already said that the CLI predates the idea record.

7. Execute implementation following the task plan:
   - **Group-by-group execution**: Complete each group before moving to the next
   - **Respect dependencies**: Run sequential tasks in order, parallel tasks [P] can run together
   - **Follow TDD approach**: Execute test tasks before their corresponding implementation tasks
   - **File-based coordination**: Tasks affecting the same files must run sequentially
   - **Validation checkpoints**: Verify each group completion before proceeding
   - **Delivery phases**: When tasks carry [Ph<n>] tags, run the phase's acceptance test from plan.md before starting tasks of a later phase. In a project with a `discovery/` folder, if a phase has a gate, check the topic's `discovery/<topic>/mocks/index.md`: the gate's artifact must read `approval: approved by ...`. If it does not, stop and ask the user to review it with `/akka:discover <topic> mock`

8. Implementation execution rules:
   - **Component fidelity**: Implement components as mapped in plan.md's Component Architecture table. If a task needs a component not in the table, consult the "Choosing a component type" section of `akka-context/sdk/components/index.html.md`, then record the addition (with the rejected alternative) in plan.md before coding
   - **Setup first**: Initialize project structure, dependencies, configuration
   - **Tests before code**: If you need to write tests for contracts, entities, and integration scenarios
   - **Core development**: Implement models, services, CLI commands, endpoints
   - **Integration work**: Database connections, middleware, logging, external services
   - **Polish and validation**: Unit tests, performance optimization, documentation

9. Progress tracking and error handling:
   - Report progress after each completed task
   - Halt execution if any non-parallel task fails
   - For parallel tasks [P], continue with successful tasks, report failed ones
   - Provide clear error messages with context for debugging
   - Suggest next steps if implementation cannot proceed
   - **IMPORTANT** For completed tasks, make sure to mark the task off as [X] in the tasks file.
   - Record each task's `start`, `tick` and `raise` events as described in step 6.

10. **Refresh the docs.** If the project has a `discovery/` folder, run `/akka:docs` (the implementation docs and the Story) before the commit, in this session, so they match what this command built; add its outcome to the report, and leave the refreshed docs for the commit in the next step. If the project has no `discovery/` folder, do not run `/akka:docs`; offer it in the report as an optional next step, and leave `docs/` untouched.

11. **Commit the implementation**:
   - Before staging, find the repository's default branch, DEFAULT: run `git symbolic-ref --short refs/remotes/origin/HEAD` and drop the `origin/` prefix (the `akka_git_*` tools do not cover it). When that fails, DEFAULT is the first of `main` and `master` that `git rev-parse --verify --quiet <name>` or `git rev-parse --verify --quiet origin/<name>` finds. When none is found, DEFAULT is unknown: treat the current branch as if it were DEFAULT in the next bullet, and skip step 13. Note DEFAULT for step 13.
   - If the branch noted in step 2 is DEFAULT, ask the person whether to commit there, or to create a branch they name and commit there (`akka_git_create_branch`). Do not stage or commit until they answer. When a branch is created, it is the branch this run committed to, for step 13.
   - In a console run nobody can answer, so on DEFAULT do not stage or commit: leave the implementation uncommitted, and in the final message say it is uncommitted on DEFAULT.
   - Call `akka_git_add` to stage the implementation's files
   - Call `akka_git_commit` with a descriptive message summarizing the implemented feature

12. **Close the run**. If a run was opened, call the `akka_run_close` MCP tool with `run` set to its id, `outcome: ok`, `outputs` set to the code and test files this run created or changed and `FEATURE_DIR/tasks.md`, with `docs/` when the docs refresh ran, all as project-relative paths, and `tasks` set to the ids of the tasks this run marked `[X]`. Where the tool is not available, run `akka specify run close --run <id> --outcome ok` with one `--file <path>` for each output and one `--task <id>` for each task. The close writes the run's events into `.akka/record/` and commits nothing. On an error, print its message and stop: do not ask the merge question. After the close, run `git status --porcelain -- .akka/record/` and end the final message with one line naming the files it lists, such as "Record files to commit with your work: .akka/record/<id>/…". This command does not commit the record. When git is not available, the line says the record is in `.akka/record/<id>/`.

13. **Ask about merging to the default branch**. Skip this step when the branch this run committed to is DEFAULT, or when nothing was committed:
   - Ask the user: "Would you like to merge the current branch back to DEFAULT?", naming DEFAULT
   - If yes: call `akka_git_checkout` to switch to DEFAULT, then `akka_git_merge` with the branch this run committed to
   - If no: stay on the current branch — the user may want to create a PR or continue iterating

14. Completion validation:
   - Verify all required tasks are completed
   - Check that implemented features match the original specification
   - Validate that tests pass and coverage meets requirements
   - Confirm the implementation follows the technical plan
   - Report final status with summary of completed work

16. **Carry on or stop.** In a console run, skip this step: the console moves the idea on. If a run was opened, run `akka specify idea next --idea <idea> --from implement --json`, where `<idea>` is the `idea` the run start returned. It answers `{ go, next, reason }`. When `go` is true, carry on into `next.command` in this conversation, following its own instructions. Otherwise stop, print `reason`, and name `next.command` when there is one. Without a run, stop and name the next command.

Note: This command assumes a complete task breakdown exists in tasks.md. If tasks are incomplete or missing, suggest running `/akka:tasks` first to regenerate the task list.

## Done When

- [ ] FEATURE_DIR and `tasks.md` were resolved via `akka_sdd_list_specs` with `has_tasks == true`.
- [ ] The work happened on the branch the project was on; no branch was created or switched.
- [ ] The checklists status table was displayed; if any checklist had incomplete items, the user explicitly approved proceeding.
- [ ] Every applicable ignore file (`.gitignore`, `.dockerignore`, `.eslintignore`/eslint config, `.prettierignore`, `.npmignore`, `.terraformignore`, `.helmignore`) was created or verified with the correct patterns for the detected tech stack.
- [ ] Tasks were executed group-by-group, respecting sequential dependencies and running `[P]` tasks in parallel where safe.
- [ ] When tasks carry `[Ph<n>]` tags, each delivery phase's acceptance test passed before a later phase's tasks started, and, with a `discovery/` folder, its gate was approved.
- [ ] Each sub-agent was numbered `agent-<n>` and its prompt began with `[akka-agent: agent-<n>]`; each task's `start` and `tick` events were recorded where the CLI supports them, or the command said once that task progress is not recorded.
- [ ] Each sub-agent's model and effort came from the task's `[model: …]` tag, the plan's Model Plan, `.akka/models.md` or the harness default, in that order, with the 85% downgrade rule applied; the model used was reported per task.
- [ ] Every completed task in `tasks.md` was marked `[X]`; any failed task halted execution (or, for `[P]` tasks, was reported while continuing successful siblings).
- [ ] The implementation was staged via `akka_git_add` and committed via `akka_git_commit` with a descriptive message, after the person answered where to commit when the current branch was the repository's default branch. With a run, the close error (if any) stopped the command, and `.akka/record/` was left uncommitted, its files named in the final message.
- [ ] On a laptop run that committed to a branch other than the default branch, the user was asked whether to merge it to the default branch, and a console run left the branch unmerged; the answer was acted on (`akka_git_checkout` + `akka_git_merge` on yes, stay on the branch on no).
- [ ] The final report validates that implemented features match the spec, tests pass, and the implementation follows the plan.
- [ ] With a `discovery/` folder, `/akka:docs` ran before the commit (a console run left it for a laptop run); without one, it was offered as a next step and `docs/` was left untouched.
- [ ] The run was opened with `akka_run_start` after the mode check, against the idea found from its feature, and closed with `akka_run_close` at the end, naming the files written and the tasks completed, or the CLI was reported as predating the idea record.
- [ ] With a run, the command carried on into `next.command` only when `akka specify idea next` answered `go: true`; otherwise it stopped, printed the reason and named the next command.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.