AgentSkillsCN

team-shinchan:memories

查看并管理已学记忆(模式、偏好、失误、决策)。用于核查当前的学习成果。

SKILL.md
--- frontmatter
name: team-shinchan:memories
description: View and manage learned memories (patterns, preferences, mistakes, decisions). Use to check current learnings.
user-invocable: true

Memories Skill

View what Team-Shinchan has learned about this project.

Usage

bash
/team-shinchan:memories              # View all learnings
/team-shinchan:memories pattern      # Filter by category
/team-shinchan:memories search auth  # Search for keyword

Process

Step 1: Read Learning File

Read .team-shinchan/learnings.md

If file doesn't exist:

code
📚 [Memories] No learnings yet.

Start teaching with:
  /team-shinchan:learn "Your learning here"

Or just work - I learn automatically after tasks!

Step 2: Parse and Display

Full view (/memories):

code
📚 [Memories] {N} learnings stored

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📌 PREFERENCES ({count})
• Use Zustand over Redux [high] #state-management
• Prefer functional components [high] #react

📌 PATTERNS ({count})
• Early returns for validation [high] #typescript
• Repository pattern for data access [medium] #architecture

📌 CONVENTIONS ({count})
• Use pnpm, not npm [high] #tooling
• camelCase for functions [high] #naming

📌 MISTAKES ({count})
• Always null-check before .map() [high] #typescript

📌 DECISIONS ({count})
• JWT with refresh token rotation [high] #auth

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

💡 These learnings are applied automatically.
🗑️ Use /team-shinchan:forget to remove outdated ones.

Filtered view (/memories pattern):

code
📚 [Memories] Showing: patterns

• Early returns for validation [high]
  Context: Learned from UserService refactor

• Repository pattern for data access [medium]
  Context: Applied during database migration

Found 2 patterns.

Search view (/memories search auth):

code
📚 [Memories] Search: "auth"

1. [decision] JWT with refresh token rotation
   Tags: #auth #security #jwt

2. [pattern] Auth middleware pattern
   Tags: #auth #middleware

Found 2 results.

Memory Categories

CategoryDescriptionIcon
preferenceUser preferences💜
patternReusable code patterns🔷
conventionProject conventions📏
mistakeErrors to avoid⚠️
decisionArchitecture decisions🏗️
insightGeneral insights💡

Important

  • Learnings are stored in .team-shinchan/learnings.md
  • Automatically loaded at session start
  • Higher confidence learnings are prioritized
  • Old learnings can be removed with /forget