self-improving-coding
БесплатноЗапускает вложенные скриптыНе проверенCaptures lint errors, type mismatches, runtime bugs, anti-patterns, refactoring opportunities, language idiom gaps, debugging insights, and tooling issues to…
от jose-compu1 329 установок в других каталогахОб этом скилле
Self-Improving Coding Skill
Log coding-specific learnings, bug patterns, and feature requests to markdown files for continuous improvement. Captures lint errors, type mismatches, runtime bugs, anti-patterns, refactoring opportunities, language idiom gaps, debugging insights, and tooling issues. Important learnings get promoted to style guides, lint rules, code snippet libraries, or debug playbooks.
First-Use Initialisation
Before logging anything, ensure the .learnings/ directory and files exist in the project or workspace root. If any are missing, create them:
mkdir -p .learnings
[ -f .learnings/LEARNINGS.md ] || printf "# Coding Learnings\n\nBug patterns, anti-patterns, idiom gaps, debugging insights, and tooling issues captured during development.\n\n**Categories**: bug_pattern | anti_pattern | refactor_opportunity | idiom_gap | tooling_issue | debugging_insight\n**Areas**: syntax | logic | data_structures | algorithms | error_handling | testing | tooling\n\n---\n" > .learnings/LEARNINGS.md
[ -f .learnings/BUG_PATTERNS.md ] || printf "# Bug Patterns Log\n\nRecurring bugs, common mistakes, and error patterns.\n\n---\n" > .learnings/BUG_PATTERNS.md
[ -f .learnings/FEATURE_REQUESTS.md ] || printf "# Feature Requests\n\nCoding tools, capabilities, and automation requests.\n\n---\n" > .learnings/FEATURE_REQUESTS.md
Never overwrite existing files. This is a no-op if .learnings/ is already initialised.
Do not log secrets, tokens, private keys, or environment variables. Prefer short summaries or redacted excerpts over raw stack traces or full source files.
If you want automatic reminders, use the opt-in hook workflow described in Hook Integration.
Quick Reference
| Situation | Action |
|---|---|
| Lint error encountered | Log to .learnings/BUG_PATTERNS.md with error rule and fix |
| Type error from checker | Log to .learnings/BUG_PATTERNS.md with type mismatch details |
| Runtime exception thrown | Log to .learnings/BUG_PATTERNS.md with stack trace summary |
| Anti-pattern found in code | Log to .learnings/LEARNINGS.md with category anti_pattern |
| Refactoring opportunity | Log to .learnings/LEARNINGS.md with category refactor_opportunity |
| Better idiom discovered | Log to .learnings/LEARNINGS.md with category idiom_gap |
| Debugging breakthrough | Log to .learnings/LEARNINGS.md with category debugging_insight |
| Tooling issue encountered | Log to .learnings/LEARNINGS.md with category tooling_issue |
| Recurring bug pattern | Link with **See Also**, consider priority bump |
| Broadly applicable pattern | Promote to style guide, lint rule, or debug playbook |
| Reusable code solution | Promote to code snippets library |
OpenClaw Setup (Recommended)
OpenClaw is the primary platform for this skill. It uses workspace-based prompt injection with automatic skill loading.
Installation
Via ClawdHub (recommended):
clawdhub install self-improving-coding
Manual:
git clone https://github.com/jose-compu/self-improving-coding.git ~/.openclaw/skills/self-improving-coding
Manual clone is optional. Check out a reviewed tag or commit before use. Do not install an unpinned default branch into a shared environment.
Workspace Structure
OpenClaw injects these files into every session:
~/.openclaw/workspace/
├── AGENTS.md # Multi-agent workflows, delegation patterns
├── SOUL.md # Behavioral guidelines, personality, principles
├── TOOLS.md # Tool capabilities, integration gotchas
├── MEMORY.md # Long-term memory (main session only)
├── memory/ # Daily memory files
│ └── YYYY-MM-DD.md
└── .learnings/ # This skill's log files
├── LEARNINGS.md
├── BUG_PATTERNS.md
└── FEATURE_REQUESTS.md
Create Learning Files
mkdir -p ~/.openclaw/workspace/.learnings
Then create the log files (or copy from assets/):
LEARNINGS.md— anti-patterns, idiom gaps, debugging insights, tooling issuesBUG_PATTERNS.md— lint errors, type mismatches, runtime exceptions, recurring bugsFEATURE_REQUESTS.md— coding tools, automation, IDE capabilities
Promotion Targets
When coding learnings prove broadly applicable, promote them:
| Learning Type | Promote To | Example |
|---|---|---|
| Code style patterns | Style guide | "Always use early returns over nested if/else" |
| Recurring lint fixes | Lint rules (.eslintrc, ruff.toml) |
"Disallow mutable default arguments" |
| Reusable solutions | Code snippets library | "Retry with exponential backoff" |
| Debugging workflows | Debug playbooks | "Race condition diagnosis steps" |
| Tool configuration | TOOLS.md |
"TypeScript strict mode catches 80% of null bugs" |
| Workflow patterns | AGENTS.md |
"Run type checker before committing" |
Optional: Enable Hook
Opt-in and workspace-local. Do not copy this hook to `~/.openclaw/
Установить self-improving-coding в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл self-improving-coding?
Captures lint errors, type mismatches, runtime bugs, anti-patterns, refactoring opportunities, language idiom gaps, debugging insights, and tooling issues to enable continuous coding improvement. Use when: (1) A lint or type error occurs, (2) A runtime exception is thrown, (3) An anti-pattern is identified in code, (4) A refactoring opportunity is discovered, (5) A better language idiom is found, (6) A debugging breakthrough reveals root cause, (7) A tooling issue blocks development.
Как установить скилл self-improving-coding?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл self-improving-coding запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic