Skip to content

GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.

feat: update SKILL

Aldino Kemal36facd47f89e
diff --git a/.agents/skills/update-release-note/SKILL.md b/.agents/skills/update-release-note/SKILL.md
index c9f7ff75..77da9e6c 100644
--- a/.agents/skills/update-release-note/SKILL.md
+++ b/.agents/skills/update-release-note/SKILL.md
@@ -1,17 +1,22 @@
---
name: update-release-note
-description: Update an existing GitHub release's notes when asked, preserving the style of recent releases.
+description: Edit the notes of an existing GitHub release when requested.
---
# Update release notes
-Resolve the requested repository and release tag. Read its current body and the
-previous release with `gh release view <tag> --json name,body,url`; release-list
+Resolve the requested repository and release tag; clarify only if the target is
+ambiguous. Use the same explicit repository and tag for every read and write.
+Read its current body and the previous release with
+`gh release view <tag> --repo <owner/repo> --json name,body,url`; release-list
JSON does not include `body`. Inspect commits/PRs between the relevant tags to
support each change listed, while retaining existing accurate content and links.
Match the established language, headings, and contributor/changelog format. Write
-the complete intended Markdown to a temporary file and use `gh release edit <tag>
---notes-file <path>` for the authorized update. Read the release back to verify the
-stored body, then return its URL. Creating a release or changing version/tag metadata
-requires a separate request.
+the complete intended Markdown to a temporary file. If the current body already
+matches, return its URL without rewriting it. For a requested update, use
+`gh release edit <tag> --repo <owner/repo> --notes-file <path>` and read the release
+back to compare the stored body with the intended Markdown before reporting success.
+A request for a draft or review ends with the proposed notes; it does not authorize
+publishing them.
+Creating a release or changing version/tag metadata requires a separate request.
diff --git a/AGENTS.md b/AGENTS.md
index 4ae38747..d3d72268 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -6,10 +6,12 @@ enabled; both transports share the same device manager and usecases.
## Working scope and completion
-- Read the nearest scoped `AGENTS.md` and the source relevant to the task. Use the
- entry points below as needed; a small edit does not require a full repository tour.
-- Continue authorized local edits, checks, and fixes until the requested behavior
- is verified or a concrete blocker remains. Report the result, checks, and limitations.
+- Use the applicable scoped `AGENTS.md` and task-relevant source. The entry points
+ below are routing hints; follow the ones needed for the affected behavior.
+- For multi-step work, identify the requested outcome and how to verify it. Continue
+ through implementation, relevant checks, and fixes caused by the change. When the
+ request includes running or inspecting the result, include that in completion.
+ If blocked, report what remains and the specific missing input or access.
- Preserve unrelated working-tree changes. Keep `.env`, SQLite databases, session
data, QR codes, generated media, and history dumps out of commits.
- Local tests using temporary databases, mocks, and fake clients can be run and
@@ -19,15 +21,16 @@ enabled; both transports share the same device manager and usecases.
## Task entry points
-- API contracts and business behavior: [domains](src/domains/AGENTS.md),
- [usecases](src/usecase/AGENTS.md), and [validation](src/validations/AGENTS.md).
+- DTOs and interfaces: [domains](src/domains/AGENTS.md). Business orchestration:
+ [usecases](src/usecase/AGENTS.md). Input rules: [validation](src/validations/AGENTS.md).
- REST, MCP, and websocket transport: [UI adapters](src/ui/AGENTS.md). For MCP
authentication, use [the OAuth guide](docs/mcp-oauth.md).
- Device lifecycle, events, JIDs, and presence: [WhatsApp infrastructure](src/infrastructure/whatsapp/AGENTS.md).
For webhook payload changes, consult [the payload contract](docs/webhook-payload.md).
- SQL queries, migrations, and cleanup: [chat storage](src/infrastructure/chatstorage/AGENTS.md).
-- Chatwoot routing, live sync, and history: [Chatwoot infrastructure](src/infrastructure/chatwoot/AGENTS.md)
- and [configuration](docs/chatwoot.md). Direct Postgres changes have a [scoped guide](src/infrastructure/chatwoot/pgimport/AGENTS.md).
+- Chatwoot routing, live sync, and history: [Chatwoot infrastructure](src/infrastructure/chatwoot/AGENTS.md).
+ Setup or routing-mode changes: [configuration](docs/chatwoot.md).
+ Direct Postgres changes: [scoped guide](src/infrastructure/chatwoot/pgimport/AGENTS.md).
- Embedded browser UI: `src/views/components/` and `src/views/index.html`. These are
plain Vue 3 modules loaded from CDN, with Fomantic UI and `[[`, `]]` delimiters.
- Startup and configuration: `src/cmd/root.go`, `src/cmd/rest.go`,
@@ -56,23 +59,25 @@ enabled; both transports share the same device manager and usecases.
## Local commands and validation
-Run Go commands from `src/`:
+Run Go commands from `src/`; select checks for the affected behavior:
```sh
go test ./path/to/affected/package/...
go test ./...
go vet ./...
go build -o whatsapp .
-go run . rest
```
Choose checks for the changed behavior. Use the full suite for shared contracts,
-startup, or broad changes; repeat checks when edits or failures justify it. For
-Markdown-only changes, check the diff and references; application tests are unnecessary.
+startup, or broad changes. After relevant checks pass, repeat or broaden them only
+for new edits, failures, or unresolved risks. For Markdown-only changes, check the
+diff and references; application tests are unnecessary. Report checks actually run
+and any unverified behavior.
Default SQLite builds use CGO; `-tags purego` selects `modernc.org/sqlite` when that
build variant is relevant. Run `go mod tidy` when changing dependencies.
-Runtime paths are relative to the process directory. Direct runs use `src/storages`
+For an authorized runtime check, `go run . rest` starts the server. Runtime paths
+are relative to the process directory. Direct runs use `src/storages`
and `src/statics`; Docker Compose mounts the root-level directories into `/app`.
Keep these paths excluded from hot reload in `src/.air.toml`. The Docker entrypoint
fixes volume ownership before dropping to `gowauser`.
diff --git a/src/infrastructure/chatwoot/AGENTS.md b/src/infrastructure/chatwoot/AGENTS.md
index ee9a777e..27a9d5b0 100644
--- a/src/infrastructure/chatwoot/AGENTS.md
+++ b/src/infrastructure/chatwoot/AGENTS.md
@@ -1,7 +1,7 @@
# Chatwoot integration
-Use [configuration and routing docs](../../../docs/chatwoot.md) for integration
-changes. `client.go` owns REST calls, `provision.go` inbox setup,
+Use [configuration and routing docs](../../../docs/chatwoot.md) when changing setup,
+routing modes, or import configuration. `client.go` owns REST calls, `provision.go` inbox setup,
`client_registry.go` destination routing, and `sync.go` history orchestration.
Direct Postgres changes have a [scoped guide](pgimport/AGENTS.md).