docs(doctrine): foreign code keeps its own style, limits stay strict in ours

This commit is contained in:
bchanot committed 2026-10-23 16:54:46 +02:00
1 parent 70e0f9ac41
commit 71d28f8616
5 files changed
+31 -10

No files matched your search

+4
View File
@@ -16,6 +16,10 @@ model). The scope you name is the only reflection; the agent applies norms.
and dispatch on the new branch; on a working branch dispatch in place. Never
`gitflow finish` — integration is human-gated.
Origin: `bash ~/.claude/lib/code-origin.sh` on the target repo. `foreign` →
the refactorer aligns on the existing style, not on the limits, unless the
user asked for the limits explicitly; add that to the prompt below.
```
Agent(subagent_type="refactorer")
prompt: "Refactor to strict project norms, preserving external behavior