AgentSkillsCN

team-shinchan:learn

手动将新的学习内容(模式、偏好、规则)添加至记忆中。当你希望记住特定信息时,可使用此功能。

SKILL.md
--- frontmatter
name: team-shinchan:learn
description: Manually add new learnings (patterns, preferences, rules) to memory. Use when you want to remember specific information.
user-invocable: true

Learn Skill

Manually teach Team-Shinchan something to remember.

Usage

bash
/team-shinchan:learn "Always use TypeScript strict mode in this project"
/team-shinchan:learn "User prefers functional components over class components"
/team-shinchan:learn "This project uses pnpm, not npm"

Process

Step 1: Receive Learning Input

User provides something to remember.

Step 2: Auto-Categorize

Keywords in InputCategory
prefer, like, wantpreference
pattern, approach, waypattern
always, never, ruleconvention
error, mistake, bug, avoidmistake
decided, architecture, designdecision
use, using, project usesconvention
otherinsight

Step 3: Save to Learning File

File: .team-shinchan/learnings.md

Create file if it doesn't exist, then append:

markdown
## [YYYY-MM-DD HH:MM] {category}: {title}

**Context**: Manually taught by user
**Learning**: {full learning content}
**Confidence**: high
**Tags**: #{auto-generated tags}

---

Step 4: Confirm

code
🧠 [Learn] Saved to memory:

Category: {category}
Learning: "{content}"
Confidence: high

📁 Location: .team-shinchan/learnings.md
💡 This will be applied in future sessions.

Examples

Input: /learn "Use Zustand for state management, not Redux"

Output:

code
🧠 [Learn] Saved to memory:

Category: preference
Learning: "Use Zustand for state management, not Redux"
Confidence: high

📁 Location: .team-shinchan/learnings.md
💡 This will be applied in future sessions.

Saved to file:

markdown
## [2024-02-03 16:00] preference: Use Zustand over Redux

**Context**: Manually taught by user
**Learning**: Use Zustand for state management, not Redux
**Confidence**: high
**Tags**: #state-management #zustand #redux #preference

---

Important

  • Learnings are project-specific (saved in .team-shinchan/)
  • High confidence because user explicitly taught it
  • Will be loaded at every session start
  • Can be removed with /team-shinchan:forget