Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

continuous-learning持续学习

Agent Skill

continuous-learning 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,148

周安装

46

GitHub Stars

1,470

下载量

372
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:continuous-learning(持续学习)
来源仓库:https://github.com/rohitg00/awesome-claude-code-toolkit
仓库路径:skills/continuous-learning
安装命令:
npx skills add https://github.com/rohitg00/awesome-claude-code-toolkit --skill continuous-learning
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/rohitg00/awesome-claude-code-toolkit --skill continuous-learning

简介

用于记录任务执行中的错误和经验缺口。

  • 适合让 Agent 持续沉淀问题并修正最佳实践。
  • 可帮助优化后续任务的执行策略。continuous-learning 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 安装前建议确认权限范围和维护状态。
  • 注意是否会触发联网或命令执行。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Continuous Learning

Pattern Extraction Framework

After every significant coding session, extract and categorize learnings into three buckets:

  1. Corrections - Mistakes caught during review or by the user
  2. Successful Approaches - Patterns that worked well and should be repeated
  3. Anti-Patterns - Approaches that caused problems and should be avoided

Learning Entry Format

pattern:
  id: "LEARN-2025-0042"
  category: "error-handling"
  type: "correction"         # correction | success | anti-pattern
  confidence: 0.85           # 0.0 to 1.0
  language: "typescript"
  context: "API error responses"
  observation: "Returning raw error messages from database exceptions exposes internals"
  lesson: "Always map database errors to application-level error codes before returning"
  example:
    before: "catch (e) { res.status(500).json({ error: e.message }) }"
    after: "catch (e) { logger.error(e); res.status(500).json({ error: 'INTERNAL_ERROR' }) }"
  frequency: 3               # times this pattern has been observed
  last_seen: "2025-06-15"

Confidence Scoring

ScoreMeaningAction
0.95+Verified across multiple projectsApply automatically
0.80-0.94Confirmed in this codebaseApply and mention
0.60-0.79Observed but not fully validatedSuggest with caveat
0.40-0.59Hypothesis based on limited dataAsk before applying
<0.40Speculative, needs validationDocument but do not apply

Update confidence based on:

  • +0.10 when pattern is confirmed correct by user
  • +0.05 when pattern is observed again in a different context
  • -0.15 when pattern leads to a correction
  • -0.20 when pattern is explicitly rejected by user

Session Wrap-Up Protocol

At the end of each session or before context compaction:

  1. Review changes made - Scan diffs for patterns
  2. Identify corrections - What was changed after initial implementation?
  3. Note successful first-attempts - What worked without revision?
  4. Record environment details - Framework versions, config specifics
  5. Update confidence scores - Adjust based on session outcomes
  6. Write to knowledge base - Append new entries to CLAUDE.md or LEARNED.md
## Session Learnings (2025-06-15)

### Corrections Applied
- [0.85] TypeScript: Use `satisfies` instead of `as` for type narrowing with object literals
- [0.90] Next.js: Server Actions must be async functions, even for synchronous operations

### Successful Patterns
- [0.80] PostgreSQL: Partial indexes on status columns reduced query time by 60%
- [0.75] React: Extracting data fetching into Server Components eliminated 3 useEffect hooks

### Anti-Patterns Identified
- [0.70] Avoid: Nesting more than 2 levels of Suspense boundaries (causes waterfall)
- [0.65] Avoid: Using `any` to suppress TypeScript errors in catch blocks (use `unknown`)

Knowledge Base Organization

Structure the knowledge base by domain:

knowledge/
  error-handling.md      # Error patterns across languages
  testing.md             # Test patterns and anti-patterns
  performance.md         # Optimization learnings
  api-design.md          # API design decisions
  deployment.md          # Infrastructure learnings
  project-specific.md    # Current project conventions

Each file follows the same entry format. Deduplicate entries with matching observation fields by incrementing frequency and updating confidence.

Correction Tracking

When a user corrects code or approach:

  1. Record what was originally produced
  2. Record what the correction was
  3. Identify the root cause (wrong assumption, missing context, outdated pattern)
  4. Create or update a learning entry
  5. Search for similar patterns that might need the same correction
### Correction Log
- **Original**: Used `useEffect` to fetch data on mount
- **Correction**: Moved data fetching to Server Component
- **Root cause**: Applied client-side SPA pattern in Server Component context
- **Generalization**: In Next.js App Router, prefer server-side data fetching for initial page data
- **Confidence**: 0.90 (confirmed across 4 components)

Pattern Reinforcement

Track how often patterns are applied and whether they hold:

Pattern: "Use zod for API input validation"
  Applied: 12 times
  Confirmed: 11 times
  Corrected: 1 time (edge case with file uploads)
  Confidence: 0.92
  Status: ESTABLISHED

Statuses:

  • EMERGING (frequency < 3) - New pattern, needs validation
  • GROWING (frequency 3-7) - Building evidence, apply with mention
  • ESTABLISHED (frequency 8+, confidence > 0.85) - Apply automatically
  • DEPRECATED - Once valid, now superseded by a better approach

Integration with Memory Files

Store learnings in the project's memory file (CLAUDE.md or equivalent):

  • High-confidence learnings (>0.85) go in the main instructions section
  • Medium-confidence (0.60-0.84) go in a dedicated "Learnings" section
  • Low-confidence (<0.60) stay in session notes until validated
  • Deprecated patterns move to an archive section with reason for deprecation

Review and prune the knowledge base monthly. Remove entries that have not been referenced in 90 days and have confidence below 0.70.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.38%
按下载量换算128

Claude

30.47%
按下载量换算113

Cursor

19.63%
按下载量换算73

Gemini CLI

9.27%
按下载量换算34

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills