Lessons from merged fixes
yof_lessonsLists lessons from merged Patch fixes to show what was fixed, which pull request confirmed it, and how to avoid repeating the problem in similar code.
Instructions
List short lessons from Patch fixes merged in your projects: what was fixed, in which pull request, whether yof's next check confirmed it, and how to avoid it next time. Use it before writing similar code so the same problem does not come back; use yof_patch_status for pull requests still open. Needs YOF_API_KEY; sends only app_id to yof.io, which answers from stored data (up to 50 merged pull requests, most recently opened first). Returns lessons (repository, pull_request, merged, rule, note, avoid_next_time); an empty list means no Patch fix has been merged yet.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "yof_lessons"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | No | One app's id, to list only that app's lessons. Default: every app in the account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lessons | Yes |