claude-pro-minmax 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/CLAUDE.md +2 -1
- package/.claude/agents/README.ko.md +3 -3
- package/.claude/agents/README.md +3 -3
- package/.claude/agents/dplanner.md +6 -5
- package/.claude/commands/README.ko.md +5 -5
- package/.claude/commands/README.md +5 -5
- package/.claude/commands/dplan.md +3 -3
- package/.claude/commands/llms-txt.md +4 -4
- package/.claude/skills/README.ko.md +2 -2
- package/.claude/skills/README.md +2 -2
- package/.claude/skills/{cli-wrappers → cli-patterns}/SKILL.md +5 -4
- package/.claude.json +1 -8
- package/README.ko.md +83 -48
- package/README.md +83 -48
- package/install.sh +258 -15
- package/lib/cli.js +112 -7
- package/lib/rtk.js +203 -1
- package/package.json +2 -2
- /package/.claude/skills/{cli-wrappers → cli-patterns}/references/github-cli.md +0 -0
- /package/.claude/skills/{cli-wrappers → cli-patterns}/references/mgrep.md +0 -0
package/.claude/CLAUDE.md
CHANGED
|
@@ -49,7 +49,8 @@ Pro Plan constraints. Every message = quota. Optimize for Pass@1.
|
|
|
49
49
|
| Implementation | @builder | Haiku | None → Escalate |
|
|
50
50
|
| Quality Review | @reviewer | Haiku | None → Escalate |
|
|
51
51
|
|
|
52
|
-
@dplanner tools: `sequential-thinking`, `perplexity`, `
|
|
52
|
+
@dplanner tools: `sequential-thinking`, `perplexity`, `Read`, `Glob`, `Grep`
|
|
53
|
+
Current library docs can be handled by the official Context7 Claude Code integration when installed.
|
|
53
54
|
|
|
54
55
|
## DEFAULT WORKFLOW
|
|
55
56
|
- Simple (1-3 files): `/do` — batch plan+build+verify in one shot
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
| 에이전트 | 모델 | 역할 | 도구 | 질문 |
|
|
13
13
|
|---------|------|------|------|------|
|
|
14
14
|
| `planner.md` | Sonnet 4.6 | 아키텍처 및 설계 결정 | Read, Glob, Grep (읽기 전용) | ≤3 (기본값 포함) |
|
|
15
|
-
| `dplanner.md` | Sonnet 4.6 | 연구 기반 심층 계획 | sequential-thinking, perplexity,
|
|
15
|
+
| `dplanner.md` | Sonnet 4.6 | 연구 기반 심층 계획 | sequential-thinking, perplexity, Read, Glob, Grep | 무제한 |
|
|
16
16
|
| `builder.md` | Haiku 4.5 | 구현 (2-retry cap) | Read, Write, Edit, Bash, Glob, Grep | 없음 → 에스컬레이션 |
|
|
17
17
|
| `reviewer.md` | Haiku 4.5 | 코드 검토 및 QA | Read, Glob, Grep (읽기 전용, 강제) | 없음 → 에스컬레이션 |
|
|
18
18
|
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
**기능:**
|
|
43
43
|
- `sequential-thinking`: 다단계 논리 검증
|
|
44
44
|
- `perplexity`: 웹 연구 (블로그, 포럼, 최신 아티클)
|
|
45
|
-
-
|
|
45
|
+
- 설치된 공식 Context7 Claude Code 통합을 통한 최신 라이브러리 문서 조회
|
|
46
46
|
|
|
47
47
|
**출력 예산:** 최대 60줄 (코드 블록 제외). 출처 + 출처당 1줄 인사이트만.
|
|
48
48
|
|
|
@@ -154,7 +154,7 @@ flowchart TD
|
|
|
154
154
|
| @planner와 @dplanner에 Sonnet 4.6 사용 | 아키텍처 결정은 추론 능력 필요. Pro Plan에서 Sonnet 4.6가 Opus 4.6보다 가성비 우수 |
|
|
155
155
|
| @builder 2-retry cap | Quota 소진 방지. 2회 실패 → Sonnet 4.6/Opus 4.6으로 에스컬레이션 또는 @planner로 재설계 |
|
|
156
156
|
| @reviewer 읽기 전용 강제 | Hook 기반 차단(`readonly-check.sh`). 검토 중 실수로 수정하는 것 방지 |
|
|
157
|
-
| @dplanner에
|
|
157
|
+
| @dplanner에 연구 도구 + 공식 문서 통합 제공 | 연구가 많은 작업은 더 깊은 계획이 필요합니다. `sequential-thinking` + `perplexity`로 추론과 웹 조사를 처리하고, 최신 라이브러리 문서는 공식 Context7이 설치된 경우 사용할 수 있습니다 |
|
|
158
158
|
| 에이전트별 출력 예산 | Output은 Input의 5배 비용 (API 가격). 엄격한 예산: builder 5줄, reviewer 1줄 PASS / 30줄 FAIL, dplanner 60줄, planner 1문장/작업 |
|
|
159
159
|
| @builder 원자적 롤백 | `~/.claude/scripts/snapshot.sh`가 depth guard + 라벨 확인 포함 `git stash` 처리. 무관한 사용자 stash pop 방지. 실패 시 `pop` (또는 clean tree에서 `git checkout .`) → 즉시 에스컬레이션 가능한 깨끗한 상태. 실패당 2-4 메시지 절약은 추정치이며, API 비용은 0 |
|
|
160
160
|
|
package/.claude/agents/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Contains sub-agent definitions for role-based task delegation with model optimiz
|
|
|
12
12
|
| Agent | Model | Role | Tools | Questions |
|
|
13
13
|
|-------|-------|------|-------|-----------|
|
|
14
14
|
| `planner.md` | Sonnet 4.6 | Architecture & design decisions | Read, Glob, Grep (read-only) | ≤3 (with defaults) |
|
|
15
|
-
| `dplanner.md` | Sonnet 4.6 | Deep planning with research | sequential-thinking, perplexity,
|
|
15
|
+
| `dplanner.md` | Sonnet 4.6 | Deep planning with research | sequential-thinking, perplexity, Read, Glob, Grep | Unlimited |
|
|
16
16
|
| `builder.md` | Haiku 4.5 | Implementation (2-retry cap) | Read, Write, Edit, Bash, Glob, Grep | None → Escalate |
|
|
17
17
|
| `reviewer.md` | Haiku 4.5 | Code review & QA | Read, Glob, Grep (read-only, enforced) | None → Escalate |
|
|
18
18
|
|
|
@@ -42,7 +42,7 @@ Contains sub-agent definitions for role-based task delegation with model optimiz
|
|
|
42
42
|
**Capabilities:**
|
|
43
43
|
- `sequential-thinking`: Multi-step logic verification
|
|
44
44
|
- `perplexity`: Web research (blogs, forums, latest articles)
|
|
45
|
-
-
|
|
45
|
+
- Current library docs via the official Context7 Claude Code integration when installed
|
|
46
46
|
|
|
47
47
|
**Output Budget:** Max 60 lines (code blocks excluded). Cite source + 1-line insight per source.
|
|
48
48
|
|
|
@@ -154,7 +154,7 @@ flowchart TD
|
|
|
154
154
|
| Sonnet 4.6 for @planner and @dplanner | Architecture decisions need reasoning capability. Sonnet 4.6 balances cost/performance better than Opus 4.6 on Pro Plan |
|
|
155
155
|
| @builder 2-retry cap | Prevents quota drain. Failed twice → Escalate to Sonnet 4.6/Opus 4.6 or @planner for re-design |
|
|
156
156
|
| @reviewer read-only enforcement | Hook-based blocking (`readonly-check.sh`). Prevents accidental modifications during review |
|
|
157
|
-
| @dplanner with
|
|
157
|
+
| @dplanner with research tools + official docs integration | Research-heavy tasks justify deeper planning. `sequential-thinking` + `perplexity` cover reasoning and web research, while current library docs can use official Context7 when installed |
|
|
158
158
|
| Output Budget per agent | Output costs 5x Input (API pricing). Strict budgets: builder 5 lines, reviewer 1 line PASS / 30 lines FAIL, dplanner 60 lines, planner 1 sentence/task |
|
|
159
159
|
| @builder atomic rollback | `~/.claude/scripts/snapshot.sh` handles `git stash` with depth guard + label check before `/do` execution. Prevents popping unrelated user stashes. Failure triggers `pop` (or `git checkout .` on clean tree) → clean state for immediate escalation. Estimated savings: 2-4 messages per failure, zero API cost |
|
|
160
160
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dplanner
|
|
3
|
-
description: Deep Planner - Architecture specialist with extended thinking and research capabilities. Use for high-complexity architectural design.
|
|
3
|
+
description: Deep Planner - Architecture specialist with extended thinking and research capabilities. Use for high-complexity architectural design and deep research.
|
|
4
4
|
model: sonnet
|
|
5
5
|
permissionMode: plan
|
|
6
|
-
tools: sequential-thinking, perplexity,
|
|
6
|
+
tools: sequential-thinking, perplexity, Read, Glob, Grep
|
|
7
7
|
disallowedTools: Write, Edit, Bash
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -15,7 +15,7 @@ You prioritize **Correctness** and **Completeness** over speed.
|
|
|
15
15
|
## Core Capabilities
|
|
16
16
|
1. **Sequential Thinking**: Use `sequential-thinking` to break down complex logic into verified steps.
|
|
17
17
|
2. **Web Research**: Use `perplexity` for comprehensive web research (blogs, forums, latest articles).
|
|
18
|
-
3. **Documentation Lookup**:
|
|
18
|
+
3. **Documentation Lookup**: When current library docs are needed, use the official Context7 Claude Code integration if it is installed.
|
|
19
19
|
|
|
20
20
|
## When to Use
|
|
21
21
|
- Designing large-scale refactoring.
|
|
@@ -25,7 +25,7 @@ You prioritize **Correctness** and **Completeness** over speed.
|
|
|
25
25
|
## Workflow
|
|
26
26
|
1. **Analyze**: Break down the user request.
|
|
27
27
|
2. **Think**: Use `sequential-thinking` to formulate a hypothesis or plan.
|
|
28
|
-
3. **Research**: Use `perplexity` for web research,
|
|
28
|
+
3. **Research**: Use `perplexity` for web research, and use official Context7 when current library docs are required.
|
|
29
29
|
4. **Verify**: Cross-check your plan against constraints.
|
|
30
30
|
5. **Output**: Deliver a comprehensive, fail-proof plan.
|
|
31
31
|
|
|
@@ -38,7 +38,7 @@ You prioritize **Correctness** and **Completeness** over speed.
|
|
|
38
38
|
- Validated Logic: ...
|
|
39
39
|
|
|
40
40
|
### 2. Research Findings
|
|
41
|
-
- Source: [Context7
|
|
41
|
+
- Source: [Official docs via Context7 or web]
|
|
42
42
|
- Key Insight: ...
|
|
43
43
|
|
|
44
44
|
### 3. Architecture Design
|
|
@@ -52,6 +52,7 @@ You prioritize **Correctness** and **Completeness** over speed.
|
|
|
52
52
|
## Rules
|
|
53
53
|
- **DO NOT** guess. Verify everything.
|
|
54
54
|
- **DO NOT** write code. That is for @builder.
|
|
55
|
+
- Keep official Context7 command details out of this prompt; use installed integration behavior or official docs instead.
|
|
55
56
|
- Use `sequential-thinking` for any logic deeper than 2 levels.
|
|
56
57
|
- Maximum 60 lines output (code blocks excluded from count)
|
|
57
58
|
- Research Findings: cite source + 1-line insight per source (no long quotes)
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
| `do-sonnet.md` | Sonnet으로 실행 | context: fork, model: sonnet |
|
|
16
16
|
| `do-opus.md` | Opus로 실행 | context: fork, model: opus |
|
|
17
17
|
| `plan.md` | 복잡한 작업 | @planner → @builder 체인 |
|
|
18
|
-
| `dplan.md` | 심층 계획 | @dplanner (Sequential Thinking + Perplexity + Context7) |
|
|
18
|
+
| `dplan.md` | 심층 계획 | @dplanner (Sequential Thinking + Perplexity + 공식 Context7 설치 시) |
|
|
19
19
|
| `review.md` | 코드 검토 | 읽기 전용, 카테고리 |
|
|
20
20
|
| `learn.md` | 패턴 캡처 | 자동 추출 또는 명시적 지정 |
|
|
21
21
|
| `session-save.md` | 상태 저장 | 비밀 정보 삭제 |
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
| `load-context.md` | 컨텍스트 로드 | Read tool, 비용 경제 |
|
|
24
24
|
| `compact-phase.md` | 전략적 축소 | 단계 인식 가지치기 |
|
|
25
25
|
| `watch.md` | tmux 모니터링 | 메시지 비용 없음 |
|
|
26
|
-
| `llms-txt.md` | LLM 최적화 문서 | URL에서 /llms.txt 조회 |
|
|
26
|
+
| `llms-txt.md` | LLM 최적화 문서 | URL에서 raw /llms.txt 조회 |
|
|
27
27
|
| `analyze-failures.md` | 도구 오류 분석 | 하이브리드 학습 (로그 + 분석) |
|
|
28
28
|
|
|
29
29
|
## 명령어 카테고리
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
| 명령어 | 사용 시점 | 리소스 사용량 |
|
|
65
65
|
|---------|-------------|--------------|
|
|
66
66
|
| `/watch` | 장기 실행 프로세스 모니터링 | 로컬 tmux (API 사용 안 함) |
|
|
67
|
-
| `/llms-txt` | LLM 최적화 문서 조회 | 최소 (WebFetch) |
|
|
67
|
+
| `/llms-txt` | raw LLM 최적화 문서 조회 | 최소 (WebFetch) |
|
|
68
68
|
|
|
69
69
|
## 워크플로우 예시
|
|
70
70
|
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
# 3. 연구 결과를 바탕으로 구현
|
|
103
103
|
# (복잡도에 따라 /plan 또는 /do 사용)
|
|
104
104
|
```
|
|
105
|
-
**Quota:** 높음 (Sonnet 4.6 + Sequential Thinking + Perplexity + Context7)
|
|
105
|
+
**Quota:** 높음 (Sonnet 4.6 + Sequential Thinking + Perplexity + 공식 Context7 설치 시)
|
|
106
106
|
|
|
107
107
|
### 디버깅 및 학습
|
|
108
108
|
```bash
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
| **사용 사례** | 간단한 작업 | 복잡한 로직 | 중요한 결정 | 다중 파일 기능 | 미지의 영역 |
|
|
145
145
|
| **영향받는 파일** | 1-3 | 1-3 | 제한없음 | 5+ | 제한없음 |
|
|
146
146
|
| **질문** | 불가 | 불가 | 불가 | ≤3 (기본값 포함) | 무제한 |
|
|
147
|
-
| **연구 도구** | 불가 | 불가 | 불가 | 불가 | 가능 (Perplexity
|
|
147
|
+
| **연구 도구** | 불가 | 불가 | 불가 | 불가 | 가능 (Perplexity + 공식 Context7 설치 시) |
|
|
148
148
|
|
|
149
149
|
**결정 트리:**
|
|
150
150
|
```
|
|
@@ -15,7 +15,7 @@ Contains slash command definitions for common workflows.
|
|
|
15
15
|
| `do-sonnet.md` | Execute with Sonnet | context: fork, model: sonnet |
|
|
16
16
|
| `do-opus.md` | Execute with Opus | context: fork, model: opus |
|
|
17
17
|
| `plan.md` | Complex tasks | @planner → @builder chain |
|
|
18
|
-
| `dplan.md` | Deep Planning | @dplanner (Sequential Thinking + Perplexity + Context7) |
|
|
18
|
+
| `dplan.md` | Deep Planning | @dplanner (Sequential Thinking + Perplexity + official Context7 when installed) |
|
|
19
19
|
| `review.md` | Code review | Read-only, categories |
|
|
20
20
|
| `learn.md` | Capture patterns | Auto-extract or explicit |
|
|
21
21
|
| `session-save.md` | Save state | Secret scrubbing |
|
|
@@ -23,7 +23,7 @@ Contains slash command definitions for common workflows.
|
|
|
23
23
|
| `load-context.md` | Load context | Read tool, cost economy |
|
|
24
24
|
| `compact-phase.md` | Strategic compact | Phase-aware pruning |
|
|
25
25
|
| `watch.md` | tmux monitoring | Zero message cost |
|
|
26
|
-
| `llms-txt.md` | LLM Documentation | Fetch /llms.txt from URLs |
|
|
26
|
+
| `llms-txt.md` | LLM Documentation | Fetch raw /llms.txt from URLs |
|
|
27
27
|
| `analyze-failures.md` | Analyze tool errors | Hybrid learning (log + analyze) |
|
|
28
28
|
|
|
29
29
|
## Command Categories
|
|
@@ -64,7 +64,7 @@ Contains slash command definitions for common workflows.
|
|
|
64
64
|
| Command | When to Use | Resource Usage |
|
|
65
65
|
|---------|-------------|----------------|
|
|
66
66
|
| `/watch` | Monitor long-running processes | Local tmux (zero API usage) |
|
|
67
|
-
| `/llms-txt` | Fetch LLM-optimized documentation | Minimal (WebFetch) |
|
|
67
|
+
| `/llms-txt` | Fetch raw LLM-optimized documentation | Minimal (WebFetch) |
|
|
68
68
|
|
|
69
69
|
## Workflow Examples
|
|
70
70
|
|
|
@@ -102,7 +102,7 @@ Contains slash command definitions for common workflows.
|
|
|
102
102
|
# 3. Implement based on research findings
|
|
103
103
|
# (Use /plan or /do based on complexity)
|
|
104
104
|
```
|
|
105
|
-
**Quota:** High (Sonnet 4.6 + Sequential Thinking + Perplexity + Context7)
|
|
105
|
+
**Quota:** High (Sonnet 4.6 + Sequential Thinking + Perplexity + official Context7 when installed)
|
|
106
106
|
|
|
107
107
|
### Debugging & Learning
|
|
108
108
|
```bash
|
|
@@ -144,7 +144,7 @@ Contains slash command definitions for common workflows.
|
|
|
144
144
|
| **Use Case** | Simple tasks | Complex logic | Critical decisions | Multi-file features | Unknown unknowns |
|
|
145
145
|
| **Files Affected** | 1-3 | 1-3 | Any | 5+ | Any |
|
|
146
146
|
| **Questions** | No | No | No | ≤3 (with defaults) | Unlimited |
|
|
147
|
-
| **Research Tools** | No | No | No | No | Yes (Perplexity
|
|
147
|
+
| **Research Tools** | No | No | No | No | Yes (Perplexity + official Context7 when installed) |
|
|
148
148
|
|
|
149
149
|
**Decision Tree:**
|
|
150
150
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dplan
|
|
3
|
-
description: Deep planning with @dplanner. Use for extremely complex tasks requiring Sequential Thinking, Perplexity research, and Context7
|
|
3
|
+
description: Deep planning with @dplanner. Use for extremely complex tasks requiring Sequential Thinking, Perplexity research, and current official library docs lookup when Context7 is installed.
|
|
4
4
|
argument-hint: [complex feature description]
|
|
5
5
|
context: fork
|
|
6
6
|
agent: dplanner
|
|
@@ -12,7 +12,7 @@ agent: dplanner
|
|
|
12
12
|
|
|
13
13
|
## Purpose
|
|
14
14
|
Invokes the **Deep Planner** for high-complexity architectural design and research.
|
|
15
|
-
Unlike `/plan`, this command utilizes `sequential-thinking`, `perplexity`, and
|
|
15
|
+
Unlike `/plan`, this command utilizes `sequential-thinking`, `perplexity`, and official Context7 for current library docs when it is installed.
|
|
16
16
|
|
|
17
17
|
## Arguments
|
|
18
18
|
$ARGUMENTS
|
|
@@ -23,7 +23,7 @@ $ARGUMENTS
|
|
|
23
23
|
- Analyzes request.
|
|
24
24
|
- Uses Sequential Thinking for logic verification.
|
|
25
25
|
- Uses Perplexity for web research.
|
|
26
|
-
- Uses Context7
|
|
26
|
+
- Uses official Context7 when current library documentation is needed.
|
|
27
27
|
- Produces a comprehensive "Deep Plan".
|
|
28
28
|
3. Returns plan to main conversation.
|
|
29
29
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: llms-txt
|
|
3
|
-
description: Fetch llms.txt documentation for a library. Use when
|
|
3
|
+
description: Fetch raw llms.txt documentation for a library or direct URL. Use when you explicitly want raw /llms.txt content or when official Context7 is unavailable.
|
|
4
4
|
argument-hint: nextjs | prisma | supabase | [custom-url]
|
|
5
5
|
allowed-tools: Bash(curl:*)
|
|
6
6
|
---
|
|
@@ -38,9 +38,9 @@ curl -s https://nextjs.org/llms.txt | head -200
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
## When to Use
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
41
|
+
- You explicitly want the raw `/llms.txt` file
|
|
42
|
+
- You want a direct URL-based docs fetch
|
|
43
|
+
- You need a quick one-shot raw-doc pull instead of official Context7
|
|
44
44
|
|
|
45
45
|
## Examples
|
|
46
46
|
```
|
|
@@ -28,7 +28,7 @@ skills/
|
|
|
28
28
|
|
|
29
29
|
| 스킬 | 용도 | 주요 이점 |
|
|
30
30
|
| :--- | :--- | :--- |
|
|
31
|
-
| `cli-
|
|
31
|
+
| `cli-patterns` | 무거운 MCP 서버를 가벼운 CLI 패턴으로 대체 | 출력을 상당히 줄임 |
|
|
32
32
|
| `learned` | `/learn` 명령어를 통해 학습된 패턴 저장 | 재작업 및 반복 질문 방지 |
|
|
33
33
|
|
|
34
34
|
## 커스텀 스킬 추가 방법
|
|
@@ -57,4 +57,4 @@ Claude는 아래 조건이 충족될 때만 `read_file` 도구를 사용하여
|
|
|
57
57
|
## 권장 사항
|
|
58
58
|
1. **50줄 규칙**: `SKILL.md`가 50줄을 넘어가면 세부 내용을 `references/`로 옮기세요.
|
|
59
59
|
2. **명시적 트리거**: **"Claude는 반드시 ...을 로드해야 합니다"**와 같은 강조 문구를 사용하여 모델이 패턴을 따르게 하세요.
|
|
60
|
-
3. **상대 경로**: 도구 실행 실패를 방지하기 위해 항상 프로젝트 루트부터의 전체 경로(`.claude/skills/...`)를 제공하세요.
|
|
60
|
+
3. **상대 경로**: 도구 실행 실패를 방지하기 위해 항상 프로젝트 루트부터의 전체 경로(`.claude/skills/...`)를 제공하세요.
|
package/.claude/skills/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Instead of loading extensive documentation every time, Claude starts with only t
|
|
|
28
28
|
|
|
29
29
|
| Skill | Purpose | Key Benefit |
|
|
30
30
|
| :--- | :--- | :--- |
|
|
31
|
-
| `cli-
|
|
31
|
+
| `cli-patterns` | Replaces heavy MCP servers with slim CLI patterns. | Significantly reduces output tokens. |
|
|
32
32
|
| `learned` | Stores project-specific patterns via `/learn`. | Prevents rework & repeat questions. |
|
|
33
33
|
|
|
34
34
|
## Adding a Custom Skill
|
|
@@ -57,4 +57,4 @@ Contains the heavy stuff: Full API docs, long code examples, error message table
|
|
|
57
57
|
## Best Practices
|
|
58
58
|
1. **The 50-Line Rule**: If `SKILL.md` exceeds 50 lines, move details to `references/`.
|
|
59
59
|
2. **Explicit Triggers**: Use bold text like **"Claude MUST load..."** to ensure the model follows the pattern.
|
|
60
|
-
3. **Relative Paths**: Always provide the full path from the project root (e.g., `.claude/skills/...`) to avoid tool failures.
|
|
60
|
+
3. **Relative Paths**: Always provide the full path from the project root (e.g., `.claude/skills/...`) to avoid tool failures.
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: cli-
|
|
3
|
-
description: Use CLI
|
|
2
|
+
name: cli-patterns
|
|
3
|
+
description: Use token-efficient CLI patterns instead of verbose MCP output when direct shell tools are enough. Provides JSON or compact-output conventions for gh, mgrep, psql, and similar tools.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# CLI
|
|
6
|
+
# CLI Patterns Skill
|
|
7
7
|
|
|
8
8
|
## Purpose
|
|
9
|
-
|
|
9
|
+
Prefer compact, stable CLI output over verbose MCP output when direct shell tools are enough.
|
|
10
|
+
Use JSON + jq when a tool supports it, and otherwise use the smallest practical text or CSV output mode.
|
|
10
11
|
|
|
11
12
|
## GitHub (gh)
|
|
12
13
|
```bash
|
package/.claude.json
CHANGED
|
@@ -7,13 +7,6 @@
|
|
|
7
7
|
"@modelcontextprotocol/server-sequential-thinking"
|
|
8
8
|
]
|
|
9
9
|
},
|
|
10
|
-
"context7": {
|
|
11
|
-
"command": "npx",
|
|
12
|
-
"args": [
|
|
13
|
-
"-y",
|
|
14
|
-
"@upstash/context7-mcp"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
10
|
"_perplexity_disabled_by_default": {
|
|
18
11
|
"command": "npx",
|
|
19
12
|
"args": [
|
|
@@ -25,4 +18,4 @@
|
|
|
25
18
|
}
|
|
26
19
|
}
|
|
27
20
|
}
|
|
28
|
-
}
|
|
21
|
+
}
|
package/README.ko.md
CHANGED
|
@@ -16,14 +16,14 @@ CPMM은 모델 라우팅, 출력 제어, 로컬 안전장치로 리셋 전까지
|
|
|
16
16
|
|
|
17
17
|
> **설치 완료했다면 여기서 시작하세요: [사용자 가이드](docs/USER-MANUAL.ko.md)**
|
|
18
18
|
>
|
|
19
|
-
> **New in v1.
|
|
19
|
+
> **New in v1.4.0:** `cpmm setup`에서 `ctx7` 전역 설치 후 공식 Context7 Claude Code 설정까지 opt-in으로 실행할 수 있고, `/llms-txt`는 explicit raw-doc fallback으로 유지됩니다.
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
23
|
> [!TIP]
|
|
24
24
|
> **🚀 3초 요약: 왜 이걸 써야 하나요?**
|
|
25
25
|
> 1. **배치 실행:** `/do`로 구현-검증을 한 흐름에서 처리하고, 필요할 때만 `/do-sonnet`/`/do-opus`로 승격합니다.
|
|
26
|
-
> 2. **출력 비용 제어:** 응답 예산, CLI 필터링, 그리고 optional RTK로 Bash
|
|
26
|
+
> 2. **출력 비용 제어:** 응답 예산, CLI 필터링, 그리고 optional RTK로 Bash 출력이 Claude 입력 컨텍스트를 불필요하게 키우지 않도록 합니다.
|
|
27
27
|
> 3. **로컬 안전장치:** 로컬 Hook + 원자적 롤백으로 실패 시 빠르게 복구합니다.
|
|
28
28
|
|
|
29
29
|
---
|
|
@@ -52,22 +52,38 @@ cpmm setup
|
|
|
52
52
|
cpmm doctor
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
### 4. 선택: 최신 라이브러리 문서 설정
|
|
56
|
+
|
|
57
|
+
이제 interactive `cpmm setup`에서 권장 Context7 경로 전체를 opt-in으로 실행할 수 있습니다.
|
|
58
|
+
|
|
59
|
+
공식 수동 설정 경로:
|
|
60
|
+
```bash
|
|
61
|
+
npm install -g ctx7
|
|
62
|
+
ctx7 setup --cli --claude
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
- CPMM은 Context7를 기본 MCP 경로로 취급하지 않습니다.
|
|
66
|
+
- 공식 설정 후에는 Context7의 공식 문서 통합이 최신 라이브러리 문서 조회를 처리합니다.
|
|
67
|
+
- `/llms-txt`는 raw `/llms.txt` 내용이나 URL 기반 raw-doc 조회가 필요할 때만 사용하세요.
|
|
68
|
+
|
|
69
|
+
> **v1.4.0 참고:** `cpmm setup`은 지원 환경에서 RTK 설치를 계속 시도합니다. RTK 활성화는 여전히 opt-in이며, Context7 opt-in은 `ctx7` 전역 설치와 공식 Claude Code 설정을 함께 진행합니다.
|
|
56
70
|
|
|
57
71
|
의존성 정책:
|
|
58
72
|
- `required`: `jq`, `mgrep`, `tmux`
|
|
73
|
+
- `optional` (interactive opt-in): `ctx7` + 공식 Context7 Claude 통합
|
|
59
74
|
- `optional` (자동 설치 시도): `rtk`
|
|
60
75
|
- `optional` (확인만): `claude` (사전 설치 가정)
|
|
61
76
|
- 도구별 자동 설치 경로:
|
|
62
77
|
- `mgrep`: `npm`
|
|
78
|
+
- `ctx7`: `npm` + `ctx7 setup --cli --claude` (`cpmm setup`에서 interactive opt-in)
|
|
63
79
|
- `rtk`: `brew` 또는 upstream `curl` installer
|
|
64
80
|
- `jq`, `tmux`: `brew` (macOS) 또는 Linux 패키지 매니저 `apt-get`, `dnf`, `pacman`, `apk`
|
|
65
81
|
- macOS에서 Homebrew가 없으면 설치 명령을 안내합니다
|
|
66
82
|
|
|
67
|
-
###
|
|
83
|
+
### 5. 커스텀 & 업데이트 정책
|
|
68
84
|
|
|
69
|
-
- `cpmm setup`은 누락된 의존성을 설치한 뒤, CPMM 설정(설정 파일 복사, 언어 선택, Perplexity
|
|
70
|
-
- `cpmm doctor`는 수정 없이 의존성
|
|
85
|
+
- `cpmm setup`은 누락된 의존성을 설치한 뒤, CPMM 설정(설정 파일 복사, 언어 선택, Perplexity 설정, optional `ctx7` 설치 + 공식 Context7 설정, managed config 정리)까지 진행합니다.
|
|
86
|
+
- `cpmm doctor`는 수정 없이 의존성 상태, Context7 상태, RTK hook 상태를 확인합니다.
|
|
71
87
|
- 재실행 시 CPMM 관리 파일은 최신 버전으로 교체되고, 사용자 데이터는 보존됩니다.
|
|
72
88
|
|
|
73
89
|
```text
|
|
@@ -76,7 +92,7 @@ cpmm doctor
|
|
|
76
92
|
├── commands/ 🔄 업데이트 시 교체됨
|
|
77
93
|
├── contexts/ 🔄 업데이트 시 교체됨
|
|
78
94
|
├── scripts/ 🔄 업데이트 시 교체됨
|
|
79
|
-
├── skills/cli-
|
|
95
|
+
├── skills/cli-patterns/ 🔄 업데이트 시 교체됨
|
|
80
96
|
├── rules/*.md 🔄 업데이트 시 교체됨
|
|
81
97
|
├── settings.json 🔄 업데이트 시 교체됨
|
|
82
98
|
├── settings.local.json ✋ 사용자 소유 — 보존됨
|
|
@@ -98,16 +114,66 @@ cpmm doctor
|
|
|
98
114
|
> 1. 글로벌 커스텀은 일반적으로 `settings.local.json`에 둡니다. `settings.json`은 CPMM 관리 대상이라 업데이트 시 덮어쓰기되므로, RTK 같은 third-party hook을 여기에 넣었다면 업데이트 후 다시 확인해야 합니다.
|
|
99
115
|
> 2. 커스텀 명령어/규칙은 프로젝트 `.claude/`에 — 글로벌 `commands/`는 CPMM이 관리합니다.
|
|
100
116
|
|
|
117
|
+
관리 설정 경계:
|
|
118
|
+
- `~/.claude.json`은 CPMM 관리 대상이며 업데이트 시 정리될 수 있습니다.
|
|
119
|
+
- regular file `~/.mcp.json`은 사용자 소유라 CPMM이 자동 수정하지 않습니다.
|
|
120
|
+
- symlink `~/.mcp.json`은 CPMM 관리 호환 경로로 취급합니다.
|
|
121
|
+
|
|
101
122
|
프로젝트 초기화 팁:
|
|
102
123
|
- `claude` 실행 전에 `project-templates/`를 참고해 프로젝트를 초기화하세요. (설치기는 `project-templates`를 `~/.claude`로 복사하지 않습니다.)
|
|
103
124
|
|
|
104
|
-
###
|
|
125
|
+
### 6. Bash 명령 출력 필터링 (RTK)
|
|
126
|
+
|
|
127
|
+
RTK는 CPMM이 지원하는 **선택적 Bash 명령 출력 필터링 계층**입니다. `cpmm setup`은 RTK 바이너리 설치를 시도하지만, RTK hook은 기본 활성화하지 않습니다.
|
|
128
|
+
|
|
129
|
+
RTK를 이번 릴리스에 선택 통합으로 넣은 이유는, Bash-heavy 워크플로우에서 긴 명령 출력이 Claude 입력 컨텍스트로 다시 들어가기 전에 이를 줄여 주기 때문입니다. CPMM은 권장 hook 순서를 문서화하고 `cpmm doctor`로 점검하며, 그 순서에서는 CPMM의 critical-action check가 RTK rewrite hook보다 먼저 실행되어야 합니다. 다만 hook 동작을 예측 가능하고 디버깅 가능하게 유지하기 위해 default-on이 아니라 opt-in으로 제공합니다.
|
|
130
|
+
|
|
131
|
+
권장 opt-in 절차:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
rtk init -g --hook-only
|
|
135
|
+
# RTK를 켠 뒤에는 cpmm setup이 관리된 hook 순서와 timeout을 복원
|
|
136
|
+
cpmm setup
|
|
137
|
+
cpmm doctor
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
권장 `PreToolUse` 순서 (`~/.claude/settings.json`):
|
|
141
|
+
- 먼저 CPMM safety hook: `~/.claude/scripts/hooks/critical-action-check.sh` with `timeout: 5`
|
|
142
|
+
- 그 다음 RTK rewrite hook: `~/.claude/hooks/rtk-rewrite.sh` with `timeout: 10`
|
|
143
|
+
|
|
144
|
+
업데이트 참고:
|
|
145
|
+
- `cpmm setup`은 업데이트 시 `~/.claude/settings.json`을 다시 씁니다.
|
|
146
|
+
- `cpmm setup` 전에 RTK가 이미 켜져 있었다면, CPMM이 설정 재작성 뒤에 관리된 RTK hook 순서와 `timeout: 10`을 자동 복원합니다.
|
|
147
|
+
- 관리된 RTK 상태를 확인하려면 setup 뒤에 `cpmm doctor`를 실행하세요.
|
|
148
|
+
|
|
149
|
+
권장 검증:
|
|
150
|
+
- `/hooks`에서 CPMM hook과 RTK hook이 모두 로드되는지 확인
|
|
151
|
+
- 위험 명령이 여전히 CPMM에서 먼저 차단되는지 확인
|
|
152
|
+
- `cpmm doctor` 실행
|
|
153
|
+
- 실제 Bash-heavy 세션 후 `rtk gain --quota --tier pro` 확인
|
|
154
|
+
|
|
155
|
+
공개된 [RTK 통합 사용자 사례](https://github.com/move-hoon/claude-pro-minmax/issues/3)에서는 `rtk gain --quota --tier pro` 기준으로 Bash-heavy 워크플로우에서 `1,664`개 명령 동안 입력 토큰 `8.5M` 절감(`49.4%`)이 보고되었습니다. 절감률은 작업 부하와 세션 형태에 따라 달라질 수 있습니다.
|
|
156
|
+
|
|
157
|
+
롤백:
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
rtk init -g --uninstall
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### 7. 고급 (선택)
|
|
105
164
|
<details>
|
|
106
165
|
<summary>Perplexity, 언어, 수동 설치 보기</summary>
|
|
107
166
|
|
|
108
|
-
**Perplexity
|
|
109
|
-
- Perplexity는 `/dplan`의 웹 리서치에 사용됩니다. 설정하지 않아도 `/dplan`은 Sequential Thinking
|
|
167
|
+
**Perplexity/언어/Context7 설정 (필수 아님):**
|
|
168
|
+
- Perplexity는 `/dplan`의 웹 리서치에 사용됩니다. 설정하지 않아도 `/dplan`은 Sequential Thinking으로 동작하고, 최신 라이브러리 문서는 공식 Context7이 설치된 경우 사용할 수 있습니다. 나머지 모든 기능은 Perplexity와 무관합니다.
|
|
110
169
|
- 최초 인터랙티브 설치 시 `cpmm setup`이 출력 언어와 Perplexity API 키를 묻습니다.
|
|
170
|
+
- `cpmm setup`은 `ctx7` 전역 설치 후 공식 Context7 Claude Code 설정까지 optional 단계로 제안할 수 있습니다.
|
|
171
|
+
- 수동 검증:
|
|
172
|
+
```bash
|
|
173
|
+
command -v ctx7
|
|
174
|
+
ctx7 --version
|
|
175
|
+
cpmm doctor
|
|
176
|
+
```
|
|
111
177
|
- 영어(기본): 파일이 필요 없습니다. `~/.claude/rules/language.md`가 있으면 삭제하세요.
|
|
112
178
|
- 비영어: `~/.claude/rules/language.md`를 만들어 원하는 언어를 지정하세요.
|
|
113
179
|
- Perplexity를 수동으로 설정하려면 `~/.claude.json`의 `mcpServers`에 아래를 추가하세요:
|
|
@@ -154,37 +220,6 @@ node bin/cpmm.js setup
|
|
|
154
220
|
|
|
155
221
|
</details>
|
|
156
222
|
|
|
157
|
-
### 6. Bash 출력 최적화 (RTK)
|
|
158
|
-
|
|
159
|
-
RTK는 CPMM이 지원하는 **선택적 출력 최적화 계층**입니다. `cpmm setup`은 RTK 바이너리 설치를 시도하지만, RTK hook은 기본 활성화하지 않습니다.
|
|
160
|
-
|
|
161
|
-
권장 opt-in 절차:
|
|
162
|
-
|
|
163
|
-
```bash
|
|
164
|
-
rtk init -g --hook-only
|
|
165
|
-
cpmm doctor
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
권장 `PreToolUse` 순서 (`~/.claude/settings.json`):
|
|
169
|
-
- 먼저 CPMM safety hook: `~/.claude/scripts/hooks/critical-action-check.sh` with `timeout: 5`
|
|
170
|
-
- 그 다음 RTK rewrite hook: `~/.claude/hooks/rtk-rewrite.sh` with `timeout: 10`
|
|
171
|
-
|
|
172
|
-
업데이트 참고:
|
|
173
|
-
- `cpmm setup`은 업데이트 시 `~/.claude/settings.json`을 다시 씁니다.
|
|
174
|
-
- RTK를 opt-in으로 사용 중이면 CPMM 업데이트 후 hook 순서와 timeout을 다시 확인하고, `cpmm doctor`를 다시 실행하세요.
|
|
175
|
-
|
|
176
|
-
권장 검증:
|
|
177
|
-
- `/hooks`에서 CPMM hook과 RTK hook이 모두 로드되는지 확인
|
|
178
|
-
- 위험 명령이 여전히 CPMM에서 먼저 차단되는지 확인
|
|
179
|
-
- `cpmm doctor` 실행
|
|
180
|
-
- 실제 Bash-heavy 세션 후 `rtk gain --quota --tier pro` 확인
|
|
181
|
-
|
|
182
|
-
롤백:
|
|
183
|
-
|
|
184
|
-
```bash
|
|
185
|
-
rtk init -g --uninstall
|
|
186
|
-
```
|
|
187
|
-
|
|
188
223
|
---
|
|
189
224
|
|
|
190
225
|
## 🚀 빠른 시작 (Quick Start)
|
|
@@ -266,7 +301,7 @@ flowchart LR
|
|
|
266
301
|
| 명령어 | 설명 | 추천 상황 |
|
|
267
302
|
| :--- | :--- | :--- |
|
|
268
303
|
| **🧠 심층 실행** | | |
|
|
269
|
-
| `/dplan [작업]` | **Sonnet 4.6** + Perplexity, Sequential Thinking, Context7 | 라이브러리 비교, 최신 기술 조사 (심층 연구) |
|
|
304
|
+
| `/dplan [작업]` | **Sonnet 4.6** + Perplexity, Sequential Thinking, 공식 Context7 설치 시 | 라이브러리 비교, 최신 기술 조사 (심층 연구) |
|
|
270
305
|
| `/do-sonnet` | **Sonnet 4.6**로 직접 실행 | Haiku 4.5가 계속 실패할 때 수동 격상 |
|
|
271
306
|
| `/do-opus` | **Opus 4.6**으로 직접 실행 | 매우 복잡한 문제 해결 (비용 주의) |
|
|
272
307
|
| **💾 세션/컨텍스트** | | |
|
|
@@ -278,7 +313,7 @@ flowchart LR
|
|
|
278
313
|
| `/learn` | 패턴 학습 및 저장 | 자주 반복되는 오류나 선호 스타일 등록 |
|
|
279
314
|
| `/analyze-failures` | 오류 로그 분석 | 반복되는 에러 원인 파악 |
|
|
280
315
|
| `/watch` | 프로세스 모니터링 (tmux) | 장시간 빌드/테스트 관찰 |
|
|
281
|
-
| `/llms-txt` | 문서 가져오기 |
|
|
316
|
+
| `/llms-txt` | raw 문서 가져오기 | raw `/llms.txt` 내용 또는 직접 docs URL 로드 |
|
|
282
317
|
|
|
283
318
|
</details>
|
|
284
319
|
|
|
@@ -317,7 +352,7 @@ flowchart LR
|
|
|
317
352
|
| **🕹️ Commands** | /plan, /do, /review 등 14개 명령어 사용법 | [📂 **Commands 가이드**](.claude/commands/README.ko.md) |
|
|
318
353
|
| **🪝 Hooks** | Pre-check, Auto-format 등 11개 자동화 스크립트 로직 | [📂 **Hooks 가이드**](scripts/hooks/README.ko.md) |
|
|
319
354
|
| **📏 Rules** | 보안, 코드 스타일, 위험 명령어 차단 정책 | [📂 **Rules 가이드**](.claude/rules/README.ko.md) |
|
|
320
|
-
| **🧠 Skills** | CLI
|
|
355
|
+
| **🧠 Skills** | CLI Patterns 같은 도구 스킬 사양 | [📂 **Skills 가이드**](.claude/skills/README.ko.md) |
|
|
321
356
|
| **🔧 Contexts** | Backend/Frontend 프로젝트별 컨텍스트 템플릿 | [📂 **Contexts 가이드**](.claude/contexts/README.ko.md) |
|
|
322
357
|
| **💾 Sessions** | 세션 요약 저장 및 관리 구조 | [📂 **Sessions 가이드**](.claude/sessions/README.ko.md) |
|
|
323
358
|
| **🛠️ Scripts** | Verify, Build, Test 범용 스크립트 모음 | [📂 **Scripts 가이드**](scripts/README.ko.md) |
|
|
@@ -334,7 +369,7 @@ flowchart LR
|
|
|
334
369
|
|
|
335
370
|
```text
|
|
336
371
|
claude-pro-minmax
|
|
337
|
-
├── .claude.json # 글로벌 MCP 설정
|
|
372
|
+
├── .claude.json # 관리되는 글로벌 MCP 설정
|
|
338
373
|
├── .claudeignore # Claude 컨텍스트 제외 규칙
|
|
339
374
|
├── .gitignore # Git ignore 규칙
|
|
340
375
|
├── CONTRIBUTING.md # 기여 가이드
|
|
@@ -370,13 +405,13 @@ claude-pro-minmax
|
|
|
370
405
|
│ │ ├── load-context.md # 사전 정의된 컨텍스트 템플릿 로드
|
|
371
406
|
│ │ ├── learn.md # 새로운 패턴을 메모리에 저장
|
|
372
407
|
│ │ ├── analyze-failures.md # 도구 실패 로그 분석
|
|
373
|
-
│ │ └── llms-txt.md #
|
|
408
|
+
│ │ └── llms-txt.md # raw /llms.txt 문서 조회
|
|
374
409
|
│ ├── rules/ # 행동 규칙
|
|
375
410
|
│ │ ├── critical-actions.md # 위험 명령어 차단 (rm -rf, git push -f, etc.)
|
|
376
411
|
│ │ ├── code-style.md # 코딩 컨벤션 및 표준
|
|
377
412
|
│ │ └── security.md # 보안 모범 사례
|
|
378
413
|
│ ├── skills/ # 도구 능력
|
|
379
|
-
│ │ ├── cli-
|
|
414
|
+
│ │ ├── cli-patterns/ # 경량 일반 CLI 패턴
|
|
380
415
|
│ │ │ ├── SKILL.md # 스킬 정의 및 사용법
|
|
381
416
|
│ │ │ └── references/ # CLI 참조 문서
|
|
382
417
|
│ │ │ ├── github-cli.md
|
|
@@ -461,7 +496,7 @@ claude-pro-minmax
|
|
|
461
496
|
|
|
462
497
|
A: Anthropic의 정확한 quota 알고리즘은 공개되지 않았습니다. 세 가지 축으로 최적화합니다:
|
|
463
498
|
- **저비용 모델 우선 경로**: 기본 구현은 Haiku 중심으로 시작하고 필요 시에만 Sonnet/Opus로 승격합니다.
|
|
464
|
-
- **출력 비용 인식**:
|
|
499
|
+
- **출력 비용 인식**: 출력이 많은 턴일수록 비용 부담이 커지는 경향이 있으므로, 응답 예산과 필터링으로 payload를 줄입니다.
|
|
465
500
|
- **작업 흐름 단순화**: `/do`와 `/plan`을 상황에 맞게 분리해 불필요한 고비용 턴을 줄입니다.
|
|
466
501
|
|
|
467
502
|
근거 실측값은 [docs/CORE_STRATEGY_EXPERIMENT_ARCHIVE.ko.md](docs/CORE_STRATEGY_EXPERIMENT_ARCHIVE.ko.md)를 참고하세요.
|