Skip to content

Design: Claude Code Plugin structure for nabledge-6#3

Closed
kiyotis wants to merge 35 commits into
developfrom
feature/plugin-structure-design
Closed

Design: Claude Code Plugin structure for nabledge-6#3
kiyotis wants to merge 35 commits into
developfrom
feature/plugin-structure-design

Conversation

@kiyotis

@kiyotis kiyotis commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR proposes a comprehensive design for restructuring nabledge-6 skill as a proper Claude Code Plugin for distribution, based on the official Claude Code Plugin specification.

Problem

The current nabledge-6 skill structure (.claude/skills/nabledge-6/) is designed for local development but does not conform to Claude Code Plugin distribution requirements:

  • ❌ No plugin.json manifest
  • ❌ Components inside .claude/skills/ (not at plugin root)
  • ❌ Not distributable as standalone plugin

Proposed Solution

Recommended: Option 1 - Dedicated Plugin Repository

Create a separate nabledge-6 repository with proper plugin structure:

nabledge-6/                        # Plugin root
├── .claude-plugin/
│   └── plugin.json                # Manifest
├── skills/
│   └── nabledge-6/
│       └── SKILL.md
├── workflows/                     # At root
├── assets/                        # At root
├── knowledge/                     # At root
├── docs/                          # At root
├── README.md
├── LICENSE
└── CHANGELOG.md

Key Design Decisions

  1. Dedicated repository: Separate development (nabledge-dev) from distribution (nabledge-6)
  2. Plugin root structure: All component directories at root level, not inside .claude-plugin/
  3. Namespaced skills: Users invoke with /nabledge-6 (plugin name matches skill name)
  4. Git-based distribution: Users install via /plugin marketplace add owner/nabledge-6

File Mapping

Development Distribution
.claude/skills/nabledge-6/SKILL.md skills/nabledge-6/SKILL.md
.claude/skills/nabledge-6/workflows/ workflows/ (at root)
.claude/skills/nabledge-6/knowledge/ knowledge/ (at root)

Implementation Options Considered

  1. Option 1: Dedicated Repository (Recommended)
  2. ⚠️ Option 2: Monorepo with dist/ directory
  3. ⚠️ Option 3: CI/CD build pipeline

See full analysis in work/20260212/plugin-structure-design.md

Next Steps

  1. Get feedback on recommended approach
  2. Answer questions (repository name, license, author info)
  3. Create nabledge-6 plugin repository
  4. Implement plugin structure
  5. Test locally with claude --plugin-dir
  6. Publish to GitHub

Questions for Review

  1. Repository naming: nabledge-6 or claude-plugin-nabledge-6?
  2. License: Apache 2.0 or MIT?
  3. Sync strategy: Manual or automated (GitHub Actions)?
  4. Marketplace submission: Plan to submit to official Claude Code marketplace?

References

  • Design document: work/20260212/plugin-structure-design.md
  • Claude Code Plugin specification (investigated via claude-code-guide agent)

🤖 Generated with Claude Code

kiyotis and others added 30 commits February 6, 2026 17:11
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- 許可・拒否操作の権限設定を追加
- 危険なコマンド(rm -rf、dd、mkfsなど)を拒否
- 環境変数アクセス(env、exportなど)を拒否
- WSLからのWindowsホストアクセスを拒否
- セキュリティのため.envファイルへのアクセスを拒否
- git、ファイル操作、Claude Codeツールを許可
- settings.local.jsonを除外するようgitignoreを更新

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Claude Code統合を含む開発環境の自動セットアップスクリプトと、
READMEに包括的なセットアップ手順を追加

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- CLAUDE.mdをシンプルなルールのみの記述に変更
- setup.shにNablarch公式リポジトリのクローン機能を追加

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- シェルスクリプトを使用したカスタムステータスラインを設定
- document-skillsプラグインを有効化
- カレントディレクトリ、gitブランチ、モデル、コンテキスト使用率を表示

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
エージェントから実行可能な構造で、ブランチ作成、コミット、ブランチ削除、ワークツリー作成/削除の5つの操作をサポート

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude (jp.anthropic.claude-sonnet-4-5-20250929-v1:0) <noreply@anthropic.com>
- ディレクトリ構成を簡潔化(nabledge-6/研究ドキュメントの詳細は削除)
- 詳細設計はstep3-architecture-design.mdへのリンクで参照
- 情報の重複を排除

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- /git commitの説明を「コミット」→「コミット&プッシュ」に変更
- 実際の動作と説明を一致させる

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Nablarchエージェント代行のための構造化知識基盤の設計書を追加。
要件定義、アーキテクチャ設計、実現性評価、レビュー結果、実装計画を含む。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
プロジェクトの開発環境を整備し、Nablarch 6用の構造化知識基盤の初期実装を追加。
permission設定、Git/PRスキルのリファクタリング、ワークフロー定義、ルール設定を含む。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- バージョン1.4に更新、変更履歴を追加
- 代行業務の優先度を整理し明確化
- 冗長な説明を削除し、構造を4章に簡潔化
- 文体を統一(「です・ます」調)
- スクリプトファイルに実行権限を付与

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
index.toonの検索ヒントを整理し、冗長なキーワードを削減。keyword-searchワークフローにL1/L2/L3キーワードの使い分けを明記し、2段階フィルタリング(ファイル選定・セクション選定)の設計を明確化。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
検索アーキテクチャから検索設計に名称変更し、6段階の詳細フロー(キーワード抽出→ファイル選定→セクション選定→関連度判定→結果構造化→コンテキスト管理)を図解とともに説明。各段階での処理内容と判断根拠を明確化。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
重複していたコンテキスト管理の説明を検索設計の「⑥ コンテキスト管理」に統合。まとめセクションも更新し、検索設計の4つのポイント(3段階キーワード、2段階検索、関連度判定、セクション単位抽出)を明記。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
検索設計の全面見直し(3段階キーワード抽出+2段階検索プロセス)を反映したバージョン履歴を追加。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
テストシナリオをnabledge-6/tests/から独立したスキル構造に移行し、
ワークフロー駆動のテスト実行とレビュー機能を追加

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Create workflow to sync nabledge-6 skill to dummy-to branch
- Trigger on push to dummy-from branch
- Include trigger commit URL in commit message for traceability

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
kiyotis and others added 3 commits February 10, 2026 21:30
Add comprehensive design document for restructuring nabledge-6 skill
as a proper Claude Code Plugin for distribution.

Key decisions:
- Dedicated repository approach (Option 1) recommended
- Plugin root with .claude-plugin/plugin.json manifest
- Component directories at root level (not in .claude/)
- File mapping from development to distribution structure

Document includes:
- Plugin specification summary
- Current vs proposed structure comparison
- Three implementation options with pros/cons
- Recommended approach with detailed rationale
- Development and release workflow
- File mapping table
- Next steps and questions for user

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace initial plugin structure design with comprehensive GitHub Action
design for transforming nabledge-6 skill from development format to
Claude Code Plugin distribution format.

Key design decisions:
- Keep development structure (.claude/skills/nabledge-6/) unchanged
- GitHub Action transforms to plugin format on sync
- nabledge-dev: development, testing, demo
- nabledge: distribution, user installation

Design includes:
- Structure comparison (development vs distribution)
- File mapping table
- Detailed GitHub Action workflow steps
- plugin.json generation strategy
- README.md template
- Version management (VERSION file recommended)
- Testing and validation strategy
- Release process documentation
- Implementation checklist

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| `.claude/skills/nabledge-6/assets/` | `assets/` | Move to root |
| `.claude/skills/nabledge-6/knowledge/` | `knowledge/` | Move to root |
| `.claude/skills/nabledge-6/docs/` | `docs/` | Move to root |
| (not exists) | `.claude-plugin/plugin.json` | Generate |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not existsは都度生成せずスキルの中にpluginディレクトリ作ってその中に入れて、開発時に編集しませんか?
nabledge-6/plugin/plugin.jsonといった感じです。
開発時に付随するファイルもレビューしたいですよね。

そうすれば都度生成でなく適切な場所に移動すればいいだけになります。

kiyotis and others added 2 commits February 12, 2026 13:25
Resolved conflicts in .gitignore, CLAUDE.md, and README.md

- Kept nabledge-test/ in directory structure

- Added .env to .gitignore from develop

- Integrated Usage section from develop
Update design to store plugin.json, README.md, LICENSE, and CHANGELOG.md
in .claude/skills/nabledge-6/plugin/ directory for review during development,
rather than generating them during GitHub Action workflow.

Benefits:
- Plugin files are version controlled and reviewable
- Simpler workflow (move instead of generate)
- Easier to maintain and update

Co-Authored-By: Claude (jp.anthropic.claude-sonnet-4-5-20250929-v1:0) <noreply@anthropic.com>
@kiyotis

kiyotis commented Feb 12, 2026

Copy link
Copy Markdown
Contributor Author

Fixed

Commit: e5d840d

Updated the design document to store plugin distribution files (plugin.json, README.md, LICENSE, CHANGELOG.md) in .claude/skills/nabledge-6/plugin/ directory within the development repository, rather than generating them during GitHub Action workflow.

Changes made:

  • Updated development structure to include plugin/ directory
  • Updated File Mapping table to show moving files instead of generating
  • Simplified workflow steps (removed generation steps)
  • Updated version management strategy
  • Updated implementation checklist

This approach enables reviewing plugin files during development and simplifies the workflow.

Co-Authored-By: Claude (jp.anthropic.claude-sonnet-4-5-20250929-v1:0) noreply@anthropic.com

@kiyotis

kiyotis commented Feb 12, 2026

Copy link
Copy Markdown
Contributor Author

Closing this PR. New implementation approach will be submitted in a separate PR.

@kiyotis kiyotis closed this Feb 12, 2026
@kiyotis kiyotis deleted the feature/plugin-structure-design branch February 12, 2026 05:02
@kiyotis kiyotis added the enhancement New feature or request label Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant