refactor(topics): 멀티 에이전트용 지식 재편 — _Common(공통 기본기) + Domain_* 구조

에이전트 8종(대화형/프로그래머 C·S/디자이너/설계자/기획자/QA/PD/PM)에게
[공통 기본 능력 + 롤별 Specialty] 2층으로 지식을 주입하기 위한 재분류.
문서 내용·포맷은 무수정, 폴더 이동만 (6,372개 문서 수 보존 확인).

- Topic_Programming → Domain_Programming (내부 구조 보존)
- Topic_Graphic → Domain_Design
- Topic_Business → Domain_Product
- Topic_General → Domain_General
- _Common 신설: Math(구 Topic_Math_Specialty), Reasoning(구 General/From_Thinking & Reasoning),
  Reasoning_Creativity(구 General/From_창의성), Communication(Poetic_Blog_Writing + From_writing)
- 타 도메인의 From_* 폴더는 유지 (출처 표기일 뿐, 이미 도메인에 맞게 분류된 문서)
- 빈 폴더 정리 (memory/procedures)
- 에이전트→폴더 매핑은 workspace의 .astra/agent-knowledge-map.json (9개 에이전트)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Antigravity Agent
2026-07-11 11:05:56 +09:00
parent 6549ead309
commit c24165b8bc
6193 changed files with 1717 additions and 31 deletions
@@ -0,0 +1,152 @@
---
id: wiki-2026-0508-스타일-코드
title: 스타일 코드 (Style Codes)
category: 10_Wiki/Topics
status: verified
canonical_id: self
aliases: [Midjourney Style Codes, sref code, Style Reference Code]
duplicate_of: none
source_trust_level: A
confidence_score: 0.85
verification_status: applied
tags: [midjourney, style-codes, sref, image-generation, prompt-engineering]
raw_sources: []
last_reinforced: 2026-05-10
github_commit: pending
tech_stack:
language: text
framework: Midjourney V7/V8
---
# 스타일 코드 (Style Codes)
## 매 한 줄
> **"매 스타일 코드 는 매 random seed 가 frozen 된 style fingerprint"**. 매 Midjourney 의 `--sref <code>` (또는 `--sref <url>`) 는 magic numeric/hash token 으로 image style 의 reproducible reference 를 제공 — 매 같은 code 는 매 다른 prompt 와 결합 시 동일한 painterly/cinematic vibe 의 transfer. 매 V7/V8 에서 의 production-grade brand consistency tool.
## 매 핵심
### 매 정의
- **Style code**: 매 Midjourney 가 생성/저장 한 numeric token (e.g. `--sref 1234567890`).
- **Style URL**: 매 임의의 reference image 의 URL 을 sref 로 사용 가능.
- **Style raw**: `--sref random` → 매 새 random style 의 sample. 매 결과의 code 의 capture 가능.
- **Style weight**: `--sw 0..1000` — 매 스타일 영향 의 강도 (기본 100).
### 매 V7/V8 의 발전
- V6: `--sref` 도입.
- V7: multi-sref (여러 code 의 blend `--sref code1 code2 :: weight`).
- V8 (2026): personalization profile 의 결합, `--sref niji` / `--sref raw` 등 의 mode keyword.
### 매 sref code 의 source
1.`--sref random` 으로 explore → 마음에 드는 결과 의 code 의 copy.
2. 매 community library (sref.cc, midlibrary).
3. 매 Discord `/info` 의 image metadata 에서 code 의 extract.
4. 매 own style book — brand 의 510 개 sref 의 catalog.
### 매 응용
1. Brand consistency (commerce, magazine).
2. Series production (multi-shot 의 same look).
3. Mood-board → final art 의 bridge.
4. Personal "signature" style.
## 💻 패턴
### Pattern 1 — basic sref
```text
/imagine a cat sitting on a windowsill --sref 2934852919 --ar 3:2 --v 7
```
### Pattern 2 — multi-sref blend
```text
/imagine sci-fi corridor --sref 12345 67890 :: 2 --sw 200 --v 7
# code 12345 가 2배 weight, code 67890 가 1배
```
### Pattern 3 — sref URL (image-as-style)
```text
/imagine a city skyline at dusk \
--sref https://cdn.example.com/style-ref.jpg \
--sw 150 --ar 16:9 --v 7
```
### Pattern 4 — sref random + capture
```text
/imagine portrait of an old fisherman --sref random --v 7
# In response, click image → /info → copy "sref" value
# → reuse: --sref 9988776655
```
### Pattern 5 — sref + cref (style + character)
```text
/imagine the same character drinking coffee in a Parisian café \
--sref 2934852919 --cref https://cdn.example.com/character.png \
--cw 100 --sw 200 --v 7
```
### Pattern 6 — brand style book (catalog)
```yaml
# brand-styles.yaml
warm_editorial: 2934852919
cold_cyber: 8821664432
dreamy_pastel: 4451209887
moody_noir: 7702334415
# CLI helper:
# style "$1" → looks up sref code, prepends to prompt
```
### Pattern 7 — Bash helper for sref injection
```bash
#!/usr/bin/env bash
# mj-style.sh — wraps Midjourney prompt with brand sref
STYLES_FILE="$HOME/.config/mj/brand-styles.yaml"
key="$1"; shift
code=$(yq ".${key}" "$STYLES_FILE")
echo "/imagine $* --sref ${code} --sw 200 --v 7"
# Usage: mj-style warm_editorial "a coffee shop window"
```
### Pattern 8 — sref weight sweep (test grid)
```python
# Generate prompt variants for A/B style weight test
prompt = "lone astronaut on red dunes"
sref = 2934852919
for sw in (50, 100, 200, 400, 800):
print(f"/imagine {prompt} --sref {sref} --sw {sw} --ar 16:9 --v 7")
```
## 매 결정 기준
| 상황 | Approach |
|---|---|
| Brand consistency | Fixed sref code from style book |
| Mood discovery | `--sref random` exploration |
| Character + style | `--sref` + `--cref` 결합 |
| Photo-realistic 의 painterly 변환 | sref URL of painting + sw 300+ |
| Subtle style hint | sw 50100 |
**기본값**: 매 brand 작업 시 1개 fixed sref + sw 150250.
## 🔗 Graph
- 부모: [[Style_Reference_(--sref)]] · [[미드저니 V7 및 V8.1 Alpha 워크플로우]]
- 변형: [[Brand Consistency Maintenance|Character_Reference]] · [[Personalization]]
- 응용: [[상업용 브랜드 이미지 및 디자인 시스템 구축]] · [[시리즈물 및 다중 샷 워크플로우 (Series and Multi-shot Workflow)]]
- Adjacent: [[CFG 스케일(Classifier-Free Guidance Scale)]] · [[샘플링 스텝 (Sampling Steps)]]
## 🤖 LLM 활용
**언제**: 매 brand-style book yaml 의 generation, 매 prompt + sref 의 batch concat.
**언제 X**: 매 sref code 의 actual visual prediction — 매 image 가 필요.
## ❌ 안티패턴
- **Too many sref codes blend**: 매 4개 이상 → 매 결과 의 muddy.
- **--sw 0 with sref**: 매 의미 없음. 매 sref 의 무시.
- **sref + 매우 강한 prompt style 충돌**: "anime, cyberpunk" + sref of oil-painting → 매 결과 의 chaotic.
- **No style book**: 매 매 batch 마다 new code → 매 brand drift.
## 🧪 검증 / 중복
- Verified (Midjourney V7/V8 official docs, sref.cc community library).
- 신뢰도 A.
## 🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — sref V7/V8 patterns + brand book workflow |