Agent Skillsluongnv89/asm › well-formed

well-formed

GitHub

用于审查代码差异,识别代码异味、风格问题及安全隐患,并生成Markdown报告。适用于PR合并前的代码检查场景。

tests/fixtures/skills/well-formed/SKILL.md luongnv89/asm

Trigger Scenarios

用户要求审查PR或检查diff 合并超过10行的变更前

Install

npx skills add luongnv89/asm --skill well-formed -g -y
More Options

Non-standard path

npx skills add https://github.com/luongnv89/asm/tree/main/tests/fixtures/skills/well-formed -g -y

Use without installing

npx skills use luongnv89/asm@well-formed

指定 Agent (Claude Code)

npx skills add luongnv89/asm --skill well-formed -a claude-code -g -y

安装 repo 全部 skill

npx skills add luongnv89/asm --all -g -y

预览 repo 内 skill

npx skills add luongnv89/asm --list

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

  1. Run git diff main...HEAD to list files
  2. Read each file and check for common smells
  3. 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() or exec as 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

Same Skill Collection

skills/find-me-skills/SKILL.md
skills/skill-creator/SKILL.md
skills/skill-auto-improver/SKILL.md
skills/skill-index-updater/SKILL.md
skills/skill-install-improved/SKILL.md
skills/skill-upstream-pr/SKILL.md
skills/hello-world/SKILL.md
skills/refresh-index/SKILL.md

Metadata

Files
0
Version
d90bb02
Hash
298e9553
Indexed
2026-07-25 05:02

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-31 14:43
浙ICP备14020137号-1 $お客様$