Skip to content

Commit b5d6e55

Browse files
kiyotisclaude
andcommitted
feat: Add team setup and version tagging
GitHub Action: - Add automatic Git tag creation based on plugin.json version - Tags are created in v{version} format (e.g., v0.3) - Skip tag creation if tag already exists on remote Documentation: - Add team setup instructions with project-scoped installation - Add .claude/settings.json configuration examples - Add version update methods for Claude Code and GitHub Copilot - Add --scope project option to installation commands Version: 0.2 -> 0.3 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 78d6740 commit b5d6e55

6 files changed

Lines changed: 164 additions & 2 deletions

File tree

‎.claude/marketplace/.claude-plugin/marketplace.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"name": "nabledge-6",
1010
"source": "./plugins/nabledge-6",
1111
"description": "Nablarch 6 skill for AI-assisted development",
12-
"version": "0.2",
12+
"version": "0.3",
1313
"homepage": "https://github.com/nablarch/nabledge",
1414
"repository": "https://github.com/nablarch/nabledge",
1515
"license": "Apache-2.0"

‎.claude/marketplace/README.md‎

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,68 @@ Nabledgeは、NablarchによるAI支援開発スキルです。Claude CodeやGit
1313

1414
インストール方法や使い方は各プラグインのREADMEを参照してください。
1515

16+
## チーム設定
17+
18+
プロジェクトメンバー全員がNabledgeプラグインを利用できるよう、プロジェクトスコープで設定できます。
19+
20+
### 設定方法
21+
22+
プロジェクトルートに `.claude/settings.json` を作成し、以下を追加:
23+
24+
```json
25+
{
26+
"extraKnownMarketplaces": [
27+
{
28+
"name": "nabledge",
29+
"source": "https://github.com/nablarch/nabledge.git"
30+
}
31+
],
32+
"enabledPlugins": {
33+
"nabledge-6@nabledge": {
34+
"enabled": true
35+
}
36+
}
37+
}
38+
```
39+
40+
このファイルをGitにコミットすると、チームメンバーがリポジトリをクローンした際に自動的にプラグインのインストールが促されます。
41+
42+
### VS Codeでの設定
43+
44+
VS Codeでは `.vscode/settings.json` に以下を追加:
45+
46+
```json
47+
{
48+
"github.copilot.chat.codeGeneration.instructions": [
49+
{
50+
"text": "Nablarch framework knowledge is available via nabledge-6 skill"
51+
}
52+
]
53+
}
54+
```
55+
56+
### バージョンアップ
57+
58+
#### Claude Code
59+
60+
マーケットプレイスは起動時に自動更新されます。手動で更新する場合:
61+
62+
```bash
63+
# マーケットプレイスを更新
64+
/plugin marketplace update nabledge
65+
66+
# 特定バージョンを指定する場合
67+
/plugin marketplace add nablarch/nabledge#v0.2
68+
```
69+
70+
#### VS Code (GitHub Copilot)
71+
72+
最新版を再インストール:
73+
74+
```bash
75+
curl -sSL https://raw.githubusercontent.com/nablarch/nabledge/main/.claude/skills/nabledge-6/scripts/setup.sh | bash
76+
```
77+
1678
## バージョニング
1779

1880
各プラグインは独立したバージョン管理を行っています。

‎.claude/skills/nabledge-6/plugin/CHANGELOG.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ All notable changes to the nabledge-6 plugin will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## [0.3] - 2026-02-13
8+
9+
### Added
10+
- チーム設定方法をREADMEに追加(プロジェクトスコープインストール)
11+
- バージョンアップ方法を追加(Claude Code、GitHub Copilot)
12+
- 自動タグ作成機能をGitHub Actionに追加
13+
14+
### Changed
15+
- インストールコマンドに`--scope project`オプションを追加
16+
- マーケットプレイスREADMEにバージョン管理情報を追加
17+
718
## [0.2] - 2026-02-13
819

920
### Changed

‎.claude/skills/nabledge-6/plugin/README.md‎

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ Nablarchの知識を活用した開発支援ワークフローを提供します
4141

4242
### Claude Code
4343

44+
#### 個人用インストール
45+
4446
```bash
4547
# マーケットプレイスを追加
4648
/plugin marketplace add nablarch/nabledge
@@ -49,6 +51,38 @@ Nablarchの知識を活用した開発支援ワークフローを提供します
4951
/plugin install nabledge-6@nabledge
5052
```
5153

54+
#### チーム設定(推奨)
55+
56+
プロジェクトメンバー全員で利用する場合は、プロジェクトスコープでインストール:
57+
58+
```bash
59+
# マーケットプレイスを追加
60+
/plugin marketplace add nablarch/nabledge
61+
62+
# プロジェクトスコープでインストール
63+
/plugin install nabledge-6@nabledge --scope project
64+
```
65+
66+
または、`.claude/settings.json` に直接記述:
67+
68+
```json
69+
{
70+
"extraKnownMarketplaces": [
71+
{
72+
"name": "nabledge",
73+
"source": "https://github.com/nablarch/nabledge.git"
74+
}
75+
],
76+
"enabledPlugins": {
77+
"nabledge-6@nabledge": {
78+
"enabled": true
79+
}
80+
}
81+
}
82+
```
83+
84+
このファイルをGitにコミットすると、チームメンバーがリポジトリをクローンした際に自動的にプラグインのインストールが促されます。
85+
5286
### GitHub Copilot (WSL / GitBash)
5387

5488
```bash
@@ -80,3 +114,37 @@ Nablarch 6のドキュメントやベストプラクティスから知識を検
80114
```
81115

82116
現在のプロジェクトのコードをNablarchの観点から分析します。Actionクラス、ハンドラ構成、データベースアクセスパターンなどを評価し、改善提案を提供します。
117+
118+
## バージョンアップ
119+
120+
### Claude Code
121+
122+
マーケットプレイスは起動時に自動更新されます。手動で更新する場合:
123+
124+
```bash
125+
# マーケットプレイスを更新(最新版を取得)
126+
/plugin marketplace update nabledge
127+
128+
# 特定バージョンを指定する場合
129+
/plugin marketplace add nablarch/nabledge#v0.2
130+
```
131+
132+
プラグインを再インストール:
133+
134+
```bash
135+
/plugin install nabledge-6@nabledge
136+
```
137+
138+
### GitHub Copilot (WSL / GitBash)
139+
140+
セットアップスクリプトを再実行:
141+
142+
```bash
143+
curl -sSL https://raw.githubusercontent.com/nablarch/nabledge/main/.claude/skills/nabledge-6/scripts/setup.sh | bash
144+
```
145+
146+
特定バージョンを指定する場合:
147+
148+
```bash
149+
curl -sSL https://raw.githubusercontent.com/nablarch/nabledge/v0.2/.claude/skills/nabledge-6/scripts/setup.sh | bash
150+
```

‎.claude/skills/nabledge-6/plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nabledge-6",
3-
"version": "0.2",
3+
"version": "0.3",
44
"description": "Nablarch 6 skill for AI-assisted development",
55
"author": {
66
"name": "Nablarch"

‎.github/workflows/sync-to-nabledge.yml‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,24 @@ jobs:
143143
git commit -m "Sync nabledge marketplace from nabledge-dev" -m "Triggered by: ${TRIGGER_COMMIT_URL}"
144144
145145
git push origin dummy-to
146+
147+
- name: Create and push version tag
148+
working-directory: nabledge-repo
149+
run: |
150+
# Extract version from plugin.json
151+
VERSION=$(jq -r '.version' plugins/nabledge-6/.claude-plugin/plugin.json)
152+
TAG_NAME="v${VERSION}"
153+
154+
echo "Creating tag: ${TAG_NAME}"
155+
156+
# Check if tag already exists on remote
157+
if git ls-remote --tags origin | grep -q "refs/tags/${TAG_NAME}"; then
158+
echo "Tag ${TAG_NAME} already exists on remote, skipping tag creation"
159+
exit 0
160+
fi
161+
162+
# Create and push tag
163+
git tag -a "${TAG_NAME}" -m "Release version ${VERSION}"
164+
git push origin "${TAG_NAME}"
165+
166+
echo "Successfully created and pushed tag: ${TAG_NAME}"

0 commit comments

Comments
 (0)