Agent Skillsluongnv89/asm › well-formed

well-formed

GitHub

用于审查 Pull Request 代码差异,检测代码异味、风格问题及安全隐患(如 eval),并生成 Markdown 报告。适用于合并前检查或用户明确要求审查时,不修改工作区。

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

Trigger Scenarios

用户要求审查 PR 或检查差异 准备合并超过 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
94065fd
Hash
298e9553
Indexed
2026-07-25 05:02

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 20:29
浙ICP备14020137号-1 $Гость$