agentsclimarketplace

Pattern library

Skill shioki/Cursor-Knowledge-Management-System/templates/.cursor/skills/pattern-library

新機能の実装時に既存パターンの検索・適用、または新しい実装パターンの登録を行う場合に使用。アーキテクチャパターン、実装パターン、テストパターンを管理する。From its SKILL.md

Install
npx -y skills add shioki/Cursor-Knowledge-Management-System --skill pattern-library

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things 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.
  • runs commandsInstructs the agent to run 1 command, including `bash .cursor/skills/pattern-library/scripts/add-pattern.sh "パターン名"`.

SKILL.md

2.5 KB, 816 tokens by cl100k_base, 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 .cursor/skills/pattern-library/scripts/add-pattern.sh "パターン名"

5. コマンドとの連携

ユーザーがパターンを登録したい場合は、/add-pattern コマンドの利用を案内してください。

6. パターン適用フロー

  1. 要件分析: 実装したい機能の要件を整理
  2. パターン検索: PATTERNS_TEMPLATE.md で類似パターンを検索
  3. パターン選択: 最適なパターンを選択・カスタマイズ
  4. 実装・テスト: パターンに基づいて実装
  5. フィードバック: パターンの改善点を記録

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.