Keep a lesson learned here
godot_lesson_addStore a reusable lesson from this project so godot_check and godot_lessons surface your fix the next time the same Godot message or question appears.
Instructions
Keep a lesson you learned in this project, so Godotwright (and the next session) knows it: when the same Godot message or question comes back, godot_check and godot_lessons show your fix. Write it in general words: title is the lesson in one line, fix what to do; add symptom, cause, error (the Godot message as printed, kept as a template), topic, tags, rules and test when you can. Names of this project (classes, nodes, files, its title), paths, links, e-mail addresses, codes, keys and source code are replaced before anything is stored; a lesson that is mostly names is refused with what to change. The same title again updates that lesson. It writes only to the local learning file and is never sent; godotwright lessons export prints these lessons for a person to propose for everyone. Add one whenever a fix took more than one try, and not for what a review rule already reports. Returns the stored lesson and what was replaced; an error when it is refused or learning is off.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | Yes | what to do instead | |
| tags | No | words to find it by | |
| test | No | how to test it | |
| cause | No | why, in Godot terms | |
| error | No | the Godot message it explains, as printed | |
| rules | No | review or model rule ids it belongs to | |
| title | Yes | the lesson in one line, e.g. 'A body placed on a moving deck must start at the deck speed' | |
| topic | No | default gdscript | |
| symptom | No | what went wrong, as it showed |