AI Services Market
AI Services Market › Use cases › Software & DevOps
Software & DevOpsDone with Cursor, Claude, Claude Code Nov 8, 2026

Build Ansible automation with Claude, recording lessons in CLAUDE.md

The author used Cursor and Claude to write nearly all Ansible code, auto-updating CLAUDE.md with lessons learned and logging plans to files to survive compaction; also uses Claude Code for a nonprofit website. · Nov 8, 2026

Build Ansible automation with Claude, recording lessons in CLAUDE.md preview
What They Did
At a previous job, the author used Cursor with Claude for nearly all Ansible work, leaning on Puppet and Chef experience. Every lesson learned went into CLAUDE.md automatically, and Claude wrote its findings and plans to local files before each step so it could resume after compaction. For the nonprofit site, work goes through TODO.md, CHANGELOG.md, branches and PRs, with a context-free sub agent reviewing each round.
How It Went
The author says the work looks like a solid improvement over what existed before. Push-time scans (security Actions, axe for WCAG) block bad builds. The author still approves every change personally and doesn't yet trust the tooling enough to loosen that.
Worth Knowing
Cap the number of review rounds and require fewer fixes each round, and record out-of-scope findings as new todos, so PRs converge instead of growing.
Try it yourself with Cursor

Help me build Ansible automation in this repo to [goal, e.g. patch and configure my servers]. Before starting, create a CLAUDE.md and add a short lesson to it each time you hit a mistake or learn a convention. Write your plan to plans/[task-name].md and keep it updated as you go so nothing is lost when context is compacted. Run in check mode and show me the results before applying any change to real hosts.

Read the original ↗

Do this with a skill.

These AI Services Market playbooks do this exact job.