Skip to content

Commit 9933718

Browse files
authored
Merge pull request #57 from gotalab/update/docs
test(cc-sdd): update tests and ignore generated artifacts
2 parents 8e2e853 + 0ae0bbb commit 9933718

File tree

11 files changed

+27
-25
lines changed

11 files changed

+27
-25
lines changed

.github/workflows/claude-code-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Claude Code Review
22

33
on:
44
pull_request:
5-
types: [opened, synchronize]
5+
# types: [opened, synchronize]
66
# Optional: Only run on specific file changes
77
# paths:
88
# - "src/**/*.ts"

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<a href="./tools/cc-sdd/README.md">English</a> | <a href="./tools/cc-sdd/README_ja.md">日本語</a> | <a href="./tools/cc-sdd/README_zh-TW.md">繁體中文</a>
33
</sub></div>
44

5-
# cc-sdd / Claude Code Spec
5+
# cc-sdd / prev. Claude Code Spec
66

7+
**Transform Claude Code/ Cursor IDE / Gemini CLI from prototype to production-ready development**
78

8-
> 📦 **Beta Release** - Ready to use, actively improving. [Report issues →](https://github.com/gotalab/claude-code-spec/issues)
9-
10-
<!-- npm badges -->
11-
[![npm version](https://img.shields.io/npm/v/cc-sdd?logo=npm)](https://www.npmjs.com/package/cc-sdd?activeTab=readme)
12-
[![license: MIT](https://img.shields.io/badge/license-MIT-green.svg)](tools/cc-sdd/LICENSE)
9+
<!-- npm badges -->
10+
[![npm version](https://img.shields.io/npm/v/cc-sdd?logo=npm)](https://www.npmjs.com/package/cc-sdd?activeTab=readme)
11+
[![install size](https://packagephobia.com/badge?p=cc-sdd)](https://packagephobia.com/result?p=cc-sdd)
12+
[![license: MIT](https://img.shields.io/badge/license-MIT-green.svg)](tools/cc-sdd/LICENSE)
1313

1414

1515
One command installs **AI-DLC** (AI-Driven Development Life Cycle) with **SDD** (Spec-Driven Development) workflows for Claude Code, Cursor IDE and Gemini CLI.

tools/cc-sdd/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
dist
33
coverage
4+
.claude/
5+
CLAUDE.md

tools/cc-sdd/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ npx cc-sdd@latest --cursor --lang ja # For Cursor IDE instead
4444
/kiro:spec-impl auth-system # Execute with TDD
4545
```
4646

47-
![design.md - System Flow Diagram](https://raw.githubusercontent.com/gotalab/cc-sdd/blob/main/assets/design-system_flow.png)
47+
![design.md - System Flow Diagram](https://raw.githubusercontent.com/gotalab/cc-sdd/refs/heads/main/assets/design-system_flow.png)
4848
*Example of system flow during the design phase `design.md`*
4949

5050
### For Existing Projects (Recommended)

tools/cc-sdd/README_ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ npx cc-sdd@latest --cursor --lang ja # Cursor IDE用
4444
/kiro:spec-impl auth-system # TDDで実行
4545
```
4646

47-
![design.md - System Flow Diagram](https://raw.githubusercontent.com/gotalab/cc-sdd/blob/main/assets/design-system_flow.png)
47+
![design.md - System Flow Diagram](https://raw.githubusercontent.com/gotalab/cc-sdd/refs/heads/main/assets/design-system_flow.png)
4848
*Example of system flow during the design phase `design.md`*
4949

5050
### 既存プロジェクトの場合(推奨)

tools/cc-sdd/README_zh-TW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ npx cc-sdd@latest --cursor --lang zh-TW # Cursor IDE 用
4444
/kiro:spec-impl auth-system # 以 TDD 執行
4545
```
4646

47-
![design.md - System Flow Diagram](https://raw.githubusercontent.com/gotalab/cc-sdd/blob/main/assets/design-system_flow.png)
47+
![design.md - System Flow Diagram](https://raw.githubusercontent.com/gotalab/cc-sdd/refs/heads/main/assets/design-system_flow.png)
4848
*Example of system flow during the design phase `design.md`*
4949

5050
### 現有專案(建議)

tools/cc-sdd/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "cc-sdd",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Transform your coding workflow with AI-DLC and Spec-Driven Development. One command installs 7 powerful slash commands, Project Memory, and structured development workflows for Claude Code.",
55
"keywords": ["claude-code", "spec-driven-development", "kiro", "steering", "ai-development", "tdd", "ai-dlc", "ai-driven-development-life-cycle"],
66
"author": "Gota",
77
"license": "MIT",
88
"repository": {
99
"type": "git",
10-
"url": "https://github.com/gotalab/claude-code-spec.git",
10+
"url": "https://github.com/gotalab/cc-sdd.git",
1111
"directory": "tools/cc-sdd"
1212
},
1313

tools/cc-sdd/test/cliApplyManifest.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ describe('CLI apply with manifest', () => {
5555
const out = join(cwd, '.claude/CLAUDE.md');
5656
expect(await exists(out)).toBe(true);
5757
expect((await readFile(out, 'utf8')).trim()).toMatch(/Hello claude-code/);
58-
expect(ctx.logs.join('\n')).toMatch(/Setup completed written=1, skipped=0/);
58+
// New output includes emoji and colon; match the stable part
59+
expect(ctx.logs.join('\n')).toMatch(/Setup completed: written=1, skipped=0/);
5960
});
6061
});

tools/cc-sdd/test/realManifestClaudeCode.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,20 @@ describe('real claude-code manifest', () => {
5757
const cmd = join(cwd, '.claude/commands/kiro/spec-init.md');
5858
expect(await exists(cmd)).toBe(true);
5959

60-
expect(ctx.logs.join('\n')).toMatch(/Setup completed /);
60+
expect(ctx.logs.join('\n')).toMatch(/Setup completed: written=\d+, skipped=\d+/);
6161
});
6262
});
6363

6464
describe('real claude-code manifest (linux)', () => {
6565
const runtimeLinux = { platform: 'linux' } as const;
6666

67-
it('dry-run prints plan including commands for linux via mac template', async () => {
67+
it('dry-run prints plan including commands for linux via windows template', async () => {
6868
const ctx = makeIO();
6969
const code = await runCli(['--dry-run', '--lang', 'en', '--manifest', manifestPath], runtimeLinux, ctx.io, {});
7070
expect(code).toBe(0);
7171
const out = ctx.logs.join('\n');
7272
expect(out).toMatch(/Plan \(dry-run\)/);
73-
expect(out).toContain('[templateDir] commands_os_mac: templates/agents/claude-code/commands/os-mac -> .claude/commands/kiro');
73+
expect(out).toContain('[templateDir] commands_os_windows: templates/agents/claude-code/commands/os-windows -> .claude/commands/kiro');
7474
expect(out).toContain('[templateFile] doc_main: templates/agents/claude-code/docs/CLAUDE/CLAUDE.en.tpl.md -> ./CLAUDE.md');
7575
});
7676

@@ -89,6 +89,6 @@ describe('real claude-code manifest (linux)', () => {
8989
const cmd = join(cwd, '.claude/commands/kiro/spec-init.md');
9090
expect(await exists(cmd)).toBe(true);
9191

92-
expect(ctx.logs.join('\n')).toMatch(/Setup completed /);
92+
expect(ctx.logs.join('\n')).toMatch(/Setup completed: written=\d+, skipped=\d+/);
9393
});
9494
});

tools/cc-sdd/test/realManifestCursor.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ describe('real cursor manifest', () => {
6565
expect(code).toBe(0);
6666
const out = ctx.logs.join('\n');
6767

68-
// Check that the setup completion message is present
69-
expect(out).toMatch(/Setup completed /);
68+
// Check that the setup completion message is present (new format)
69+
expect(out).toMatch(/Setup completed: written=\d+, skipped=\d+/);
7070

7171
// Check that the Cursor-specific recommendation message is present (with color codes)
72-
expect(out).toContain('\x1b[93m\x1b[1mRecommended model: claude-4-sonnet or later with thinking mode\x1b[0m');
72+
expect(out).toContain('\x1b[93m\x1b[1mRecommended: Use claude-4-sonnet or later model');
7373
});
7474
});

0 commit comments

Comments
 (0)