Coding
Coding style memory that adapts to your preferences, conventions, and patterns for consistent coding.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chayjan/coding-1-0-3When 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
| Topic | File |
|---|---|
| Categories of preferences | dimensions.md |
| When to add preferences | criteria.md |
| Memory templates | memory-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 filestests: 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
- Load
~/coding/memory.mdif exists - Apply stored preferences to responses
- 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
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-chayjan-coding-1-0-3": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
dingtalk-docs
管理钉钉云文档中的文档、文件夹和内容。当用户想要创建文档、搜索文档、读取或写入文档内容、创建文件夹整理文档时使用。也适用于用户提到云文档、在线文档、钉钉文档、钉文档等关键词的场景。不要在用户需要操作多维表、管理日程、发消息或处理审批流时触发。
pdf-contract-redactor
PDF contract redaction tool. Use when the user needs to redact sensitive information from scanned PDF contracts. The tool performs OCR to extract text, identifies field names and their corresponding values, and redacts only the values while keeping field names visible. Supports Alibaba Cloud OCR API for accurate Chinese text recognition.
investment-data
获取高质量 A 股投资数据,基于 investment_data 项目。支持日终价格、涨跌停数据、指数数据等。每日更新,多数据源交叉验证。触发词:股票数据、A股数据、金融数据、量化数据、历史行情。
dingtalk
DingTalk channel plugin for OpenClaw - send and receive messages via DingTalk (钉钉)