Skip to content

Make agent lessons more action-oriented#1894

Merged
nathanjmcdougall merged 2 commits into
mainfrom
copilot/improve-agent-lessons
Apr 8, 2026
Merged

Make agent lessons more action-oriented#1894
nathanjmcdougall merged 2 commits into
mainfrom
copilot/improve-agent-lessons

Conversation

Copilot AI commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Lessons were structured around recording "what was done" (Resolution) and "what remains" (Follow-up) — essentially incident reports. They should instead drive concrete improvements: skill updates, automated checks, or code refactors.

usethis-lesson-create SKILL.md (v1.1 → v1.2)

  • Intro: Explicitly frames lessons as proposals for lasting improvement, not records of one-off fixes
  • Procedure: New step 4 "Propose a concrete action" with three categories in preference order: skill update → automated check → code refactor
  • Template: Replaced Resolution + Follow-up sections with single Recommended action section requiring categorized concrete improvements
  • Root cause example: Added Action row to the 5-Whys table

Old template tail:

## Resolution
<How the problem was resolved in this instance...>

## Follow-up
<Any work that remains...>

New:

## Recommended action
<One or more concrete improvements to prevent this class of problem from recurring.
Each action should fall into one of these categories:
- **Skill update:** which skill to update and what guidance to add or revise.
- **Automated check:** a new or improved linting rule, prek hook, or CI check to add.
- **Code refactor:** a structural change that makes the mistake impossible or harder.>

AGENTS.md

  • Updated Lessons section to mention the action-oriented requirement

Update usethis-lesson-create skill to emphasize concrete action items
(skill updates, automated checks, code refactors) over recording what
was done. Replace Resolution/Follow-up template sections with a single
Recommended action section. Update procedure, examples, and AGENTS.md.

Resolves #1876

Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/859e0b40-f4a8-4952-8ef9-1f30295ff64e

Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Copilot AI changed the title [WIP] Update agent lessons to be more action-oriented Make agent lessons more action-oriented Apr 8, 2026
Copilot AI requested a review from nathanjmcdougall April 8, 2026 02:56
@nathanjmcdougall nathanjmcdougall marked this pull request as ready for review April 8, 2026 03:06
@nathanjmcdougall nathanjmcdougall merged commit 466b9b7 into main Apr 8, 2026
1 check passed
@nathanjmcdougall nathanjmcdougall deleted the copilot/improve-agent-lessons branch April 8, 2026 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent lessons should be more action-oriented

2 participants