Skip to content

upsertLearningsBlock

upsertLearningsBlock(content, rules): string

Defined in: src/promote.ts:292

Insert or replace the managed shepherd:learnings block in CLAUDE.md content. Idempotent: replaces the existing block’s contents rather than appending a duplicate; appends a fresh block when no markers are present. Each rule is one - <rule> bullet.

string

string[]

string