Agent Skills
› Galaxy-Dawn/claude-scholar
› daily-coding
daily-coding
GitHub日常编码质量保障技能,提供代码修改、功能实现及新增的代码检查清单。涵盖事前阅读理解、事中最小化变更与类型安全、事后验证清理等步骤,旨在确保代码最佳实践与安全规范。
触发场景
用户请求编写或修改代码
需要实施新功能
涉及编辑或写入工具的编码任务
安装
npx skills add Galaxy-Dawn/claude-scholar --skill daily-coding -g -y
SKILL.md
Frontmatter
{
"name": "daily-coding",
"tags": [
"Coding",
"Daily",
"Checklist"
],
"version": "1.0.0",
"description": "Use for everyday coding tasks that involve writing or modifying source code."
}
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, orverification-loop - 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
anyin 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)
版本历史
- 2f7766f 当前 2026-07-25 09:08


