---
name: @@INTENT@@-agent
description: >-
  <תיאור קצר של הסוכן — מה הוא עושה ומתי ה-Agent Router מנתב אליו, ושהוא מחזיר {reply}
  ל-orchestrator. It is a map, not a manual: it routes you to the live workflow via the
  n8n-live and factory MCP servers (.mcp.json) and AGENTS.md, never to hard-coded ids or
  secrets. Triggers on @@INTENT@@-agent, @@INTENT@@, ...>
---

# @@INTENT@@-agent

This skill describes the **`@@INTENT@@-agent`** n8n workflow shipped into this system by
`or-factory-master`. It is a **map, not a manual** — the live values (workflow id, URL,
secret values) live in **`AGENTS.md`** and the running n8n, never here.

> **Build-time source:** this agent is defined by the folder `agents/@@INTENT@@/`
> (`agent.json` + `prompt.md` + `eval.yaml` + this `SKILL.md`). The n8n workflow
> `workflows/n8n/@@INTENT@@-agent.json` is a **compiled artifact** produced from that folder
> by `scripts/build-agent-workflow.sh` — edit the folder, not the JSON.

## What it is

<משפט אחד: מה הסוכן עושה ומה ה-trigger שלו (מופעל ע"י ה-Agent Router, מחזיר {reply}).>

## Read its live state first (read-only)

- **`factory` MCP** (`.mcp.json`) — `list_n8n_workflows`, `inspect_n8n_execution`,
  and this system's `/mcp/system-tools` named queries — see how `@@INTENT@@-agent` actually
  ran before you touch anything.
- **`AGENTS.md`** (repo root) — the system's live tables, secret **names** (never values),
  and the agent roster.

## Run / develop it

- Edit `agents/@@INTENT@@/` (the source) and run `scripts/build-agent-workflow.sh @@INTENT@@`
  to regenerate `workflows/n8n/@@INTENT@@-agent.json`; the drift gate
  (`scripts/check-agent-home-drift.sh`) keeps the two in sync.
- **`n8n-live` MCP** (`.mcp.json`) — run/develop against this system's OWN live n8n. Live
  writes are **scratch-only** (`dev-*` names); git stays the source of truth.
- Re-import to the live system via `configure-agent-router.yml`; do not hand-edit the
  published workflow.

## The invariants — never break these

- **Writes are human-gated (HITL).** Any state change is *proposed*, then a human ✅ approves.
- **Secrets are names only.** Never echo, print, or log a Secret Manager value or any token.
- **`main` is protected.** Workflow JSON changes land via PR + green CI, never a direct push.

## See also

`operate-this-system` (the system-wide map), `docs/agent-home.md` (the agent-home schema),
and `AGENTS.md` (this system's live values).
