Skip to content

feat(guidelines): import shared primitives from a neutral home - #25

Open
pallaoro wants to merge 2 commits into
mainfrom
knowledgediffview-why-are-we-using
Open

feat(guidelines): import shared primitives from a neutral home#25
pallaoro wants to merge 2 commits into
mainfrom
knowledgediffview-why-are-we-using

Conversation

@pallaoro

@pallaoro pallaoro commented Aug 4, 2026

Copy link
Copy Markdown
Member

Reuse-before-you-build told the agent to find an existing primitive but
said nothing about where to import it from, so "reuse" was satisfied by
reaching sideways into another feature's route dir — coupling the two and
keeping a Feature* name on generic code. Adds a §7 bullet: hoist the
generic part to a domain-neutral module, name it for what it does, and
have both features import that. Fanned out to every agent rule file.

Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com

pallaoro and others added 2 commits August 4, 2026 09:42
Reuse-before-you-build told the agent to find an existing primitive but
said nothing about where to import it from, so "reuse" was satisfied by
reaching sideways into another feature's route dir — coupling the two and
keeping a Feature* name on generic code. Adds a §7 bullet: hoist the
generic part to a domain-neutral module, name it for what it does, and
have both features import that. Fanned out to every agent rule file.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

1 participant