jun-claude-code 0.0.12 → 0.0.13
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/README.md +30 -12
- package/dist/cli.js +22 -0
- package/dist/init-context.js +25 -3
- package/dist/validate.d.ts +4 -0
- package/dist/validate.js +105 -0
- package/package.json +1 -1
- package/templates/global/CLAUDE.md +50 -21
- package/templates/global/agents/architect.md +23 -11
- package/templates/global/agents/code-reviewer.md +17 -7
- package/templates/global/agents/code-writer.md +27 -15
- package/templates/global/agents/context-collector.md +11 -3
- package/templates/global/agents/context-manager.md +20 -8
- package/templates/global/agents/designer.md +32 -20
- package/templates/global/agents/director.md +43 -31
- package/templates/global/agents/explore.md +12 -4
- package/templates/global/agents/git-manager.md +39 -22
- package/templates/global/agents/impact-analyzer.md +17 -7
- package/templates/global/agents/qa-tester.md +22 -8
- package/templates/global/agents/simple-code-writer.md +12 -4
- package/templates/global/agents/task-planner.md +18 -10
- package/templates/global/hooks/skill-forced.sh +49 -39
- package/templates/global/hooks/workflow-enforced.sh +49 -31
- package/templates/global/skills/Backend/SKILL.md +38 -9
- package/templates/global/skills/Coding/SKILL.md +69 -29
- package/templates/global/skills/Director/SKILL.md +9 -5
- package/templates/global/skills/Documentation/SKILL.md +68 -1
- package/templates/global/skills/Git/SKILL.md +8 -4
- package/templates/global/skills/Git/git.md +60 -28
- package/templates/global/skills/Git/pr-apply.md +18 -6
- package/templates/global/skills/Git/pr-review.md +4 -0
- package/templates/global/skills/PromptStructuring/SKILL.md +67 -0
- package/templates/global/skills/PromptStructuring/positive-phrasing.md +206 -0
- package/templates/global/skills/PromptStructuring/xml-tags.md +330 -0
- package/templates/global/skills/React/SKILL.md +28 -8
- package/templates/global/skills/React/react-hook-form.md +20 -12
- package/templates/global/skills/React/tailwind-styled.md +29 -7
- package/templates/global/skills/React/tanstack-router.md +21 -9
- package/templates/project/agents/project-task-manager.md +19 -7
- package/templates/{global → project}/skills/ContextGeneration/SKILL.md +20 -12
- package/templates/project/workflows/context-gen.yml +30 -7
- /package/templates/{global → project}/agents/context-generator.md +0 -0
|
@@ -21,6 +21,8 @@ PR 변경 내용을 분석하여 `.claude/context/` 하위에 codebase/business
|
|
|
21
21
|
└── <domain-area>.md # 비즈니스 레벨 요약
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
<rules>
|
|
25
|
+
|
|
24
26
|
## Codebase Context 규칙
|
|
25
27
|
|
|
26
28
|
### 파일명
|
|
@@ -56,17 +58,17 @@ keywords: [관련, 키워드]
|
|
|
56
58
|
- [<도메인명>](../business/<domain>.md)
|
|
57
59
|
```
|
|
58
60
|
|
|
59
|
-
###
|
|
61
|
+
### 참조 원칙
|
|
60
62
|
|
|
61
|
-
-
|
|
62
|
-
- 파일 경로와 함수/클래스명만 참조
|
|
63
|
+
- 파일 경로와 함수/클래스명만 참조한다
|
|
63
64
|
- 파일 참조 형식: `| src/copy.ts | 파일 복사 메인 로직 | mergeSettingsJson() |`
|
|
65
|
+
- 원본 소스 코드 대신 경로와 함수 시그니처로 표현한다
|
|
64
66
|
|
|
65
67
|
## Business Context 규칙
|
|
66
68
|
|
|
67
69
|
### 파일명
|
|
68
|
-
- **비즈니스 도메인
|
|
69
|
-
-
|
|
70
|
+
- **비즈니스 도메인 기준**으로 명명한다 (예: `configuration-management.md`, `user-authentication.md`)
|
|
71
|
+
- 비즈니스 용어를 사용한다 (예: `settings-json-merge.md` -> `configuration-management.md`)
|
|
70
72
|
|
|
71
73
|
### 필수 섹션
|
|
72
74
|
|
|
@@ -100,9 +102,11 @@ keywords: [비즈니스, 키워드]
|
|
|
100
102
|
```
|
|
101
103
|
|
|
102
104
|
### 변환 규칙
|
|
103
|
-
- Codebase의 기술 용어를 비즈니스 관점으로
|
|
104
|
-
- `mergeSettingsJson()`
|
|
105
|
-
- `copyClaudeFiles()`
|
|
105
|
+
- Codebase의 기술 용어를 비즈니스 관점으로 변환한다
|
|
106
|
+
- `mergeSettingsJson()` -> "기존 설정을 보존하면서 새 설정 적용"
|
|
107
|
+
- `copyClaudeFiles()` -> "템플릿 설정을 사용자 환경에 배포"
|
|
108
|
+
|
|
109
|
+
</rules>
|
|
106
110
|
|
|
107
111
|
## INDEX.md 작성 규칙
|
|
108
112
|
|
|
@@ -146,7 +150,11 @@ description: 비즈니스 도메인 참조 목록
|
|
|
146
150
|
|
|
147
151
|
## 증분 업데이트 원칙
|
|
148
152
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
+
<checklist>
|
|
154
|
+
|
|
155
|
+
- PR에서 변경된 파일과 관련된 context 문서만 업데이트한다
|
|
156
|
+
- 기존 문서의 변경되지 않은 부분은 그대로 유지한다
|
|
157
|
+
- 새 모듈이 추가되면 INDEX.md에 행을 추가한다
|
|
158
|
+
- 모듈이 삭제되면 INDEX.md에서 해당 행을 제거하고 문서 파일을 삭제한다
|
|
159
|
+
|
|
160
|
+
</checklist>
|
|
@@ -21,15 +21,34 @@ jobs:
|
|
|
21
21
|
ref: ${{ github.head_ref }}
|
|
22
22
|
fetch-depth: 0
|
|
23
23
|
|
|
24
|
+
- name: Read skill files
|
|
25
|
+
id: read-skills
|
|
26
|
+
run: |
|
|
27
|
+
{
|
|
28
|
+
echo "agent_def<<AGENT_EOF"
|
|
29
|
+
cat .claude/agents/context-generator.md
|
|
30
|
+
echo "AGENT_EOF"
|
|
31
|
+
} >> $GITHUB_OUTPUT
|
|
32
|
+
{
|
|
33
|
+
echo "skill_guide<<SKILL_EOF"
|
|
34
|
+
cat .claude/skills/ContextGeneration/SKILL.md
|
|
35
|
+
echo "SKILL_EOF"
|
|
36
|
+
} >> $GITHUB_OUTPUT
|
|
37
|
+
|
|
24
38
|
- name: Generate context documents
|
|
25
39
|
uses: anthropics/claude-code-action@v1
|
|
26
40
|
with:
|
|
27
41
|
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
|
42
|
+
show_full_output: true
|
|
43
|
+
claude_args: '--allowedTools "Bash(git:*),Bash(ls:*),Bash(mkdir:*),Read,Write,Edit,Glob,Grep"'
|
|
28
44
|
prompt: |
|
|
29
|
-
|
|
30
|
-
.
|
|
31
|
-
|
|
45
|
+
# 에이전트 정의
|
|
46
|
+
${{ steps.read-skills.outputs.agent_def }}
|
|
47
|
+
|
|
48
|
+
# 스킬 가이드
|
|
49
|
+
${{ steps.read-skills.outputs.skill_guide }}
|
|
32
50
|
|
|
51
|
+
# 작업 지시
|
|
33
52
|
PR diff를 분석하고 .claude/context/ 아래에 컨텍스트 문서를 생성/업데이트하세요.
|
|
34
53
|
|
|
35
54
|
단계:
|
|
@@ -37,16 +56,20 @@ jobs:
|
|
|
37
56
|
2. 변경된 각 모듈에 대해 .claude/context/codebase/<module>.md 생성 또는 업데이트
|
|
38
57
|
3. 영향을 받는 각 비즈니스 도메인에 대해 .claude/context/business/<domain>.md 생성 또는 업데이트
|
|
39
58
|
4. 두 디렉토리의 INDEX.md 파일 업데이트
|
|
40
|
-
5. "docs: update context for PR changes" 메시지로 변경사항 커밋
|
|
41
59
|
|
|
42
60
|
중요사항:
|
|
43
61
|
- 컨텍스트 문서에 소스 코드를 포함하지 말고, 파일 경로와 함수 이름만 포함하세요
|
|
44
62
|
- 실제로 변경된 파일에 대해서만 컨텍스트 업데이트
|
|
45
|
-
-
|
|
63
|
+
- 위 스킬 가이드에 명시된 정확한 형식 따르기
|
|
64
|
+
- 커밋하지 마세요. 파일 생성/수정만 하세요.
|
|
46
65
|
|
|
47
|
-
- name:
|
|
66
|
+
- name: Push context changes
|
|
48
67
|
run: |
|
|
49
68
|
git config user.name "github-actions[bot]"
|
|
50
69
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
70
|
+
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git"
|
|
51
71
|
git add .claude/context/
|
|
52
|
-
git diff --staged --quiet ||
|
|
72
|
+
git diff --staged --quiet || git commit -m "docs: context 문서 자동 업데이트"
|
|
73
|
+
git push origin HEAD:refs/heads/${{ github.head_ref }}
|
|
74
|
+
env:
|
|
75
|
+
GITHUB_TOKEN: ${{ github.token }}
|
|
File without changes
|