Skip to content

Commit 245523f

Browse files
committed
add flowchart, workflow
1 parent 99f5ed3 commit 245523f

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

ea-agent/README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@ This agent automates the creation of External Adapters (EAs) by orchestrating mu
1212

1313
Each testing phase uses a writer agent followed by a validator agent, iterating until tests pass validation (up to 3 approvals required).
1414

15+
```mermaid
16+
flowchart TD
17+
A[YAML Spec] --> B[EA Developer]
18+
B --> C[packages/sources/adapter]
19+
C --> D[Integration Test Writer]
20+
D --> E{Integration Test Validator}
21+
E -->|rejected| D
22+
E -->|3 approvals| F[Unit Test Writer]
23+
F --> G{Unit Test Validator}
24+
G -->|rejected| F
25+
G -->|3 approvals| H[Done]
26+
```
27+
1528
## Components
1629

1730
```
@@ -92,3 +105,37 @@ Reference the agent prompts in `.claude/agents/` directly in Cursor chat using `
92105
```
93106
@ea_developer.md Initialize the EA project for packages/sources/my-adapter
94107
```
108+
109+
## GitHub Actions Workflow
110+
111+
The agent can be triggered automatically via GitHub Actions (`.github/workflows/generate-ea.yml`).
112+
113+
### Triggers
114+
115+
1. **PR with YAML file** — Open a PR that adds a YAML file to `ea-agent/requests/`
116+
2. **Comment command** — Comment `/generate-ea` on any PR with a YAML file
117+
118+
### What It Does
119+
120+
1. Detects the YAML file in `ea-agent/requests/`
121+
2. Runs the EA scaffolding agent
122+
3. Commits generated code back to the PR
123+
4. Updates PR description with status and review checklist
124+
125+
### Example
126+
127+
```bash
128+
# Create a branch with your YAML spec
129+
git checkout -b feat/OPDATA-123-my-adapter
130+
cp my-spec.yaml ea-agent/requests/OPDATA-123-my-adapter.yaml
131+
git add ea-agent/requests/OPDATA-123-my-adapter.yaml
132+
git commit -m "feat: Add EA request for my-adapter"
133+
git push origin feat/OPDATA-123-my-adapter
134+
135+
# Open a PR — the workflow runs automatically
136+
```
137+
138+
Or trigger manually on an existing PR:
139+
```
140+
/generate-ea
141+
```

0 commit comments

Comments
 (0)