SkillPedia Skills Encyclopedia
中文 EN

技能 2026-06-15 14:37 UTC

aws-skills

由提交人 zxkane 提交,主要更新类型为:依赖升级与工程维护。提交说明:ci: add marketplace + skill structure validation workflow (#8)。更新了依赖与构建配置,跟进上游版本。

zxkane 68530c6 zxkane/aws-skills

Commit提交信息原文

ci: add marketplace + skill structure validation workflow (#8)

* ci: add marketplace + skill structure validation workflow

Adds a GitHub-hosted (ubuntu-latest, public-repo-safe) check that runs a
stdlib-only Python validator on every PR/push to main. It guards the
exact failure classes this repo has hit:

- marketplace.json is valid JSON with the expected shape
- every plugin `source` dir exists; every `skills[]` entry resolves to a
  dir with a SKILL.md (catches a renamed source path with a stale entry)
- every SKILL.md has frontmatter with name + description
- every committed .claude/skills/* symlink resolves (catches dev symlinks
  left dangling after a plugin rename — cf. the aws-cdk -> aws-iac rename)
- no orphan skills unregistered in any plugin

The workflow uses no untrusted input and runs with contents:read only.
Once green on main, the `validate-marketplace` check is set as a required
status check on the branch protection rule.

* fix(ci): harden marketplace validator per review

Address Amazon Q review findings on the validator:
- frontmatter(): wrap read_text in try/except OSError, report + treat as
  empty rather than crashing on an unreadable SKILL.md
- check_all_skill_frontmatter(): guard against a missing plugins/ dir
  before rglob() instead of raising FileNotFoundError
- check_dev_symlinks(): flag symlinks that resolve outside the repo
  (supply-chain hygiene) before the existence check
- main(): use isinstance(plugins, list) for the summary count so a
  malformed (non-list) plugins value can't raise