| name | gpt-research |
| description | Extracts project context into a structured research prompt for GPT-PRO and copies it to the clipboard. Use for requests that delegate research to GPT or extract project context as a structured prompt, such as "GPT์ ๋ฌผ์ด๋ด", "GPT ๋ฆฌ์์น", "GPT-PRO", "๋ฆฌ์์น ์์", "์ปจํ
์คํธ ์ถ์ถ", "gpt research", "GPT์๊ฒ ๋๊ฒจ", "GPTํํ
์ง๋ฌธ", "GPT ํ๋กฌํํธ", "research prompt", "์ปจํ
์คํธ ๋ฝ์์ค", "GPT์ฉ ํ๋กฌํํธ", "์ธ๋ถ ๋ฆฌ์์น", "ํ๋กฌํํธ ์์ฑ", "GPT ์์". |
| argument-hint | [module|arch|issue|custom] [target path or description] |
user: "์ด ๋ชจ๋์ ๋ํด GPT์ ๋ฌผ์ด๋ณด๊ฒ ์ปจํ
์คํธ ๋ฝ์์ค src/auth/"
assistant: "module ๋ชจ๋๋ก src/auth/ ๋๋ ํ ๋ฆฌ์ ์์ค, ์์กด์ฑ, ์ธํฐํ์ด์ค๋ฅผ ์ถ์ถํ์ฌ GPT-PRO ๋ฆฌ์์น ํ๋กฌํํธ๋ฅผ ์์ฑํ๊ฒ ์ต๋๋ค."
user: "ํ๋ก์ ํธ ์ํคํ
์ฒ๋ฅผ GPT-PROํํ
๋ถ์์ํค๊ณ ์ถ์ด"
assistant: "arch ๋ชจ๋๋ก ํ๋ก์ ํธ ์ ์ฒด ๊ตฌ์กฐ, ์์กด์ฑ ๊ทธ๋ํ, ๋น๋ ์์คํ
์ ์์ฝํ์ฌ ๋ฆฌ์์น ํ๋กฌํํธ๋ฅผ ํด๋ฆฝ๋ณด๋์ ๋ณต์ฌํ๊ฒ ์ต๋๋ค."
user: "์ด ์๋ฌ GPTํํ
๋๊ฒจ์ ์์ธ ๋ถ์ ๋ฐ์: TypeError: Cannot read properties of undefined"
assistant: "issue ๋ชจ๋๋ก ์๋ฌ ๊ด๋ จ ์์ค, ์ฝ์ฒด์ธ, git ํ์คํ ๋ฆฌ๋ฅผ ์ถ์ถํ์ฌ GPT-PRO ๋ฆฌ์์น ํ๋กฌํํธ๋ฅผ ๊ตฌ์ฑํ๊ฒ ์ต๋๋ค."
user: "GPT ๋ฆฌ์์น์ฉ ํ๋กฌํํธ ๋ง๋ค์ด์ค, ๋ด๊ฐ ๋ฒ์ ์ง์ ํ ๊ฒ"
assistant: "custom ๋ชจ๋๋ก ์งํํฉ๋๋ค. ์ด๋ค ํ์ผ์ด๋ ์ฃผ์ ๋ฅผ ํฌํจํ ์ง ์๋ ค์ฃผ์ธ์."
GPT-PRO Research Prompt Generator
Extract a specific part of the project (module, architecture, or issue) into a structured research prompt to delegate to GPT-PRO, and copy it to the clipboard (pbcopy).
Respond to the user in Korean.
The Four Modes
1. module โ Module/File Analysis
Collect context centered on a specific module or file.
What to collect:
- Full contents of the target source files
- Imported/dependency files (1 level deep)
- Protocol/interface/type definitions
- Related test files
- Package/module declarations (Package.swift, package.json, Cargo.toml, etc.)
Detection strategy:
- Glob all source files under the target path
- Parse import statements in each file โ Glob the dependency files
- Grep for protocol/interface keywords
- Match test files with the patterns
*Test*, *Spec*, *_test*
2. arch โ Architecture Analysis
Summarize the overall project structure and design.
What to collect:
- Directory tree (depth 3, excluding: node_modules, .git, build, .build, DerivedData, Pods, venv, pycache)
- Project docs such as CLAUDE.md, README.md, ARCHITECTURE.md
- Dependency files (Package.swift, package.json, Podfile, Cargo.toml, go.mod, requirements.txt, etc.)
- Build system config (Makefile, Tuist, *.xcodeproj configuration, etc.)
- Key config files (.env.example, tsconfig.json, .swiftlint.yml, etc.)
3. issue โ Issue/Error Analysis
Collect the context around an error or bug.
What to collect:
- Source files referenced in the error message or stack trace
- Grep results for the error string (file + surrounding context)
- Call chain tracing (callers/callees)
- Related test files
- Recent git history (last 10 commits for the relevant files)
- Environment info (OS, runtime version, dependency versions)
4. custom โ User-Specified
The user specifies the scope interactively.
Flow:
- Ask the user which files/directories/topics to include
- Collect file contents for the selected scope
- Have the user enter the research question directly
- Assemble the prompt, then copy to clipboard
Output Format
The generated prompt has a four-section structure:
# GPT-PRO Research Request
## Role
[๋ชจ๋์ ๋ฐ๋ฅธ ์ญํ ์ง์ ]
## Context
[์ถ์ถ๋ ํ๋ก์ ํธ ๋งฅ๋ฝ โ ํ์ผ ๊ฒฝ๋ก ํค๋ + ์ฝ๋ ๋ธ๋ก]
## Research Request
[๊ตฌ์ฒด์ ๋ฆฌ์์น ์ง๋ฌธ]
## Expected Output
[GPT-PRO ์๋ต envelope ํฌ๋งท ์ง์ ]
GPT-PRO Response Envelope
In the Expected Output section, request the following structured response format from GPT-PRO:
| Section | Required | Content |
|---|
| Summary | O | Key summary of the analysis in 3 lines or fewer |
| Findings | O | Per-mode analysis body (including file paths + line numbers) |
| Code Suggestions | โณ | Code change suggestions โ file path, line, change type, code block |
| Action Items | O | P0-Critical / P1-Important / P2-Suggestion priority checklist |
| References | โณ | External reference material |
This format is designed so that pasting the GPT-PRO response into Claude Code lets follow-up work begin immediately.
See references/output-templates.md for the detailed template.
Execution Flow
1. Determine mode
โโ Specified via argument โ that mode
โโ No argument + error message present โ issue
โโ No argument + file/directory specified โ module
โโ No argument + scope unclear โ ask the user for the mode
2. Detect target
โโ module: path โ Glob โ source file list
โโ arch: project root โ directory tree + core files
โโ issue: parse error message โ locate related files
โโ custom: wait for user input
3. Collect context
โโ Read files per each mode's strategy
โโ Reference: references/context-extraction-guide.md
4. Validate size
โโ < 100K chars: proceed normally
โโ 100K~200K chars: show warning + suggest trimming
โโ > 200K chars: hard limit โ auto-trim or chunk
โโ Reference: references/size-limits-and-chunking.md
5. Build prompt
โโ Assemble into the four-section structure
โโ Reference: references/output-templates.md
โโ Reference: references/prompting-best-practices.md
6. Copy to clipboard
โโ echo "..." | pbcopy
7. Report result
โโ List of included files
โโ Total char count / estimated token count
โโ Whether chunked (if applicable)
โโ "ํด๋ฆฝ๋ณด๋์ ๋ณต์ฌ๋์์ต๋๋ค. GPT-PRO์ ๋ถ์ฌ๋ฃ๊ธฐ ํ์ธ์."
Size Management
| Tier | Size | Handling |
|---|
| Small | < 30K chars | Use as-is |
| Medium | 30K~100K chars | Use as-is |
| Large | 100K~200K chars | Warning + suggest trimming |
| Oversized | > 200K chars | Auto-trim or chunk |
Trimming priority (keep the highest first):
- Core source code
- Interface/protocol definitions
- Error logs/stack traces
- Config files
- Test code
- Documentation
- Dependency files
See references/size-limits-and-chunking.md for the detailed strategy.
Codex Research Sidecar (Optional)
Only when the Codex skill is installed and the user explicitly asks for it, you may run /codex:rescue in parallel with GPT-PRO prompt generation.
When to Use
- The user explicitly asks, e.g. "codex๋ ๊ฐ์ด ๋๋ ค์ค", "codex๋ก๋ ํ์ธํด์ค"
- Or propose it as a fallback when GPT-PRO is unavailable
How to Run
- After the existing prompt generation (pbcopy) completes
- Dispatch the
codex:codex-rescue subagent in the background (read-only, without --write):
- Task: pass along the prompt's Expected Output summary as-is
- Check progress with
/codex:status, collect results with /codex:result
- Report the Codex result to the user separately (do not mix it with the existing pbcopy prompt)
Guardrail: The essence of this skill is GPT-PRO handoff + pbcopy. Codex is a sidecar/fallback, not a full replacement. Do not run Codex automatically without an explicit user request.
Key Rules
- Read-only: Do not modify project files. Only read and search.
- pbcopy: Copy the result to the clipboard with
pbcopy โ this is the skill's delivery contract.
- Korean explanations: Write the prompt's explanatory parts in Korean, and keep code and technical terms in their original form.
- One-way: Scope ends at context extraction and prompt generation. Handling the GPT response is out of scope.
References
references/output-templates.md โ Output format templates
references/context-extraction-guide.md โ Per-mode context extraction strategies
references/prompting-best-practices.md โ GPT-PRO prompting best practices
references/size-limits-and-chunking.md โ Size management and chunking guide