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.
Parameters
Section titled “Parameters”content
Section titled “content”string
string[]
Returns
Section titled “Returns”string