360 Secure SkillHub
360 安全技能中心

Self-Improving Plus

核心功能含错误/学习记录、技能提炼、GitHub高星知识库集成、自动技能提取及定期复盘。典型场景:命令失败时记录错误,用户纠错后留存学习内容,发现通用方案时提炼复用技能,遇知识缺口时查询GitHub知识库。输入为各类学习/错误信息,输出为结构化日志、可复用技能文档及知识库研究结果,适合需持续积累技能的开发场景。

534422530
534422530
热度 16.02
最近更新 2026-06-05 12:23:35
分类:知识依赖:读写文件 / 联网浏览搜索 / 内部调用大模型应用场景:笔记整理 / 研究 / 工作流 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add self-improving-plus
Metadata
name
self-improving-plus
description
Enhanced self-improvement skill with skill distillation, knowledge base integration, and automatic skill extraction. Logs errors, corrections, and learnings; distills patterns into reusable skills; integrates with GitHub high-star project knowledge base.
metadata
{"author":"opencode","version":2,"tags":"self-improvement, learning, skill-creation, knowledge-base","compatibility":"opencode","license":"MIT"}

Self-Improving Plus

Enhanced self-improvement skill with automatic skill distillation, knowledge base integration, and GitHub high-star project learning.

Features

  • Error/Correction Logging: Track learnings, errors, and feature requests
  • Skill Distillation: Extract reusable skills from learnings
  • Knowledge Base Integration: Connect with GitHub high-star project database
  • Automatic Skill Extraction: Auto-create skills from recurring patterns
  • Periodic Review: Regular review and promotion of learnings

Setup

mkdir -p .learnings

Quick Reference

Situation Action
Command/operation fails Log to .learnings/ERRORS.md
User corrects you Log to .learnings/LEARNINGS.md with category correction
User wants missing feature Log to .learnings/FEATURE_REQUESTS.md
Found better approach Log to .learnings/LEARNINGS.md with category best_practice
Recurring pattern detected Extract as reusable skill
Knowledge gap identified Search GitHub high-star projects for solutions

Logging Format

Learning Entry

## [LRN-YYYYMMDD-XXX] category

**Logged**: ISO-8601 timestamp
**Priority**: low | medium | high | critical
**Status**: pending
**Area**: frontend | backend | infra | tests | docs | config

### Summary
One-line description of what was learned

### Details
Full context: what happened, what was wrong, what's correct

### Suggested Action
Specific fix or improvement to make

### Metadata
- Source: conversation | error | user_feedback
- Related Files: path/to/file.ext
- Tags: tag1, tag2
- See Also: LRN-20250110-001 (if related to existing entry)
- Pattern-Key: simplify.dead_code | harden.input_validation (optional)
- Recurrence-Count: 1 (optional)
- First-Seen: 2025-01-15 (optional)
- Last-Seen: 2025-01-15 (optional)

Error Entry

## [ERR-YYYYMMDD-XXX] skill_or_command_name

**Logged**: ISO-8601 timestamp
**Priority**: high
**Status**: pending

### Summary
Brief description of what failed

### Error
Actual error message or output

### Context
- Command/operation attempted
- Input or parameters used
- Environment details if relevant

### Suggested Fix
If identifiable, what might resolve this

### Metadata
- Reproducible: yes | no | unknown
- Related Files: path/to/file.ext

Skill Distillation Workflow

When a learning becomes valuable enough to be a reusable skill:

Extraction Criteria

Criterion Description
Recurring Has See Also links to 2+ similar issues
Verified Status is resolved with working fix
Non-obvious Required actual debugging/investigation to discover
Broadly applicable Not project-specific; useful across codebases

Extraction Process

  1. Identify candidate: Learning meets extraction criteria
  2. Create skill directory: skills/<skill-name>/
  3. Write SKILL.md: Use standard skill format with YAML frontmatter
  4. Update learning: Set status to promoted_to_skill, add Skill-Path
  5. Publish to ClawHub: Share with community

Knowledge Base Integration

Connect with GitHub high-star project database for research:

### Research Query
- Topic: [subject to research]
- Related Projects: [list relevant projects]
- Search Strategy: [how to find solutions]

Periodic Review

Review .learnings/ at natural breakpoints:

  • Before starting a new major task
  • After completing a feature
  • When working in an area with past learnings
  • Weekly during active development

Review Actions

  • Resolve fixed items
  • Promote applicable learnings
  • Link related entries
  • Escalate recurring issues
  • Extract recurring patterns as skills

Best Practices

  1. Log immediately - context is freshest right after the issue
  2. Be specific - future agents need to understand quickly
  3. Include reproduction steps - especially for errors
  4. Link related files - makes fixes easier
  5. Suggest concrete fixes - not just "investigate"
  6. Use consistent categories - enables filtering
  7. Promote aggressively - if in doubt, add to CLAUDE.md or .github/copilot-instructions.md
  8. Review regularly - stale learnings lose value
  9. Extract skills - recurring patterns become reusable skills
  10. Connect to knowledge base - research solutions from high-star projects