Agent Skills
› luongnv89/asm
› well-formed
well-formed
GitHub用于审查 Pull Request 代码差异,检测代码异味、风格问题及安全隐患(如 eval),并生成 Markdown 报告。适用于合并前检查或用户明确要求审查时,不修改工作区。
Trigger Scenarios
用户要求审查 PR 或检查差异
准备合并超过 10 行的变更
Install
npx skills add luongnv89/asm --skill well-formed -g -y
SKILL.md
Frontmatter
{
"name": "well-formed",
"effort": "medium",
"creator": "ASM Fixtures",
"license": "MIT",
"version": "1.0.0",
"description": "Review pull request diffs for code smells, style issues, and safety problems before merging.",
"allowed-tools": "Read Grep",
"compatibility": "Claude Code"
}
Well-formed corpus skill
When to Use
- When the user asks to "review this PR" or "check the diff"
- Before merging any change larger than 10 lines
Prerequisites
- A git repository with the target branch checked out
- Read access to the files being reviewed
Instructions
- Run
git diff main...HEADto list files - Read each file and check for common smells
- Emit a markdown report summarising findings
Example
$ asm eval ./well-formed
Overall score: 95/100
Acceptance Criteria
- Produces a markdown report with sections per file
- Flags any use of
eval()orexecas dangerous - Does not modify the working tree
Edge cases
- Empty diffs: emit a short "no changes" note
- Binary files: skip and mention the filename in the report
Safety
See references/safety.md for error handling rules.
Always confirm before writing. Never run destructive commands without a dry-run.
Version History
- 286ea95 Current 2026-07-25 05:02


