cc-skill-continuous-learning – skill Lập trình cho agent AI
Biến một phiên gỡ lỗi đã hoàn thành hoặc lần người dùng sửa lại nhiều lần thành một quy trình nhỏ, có bằng chứng. Dùng khi người dùng yêu cầu rõ ràng ghi lại bài học tái sử dụng; không tự động trích xuất hay lưu bộ nhớ.
Cài skill cc-skill-continuous-learning bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/cc-skill-continuous-learning-068cc.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /cc-skill-continuous-learning – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/cc-skill-continuous-learning-068cc.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $cc-skill-continuous-learning – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/cc-skill-continuous-learning-068cc.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /cc-skill-continuous-learning – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/cc-skill-continuous-learning-068cc.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /cc-skill-continuous-learning – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Continuous Learning from a Completed Session
Capture one reusable lesson whose trigger, fix and verification can be explained without preserving a private conversation. The output is a reviewed procedure, not an automatic memory update.
When to Use
Use after a resolved failure, a repeated project-specific correction, or an explicit request to save what was learned. Skip one-off typos, unresolved guesses, transient provider outages and lessons already covered by project documentation. A long session alone does not make a lesson reusable.
Inputs and prerequisites
- An authorized session summary or transcript, affected code or configuration, and the command or observation that confirmed the fix.
- The scope of the lesson: this repository, this tool version, or a more general procedure.
- An existing authorized documentation destination. If saving was not requested, return a draft in the conversation; do not update user memory, install skills, or modify agent configuration automatically.
- The optional [session-length helper](evaluate-session.sh) requires Bash and Python 3. Its only setting is
min_session_lengthin [config.json](config.json).
Procedure
1. Identify the failed assumption and final observed behavior. Keep unsuccessful hypotheses separate from the verified cause.
2. Check the current source and test result. A remembered fix that was never exercised stays an open hypothesis.
3. State a narrow trigger and prerequisites. Include the runtime or tool version when the fix depends on it.
4. Write the smallest sequence that reproduces the diagnosis and verifies the repair. Include an expected result and a counterexample where the procedure should not be used.
5. Remove secrets, user names, absolute personal paths, private messages and unrelated repository details. Prefer a minimal synthetic example to copying a transcript.
6. Compare with existing instructions. Amend an existing project note when authorized instead of creating another overlapping skill. Preserve provenance and distinguish the original observation from later generalization.
7. Present the draft and its evidence. Save only within the scope already authorized by the user, then read back the saved result.
Worked example
Illustrative input: a React test observed an old success message after the input changed, before new asynchronous validation completed. The fix associates each result with the exact current input; the regression changes the input and asserts that stale success disappears immediately.
Trigger: asynchronous validation results can outlive the input they describe.
Prerequisites: the component stores input and an async validation result.
Procedure: bind the result to its input; display pending state until that binding
matches; ignore results from superseded requests.
Verify: change a valid input to an invalid one while validation is pending.
Expected: no previous success is displayed; the final error belongs to the new input.
Limit: this does not establish the semantic correctness of the validation itself.Use actual project paths and test output when recording a real lesson. This is an illustrative pattern, not a claim that a particular user's test passed.
Optional session-length reminder
bash skills/cc-skill-continuous-learning/evaluate-session.sh /absolute/path/to/session.jsonlThe helper counts JSONL objects whose top-level type equals user. It prints a count and review reminder to stderr after the configured threshold. It does not extract patterns, invoke a model, create directories, or save anything. CLAUDE_TRANSCRIPT_PATH is an optional caller-supplied fallback; no host is assumed to populate it. Automatic hook integration is not configured by this skill.
Limitations
- Transcript formats differ across clients. Other message schemas need an explicit adapter; zero messages does not prove that no useful work occurred.
- The helper rejects links, non-regular files, invalid JSONL, files above 16 MiB and lines above 1 MiB. It never prints transcript contents.
- A successful length check is not a semantic review, privacy review or authorization to persist a lesson.
- Recheck version-specific lessons before reuse. Do not promote a project workaround into a universal instruction without additional evidence.
Skill liên quan
- python-observability – Mẫu observability cho Python gồm logging có cấu trúc, metrics và distributed tracing…
- hivemind – Điều phối các worker opencode miễn phí từ Claude Code để giảm chi phí token. Dùng khi…
- cc-skill-security-review – Hướng dẫn rà soát các thực hành bảo mật và lỗ hổng tiềm ẩn; không có checklist nào đảm…
- python-packaging – Tạo gói Python có thể phân phối với cấu trúc dự án đúng chuẩn, setup.py/pyproject.toml…
- pufferlib – Hướng dẫn theo phiên bản cho môi trường học tăng cường PufferLib, vectorization, policy…
- chrome-extension-developer – Chuyên gia xây dựng tiện ích mở rộng Chrome theo Manifest V3. Bao gồm background…
- python-performance-optimization – Phân tích hiệu năng và tối ưu code Python bằng cProfile, công cụ đo bộ nhớ và các thực…
- human-gate – Chạy làn xác minh của con người trong vòng lặp agent, và chứng minh việc review đã diễn…