Refactor frontend source trees so layer/slice/segment(role) hierarchy stays clear. Treat FSD names such as shared/entities/features/widgets/app as examples, not as the required target. Use when the user asks to reorganize src, separate app-owned code from reusable packages, remove layer smells, or clarify ์ฑ ์ ๊ฒฝ๊ณ.
์์ฒญ์ด ๋ชจํธํ๊ฑฐ๋ '์ ํ๋์ง'๋ถํฐ ์ ๋ฆฌ๊ฐ ํ์ํ ๋ ์ฌ์ฉ. /discuss, $discuss, ์จ์ ์๋ ์ ๋ ฌ, ์ ๋ต ์ ํ, ์คํ ์ ํ์ธ ์์ฒญ, ํ๋ก์ ํธ ์์ ๊ณผ ๊ฐ์ธ ๋๊ตฌ ์์ ์ ๋ฒ์ ๋ถ๋ฆฌ๊ฐ ํ์ํ ๋ ์ฌ์ฉํ๋ค. TOC 13์์์ FRT ๊ฒ์ดํธ๋ก ์ดํด๋๋ฅผ ์์๋๋ก ์ฌ๋ฆฐ ๋ค goal๋ก ์คํ ๊ฐ๋ฅํ ์ก์ ํ๋์ ๋ง๋ ๋ค. ์ง๋ฌธ๋ง ๋์ง๋ ์ํฌ๋ผํฑ ๋ํ๊ฐ ์๋๋ผ, AI๊ฐ ๋จผ์ ๋ฒ์ ์ ๋งฅ๋ฝ์ ์กฐ์ฌํ๊ณ ์ถ๋ก ํ ๋ค ํ๋จ๊ณผ ๊ทผ๊ฑฐ๋ฅผ ๋ฐํ๊ณ ํ์ํ ๊ฐญ ์ง๋ฌธ๋ง ์น๋๋ค.
Use when the user invokes /doubt or $doubt, asks Codex to deliberately reduce unnecessary complexity before introducing a new concept, component, flag, type, file, branch, workflow, document, or procedure, or requests cleanup/review after implementation. Triggers include "์ด๊ฑฐ ๋ค ํ์ํด?", "์ ๋ฆฌ ์ข ํด์ค", "์๋ก ๋ง๋ค์ด์ผ ํ ๊น?", "๋ถํ์ํ ๊ฑฐ ์๋?", "์ฝ๋ ์ค์ฌ์ค", "why do we need this?", or any review where existence, fit, volume, and efficiency should be challenged before adding or keeping structure.
Use when refactoring frontend entity folders, FSD feature/entity boundaries, exported type names, prefix alignment, or cohesive entity/viewModel/value-object props so files and UI interfaces are grouped by real domain or UI concepts instead of role labels, generic names, or shredded field props. Trigger on requests such as entities ์์ง๋, ์ ๋์ด ์ ๋ ฌ, ์ธํฐํ์ด์ค ์ค์ฌ ํด๋๋ง, FSD ์์น ์ ๊ฒ, feature/entity ๊ฒฝ๊ณ ๋ฆฌํฉํ ๋ง, props drill, entity shredding, viewModel props, ์ํฐํฐ๋ฅผ ๊ทธ๋๋ก ๋๊ธฐ๊ธฐ.
ํ์ผ์ด๋ ๊ธฐ๋ฅ์ ๊ฐ๋ฐฉ-ํ์ ์์น(OCP)์ ์ ๊ฒํ๊ณ ๋ฆฌํฉํ ๋งํ๋ค. "OCP", "/ocp", "๊ฐ๋ฐฉ ํ์", "switch ๋๋ฌด ๋ง๋ค", "if ๋ถ๊ธฐ ์ ๋ฆฌ", "๋ถ๊ธฐ ํฉ์ด์ง", "์ ์ธ์ ๋งต", "registry", "descriptor", "์ ํ์ /variant ์ถ๊ฐ๋ง๋ค ์ฌ๋ฌ ๊ณณ ์์ " ๊ฐ์ ์์ฒญ์์ ์ฌ์ฉํ๋ค. ์ด๋ฆฐ ์งํฉ์ ๋ถ๊ธฐ๊ฐ ์ฌ๋ฌ ์๋น์์ ์ฐ์ฌํด ๋๋ฐ ๋ณ๊ฒฝ ์ง์ ์ด 2๊ณณ ์ด์์ธ์ง ๋ถ์ํ๊ณ , ํ์ฅ ์ ๊ธฐ์กด ์ฝ๋ ์์ ์ง์ ์ 0~1๊ณณ์ผ๋ก ์ค์ด๋ ๊ตฌ์กฐ๋ฅผ ์ค๊ณยท์ ํํ๋ค.
์ฌ์ฉ์ ๋ฐํ๋ฅผ ์ก๋ฉด ๊ทธ๋๋ก ์ํํ์ง ์๊ณ ์จ์ ์กฐ์ฌ ์๋, ๋ฐฐ๊ฒฝ, ๋ชฉํ๋ฅผ ๋จผ์ ์ถ๋ก ํ ๋ค ๋น๊ต ๋์์ ๋ฒ์ฃผ์ ํผ์ด์ ์ ์ ๊ทธ๊ณ , ๋ด๋ถ ๋งฅ๋ฝ์ ๊ฐ์ฌํ๊ณ standard, best practice, de facto, frontier trend๋ฅผ ๋น๊ตํด ์ฝํ๋ reference narrative๋ฅผ ๋ง๋ ๋ค. "reference", "๋ ํผ๋ฐ์ค", "BP ์ฐพ์์ค", "best practice", "์ฌ์ค์ ํ์ค", "de facto", "์์ฆ ํธ๋ ๋", "์ต๊ทผ ์๋", "์ ๊ณ๋ ์ด๋ป๊ฒ ํด", "ํ์ค ๋ญ์ผ", "research", "๋ฆฌ์์น", "/reference", "/research"์ฒ๋ผ ์ธ๋ถ ์๋ ด ํ๋ฆ์ ์๊ณ ์ถ์ ๋ ์ฌ์ฉํ๋ค. ๋จ์ ๋งํฌ ๋ชฉ๋ก์ด๋ ํ ๋ณด๊ณ ์๊ฐ ์๋๋ผ, ์์ค๋ฅผ ๋์ ์ฝ๊ณ ๊ฐ์ ๋ฒ์ฃผ์ BP/de facto์ ์ผ๋ง๋ ๊ฐ๊น์ด์ง, ๊ฒฐ์ด ์ผ๋ง๋ ๋น์ทํ์ง, ์ฐจ์ด๊ฐ ์๋ค๋ฉด ๋ ๊ฐ๊น์ด ์ ์ฌ ๋ ํผ๋ฐ์ค๋ ๋ฌด์์ธ์ง ๋ฌธ๋จ ์ค์ฌ์ผ๋ก ์ค๋ช ํ๊ณ ํ์ํ ๊ทผ๊ฑฐ ํ๋ appendix๋ก ๋ด๋ฆฐ๋ค.
ํ์ผ ๋จ์ ๋จ์ผ ์ฑ ์ ์์น(SRP)์ ์ ๊ฒํ๊ณ ๋ฆฌํฉํ ๋ง์ ์ํํ๋ค. "๋จ์ผ ์ฑ ์", "์ฑ ์ ๋ถ๋ฆฌ", "ํ์ผ์ด ๋๋ฌด ํฌ๋ค", "์ด ํ์ผ ์ชผ๊ฐ์", "/srp", "/srp 300", "/goal srp 300" ๋ฑ์ผ๋ก ํธ๋ฆฌ๊ฑฐ๋๋ค. ์ซ์ ์ธ์๋ import/export-from ๋ผ์ธ์ ์ ์ธํ LOC ๊ธฐ์ค์ ํ๋ณด ๋ฐ๊ฒฌ ํํ์ด๋ฉฐ, ๋ชฉํ ๋ผ์ธ ์๋ ์ ๋ ๋ถํ ๊ธฐ์ค์ด ์๋๋ค. ํ์ผ๋ช ๊ณผ ์ค์ ๊ตฌํ ์ฑ ์์ ๋์กฐํด ์ฑ ์์ด 1๊ฐ๋ฉด ์ ์งํ๊ณ , 2๊ฐ ์ด์์ด๋ฉด ๋ถ๋ฆฌ ๊ณํ์ ํ๋ก ๋ช ์ํ ๋ค ๋ถ๋ฆฌํ๋ค.
๋ ๋ฐฉํฅ์ด ์๋ฆฝ ๋ถ๊ฐ๋ฅํด ๋ณด์ผ ๋ ๋๋ฆฝ ํด์ ๋ค์ด์ด๊ทธ๋จ(Evaporating Cloud)์ผ๋ก ์จ๊ฒจ์ง ์ ์ ๋ฅผ ์ฐพ์ ๋ํ๊ตฌ(Injection)๋ฅผ ๋์ถํ๋ค. "A vs B", "์ด๋ฌ์ง๋ ์ ๋ฌ์ง๋", "ํธ๋ ์ด๋์คํ", "๋๋ ๋ง", "์๋ฆฝ ๋ถ๊ฐ", "/conflict", "$conflict" ๋ฑ์ ๋งํ ๋ ์ฌ์ฉ. ์นํธ์ A/B ์๋ธ์์ด์ ํธ๋ก ์์ชฝ ์ ์ ๋ฅผ ๊ฐ๊ฐ ์ต๋ํ ๊ฐํ๊ฒ ์ธ์ด ๋ค, ์ค์ฌ์๊ฐ ๊นจ์ง๋ ์ง์ ์ ์ฐพ๋๋ค.