pattern-library
Skill1 starsChanged 47 days agoMITView on GitHub
新機能の実装時に既存パターンの検索・適用、または新しい実装パターンの登録を行う場合に使用。アーキテクチャパターン、実装パターン、テストパターンを管理する。
3 other projects use a version of this.
Adopted by
Most recently taken up by
- wjlgatech/design-anythingtheir own version, first seen Jul 18, 2026
- miovrag/claude-skillstheir own version, first seen Jun 12, 2026
- launchapp-dev/animus-clitheir own version, first seen Mar 15, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- launchapp-dev/animus-cli★ 39same name
- miovrag/claude-skills★ 1same name
- wjlgatech/design-anything★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-patternSkill
- debug-workflowSkill
- improvement-trackingSkill
- knowledge-managementSkill
- log-improvementSkill
- project-contextSkill
- project-setupSkill
- record-decisionSkill
- review-knowledgeSkill
- start-debugSkill
- team-standardsSkill
- update-contextSkill
The file
Files
パターンライブラリ
プロジェクトで使用する実装パターン、設計パターン、テストパターンを管理・適用するスキルです。
When to Use
- 新機能の実装前に既存パターンを確認したいとき
- 実装方法のベストプラクティスを知りたいとき
- 新しい実装パターンを登録したいとき
- リファクタリング時にパターンの統一を図りたいとき
Instructions
1. 既存パターンの確認
パターンは 1 パターン 1 ファイルで references/patterns/ に保存されています。
まず references/patterns/README.md(索引)を読み、関連しそうなパターンだけを個別に開いてください。索引が存在しない場合や移行中のプロジェクトでは、レガシーな references/PATTERNS_TEMPLATE.md にも記録が残っている可能性があります。
2. パターンの分類
パターンは以下のカテゴリで管理します:
- アーキテクチャパターン: MVC/MVP/MVVM, Repository, Factory, Observer 等
- 実装パターン: API呼び出し、エラーハンドリング、ログ出力、バリデーション等
- テストパターン: 単体テスト、統合テスト、E2Eテスト、モック活用等
3. パターンの記録テンプレート
新しいパターンは references/patterns/スラッグ.md として作成します。
---
title: "パターン名"
description: "" # 1 行サマリを記入
tags: [pattern]
updated: YYYY-MM-DD
---
# 目的
- **解決する問題**:
- **適用場面**:
- **期待効果**:
# 実装例
# 使用上の注意
- **制約事項**:
- **パフォーマンス影響**:
- **メンテナンス性**:
# 関連パターン
- **組み合わせ可能**:
- **代替パターン**:ファイルを作成したら、references/patterns/README.md の一覧表にも 1 行追加してください。
4. パターンの追加
ひな形の生成と索引の更新は scripts/add-pattern.sh が行います:
bash .agents/skills/pattern-library/scripts/add-pattern.sh "パターン名"
# (.claude/skills / .cursor/skills も検出対象)5. アクションスキルとの連携
ユーザーがパターンを登録したい場合は、/add-pattern の利用を案内してください。
6. パターン適用フロー
- 要件分析: 実装したい機能の要件を整理
- パターン検索:
references/patterns/README.mdの索引から類似パターンを探す - パターン選択: 最適なパターンを選択・カスタマイズ
- 実装・テスト: パターンに基づいて実装
- フィードバック: パターンの改善点を記録
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

