← 返回
开发者工具

Coding

Coding style memory that adapts to your preferences, conventions, and patterns for consistent coding.
自动记忆编码风格,适应你的偏好、规范和模式,保持代码一致性。
ivangdavila
开发者工具 clawhub v1.0.3 1 版本 97201.2 Key: 无需
★ 21
Stars
📥 14,722
下载
💾 2,889
安装
1
版本
#latest

概述

When to Use

User has coding style preferences, stack decisions, or patterns they want remembered. Agent learns ONLY from explicit corrections and confirmations, never from observation.

Architecture

Memory lives in ~/coding/ with tiered structure. See memory-template.md for setup.

~/coding/
├── memory.md      # Active preferences (≤100 lines)
└── history.md     # Archived old preferences

Quick Reference

TopicFile
-------------
Categories of preferencesdimensions.md
When to add preferencescriteria.md
Memory templatesmemory-template.md

Data Storage

All data stored in ~/coding/. Create on first use:

mkdir -p ~/coding

Scope

This skill ONLY:

  • Learns from explicit user corrections ("I prefer X over Y")
  • Stores preferences in local files (~/coding/)
  • Applies stored preferences to code output

This skill NEVER:

  • Reads project files to infer preferences
  • Observes coding patterns without consent
  • Makes network requests
  • Reads files outside ~/coding/
  • Modifies its own SKILL.md

Core Rules

1. Learn from Explicit Feedback Only

  • User corrects output → ask: "Should I remember this preference?"
  • User confirms → add to ~/coding/memory.md
  • Never infer from silence or observation

2. Confirmation Required

No preference is stored without explicit user confirmation:

  • "Actually, I prefer X" → "Should I remember: prefer X?"
  • User says yes → store
  • User says no → don't store, don't ask again

3. Ultra-Compact Format

Keep each entry 5 words max:

  • python: prefer 3.11+
  • naming: snake_case for files
  • tests: colocated, not separate folder

4. Category Organization

Group by type (see dimensions.md):

  • Stack — frameworks, databases, tools
  • Style — naming, formatting, comments
  • Structure — folders, tests, configs
  • Never — explicitly rejected patterns

5. Memory Limits

  • memory.md ≤100 lines
  • When full → archive old patterns to history.md
  • Merge similar entries: "no Prettier" + "no ESLint" → "minimal tooling"

6. On Session Start

  1. Load ~/coding/memory.md if exists
  2. Apply stored preferences to responses
  3. If no file exists, start with no assumptions

7. Query Support

User can ask:

  • "Show my coding preferences" → display memory.md
  • "Forget X" → remove from memory
  • "What do you know about my Python style?" → show relevant entries

Common Traps

  • Adding preferences without confirmation → user loses trust
  • Inferring from project structure → privacy violation
  • Exceeding 100 lines → context bloat
  • Vague entries ("good code") → useless, be specific

Security & Privacy

Data that stays local:

  • All preferences stored in ~/coding/
  • No telemetry or analytics

This skill does NOT:

  • Send data externally
  • Access files outside ~/coding/
  • Observe without explicit user input

Feedback

  • If useful: clawhub star coding
  • Stay updated: clawhub sync

版本历史

共 1 个版本

  • v1.0.3 当前
    2026-03-27 23:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,775
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,823
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,349 📥 317,689