AgentSkillsCN

experience-record

记录经验教训与心得体会,以备日后参考。适用于解决 Bug、发现规律、做出决策,或完成复杂功能后使用。

SKILL.md
--- frontmatter
name: experience-record
description: Record lessons learned and experiences for future reference. Use after solving bugs, discovering patterns, making decisions, or completing complex features.

Record Experience

Capture valuable lessons for future reference.

Categories

TagUse For
[BUG]Bug solutions
[PATTERN]Successful patterns
[PITFALL]Things to avoid
[DECISION]Important choices
[PERF]Optimizations

Template

markdown
# [CATEGORY] Title

## TL;DR
[One sentence]

## Problem
[What was the issue]

## Solution
[How it was solved]

## Code Example
```language
// Before (bad)
...

// After (good)
...

Prevention

[How to avoid in future]

Tags

#tag1 #tag2

code

## Example

```markdown
# [BUG] Null Pointer in User Query

## TL;DR
Check for null before accessing user properties.

## Problem
API crashed on non-existent user.

## Solution
Added null check and 404 response.

## Prevention
- Unit tests for null cases
- Use Optional types

Storage

code
wiki/experience/
├── bugs/
├── patterns/
└── decisions/

Tips

  • Write while context is fresh
  • Include code examples
  • Add searchable tags