@kood/claude-code 0.5.7 → 0.5.9
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 +25 -10
- 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/docs/library/consola/index.md +687 -0
- package/templates/nextjs/docs/library/consola/index.md +680 -0
- package/templates/tanstack-start/docs/library/consola/index.md +673 -0
package/dist/index.js
CHANGED
|
@@ -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.9");
|
|
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
|
- 문제: 사용자가 정보를 수정할 방법이 없음
|