@kood/claude-code 0.5.6 → 0.5.8
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/dist/index.js +29 -14
- package/package.json +1 -1
- package/templates/.claude/skills/execute/SKILL.md +1 -1
- package/templates/.claude/skills/prd/SKILL.md +2 -2
- package/templates/.claude/skills/refactor/SKILL.md +1 -1
- package/templates/hono/CLAUDE.md +5 -5
- package/templates/nextjs/CLAUDE.md +6 -6
- package/templates/npx/CLAUDE.md +4 -4
- package/templates/tanstack-start/CLAUDE.md +8 -8
package/dist/index.js
CHANGED
|
@@ -129,7 +129,7 @@ var generateIndexClaudeMd = (templates) => {
|
|
|
129
129
|
return `### ${meta.name}
|
|
130
130
|
- **\uC6A9\uB3C4:** ${meta.description}
|
|
131
131
|
- **\uC8FC\uC694 \uC2A4\uD0DD:** ${meta.stack}
|
|
132
|
-
- **\uAC00\uC774\uB4DC:** [docs/${template}/CLAUDE.md](docs/${template}/CLAUDE.md)`;
|
|
132
|
+
- **\uAC00\uC774\uB4DC:** [.claude/docs/${template}/CLAUDE.md](.claude/docs/${template}/CLAUDE.md)`;
|
|
133
133
|
}).join("\n\n");
|
|
134
134
|
return `# CLAUDE.md
|
|
135
135
|
|
|
@@ -163,7 +163,7 @@ var copySingleTemplate = async (template, targetDir) => {
|
|
|
163
163
|
counter.files++;
|
|
164
164
|
}
|
|
165
165
|
const docsSrc = path4.join(templatePath, "docs");
|
|
166
|
-
const docsDest = path4.join(targetDir, "docs");
|
|
166
|
+
const docsDest = path4.join(targetDir, ".claude", "docs");
|
|
167
167
|
if (await fs2.pathExists(docsSrc)) {
|
|
168
168
|
if (await fs2.pathExists(docsDest)) {
|
|
169
169
|
await fs2.remove(docsDest);
|
|
@@ -175,7 +175,7 @@ var copySingleTemplate = async (template, targetDir) => {
|
|
|
175
175
|
var copyMultipleTemplates = async (templates, targetDir) => {
|
|
176
176
|
validateTargetDir(targetDir);
|
|
177
177
|
const counter = { files: 0, directories: 0 };
|
|
178
|
-
const docsDir = path4.join(targetDir, "docs");
|
|
178
|
+
const docsDir = path4.join(targetDir, ".claude", "docs");
|
|
179
179
|
if (await fs2.pathExists(docsDir)) {
|
|
180
180
|
await fs2.remove(docsDir);
|
|
181
181
|
}
|
|
@@ -186,7 +186,7 @@ var copyMultipleTemplates = async (templates, targetDir) => {
|
|
|
186
186
|
}
|
|
187
187
|
await copyRecursive(
|
|
188
188
|
templatePath,
|
|
189
|
-
path4.join(targetDir, "docs", template),
|
|
189
|
+
path4.join(targetDir, ".claude", "docs", template),
|
|
190
190
|
counter
|
|
191
191
|
);
|
|
192
192
|
}
|
|
@@ -632,7 +632,8 @@ import path8 from "path";
|
|
|
632
632
|
var CLAUDE_GENERATED_FOLDERS = [
|
|
633
633
|
".claude/plan/",
|
|
634
634
|
".claude/ralph/",
|
|
635
|
-
".claude/refactor/"
|
|
635
|
+
".claude/refactor/",
|
|
636
|
+
".claude/prd/"
|
|
636
637
|
];
|
|
637
638
|
async function updateGitignore(targetDir) {
|
|
638
639
|
const gitignorePath = path8.join(targetDir, ".gitignore");
|
|
@@ -645,10 +646,6 @@ async function updateGitignore(targetDir) {
|
|
|
645
646
|
} catch (error) {
|
|
646
647
|
content = "";
|
|
647
648
|
}
|
|
648
|
-
if (content.includes(sectionComment)) {
|
|
649
|
-
logger.info(".gitignore already contains Claude Code section");
|
|
650
|
-
return;
|
|
651
|
-
}
|
|
652
649
|
const linesToAdd = [];
|
|
653
650
|
const existingLines = content.split("\n").map((line) => line.trim());
|
|
654
651
|
for (const folder of CLAUDE_GENERATED_FOLDERS) {
|
|
@@ -660,15 +657,33 @@ async function updateGitignore(targetDir) {
|
|
|
660
657
|
logger.info(".gitignore already contains all Claude Code patterns");
|
|
661
658
|
return;
|
|
662
659
|
}
|
|
660
|
+
const needsSection = !content.includes(sectionComment);
|
|
663
661
|
let newContent = content;
|
|
664
662
|
if (newContent && !newContent.endsWith("\n")) {
|
|
665
663
|
newContent += "\n";
|
|
666
664
|
}
|
|
667
|
-
if (
|
|
668
|
-
newContent
|
|
665
|
+
if (needsSection) {
|
|
666
|
+
if (newContent) {
|
|
667
|
+
newContent += "\n";
|
|
668
|
+
}
|
|
669
|
+
newContent += sectionComment + "\n";
|
|
670
|
+
newContent += linesToAdd.join("\n") + "\n";
|
|
671
|
+
} else {
|
|
672
|
+
const lines = newContent.split("\n");
|
|
673
|
+
const sectionIndex = lines.findIndex(
|
|
674
|
+
(line) => line.includes(sectionComment)
|
|
675
|
+
);
|
|
676
|
+
if (sectionIndex !== -1) {
|
|
677
|
+
lines.splice(sectionIndex + 1, 0, ...linesToAdd);
|
|
678
|
+
newContent = lines.join("\n");
|
|
679
|
+
} else {
|
|
680
|
+
if (newContent) {
|
|
681
|
+
newContent += "\n";
|
|
682
|
+
}
|
|
683
|
+
newContent += sectionComment + "\n";
|
|
684
|
+
newContent += linesToAdd.join("\n") + "\n";
|
|
685
|
+
}
|
|
669
686
|
}
|
|
670
|
-
newContent += sectionComment + "\n";
|
|
671
|
-
newContent += linesToAdd.join("\n") + "\n";
|
|
672
687
|
await fs6.writeFile(gitignorePath, newContent, "utf-8");
|
|
673
688
|
if (hasGitignore) {
|
|
674
689
|
logger.success(`.gitignore updated with ${linesToAdd.length} patterns`);
|
|
@@ -839,7 +854,7 @@ var init = async (options) => {
|
|
|
839
854
|
|
|
840
855
|
// src/index.ts
|
|
841
856
|
var program = new Command();
|
|
842
|
-
program.name("claude-code").description("Claude Code documentation installer for projects").version("0.5.
|
|
857
|
+
program.name("claude-code").description("Claude Code documentation installer for projects").version("0.5.8");
|
|
843
858
|
program.option(
|
|
844
859
|
"-t, --template <names>",
|
|
845
860
|
"template names (comma-separated: tanstack-start,hono)"
|
package/package.json
CHANGED
|
@@ -431,7 +431,7 @@ PRD 작성 시작 전 확인:
|
|
|
431
431
|
| 1 | 복잡도 판단 및 PRD 구조 계획 | Sequential Thinking (3-5단계) |
|
|
432
432
|
| 2 | 코드베이스/문서 조사 (필요시) | Task (Explore) |
|
|
433
433
|
| 3 | 병렬 Agent 실행 (복잡한 경우) | Task (analyst, architect, document-writer) |
|
|
434
|
-
| 4 | 15개 섹션 구조로 PRD 작성 | Write → `.claude/
|
|
434
|
+
| 4 | 15개 섹션 구조로 PRD 작성 | Write → `.claude/plan/` 또는 `docs/prd/` |
|
|
435
435
|
|
|
436
436
|
**핵심 원칙**:
|
|
437
437
|
- 짧고 명확한 문장, 구체적 예시
|
|
@@ -734,7 +734,7 @@ PRD 작성 시작 전 확인:
|
|
|
734
734
|
Task (Explore): "User 모델 및 인증 구조 분석"
|
|
735
735
|
|
|
736
736
|
3. PRD 작성:
|
|
737
|
-
→ .claude/
|
|
737
|
+
→ .claude/plan/profile-edit-prd.md
|
|
738
738
|
|
|
739
739
|
4. 주요 섹션:
|
|
740
740
|
- 문제: 사용자가 정보를 수정할 방법이 없음
|
package/templates/hono/CLAUDE.md
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
<instructions>
|
|
6
6
|
@../../commands/git.md
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
@.claude/docs/guides/getting-started.md
|
|
8
|
+
@.claude/docs/library/hono/index.md
|
|
9
|
+
@.claude/docs/library/prisma/index.md
|
|
10
|
+
@.claude/docs/library/t3-env/index.md
|
|
11
|
+
@.claude/docs/library/zod/index.md
|
|
12
12
|
</instructions>
|
|
13
13
|
|
|
14
14
|
---
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
|
|
24
24
|
<instructions>
|
|
25
25
|
@../../commands/git.md
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
@.claude/docs/library/nextjs/index.md
|
|
27
|
+
@.claude/docs/library/tanstack-query/index.md
|
|
28
|
+
@.claude/docs/library/prisma/index.md
|
|
29
|
+
@.claude/docs/library/next-auth/index.md
|
|
30
|
+
@.claude/docs/library/zod/index.md
|
|
31
|
+
@.claude/docs/design.md
|
|
32
32
|
</instructions>
|
|
33
33
|
|
|
34
34
|
---
|
package/templates/npx/CLAUDE.md
CHANGED
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
|
|
22
22
|
<instructions>
|
|
23
23
|
@../../commands/git.md
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
@.claude/docs/library/commander/index.md
|
|
25
|
+
@.claude/docs/library/fs-extra/index.md
|
|
26
|
+
@.claude/docs/library/prompts/index.md
|
|
27
|
+
@.claude/docs/references/patterns.md
|
|
28
28
|
</instructions>
|
|
29
29
|
|
|
30
30
|
---
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
|
|
23
23
|
<instructions>
|
|
24
24
|
@../../commands/git.md
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
@.claude/docs/library/tanstack-start/index.md
|
|
26
|
+
@.claude/docs/library/tanstack-router/index.md
|
|
27
|
+
@.claude/docs/library/tanstack-query/index.md
|
|
28
|
+
@.claude/docs/library/prisma/index.md
|
|
29
|
+
@.claude/docs/library/better-auth/index.md
|
|
30
|
+
@.claude/docs/library/t3-env/index.md
|
|
31
|
+
@.claude/docs/library/zod/index.md
|
|
32
|
+
@.claude/docs/design.md
|
|
33
33
|
</instructions>
|
|
34
34
|
|
|
35
35
|
---
|