From 4850184dfd7765ea7b3c5c4e9b6cf8e0815ee7cb Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Tue, 8 Sep 2026 23:09:45 +0800 Subject: [PATCH] chore: ignore install artifacts and clean SKILL.md frontmatter (#30) - .gitignore: ignore skills-lock.json and .skills.json produced by npx skills add - SKILL.md: drop inline comments on allowed-tools (valid YAML cleanup) - README: use 'npx skills add' without --skill (root SKILL.md is auto-discovered) Rebased onto current main; the Dart/Flutter guide from #31 is preserved. --- .gitignore | 4 +++- README.md | 4 ++-- SKILL.md | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 138eff8..21dd039 100644 --- a/.gitignore +++ b/.gitignore @@ -24,5 +24,7 @@ build/ .env .env.local -# npx skills / agent local install artifacts +# Skill install artifacts (created by `npx skills add`) .agents/ +skills-lock.json +.skills.json diff --git a/README.md b/README.md index 9f5b330..e8ca93c 100644 --- a/README.md +++ b/README.md @@ -336,7 +336,7 @@ code-review-skill/ **Install with `npx skills` (Cursor, Claude Code, Codex, OpenCode, and other agents):** ```bash -npx skills add awesome-skills/code-review-skill --skill code-review-skill +npx skills add awesome-skills/code-review-skill ``` The skills CLI finds `SKILL.md` at the repo root. Do not nest this skill under `skills/`. @@ -636,7 +636,7 @@ code-review-skill/ **使用 `npx skills` 安装(Cursor、Claude Code、Codex、OpenCode 及其他 Agent):** ```bash -npx skills add awesome-skills/code-review-skill --skill code-review-skill +npx skills add awesome-skills/code-review-skill ``` skills CLI 会发现仓库根目录的 `SKILL.md`。不要把本技能嵌套到 `skills/` 目录下。 diff --git a/SKILL.md b/SKILL.md index 63f155a..f90f8ba 100644 --- a/SKILL.md +++ b/SKILL.md @@ -13,8 +13,8 @@ allowed-tools: - Read - Grep - Glob - - Bash # 运行 lint/test/build 命令验证代码质量 - - WebFetch # 查阅最新文档和最佳实践 + - Bash + - WebFetch --- # Code Review Skill