Imported from marcosdh1987/company-brain-template (
.opencode/skills/update_domain_context/SKILL.md). Install upstream withnpx skills add marcosdh1987/company-brain-template --skill update_domain_context. Copyright stays with the author.
Skill: update_domain_context
Purpose
Absorb one business change consistently (context, glossary, requirements, architecture) instead of patching one file and letting the rest drift.
Required Input
- The change, in one or two sentences, and its source (decision, meeting, incident, named person).
Execution Rules
- Classify: entity | business rule | integration | vocabulary | scope | ownership. One change may touch several.
- Grep the brain for every mention of the affected concepts; list files to touch before editing any.
- Update each file respecting its schema and IDs. New rules take the next
BR number; renamed terms keep a synonym row pointing to the canonical
entry; replaced facts are marked
SUPERSEDED, never deleted. - If the change contradicts a recorded decision, do not silently edit —
flag that a superseding DEC is needed (
record_decision). make validate. Summarize what changed, citing the source.
Output Format
- Files touched with one-line diffs and provenance; any DEC flagged for supersession.