用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jmagly/aiwg --skill mention-validate命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| namespace | aiwg |
| name | mention-validate |
| platforms | ["all"] |
| description | Validate all @-mentions resolve to existing files |
Skill access pattern (post-kernel-pivot, 2026.5+)
Skill names referenced in this document are AIWG skills, not slash commands. Most are not kernel-listed and cannot be invoked as
/skill-nameby the platform. Reach them via:aiwg discover "<capability>" aiwg show skill <name>Only kernel-listed skills (
aiwg-doctor,aiwg-refresh,aiwg-status,aiwg-help,use,steward) are directly invokable as slash commands. See skill-discovery rule.
Validate that all @-mentions in codebase resolve to existing files.
/mention-validate # Validate current directory
/mention-validate --strict # Fail on any broken mention
/mention-validate --output report.md # Write report to file
| Option | Default | Description |
|---|---|---|
| --target | . | Directory to validate |
| --strict | false | Exit with error on broken mentions |
| --output | stdout | Write report to file |
@-Mention Validation Report
===========================
✓ Valid Mentions: 42
✗ Broken Mentions: 3
Broken Mentions:
src/auth/login.ts:5
@.aiwg/requirements/UC-999.md → NOT FOUND
.aiwg/architecture/sad.md:23
@.aiwg/requirements/NFR-PERF-005.md → NOT FOUND
test/integration/api.test.ts:12
@$AIWG_ROOT/src/services/api-old.ts → NOT FOUND (deleted?)
Summary: 3 broken mentions in 3 files
| Code | Meaning |
|---|---|
| 0 | All mentions valid |
| 1 | Broken mentions found (with --strict) |
aiwg validate-mentions [--target <dir>] [--strict]
mention-wire - Add @-mentionsmention-lint - Lint @-mention stylemention-report - Generate traceability reportValidate @-mentions for: $ARGUMENTS