claude-pro-minmax 1.0.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 +60 -0
- package/.claude/agents/README.ko.md +210 -0
- package/.claude/agents/README.md +210 -0
- package/.claude/agents/builder.md +96 -0
- package/.claude/agents/dplanner.md +58 -0
- package/.claude/agents/planner.md +52 -0
- package/.claude/agents/reviewer.md +69 -0
- package/.claude/commands/README.ko.md +381 -0
- package/.claude/commands/README.md +381 -0
- package/.claude/commands/analyze-failures.md +49 -0
- package/.claude/commands/compact-phase.md +75 -0
- package/.claude/commands/do-opus.md +43 -0
- package/.claude/commands/do-sonnet.md +43 -0
- package/.claude/commands/do.md +56 -0
- package/.claude/commands/dplan.md +36 -0
- package/.claude/commands/learn.md +64 -0
- package/.claude/commands/llms-txt.md +50 -0
- package/.claude/commands/load-context.md +46 -0
- package/.claude/commands/plan.md +62 -0
- package/.claude/commands/review.md +55 -0
- package/.claude/commands/session-load.md +61 -0
- package/.claude/commands/session-save.md +79 -0
- package/.claude/commands/watch.md +58 -0
- package/.claude/contexts/README.ko.md +94 -0
- package/.claude/contexts/README.md +94 -0
- package/.claude/contexts/backend-context.md +23 -0
- package/.claude/contexts/frontend-context.md +24 -0
- package/.claude/rules/README.ko.md +98 -0
- package/.claude/rules/README.md +98 -0
- package/.claude/rules/code-style.md +21 -0
- package/.claude/rules/critical-actions.md +34 -0
- package/.claude/rules/security.md +13 -0
- package/.claude/sessions/2025-01-27-auth-jwt-refresh.md +32 -0
- package/.claude/sessions/README.ko.md +195 -0
- package/.claude/sessions/README.md +195 -0
- package/.claude/settings.json +167 -0
- package/.claude/settings.local.example.json +3 -0
- package/.claude/skills/README.ko.md +60 -0
- package/.claude/skills/README.md +60 -0
- package/.claude/skills/cli-wrappers/SKILL.md +38 -0
- package/.claude/skills/cli-wrappers/references/github-cli.md +18 -0
- package/.claude/skills/cli-wrappers/references/mgrep.md +18 -0
- package/.claude/skills/learned/README.ko.md +64 -0
- package/.claude/skills/learned/README.md +64 -0
- package/.claude.json +28 -0
- package/.claudeignore +17 -0
- package/LICENSE +21 -0
- package/README.ko.md +441 -0
- package/README.md +441 -0
- package/bin/cpmm.js +171 -0
- package/install.sh +154 -0
- package/package.json +59 -0
- package/scripts/README.ko.md +150 -0
- package/scripts/README.md +150 -0
- package/scripts/analyze-failures.sh +145 -0
- package/scripts/build.sh +34 -0
- package/scripts/claude_command_smoke.sh +116 -0
- package/scripts/commit.sh +7 -0
- package/scripts/create-branch.sh +14 -0
- package/scripts/hooks/README.ko.md +117 -0
- package/scripts/hooks/README.md +118 -0
- package/scripts/hooks/compact-suggest.sh +52 -0
- package/scripts/hooks/critical-action-check.sh +68 -0
- package/scripts/hooks/notification.sh +47 -0
- package/scripts/hooks/post-edit-format.sh +39 -0
- package/scripts/hooks/pre-compact.sh +55 -0
- package/scripts/hooks/readonly-check.sh +19 -0
- package/scripts/hooks/retry-check.sh +32 -0
- package/scripts/hooks/session-cleanup.sh +83 -0
- package/scripts/hooks/session-start.sh +70 -0
- package/scripts/hooks/stop-collect-context.sh +39 -0
- package/scripts/hooks/tool-failure-log.sh +46 -0
- package/scripts/lint.sh +34 -0
- package/scripts/runtime/README.ko.md +60 -0
- package/scripts/runtime/README.md +60 -0
- package/scripts/runtime/adapters/README.ko.md +68 -0
- package/scripts/runtime/adapters/README.md +68 -0
- package/scripts/runtime/adapters/_interface.sh +53 -0
- package/scripts/runtime/adapters/_template.sh +67 -0
- package/scripts/runtime/adapters/generic.sh +78 -0
- package/scripts/runtime/adapters/go.sh +51 -0
- package/scripts/runtime/adapters/jvm.sh +97 -0
- package/scripts/runtime/adapters/node.sh +104 -0
- package/scripts/runtime/adapters/python.sh +116 -0
- package/scripts/runtime/adapters/rust.sh +49 -0
- package/scripts/runtime/detect.sh +52 -0
- package/scripts/scrub-secrets.js +48 -0
- package/scripts/snapshot.sh +45 -0
- package/scripts/test.sh +34 -0
- package/scripts/verify.sh +35 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: learn
|
|
3
|
+
description: Extract and save patterns from session. Captures recurring coding patterns, conventions, and preferences.
|
|
4
|
+
argument-hint: "[pattern]" or --show
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# /learn Command
|
|
9
|
+
|
|
10
|
+
Extract and save patterns from session.
|
|
11
|
+
|
|
12
|
+
## Input
|
|
13
|
+
$ARGUMENTS
|
|
14
|
+
|
|
15
|
+
## Execution
|
|
16
|
+
1. No arguments: Analyze current session for patterns
|
|
17
|
+
2. `"[pattern]"`: Save explicit pattern
|
|
18
|
+
3. `--show`: Display learned patterns list
|
|
19
|
+
|
|
20
|
+
## Storage Paths
|
|
21
|
+
```
|
|
22
|
+
~/.claude/skills/learned/YYYY-MM-DD-[pattern-name].md
|
|
23
|
+
.claude/rules/conventions.md # CONVENTION type
|
|
24
|
+
.claude/rules/preferences.md # PREFERENCE type
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Categories & Actions
|
|
28
|
+
| Category | Storage Location |
|
|
29
|
+
|----------|------------------|
|
|
30
|
+
| CONVENTION | Append to `.claude/rules/conventions.md` |
|
|
31
|
+
| PATTERN | Create new file in `~/.claude/skills/learned/` |
|
|
32
|
+
| PREFERENCE | Append to `.claude/rules/preferences.md` |
|
|
33
|
+
|
|
34
|
+
## Pattern File Format
|
|
35
|
+
```markdown
|
|
36
|
+
---
|
|
37
|
+
name: [pattern-name]
|
|
38
|
+
description: [pattern description]
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
# Pattern: [name]
|
|
42
|
+
|
|
43
|
+
## Problem
|
|
44
|
+
[Description of recurring issue]
|
|
45
|
+
|
|
46
|
+
## Solution
|
|
47
|
+
[How to solve it]
|
|
48
|
+
|
|
49
|
+
## Example
|
|
50
|
+
[Code example]
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Auto-Learning
|
|
54
|
+
Stop hook detects repeated modifications:
|
|
55
|
+
- Same file modified 3+ times → suggest pattern extraction
|
|
56
|
+
- Use `/learn` to manually confirm and save
|
|
57
|
+
|
|
58
|
+
## Examples
|
|
59
|
+
```
|
|
60
|
+
/learn # Analyze session
|
|
61
|
+
/learn "Always use try-catch for API error handling"
|
|
62
|
+
/learn "Component filenames use PascalCase"
|
|
63
|
+
/learn --show # Show list
|
|
64
|
+
```
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: llms-txt
|
|
3
|
+
description: Fetch llms.txt documentation for a library. Use when Context7 doesn't cover a library.
|
|
4
|
+
argument-hint: nextjs | prisma | supabase | [custom-url]
|
|
5
|
+
allowed-tools: Bash(curl:*)
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# /llms-txt Command
|
|
9
|
+
|
|
10
|
+
Fetch LLM-optimized documentation for libraries.
|
|
11
|
+
|
|
12
|
+
## Library
|
|
13
|
+
$ARGUMENTS
|
|
14
|
+
|
|
15
|
+
## Common URLs
|
|
16
|
+
| Library | URL |
|
|
17
|
+
|---------|-----|
|
|
18
|
+
| Next.js | https://nextjs.org/llms.txt |
|
|
19
|
+
| Prisma | https://prisma.io/llms.txt |
|
|
20
|
+
| Supabase | https://supabase.com/llms.txt |
|
|
21
|
+
| Vercel | https://vercel.com/llms.txt |
|
|
22
|
+
| Helius | https://www.helius.dev/docs/llms.txt |
|
|
23
|
+
| Tailwind | https://tailwindcss.com/llms.txt |
|
|
24
|
+
|
|
25
|
+
## Execution
|
|
26
|
+
|
|
27
|
+
Based on the library name:
|
|
28
|
+
1. Try `https://[library].org/llms.txt`
|
|
29
|
+
2. Try `https://[library].io/llms.txt`
|
|
30
|
+
3. Try `https://[library].com/llms.txt`
|
|
31
|
+
4. Try `https://docs.[library].io/llms.txt`
|
|
32
|
+
|
|
33
|
+
For custom URLs, fetch directly.
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Example
|
|
37
|
+
curl -s https://nextjs.org/llms.txt | head -200
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## When to Use
|
|
41
|
+
- Context7 MCP가 해당 라이브러리를 찾지 못할 때
|
|
42
|
+
- 빠른 원샷 문법 확인이 필요할 때
|
|
43
|
+
- 최신 API 문서가 필요할 때
|
|
44
|
+
|
|
45
|
+
## Examples
|
|
46
|
+
```
|
|
47
|
+
/llms-txt nextjs # Next.js 문서
|
|
48
|
+
/llms-txt prisma # Prisma 문서
|
|
49
|
+
/llms-txt https://custom.dev/llms.txt # Custom URL
|
|
50
|
+
```
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: load-context
|
|
3
|
+
description: Load project context files. Reads backend, frontend, or session context into conversation.
|
|
4
|
+
argument-hint: [type] or --list
|
|
5
|
+
disable-model-invocation: false
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# /load-context Command
|
|
9
|
+
|
|
10
|
+
Load project context using Read tool.
|
|
11
|
+
|
|
12
|
+
## Input
|
|
13
|
+
$ARGUMENTS
|
|
14
|
+
|
|
15
|
+
## Execution
|
|
16
|
+
1. `[type]`: Read `.claude/contexts/[type]-context.md` file into conversation
|
|
17
|
+
2. `--list`: List available context files in `.claude/contexts/`
|
|
18
|
+
|
|
19
|
+
## Context Types & Files
|
|
20
|
+
| Type | File |
|
|
21
|
+
|------|------|
|
|
22
|
+
| backend | `.claude/contexts/backend-context.md` |
|
|
23
|
+
| frontend | `.claude/contexts/frontend-context.md` |
|
|
24
|
+
| session | Most recent file from `.claude/sessions/` |
|
|
25
|
+
|
|
26
|
+
## Cost Economy
|
|
27
|
+
Warning when more than 2 contexts loaded in a session:
|
|
28
|
+
```
|
|
29
|
+
⚠️ WARNING: 3 contexts loaded (backend, frontend, session)
|
|
30
|
+
Consider starting a new session or using /compact-phase to reduce context.
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Output
|
|
34
|
+
```
|
|
35
|
+
📂 Context loaded: [type]
|
|
36
|
+
|
|
37
|
+
Content from: .claude/contexts/[type]-context.md
|
|
38
|
+
[actual file content displayed]
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Examples
|
|
42
|
+
```
|
|
43
|
+
/load-context backend # Read backend context file
|
|
44
|
+
/load-context frontend # Read frontend context file
|
|
45
|
+
/load-context --list # List available context files
|
|
46
|
+
```
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan
|
|
3
|
+
description: Complex task planning with @planner to @builder chain. Use when affecting 4+ files, requiring architecture decisions, unclear requirements, or new feature implementation.
|
|
4
|
+
argument-hint: [feature description] or --no-build [description]
|
|
5
|
+
context: fork
|
|
6
|
+
agent: planner
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /plan Command
|
|
10
|
+
|
|
11
|
+
For complex tasks. Runs in @planner subagent context.
|
|
12
|
+
|
|
13
|
+
## Feature Request
|
|
14
|
+
$ARGUMENTS
|
|
15
|
+
|
|
16
|
+
## Options
|
|
17
|
+
- Default: Plan then implement
|
|
18
|
+
- `--no-build`: Plan only, no implementation
|
|
19
|
+
|
|
20
|
+
## Flow
|
|
21
|
+
1. This command runs in forked @planner context
|
|
22
|
+
2. @planner: Architecture analysis, task breakdown
|
|
23
|
+
3. Results returned to main conversation
|
|
24
|
+
4. User confirmation (no auto-proceed)
|
|
25
|
+
5. @builder: Implementation (after approval)
|
|
26
|
+
6. @reviewer: Post-implementation review (skipped if --no-build)
|
|
27
|
+
|
|
28
|
+
## When to Use
|
|
29
|
+
- Affecting 4+ files
|
|
30
|
+
- Architecture decisions needed
|
|
31
|
+
- Unclear requirements
|
|
32
|
+
- New feature implementation
|
|
33
|
+
|
|
34
|
+
## When NOT to Use
|
|
35
|
+
- Simple bug fix → use `/do`
|
|
36
|
+
- Single file change → use `/do`
|
|
37
|
+
- Clear task → use `/do`
|
|
38
|
+
|
|
39
|
+
## Advanced Usage
|
|
40
|
+
For extremely complex tasks requiring deep research or logic verification (e.g., verifying race conditions), consider using **`@dplanner`** directly instead of `/plan`.
|
|
41
|
+
```bash
|
|
42
|
+
@dplanner Analyze potential deadlocks in transaction manager
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Output Format
|
|
46
|
+
```
|
|
47
|
+
## Architecture: [feature name]
|
|
48
|
+
|
|
49
|
+
### Design Decision
|
|
50
|
+
[One paragraph]
|
|
51
|
+
|
|
52
|
+
### Task Breakdown
|
|
53
|
+
1. [task] → @builder
|
|
54
|
+
2. [task] → @builder
|
|
55
|
+
|
|
56
|
+
### Files Affected
|
|
57
|
+
- CREATE: path/file
|
|
58
|
+
- MODIFY: path/file
|
|
59
|
+
|
|
60
|
+
### Proceed?
|
|
61
|
+
[y/n]
|
|
62
|
+
```
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: review
|
|
3
|
+
description: Code review using @reviewer agent. Checks security, type safety, performance, and logic errors. Use after code changes for quality verification.
|
|
4
|
+
argument-hint: [file or directory] or --security [target] or --all
|
|
5
|
+
context: fork
|
|
6
|
+
agent: reviewer
|
|
7
|
+
allowed-tools: Read, Grep, Glob
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /review Command
|
|
11
|
+
|
|
12
|
+
Code review. Runs in @reviewer subagent context (read-only).
|
|
13
|
+
|
|
14
|
+
## Target
|
|
15
|
+
$ARGUMENTS
|
|
16
|
+
|
|
17
|
+
## Options
|
|
18
|
+
- Default: Review specified file/directory
|
|
19
|
+
- `--security`: Security-focused review
|
|
20
|
+
- `--all`: Review all changes
|
|
21
|
+
|
|
22
|
+
## Execution
|
|
23
|
+
This command runs in forked @reviewer context:
|
|
24
|
+
- Isolated from main conversation
|
|
25
|
+
- Read-only access (enforced by agent)
|
|
26
|
+
- Results summarized and returned
|
|
27
|
+
|
|
28
|
+
## Categories
|
|
29
|
+
- **SEC**: Security (highest priority)
|
|
30
|
+
- **TYPE**: Type safety
|
|
31
|
+
- **PERF**: Performance
|
|
32
|
+
- **LOGIC**: Logic errors
|
|
33
|
+
- **STYLE**: Coding conventions
|
|
34
|
+
- **TEST**: Missing tests
|
|
35
|
+
|
|
36
|
+
## Output Format (Pass)
|
|
37
|
+
```
|
|
38
|
+
PASS - [X files reviewed, no issues]
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Output Format (Fail)
|
|
42
|
+
```
|
|
43
|
+
FAIL - [N issues]
|
|
44
|
+
|
|
45
|
+
1. [SEC] file:line - [issue] → [fix]
|
|
46
|
+
2. [TYPE] file:line - [issue] → [fix]
|
|
47
|
+
|
|
48
|
+
Auto-fix: [command if available]
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Rules
|
|
52
|
+
- Max 5 issues per file
|
|
53
|
+
- Must include fix suggestion
|
|
54
|
+
- Must check for secrets
|
|
55
|
+
- **READ-ONLY** - no file modifications (enforced by context: fork + agent: reviewer)
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: session-load
|
|
3
|
+
description: Restore saved session state. Loads previous work context and next actions.
|
|
4
|
+
argument-hint: [name] or --list
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# /session-load Command
|
|
9
|
+
|
|
10
|
+
Restore saved session state.
|
|
11
|
+
|
|
12
|
+
## Session Name
|
|
13
|
+
$ARGUMENTS
|
|
14
|
+
|
|
15
|
+
## Execution
|
|
16
|
+
1. No arguments: Load most recent session
|
|
17
|
+
2. `[name]`: Load specified session
|
|
18
|
+
3. `--list`: Show available sessions
|
|
19
|
+
|
|
20
|
+
## Session Directory
|
|
21
|
+
```
|
|
22
|
+
.claude/sessions/
|
|
23
|
+
├── 2025-01-28-auth-feature.md
|
|
24
|
+
├── 2025-01-27-refactor-v2.md
|
|
25
|
+
└── 2025-01-26-api-update.md
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Load Process
|
|
29
|
+
1. Read session file
|
|
30
|
+
2. Set completed tasks context
|
|
31
|
+
3. Display next actions
|
|
32
|
+
4. Prepare relevant file references
|
|
33
|
+
|
|
34
|
+
## Output (Load)
|
|
35
|
+
```
|
|
36
|
+
📂 Loaded: [name] ([date])
|
|
37
|
+
|
|
38
|
+
State: [current state description]
|
|
39
|
+
Completed: [number of completed tasks]
|
|
40
|
+
Next: [next action]
|
|
41
|
+
|
|
42
|
+
Ready to continue.
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Output (List)
|
|
46
|
+
```
|
|
47
|
+
📋 Available sessions:
|
|
48
|
+
|
|
49
|
+
1. auth-feature (2025-01-28) - JWT auth in progress
|
|
50
|
+
2. refactor-v2 (2025-01-27) - API refactoring complete
|
|
51
|
+
3. api-update (2025-01-26) - Endpoint additions
|
|
52
|
+
|
|
53
|
+
Load with: /session-load [name]
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Examples
|
|
57
|
+
```
|
|
58
|
+
/session-load # Most recent
|
|
59
|
+
/session-load auth-feature # Specific session
|
|
60
|
+
/session-load --list # Show list
|
|
61
|
+
```
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: session-save
|
|
3
|
+
description: Save session state with automatic secret scrubbing. Use to preserve work state when pausing.
|
|
4
|
+
argument-hint: [name]
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# /session-save Command
|
|
9
|
+
|
|
10
|
+
Save session state with automatic secret scrubbing.
|
|
11
|
+
|
|
12
|
+
## Session Name
|
|
13
|
+
$ARGUMENTS
|
|
14
|
+
|
|
15
|
+
## Execution
|
|
16
|
+
1. Collect session state (completed tasks, next actions, context)
|
|
17
|
+
2. Scrub 15+ secret patterns via `~/.claude/scripts/scrub-secrets.js`
|
|
18
|
+
3. Save to session file
|
|
19
|
+
|
|
20
|
+
## File Naming Options
|
|
21
|
+
```bash
|
|
22
|
+
# Option 1: With session ID (recommended for uniqueness)
|
|
23
|
+
.claude/sessions/${CLAUDE_SESSION_ID}-[name].md
|
|
24
|
+
|
|
25
|
+
# Option 2: With date (human-readable)
|
|
26
|
+
.claude/sessions/YYYY-MM-DD-[name].md
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Security (Auto-Scrub)
|
|
30
|
+
Patterns automatically removed before saving:
|
|
31
|
+
- API keys (OpenAI, Stripe, GitHub, AWS, Google)
|
|
32
|
+
- Database URLs with credentials
|
|
33
|
+
- JWT tokens, Bearer tokens
|
|
34
|
+
- Password/secret fields
|
|
35
|
+
- Private keys (RSA, SSH)
|
|
36
|
+
- Environment variables with secrets
|
|
37
|
+
|
|
38
|
+
## Session File Format
|
|
39
|
+
```markdown
|
|
40
|
+
---
|
|
41
|
+
session_id: ${CLAUDE_SESSION_ID}
|
|
42
|
+
date: YYYY-MM-DD HH:MM
|
|
43
|
+
name: [session-name]
|
|
44
|
+
project: [project-path]
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
# Session: [name]
|
|
48
|
+
|
|
49
|
+
## Completed Tasks
|
|
50
|
+
- [completed task list]
|
|
51
|
+
|
|
52
|
+
## Current State
|
|
53
|
+
[current state description]
|
|
54
|
+
|
|
55
|
+
## Next Actions
|
|
56
|
+
- [next action list]
|
|
57
|
+
|
|
58
|
+
## Context
|
|
59
|
+
- Files: [relevant files]
|
|
60
|
+
- Decisions: [decisions made]
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Output
|
|
64
|
+
```
|
|
65
|
+
Session saved: .claude/sessions/[filename].md
|
|
66
|
+
|
|
67
|
+
Security scan:
|
|
68
|
+
- Scrubbed: [N] potential secrets
|
|
69
|
+
- Clean: No secrets in final file
|
|
70
|
+
|
|
71
|
+
Resume with: /session-load [name]
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Examples
|
|
75
|
+
```
|
|
76
|
+
/session-save # Auto-generate name with session ID
|
|
77
|
+
/session-save auth-feature # Named session
|
|
78
|
+
/session-save refactor-v2 # With version
|
|
79
|
+
```
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: watch
|
|
3
|
+
description: Long-running process monitoring with tmux. Watch tests, dev server, or build process. Zero message cost.
|
|
4
|
+
argument-hint: tests | dev | build | custom "[cmd]"
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
allowed-tools: Bash(tmux:*)
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /watch Command
|
|
10
|
+
|
|
11
|
+
Process monitoring with tmux.
|
|
12
|
+
|
|
13
|
+
## Target
|
|
14
|
+
$ARGUMENTS
|
|
15
|
+
|
|
16
|
+
## Execution
|
|
17
|
+
```bash
|
|
18
|
+
# tests: Watch test execution
|
|
19
|
+
tmux new-session -d -s claude-watch-tests "~/.claude/scripts/test.sh --watch"
|
|
20
|
+
|
|
21
|
+
# dev: Watch dev server
|
|
22
|
+
tmux new-session -d -s claude-watch-dev "~/.claude/scripts/build.sh --dev"
|
|
23
|
+
|
|
24
|
+
# build: Watch build process
|
|
25
|
+
tmux new-session -d -s claude-watch-build "~/.claude/scripts/build.sh"
|
|
26
|
+
|
|
27
|
+
# custom: User-defined command
|
|
28
|
+
tmux new-session -d -s claude-watch-custom "[cmd]"
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Preset Types
|
|
32
|
+
| Type | Command | Session Name |
|
|
33
|
+
|------|---------|--------------|
|
|
34
|
+
| tests | `~/.claude/scripts/test.sh --watch` | claude-watch-tests |
|
|
35
|
+
| dev | `~/.claude/scripts/build.sh --dev` | claude-watch-dev |
|
|
36
|
+
| build | `~/.claude/scripts/build.sh` | claude-watch-build |
|
|
37
|
+
| custom | User-defined | claude-watch-custom |
|
|
38
|
+
|
|
39
|
+
## tmux Controls
|
|
40
|
+
- `Ctrl+b d`: Detach (background)
|
|
41
|
+
- `tmux attach -t [name]`: Reattach
|
|
42
|
+
- `tmux ls`: List sessions
|
|
43
|
+
- `tmux kill-session -t [name]`: Kill session
|
|
44
|
+
|
|
45
|
+
## Cost Savings
|
|
46
|
+
Before: 5 check cycles = 15 messages
|
|
47
|
+
With /watch: 5 check cycles = 1 message
|
|
48
|
+
|
|
49
|
+
## Output
|
|
50
|
+
```
|
|
51
|
+
📺 Started: claude-watch-[type]
|
|
52
|
+
Command: [executed command]
|
|
53
|
+
|
|
54
|
+
Controls:
|
|
55
|
+
- Attach: tmux attach -t claude-watch-[type]
|
|
56
|
+
- Detach: Ctrl+b d
|
|
57
|
+
- Kill: tmux kill-session -t claude-watch-[type]
|
|
58
|
+
```
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
> **[English Version](README.md)**
|
|
2
|
+
|
|
3
|
+
# Contexts Directory
|
|
4
|
+
|
|
5
|
+
## 목적
|
|
6
|
+
지연 로딩(lazy loading)을 위한 **프로젝트 참조 데이터**를 포함합니다. 이 파일들은 자동으로 로드되지 **않으며**, 필요할 때 `/load-context`를 사용하여 로드해야 합니다.
|
|
7
|
+
|
|
8
|
+
컨텍스트 파일은 고정된 프로젝트 정보(API 엔드포인트, DB 스키마, 환경 변수)입니다. 진행 중인 작업 상태를 추적하는 세션과 다릅니다.
|
|
9
|
+
|
|
10
|
+
| | Contexts | Sessions |
|
|
11
|
+
|--|----------|----------|
|
|
12
|
+
| **성격** | 고정된 프로젝트 참조 데이터 | 진행 중인 작업 상태 |
|
|
13
|
+
| **변경 빈도** | 프로젝트 구조 변경 시만 | 매 세션마다 |
|
|
14
|
+
| **예시** | API 엔드포인트, DB 스키마, 환경 변수 | 진행 상황, 결정 사항, 다음 작업 |
|
|
15
|
+
| **저장 필요** | 없음 (파일 자체가 이미 저장됨) | 있음 (매번 `/session-save`) |
|
|
16
|
+
|
|
17
|
+
## 내용
|
|
18
|
+
|
|
19
|
+
| 파일 | 목적 | 로드 시점 |
|
|
20
|
+
|------|---------|--------------|
|
|
21
|
+
| `backend-context.md` | API 엔드포인트, DB 스키마, 환경 변수 | 백엔드 개발 시 |
|
|
22
|
+
| `frontend-context.md` | 컴포넌트, 상태, 라우트 | 프론트엔드 개발 시 |
|
|
23
|
+
|
|
24
|
+
## 사용법
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# 작업을 시작할 때 로드
|
|
28
|
+
/load-context backend
|
|
29
|
+
|
|
30
|
+
# 사용 가능한 컨텍스트 확인
|
|
31
|
+
/load-context --list
|
|
32
|
+
|
|
33
|
+
# 다른 작업으로 전환
|
|
34
|
+
/load-context frontend
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## 왜 지연 로딩인가요?
|
|
38
|
+
|
|
39
|
+
1. **프롬프트 캐시 효율성:** CLAUDE.md가 불변 상태로 유지되어 캐시 적중률 극대화
|
|
40
|
+
2. **비용 경제:** 필요한 것만 로드 (Pro Plan: 모든 메시지 = 쿼터)
|
|
41
|
+
3. **집중된 컨텍스트:** 백엔드 작업 중 프론트엔드 스키마 로드 방지
|
|
42
|
+
|
|
43
|
+
## Instruction Hierarchy (지시 우선순위)
|
|
44
|
+
|
|
45
|
+
> **중요:** `/load-context`는 Read tool을 사용하므로 **tool output 레벨** — Claude의 지시 우선순위에서 가장 낮은 수준으로 로드됩니다.
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
System prompt (최고) ← CLAUDE.md, rules/, --system-prompt
|
|
49
|
+
User messages ← 사용자 프롬프트
|
|
50
|
+
Tool output (최저) ← /load-context, @file, Read tool
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**의미:**
|
|
54
|
+
- 컨텍스트 파일은 Claude가 참고하는 **참조 데이터** — tool output 레벨로 충분
|
|
55
|
+
- Claude가 **반드시 따라야 할 규칙** → `.claude/rules/`에 넣으세요 (자동 로드, system prompt 레벨)
|
|
56
|
+
- 고급: `claude --system-prompt "$(cat context.md)"`로 system prompt 레벨 주입 가능
|
|
57
|
+
|
|
58
|
+
**대안 — CLAUDE.md에서 `@import`:**
|
|
59
|
+
```markdown
|
|
60
|
+
# CLAUDE.md 안에서
|
|
61
|
+
- @.claude/contexts/backend-context.md
|
|
62
|
+
```
|
|
63
|
+
이렇게 하면 system prompt 레벨로 로드되지만, **매 세션마다** 로드됩니다 (지연 로딩 아님). 항상 필요한 컨텍스트에만 사용.
|
|
64
|
+
|
|
65
|
+
## 템플릿
|
|
66
|
+
|
|
67
|
+
```markdown
|
|
68
|
+
# [Project] Context
|
|
69
|
+
|
|
70
|
+
## 기술 스택
|
|
71
|
+
- Runtime: [...]
|
|
72
|
+
- Framework: [...]
|
|
73
|
+
- Database: [...]
|
|
74
|
+
|
|
75
|
+
## API 엔드포인트
|
|
76
|
+
| Method | Path | Auth | Request | Response |
|
|
77
|
+
|--------|------|------|---------|----------|
|
|
78
|
+
| ... | ... | ... | ... | ... |
|
|
79
|
+
|
|
80
|
+
## 주요 정보
|
|
81
|
+
- ...
|
|
82
|
+
|
|
83
|
+
## 최근 변경 사항
|
|
84
|
+
- [date]: [change]
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## 모범 사례
|
|
88
|
+
|
|
89
|
+
1. 컨텍스트 파일은 100줄 이내로 유지
|
|
90
|
+
2. 주요 변경 사항 후 업데이트
|
|
91
|
+
3. 비밀 정보 포함 금지 (어차피 삭제됨)
|
|
92
|
+
4. Claude가 알아야 할 **참조 데이터**에 집중
|
|
93
|
+
5. **행동 규칙**은 `.claude/rules/`에 넣기 — 더 높은 지시 우선순위
|
|
94
|
+
6. 세션당 2개 이상의 컨텍스트 로드 지양
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
> **[한국어 버전](README.ko.md)**
|
|
2
|
+
|
|
3
|
+
# Contexts Directory
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
Contains **project reference data** for lazy loading. These are NOT loaded automatically—use `/load-context` to load them on demand.
|
|
7
|
+
|
|
8
|
+
Context files are static project information (API endpoints, DB schema, env vars). They differ from sessions, which track in-progress work state.
|
|
9
|
+
|
|
10
|
+
| | Contexts | Sessions |
|
|
11
|
+
|--|----------|----------|
|
|
12
|
+
| **Nature** | Static project reference data | In-progress work state |
|
|
13
|
+
| **Changes** | Only when project structure changes | Every session |
|
|
14
|
+
| **Examples** | API endpoints, DB schema, env vars | Progress, decisions, next steps |
|
|
15
|
+
| **Save needed** | No (files are already persisted) | Yes (`/session-save` each time) |
|
|
16
|
+
|
|
17
|
+
## Contents
|
|
18
|
+
|
|
19
|
+
| File | Purpose | When to Load |
|
|
20
|
+
|------|---------|--------------|
|
|
21
|
+
| `backend-context.md` | API endpoints, DB schema, env vars | Backend development |
|
|
22
|
+
| `frontend-context.md` | Components, state, routes | Frontend development |
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# Load when starting work
|
|
28
|
+
/load-context backend
|
|
29
|
+
|
|
30
|
+
# Check what's available
|
|
31
|
+
/load-context --list
|
|
32
|
+
|
|
33
|
+
# Switch focus
|
|
34
|
+
/load-context frontend
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Why Lazy Loading?
|
|
38
|
+
|
|
39
|
+
1. **Prompt Cache Efficiency:** CLAUDE.md stays immutable, maximizing cache hits
|
|
40
|
+
2. **Cost Economy:** Only load what you need (Pro Plan: every message = quota)
|
|
41
|
+
3. **Focused Context:** Avoid loading frontend schema during backend work
|
|
42
|
+
|
|
43
|
+
## Instruction Hierarchy
|
|
44
|
+
|
|
45
|
+
> **Important:** `/load-context` uses the Read tool, so content loads at **tool output level** — the lowest priority in Claude's instruction hierarchy.
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
System prompt (highest) ← CLAUDE.md, rules/, --system-prompt
|
|
49
|
+
User messages ← Your prompts
|
|
50
|
+
Tool output (lowest) ← /load-context, @file, Read tool
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**What this means:**
|
|
54
|
+
- Context files are **reference data** Claude uses — this is fine at tool output level
|
|
55
|
+
- **Strict rules** Claude must follow → put in `.claude/rules/` instead (auto-loaded, system prompt level)
|
|
56
|
+
- For advanced use: `claude --system-prompt "$(cat context.md)"` injects at system prompt level
|
|
57
|
+
|
|
58
|
+
**Alternative — `@import` in CLAUDE.md:**
|
|
59
|
+
```markdown
|
|
60
|
+
# In CLAUDE.md
|
|
61
|
+
- @.claude/contexts/backend-context.md
|
|
62
|
+
```
|
|
63
|
+
This loads at system prompt level, but loads **every session** (no lazy loading). Use only for always-needed context.
|
|
64
|
+
|
|
65
|
+
## Template
|
|
66
|
+
|
|
67
|
+
```markdown
|
|
68
|
+
# [Project] Context
|
|
69
|
+
|
|
70
|
+
## Tech Stack
|
|
71
|
+
- Runtime: [...]
|
|
72
|
+
- Framework: [...]
|
|
73
|
+
- Database: [...]
|
|
74
|
+
|
|
75
|
+
## API Endpoints
|
|
76
|
+
| Method | Path | Auth | Request | Response |
|
|
77
|
+
|--------|------|------|---------|----------|
|
|
78
|
+
| ... | ... | ... | ... | ... |
|
|
79
|
+
|
|
80
|
+
## Key Information
|
|
81
|
+
- ...
|
|
82
|
+
|
|
83
|
+
## Recent Changes
|
|
84
|
+
- [date]: [change]
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Best Practices
|
|
88
|
+
|
|
89
|
+
1. Keep context files under 100 lines
|
|
90
|
+
2. Update after major changes
|
|
91
|
+
3. Don't include secrets (they'll be scrubbed anyway)
|
|
92
|
+
4. Focus on **reference data** Claude needs to know
|
|
93
|
+
5. Put **behavioral rules** in `.claude/rules/` instead — higher instruction priority
|
|
94
|
+
6. Avoid loading more than 2 contexts per session
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Backend Context
|
|
2
|
+
|
|
3
|
+
## Tech Stack
|
|
4
|
+
- Runtime: [Node.js/Bun]
|
|
5
|
+
- Framework: [Express/Fastify/Hono]
|
|
6
|
+
- Database: [PostgreSQL/MongoDB]
|
|
7
|
+
- ORM: [Prisma/Drizzle]
|
|
8
|
+
|
|
9
|
+
## API Endpoints
|
|
10
|
+
| Method | Path | Auth | Request | Response |
|
|
11
|
+
|--------|------|------|---------|----------|
|
|
12
|
+
| POST | /auth/login | No | {email,pass} | {token} |
|
|
13
|
+
| GET | /users/me | Yes | - | User |
|
|
14
|
+
|
|
15
|
+
## Environment
|
|
16
|
+
```
|
|
17
|
+
PORT=3001
|
|
18
|
+
DATABASE_URL=...
|
|
19
|
+
JWT_SECRET=[REDACTED]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Recent Changes
|
|
23
|
+
- [date]: [change]
|