
Knowledge Capture
FreePersist valuable insights from conversations.
Free · Opens the source repo
What Knowledge Capture does
The Knowledge Capture skill is designed to help users systematically document and retain important insights from their conversations. By focusing on best practices, coding conventions, architectural decisions, and user feedback, this skill ensures that valuable knowledge is not lost but instead stored for future reference. It allows users to create a structured memory of learnings that can be easily accessed and utilized in future projects or discussions.
This skill operates by reviewing the current conversation and identifying key learnings. It emphasizes capturing best practices, which include effective patterns, anti-patterns to avoid, quality standards, and the rationale behind decisions made during discussions. In addition to best practices, it also captures other valuable knowledge such as coding conventions, project architecture decisions, and workflows that have been developed.
When using this skill, users can choose where to store each piece of knowledge. For preferences and guidelines, the skill directs users to update their memory in AGENTS.md, while reusable workflows and methodologies can be saved as skills in a structured format. This dual approach allows for both quick reference and in-depth processes to be documented effectively.
The Knowledge Capture skill is particularly useful for teams and individuals who engage in collaborative coding or design discussions. It ensures that insights gained during these conversations are preserved, allowing for continuous improvement and adherence to established best practices in future work.
When to use it
Use this skill when you want to document important learnings from a conversation, especially when prompted by phrases like 'remember this' or 'capture learnings.'
When not to use it
This skill may not be suitable for capturing detailed technical specifications or complex project requirements that require more structured documentation.
What you can build with it
Documenting Coding Standards
After a team discussion on coding standards, use the skill to capture the agreed-upon conventions and store them for future reference.
Creating a Workflow for Code Reviews
When discussing best practices for code reviews, create a reusable skill that encodes the agreed-upon processes and methodologies.
Storing Architectural Decisions
After making key architectural decisions during a project meeting, use the skill to document the rationale and decisions for future projects.
How to install Knowledge Capture
View source1. Install with the skills CLI
npx skills add langchain-ai/deepagents/remember --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by langchain-aiReview our conversation and capture valuable knowledge. Focus especially on best practices we discussed or discovered—these are the most important things to preserve.
Step 1: Identify Best Practices and Key Learnings
Scan the conversation for:
Best Practices (highest priority)
- Patterns that worked well - approaches, techniques, or solutions we found effective
- Anti-patterns to avoid - mistakes, gotchas, or approaches that caused problems
- Quality standards - criteria we established for good code, documentation, or processes
- Decision rationale - why we chose one approach over another
Other Valuable Knowledge
- Coding conventions and style preferences
- Project architecture decisions
- Workflows and processes we developed
- Tools, libraries, or techniques worth remembering
- Feedback I gave about your behavior or outputs
Step 2: Decide Where to Store Each Learning
For each best practice or learning, choose the right destination:
-> Memory (AGENTS.md) for preferences and guidelines
Use memory when the knowledge is:
- A preference or guideline (not a multi-step process)
- Something to always keep in mind
- A simple rule or pattern
Global (~/.deepagents/agent/AGENTS.md): Universal preferences across all projects
Project (.deepagents/AGENTS.md): Project-specific conventions and decisions
-> Skill for reusable workflows and methodologies
Create a skill when we developed:
- A multi-step process worth reusing
- A methodology for a specific type of task
- A workflow with best practices baked in
- A procedure that should be followed consistently
Skills are more powerful than memory entries because they can encode how to do something well, not just what to remember.
Step 3: Create Skills for Significant Best Practices
If we established best practices around a workflow or process, capture them in a skill.
Example: If we discussed best practices for code review, create a code-review skill that encodes those practices into a reusable workflow.
Skill Location
~/.deepagents/agent/skills/<skill-name>/SKILL.md
Skill Structure
skill-name/
├── SKILL.md (required - main instructions with best practices)
├── scripts/ (optional - executable code)
├── references/ (optional - detailed documentation)
└── assets/ (optional - templates, examples)
SKILL.md Format
---
name: skill-name
description: "What this skill does AND when to use it. Include triggers like 'when the user asks to X' or 'when working with Y'. This description determines when the skill activates."
---
# Skill Name
## Overview
Brief explanation of what this skill accomplishes.
## Best Practices
Capture the key best practices upfront:
- Best practice 1: explanation
- Best practice 2: explanation
## Process
Step-by-step instructions (imperative form):
1. First, do X
2. Then, do Y
3. Finally, do Z
## Common Pitfalls
- Pitfall to avoid and why
- Another anti-pattern we discovered
Key Principles
- Encode best practices prominently - Put them near the top so they guide the entire workflow
- Concise is key - Only include non-obvious knowledge. Every paragraph should justify its token cost.
- Clear triggers - The description determines when the skill activates. Be specific.
- Imperative form - Write as commands: "Create a file" not "You should create a file"
- Include anti-patterns - What NOT to do is often as valuable as what to do
Step 4: Update Memory for Simpler Learnings
For preferences, guidelines, and simple rules that don't warrant a full skill:
## Best Practices
- When doing X, always Y because Z
- Avoid A because it leads to B
Use edit_file to update existing files or write_file to create new ones.
Step 5: Summarize Changes
List what you captured and where you stored it:
- Skills created (with key best practices encoded)
- Memory entries added (with location)
Frequently asked questions about Knowledge Capture
Similar skills
Skill Creator
Efficiently create and manage skills for Gemini CLI.
Agent Development
Create and manage autonomous agents for Claude Code.
Math Olympiad Solver
Solve and verify competition math problems effectively.
Microsoft Skill Creator
Create specialized skills for Microsoft technologies.
Doublecheck
A verification pipeline for AI-generated claims.
Skill Development for Claude Code
Create and enhance skills for Claude Code plugins.
