Pattern library
Skill shioki/Cursor-Knowledge-Management-System/templates/.agents/skills/pattern-library
Cursor / Claude Code / Codex 向けの知識管理テンプレート。Agent Skills 7 種とカスタムコマンド 7 種。v5.0.0 で .agents/skills 正規化、Cursor Plugin・gh skill・Microsoft APM・AGENTS.md に対応。
npx -y skills add shioki/Cursor-Knowledge-Management-System --skill pattern-libraryAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
新機能の実装時に既存パターンの検索・適用、または新しい実装パターンの登録を行う場合に使用。アーキテクチャパターン、実装パターン、テストパターンを管理する。
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
2.6 KB, as published. Nobody here has run it
パターンライブラリ
プロジェクトで使用する実装パターン、設計パターン、テストパターンを管理・適用するスキルです。
When to Use
- 新機能の実装前に既存パターンを確認したいとき
- 実装方法のベストプラクティスを知りたいとき
- 新しい実装パターンを登録したいとき
- リファクタリング時にパターンの統一を図りたいとき
Instructions
1. 既存パターンの確認
まず references/PATTERNS_TEMPLATE.md を読み込み、登録済みパターンを確認してください。
2. パターンの分類
パターンは以下のカテゴリで管理します:
- アーキテクチャパターン: MVC/MVP/MVVM, Repository, Factory, Observer 等
- 実装パターン: API呼び出し、エラーハンドリング、ログ出力、バリデーション等
- テストパターン: 単体テスト、統合テスト、E2Eテスト、モック活用等
3. パターンの記録テンプレート
新しいパターンを登録する場合は以下の形式で記録してください:
## パターン名: [具体的な名前]
### 目的
- **解決する問題**:
- **適用場面**:
- **期待効果**:
### 実装例
\```[言語]
// コード例
\```
### 使用上の注意
- **制約事項**:
- **パフォーマンス影響**:
- **メンテナンス性**:
### 関連パターン
- **組み合わせ可能**:
- **代替パターン**:
4. パターンの追加
パターンを追加するには scripts/add-pattern.sh を実行できます:
bash .agents/skills/pattern-library/scripts/add-pattern.sh "パターン名"
# (.claude/skills / .cursor/skills も検出対象)
5. コマンドとの連携
ユーザーがパターンを登録したい場合は、/add-pattern コマンドの利用を案内してください。
6. パターン適用フロー
- 要件分析: 実装したい機能の要件を整理
- パターン検索: PATTERNS_TEMPLATE.md で類似パターンを検索
- パターン選択: 最適なパターンを選択・カスタマイズ
- 実装・テスト: パターンに基づいて実装
- フィードバック: パターンの改善点を記録