chore(scaffold): add Claude Code AI environment and commands#885
Merged
YusukeHirao merged 8 commits intodevfrom Apr 7, 2026
Merged
chore(scaffold): add Claude Code AI environment and commands#885YusukeHirao merged 8 commits intodevfrom
YusukeHirao merged 8 commits intodevfrom
Conversation
yusasa16
previously approved these changes
Apr 2, 2026
dz-furukawa
previously approved these changes
Apr 2, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 3 potential issues.
Bugbot Autofix prepared fixes for all 3 issues found in the latest run.
- ✅ Fixed: Missing
emulatepermission in MCP allow list- Added mcp__chrome-devtools__emulate to the allow list to enable responsive viewport testing as required by fix-component.md command.
- ✅ Fixed: Incorrect colon syntax in
ghCLI permission patterns- Changed gh CLI patterns from colon syntax (gh repo list:*) to space syntax (gh repo list *) to match actual gh command structure.
- ✅ Fixed: Deny rules for
sedandnpmuse ineffective colon syntax- Changed sed and npm deny patterns from colon syntax to space syntax (sed *, npm *) to properly block these commands.
Or push these changes by commenting:
@cursor push aa191535b7
Preview (aa191535b7)
diff --git a/packages/@d-zero/scaffold/.claude/settings.json b/packages/@d-zero/scaffold/.claude/settings.json
--- a/packages/@d-zero/scaffold/.claude/settings.json
+++ b/packages/@d-zero/scaffold/.claude/settings.json
@@ -1,23 +1,24 @@
{
"permissions": {
"allow": [
- "Bash(yarn build:*)",
- "Bash(yarn install)",
- "Bash(yarn lint:*)",
- "Bash(yarn test:*)",
- "Bash(gh repo list:*)",
- "Bash(gh repo view:*)",
- "Bash(gh repo gitignore:*)",
- "Bash(gh repo license:*)",
- "mcp__chrome-devtools__click",
- "mcp__chrome-devtools__evaluate_script",
- "mcp__chrome-devtools__list_console_messages",
- "mcp__chrome-devtools__list_pages",
- "mcp__chrome-devtools__navigate_page",
- "mcp__chrome-devtools__new_page",
- "mcp__chrome-devtools__take_screenshot",
- "mcp__chrome-devtools__take_snapshot",
- "mcp__chrome-devtools__wait_for",
+ "Bash(yarn build:*)",
+ "Bash(yarn install)",
+ "Bash(yarn lint:*)",
+ "Bash(yarn test:*)",
+ "Bash(gh repo list *)",
+ "Bash(gh repo view *)",
+ "Bash(gh repo gitignore *)",
+ "Bash(gh repo license *)",
+ "mcp__chrome-devtools__click",
+ "mcp__chrome-devtools__emulate",
+ "mcp__chrome-devtools__evaluate_script",
+ "mcp__chrome-devtools__list_console_messages",
+ "mcp__chrome-devtools__list_pages",
+ "mcp__chrome-devtools__navigate_page",
+ "mcp__chrome-devtools__new_page",
+ "mcp__chrome-devtools__take_screenshot",
+ "mcp__chrome-devtools__take_snapshot",
+ "mcp__chrome-devtools__wait_for",
"Skill(git)",
"WebFetch(domain:github.com)",
"WebFetch(domain:guidelines.d-zero.co.jp)",
@@ -27,8 +28,8 @@
"Bash(rm --force)",
"Bash(rm -rf)",
"Bash(rm -f)",
- "Bash(sed:*)",
- "Bash(npm:*)"
+ "Bash(sed *)",
+ "Bash(npm *)"
]
},
"enabledMcpjsonServers": ["chrome-devtools", "figma-remote-mcp"]This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.
…ulate tool - Replace deprecated `:*` suffix with ` *` in Bash permission patterns - Add missing mcp__chrome-devtools__emulate to allow list SEE: https://code.claude.com/docs/en/permissions.md
Member
Author
|
Cursor Bugbotの指摘修正済み |
yusasa16
approved these changes
Apr 7, 2026
dz-furukawa
approved these changes
Apr 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


概要
scaffoldパッケージにClaude Code / Cursor対応のAI環境設定とカスタムコマンドを追加。
Claude Code
CLAUDE.md— プロジェクトルール定義(ガイドラインへのリンク含む).claude/settings.json— パーミッション・MCPサーバー有効化設定.mcp.json— chrome-devtools / figma-remote-mcp サーバー定義.claude/commands/git.md— コミットルール・diff確認手順・安全ガイドライン.claude/commands/release.md— リリースブランチ作成フロー.claude/commands/fix-component.md— コンポーネント修正ワークフロー(DevTools MCP連携).claude/commands/debug-diff.md— 2環境間のページ比較デバッグ(archaeologist / filematch連携)Cursor
.cursor/mcp.json— chrome-devtools MCPサーバー定義.cursor/rules/は不要.claude/commands/をスラッシュコマンドとして認識するため.cursor/commands/は不要セキュリティ
chrome-devtools-mcpを devDependencies にバージョン固定(0.21.0)で追加し、MCP設定から@latestを削除その他
cspell.json/package.json—.claude/ディレクトリのlint対応README.md— AIコマンド一覧を追記Note
Medium Risk
Medium risk because it changes the scaffolded project output and developer tooling configuration (permissions, MCP servers, lint/format patterns) and introduces a new devDependency (
chrome-devtools-mcp), which could impact generated repos’ tooling behavior.Overview
Adds a Claude Code/Cursor AI environment to the
@d-zero/scaffoldtemplate: newCLAUDE.md,.claude/settings.json,.claude/commands/*(git/release/fix/debug workflows), and MCP server configs via.mcp.jsonand.cursor/mcp.json.Updates tooling to accommodate the new
.claude/directory (cspell ignore paths, prettier target globs) and pins/introduceschrome-devtools-mcp@0.21.0indevDependencies(+ lockfile).Adjusts
@d-zero/create-frontendCLI tests to expect these new scaffolded files fornpx,static, andbasercms4outputs.Written by Cursor Bugbot for commit f61a565. Configure here.