memory skill
✓ 検証済みエージェントが検証済みの再利用可能な知識やプロジェクトの規約を検索、保存、更新するための、永続的なナレッジレイヤーを提供します。
- GitHubスター
- 1,663
- ファイル
- 2
- 最終コミット
- 2026年11月9日
- ライセンス
- Apache-2.0
- 許可されたツール
- —
memory skillは何をしますか
memoryはAgent Skillsです。 エージェントが検証済みの再利用可能な知識やプロジェクトの規約を検索、保存、更新するための、永続的なナレッジレイヤーを提供します。.
skillのSKILL.mdから生成された要約。
memory skill について
このSKILLは、開発プロジェクトにおける永続的なナレッジレイヤーの維持をAIエージェントに可能にします。検証済みのプロジェクト規約、再利用可能な修正方法、アーキテクチャのルールをエージェントが検索、保存、更新できるようにすることで、異なるセッション間で同じ間違いを繰り返すのを防ぎます。開発者は npx ai-devkit@latest memory を介して memory CLI を使用してこの情報を管理し、重要な作業を開始する前に既存のコンテキストを検索することを徹底できます。
エージェントは、複雑なサブシステム、エラーパターン、または長期的な保存が必要な特定のプロジェクト制約に遭遇した際に、このツールをロードする必要があります。このツールは、グローバルレベル、特定のプロジェクト、または単一のレポジトリにスコープを設定できる構造化されたナレッジエントリを生成します。情報は通常 ~/.ai-devkit/memory.db に配置されるローカルデータベースに保持されます。単純なチャットのトランスクリプトとは異なり、このシステムは機密情報、生のログ、一時的なタスクの進捗を除外するための品質ゲートを適用し、検証済みの再利用可能なインテリジェンスのみに焦点を当てます。
エージェントができること
- 1プロジェクト規約の取得新しい実装タスクを開始する前に、確立されたコーディング標準やアーキテクチャのルールを検索します。
- 2検証済み技術修正の永続化テスト結果やコマンド出力によって確認された特定のコマンドやデバッグパターンを保存します。
- 3古い知識の更新コードベースからの新しい証拠が保存された情報と矛盾する場合、既存のメモリエントリを修正します。
- 4スコープによる知識の整理グローバル環境全体ではなく、単一のレポジトリに対して特定の技術的制約を適用します。
skill の SKILL.md から作成されています。すべてのユースケースは、その引用と照合されています。
memory skillのインストール方法
各コマンドはskillフォルダをクライアントのskillsディレクトリにコピーします。読み込むには、クライアントを再起動するか新しいセッションを開始してください。Claude Codeにmemory skillをインストールする
~/.claude/skills/memory/SKILL.md
$ npx degit codeaholicguy/ai-devkit/skills/memory ~/.claude/skills/memoryClaude Code (project)にmemory skillをインストールする
.claude/skills/memory/SKILL.md
$ npx degit codeaholicguy/ai-devkit/skills/memory .claude/skills/memoryCodexにmemory skillをインストールする
~/.agents/skills/memory/SKILL.md
$ npx degit codeaholicguy/ai-devkit/skills/memory ~/.agents/skills/memoryGemini CLIにmemory skillをインストールする
~/.gemini/skills/memory/SKILL.md
$ npx degit codeaholicguy/ai-devkit/skills/memory ~/.gemini/skills/memoryClaude.aiにmemory skillをインストールする
npx degit codeaholicguy/ai-devkit/skills/memory memory && zip -r memory.zip memory # claude.ai → Customize → Skills → + → Create skill → Upload a skill → memory.zip
自動チェック
実行日 2026年11月15日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。エージェントに実行させる前にスクリプトを読んでください。 チェックの仕組み · 点数を上げるための改善点
- ソースリポジトリがリンクされており、アクセス可能codeaholicguy/ai-devkit/skills/memory is public and reachablegithub.com/codeaholicguy/ai-devkit/tree/HEAD/skills/memory ↗合格
- オープンソースライセンス (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit 2026-11-09github.com/codeaholicguy/ai-devkit/commits ↗合格
- スクリプトにダウンロード実行や認証情報の窃取がないNo scripts in the skill folder合格
- SKILL.md に隠れた指示がないNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/codeaholicguy/ai-devkit/blob/HEAD/skills/memory/S ↗合格
- 事前許可ツールが限定されているNo pre-approved tools; the agent asks before using onegithub.com/codeaholicguy/ai-devkit/blob/HEAD/skills/memory/S ↗合格
- SKILL.md が Agent Skills の形式に従っているthe description does not say when to use the skillgithub.com/codeaholicguy/ai-devkit/blob/HEAD/skills/memory/S ↗検出事項
SKILL.md
GitHubで表示AI DevKit Memory CLI
Use npx ai-devkit@latest memory ... as the durable knowledge layer.
Workflow
-
For implementation, debugging, review, planning, or documentation tasks, search before deep work unless the task is trivial:
npx ai-devkit@latest memory search --query "<task, subsystem, error, or convention>" --limit 5For broad or risky tasks, search multiple angles: subsystem, error text, framework, command, and task intent.
-
Use results as context:
- Trust repo files, tests, fresh command output, and explicit user instructions over memory.
- If memory conflicts with verified evidence, use the evidence and update the stale memory.
- Mention memory only when it changes the plan or avoids asking the user again.
-
Search before storing:
npx ai-devkit@latest memory search --query "<knowledge to store>" --table -
Store or update only after the quality gate passes.
Quality Gate
Before storing, all must be true:
- Future sessions are likely to reuse it.
- It is verified by code, docs, tests, command output, or explicit user instruction.
- It is not merely a restatement of obvious nearby files unless it prevents repeated agent mistakes.
- It is scoped narrowly enough.
- Existing memory does not already cover it.
- It contains no secrets, credentials, private customer data, personal data, raw logs, or temporary paths.
Store:
- Project conventions, user preferences, durable decisions.
- Reusable fixes, testing patterns, commands, setup gotchas.
- Non-obvious constraints, architecture rules, failure patterns.
Do not store:
- Task progress, transcripts, speculation, generic programming facts.
- Raw errors without diagnosis.
- Anything the user did not intend to persist.
Commands
Search
npx ai-devkit@latest memory search \
--query "<query>" \
--tags "<tags>" \
--scope "<scope>" \
--limit 5
Use --table to get IDs for updates:
npx ai-devkit@latest memory search --query "<query>" --table
Options: --query/-q required; --tags; --scope/-s; --limit/-l from 1-20; --table.
Store
npx ai-devkit@latest memory store \
--title "<actionable title, 10-100 chars>" \
--content "<context, guidance, evidence, exceptions>" \
--tags "<lowercase,tags>" \
--scope "<global|project:name|repo:org/repo>"
Use this content shape when helpful:
Context: Where this applies.
Guidance: What to do.
Evidence: File, command, test, or user instruction.
Exceptions: When not to apply it.
Update
Find the ID with search --table, then update only changed fields:
npx ai-devkit@latest memory update \
--id "<memory-id>" \
--title "<updated title>" \
--content "<updated content>" \
--tags "<replacement,tags>" \
--scope "<updated scope>"
--tags replaces all existing tags.
Scoping
Use the narrowest useful scope:
repo:<org/repo>for one repository.project:<name>for one app, product, or workspace.globalonly for knowledge that applies across unrelated projects.
If unsure, use a narrower scope.
Troubleshooting
- CLI missing: run
npx ai-devkit@latest --version. - Duplicate title: search, then update the existing item if it is the same knowledge.
- Empty results: broaden terms, remove filters, or search symptoms and subsystem names separately.
- Validation error: check title/content lengths, query length, and
--limitrange. - DB path: default is
~/.ai-devkit/memory.db; project config can override it automatically.
このスキルのファイル
2memory skillに関する質問
Claude Codeにmemory skillをインストールするには
npx degit codeaholicguy/ai-devkit/skills/memory ~/.claude/skills/memoryを実行してください。Claude Codeは~/.claude/skills(すべてのプロジェクト)または.claude/skills(単一プロジェクト)からskillsを読み込み、説明がタスクに一致する場合にskillを使用します。
memory skillはどのクライアントで使用できますか
Agent Skills形式を読み込むすべてのクライアントで使用できます: Claude Code、Codex、Gemini CLI、claude.ai(ZIPとしてアップロード)。skill内のスクリプトは、クライアントがコード実行を許可した場合にのみ実行されます。
memory CLIに保存すべきでないものは何ですか?
タスクの進捗、トランスクリプト、推測、一般的なプログラミングの事実、診断なしの生のエラー、および機密情報や認証情報は保存しないでください。
メモリのスコープ設定にはどのようなオプションがありますか?
repo:<org/repo> で特定のレポジトリ、project:<name> で特定のプロジェクト、またはすべてのプロジェクトに適用される知識には global を使用してスコープを設定できます。