跳到主要内容
知仓学习社ZHICANG

daily-coding

Use for everyday coding tasks that involve writing or modifying source code.

不碰外部(只输出文字)无严重或高危命中brycewang-stanford/Auto-Empirical-Research-Skills

它会碰到什么

扫了多少1 个文本文件,2 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Daily Coding Checklist

A minimal coding quality assurance checklist ensuring every code modification follows best practices.

When to Use

Use this skill for:

  • Implementing new features
  • Adding code or modifying existing code
  • User requests like "write a...", "implement...", "add...", or "modify..."
  • Any coding task that involves Edit or Write tools

When Not to Use

Do not use this skill for:

  • Pure reading or understanding tasks with no modification intent
  • Work already covered by specialized skills such as bug-detective, architecture-design, or tdd-guide
  • Configuration-only changes
  • Documentation-only writing

Core Checklist

Before Starting

  • [ ] Read before modify - Must read target file with Read tool before making changes
  • [ ] Understand context - Confirm understanding of existing code logic and design intent

During Coding

  • [ ] Minimal changes - Only change what's necessary, no over-engineering, no unrelated features
  • [ ] Type safety - Add type hints for Python, avoid any in TypeScript
  • [ ] Security check - Avoid command injection, XSS, SQL injection vulnerabilities

After Completion

  • [ ] Verify execution - Ensure code runs correctly with no syntax errors
  • [ ] Clean up - Remove print/console.log debug statements and temporary files
  • [ ] Brief summary - Inform user what was changed and the scope of impact

Quick Reference

Common Mistakes to Avoid

# ❌ Don't
def process(data=[]):  # Mutable default argument
    pass

# ✅ Should
def process(data: list | None = None):
    data = data or []
# ❌ Don't
except:  # Bare except
    pass

# ✅ Should
except ValueError as e:
    logger.error(f"Processing failed: {e}")
    raise

Security Check Points

  • User input must be validated/escaped
  • Use pathlib for file paths, avoid path traversal
  • Never hardcode sensitive info (API keys, passwords)

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。