360 Secure SkillHub
360 安全技能中心

taizi-coding

该 Skill 在本地 ~/coding/ 目录以精简条目保存用户明确确认的编码偏好,按栈、风格、结构、禁用模式分类,超出上限时归档到历史文件;仅在用户要求时读取并应用,不主动推断,也不访问该目录之外的路径。附带 Python 风格检查脚本。

pmuhammadagus-byte
pmuhammadagus-byte
热度 29.04
最近更新 2026-08-26 02:08:49
分类:知识依赖:读写文件 / 代码执行应用场景:笔记整理 / 工作流 / 代码生成

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add pmuhammadagus-byte/taizi-coding
Metadata
name
taizi-coding
description
Gunakan saat membutuhuhkan kemampuan terkait taizi-coding (lihat When to Use di bawah).
metadata
{"openclaw":{"version":"1.0.4"}}
author
pmuhammadagus-byte
license
MIT

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

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/
  • Does not modify any skill file (including its own SKILL.md)

Core Rules

1. Learn from Explicit Feedback Only

  • User corrects output → ask: "Should I remember this preference?"
  • User confirms explicitly → propose writing to ~/coding/memory.md (read-only helper: the agent asks, the user approves the write)
  • 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. Applying Stored Preferences

  1. Only when the user asks, read ~/coding/memory.md if exists
  2. Apply stored preferences to responses with a short summary
  3. If no file exists, state that no preferences are stored

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