用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/guitarrapc/seiton --skill seiton命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | seiton |
| description | Lint and fix GitHub Actions workflow files and action metadata files using seiton CLI. |
Seiton lints and auto-fixes GitHub Actions workflow files (.github/workflows/*.yml) and action metadata (action.yml).
seiton init
seiton validate-config
seiton --min-severity error
seiton --fix --dry-run
seiton --fix
seiton
run -> review -> config tune -> re-run until only intended findings remain.More findings than before is normal. Start with errors, then warnings, then opt-in and online rules.
See references/adoption-workflow.md for phased rollout details.
When diagnostics are reported, use this order:
--fix when possible.rules.<rule-id>.enabledrules.<rule-id>.severityexclusions only for scoped exceptions (specific files/jobs).Do not use exclusions to avoid legitimate fixes.
Use exclusions for generated files, intentional demo fixtures, or temporary legacy constraints.
For gh-aw files, keep this split clear:
discovery.skip-agentic-workflows: true matches only files with # gh-aw-metadata: in the first 10 lines.agentics-maintenance.yml) need explicit exclusions.discovery:
skip-agentic-workflows: true
exclusions:
- file: ".github/workflows/agentics-maintenance.yml"
- file: ".github/workflows/copilot-*.yml"
file: is repository-relative glob. Omitting rules (or using rules: ["*"]) suppresses all rules for matching files.
Read each diagnostic = help: line; it often gives the exact config key or suppression pattern.
Online rules are opt-in. Enable them in .github/seiton.yaml via rules.<rule-id>.enabled: true (not by exclusions).
rules:
known-vulnerable-actions:
enabled: true
impostor-commit:
enabled: true
ref-confusion:
enabled: true
stale-action-refs:
enabled: true
These rules require GITHUB_TOKEN or SEITON_GITHUB_TOKEN.
Prefer .github/seiton.yaml for repeated or broad suppressions. Use inline directives only for one-off local cases.
steps:
# seiton: disable-next-line unpinned-uses
- uses: actions/checkout@v6
# seiton: disable-step unredacted-secrets
- run: |
echo "${SECRET_VALUE}"
Config is auto-discovered from <cwd>/.github/seiton.yaml (or .yml, plus seiton.yaml/.yml under cwd).
Use --config/-c or SEITON_CONFIG for custom paths.
seiton validate-config.--min-severity error.1 by default; use --min-severity error in CI if warnings should not fail the job.references/adoption-workflow.md.references/fix-mode.md and references/configuration.md.references/rules.md — rule IDs, defaults, severity, opt-in/online notesreferences/fix-mode.md — fix commands, network flags, output formatsreferences/configuration.md — full seiton.yaml schema and examplesreferences/inline-suppression.md — inline directive syntax and placement pitfallsreferences/adoption-workflow.md — first-adoption rollout and common high-count rules