Audit Assistant | 審計助手
Language: English | 繁體中文
Version: 1.0.0
Last Updated: 2026-03-04
Diagnose UDS installation health, detect development patterns worth standardizing, identify friction with existing standards, and submit structured feedback to the UDS repository.
診斷 UDS 安裝健康狀態、偵測值得規範化的開發模式、識別與現有標準的摩擦點,並向 UDS 儲存庫提交結構化回饋。
Workflow | 工作流程
DIAGNOSE ──► ANALYZE ──► REPORT
診斷健康 分析模式 回報回饋
Phase 1: DIAGNOSE | 診斷
Run health check on UDS installation.
執行 UDS 安裝健康檢查。
| Check |
Description |
檢查項目 |
.standards/ exists |
Verify directory and files |
驗證目錄與檔案 |
manifest.json valid |
Parse and validate manifest |
解析驗證 manifest |
| File integrity |
Compare hashes against manifest |
比對雜湊與 manifest |
| AI config references |
Verify AI config files reference .standards/ |
驗證 AI 設定檔引用 |
Phase 2: ANALYZE | 分析
Detect patterns and friction points.
偵測模式與摩擦點。
| Analysis |
Method |
分析方法 |
| Directory patterns |
Scan for known standard categories |
掃描已知標準類別 |
| Commit patterns |
Analyze recent 100 commits for recurring topics |
分析近 100 筆 commit |
| Modified standards |
Compare file hashes (diff-based) |
比對檔案雜湊 |
| Unused standards |
Check AI config references |
檢查 AI 設定引用 |
| Orphaned files |
Find untracked files in .standards/ |
找出未追蹤檔案 |
Phase 3: REPORT | 回報
Submit findings as structured GitHub issue.
將發現以結構化 GitHub issue 提交。
| Method |
Condition |
方法 |
gh issue create |
gh CLI installed |
gh CLI 已安裝 |
| Browser deeplink |
Fallback to pre-filled URL |
退回至預填 URL |
| Clipboard copy |
Last resort |
最終手段複製至剪貼簿 |
Usage | 使用方式
# Full audit (all layers)
uds audit
# Health check only
uds audit --health
# Pattern detection only
uds audit --patterns
# Friction detection only
uds audit --friction
# JSON output
uds audit --format json
# Summary only (for scripts)
uds audit --quiet
# Submit feedback interactively
uds audit --report
# Preview report without submitting
uds audit --report --dry-run
Integration with Other Skills | 與其他技能的整合
When suggested by other skills (e.g., /checkin, /commit, /code-review, /sdd), /audit can be invoked to:
當被其他技能建議時,/audit 可根據情境執行針對性的檢查:
| Context |
Recommended Command |
情境 |
After /checkin failure |
/audit --health |
checkin 失敗後診斷 |
After /commit |
/audit --report |
提交後回報發現 |
After /code-review finds friction |
/audit --friction |
審查發現摩擦時 |
After /sdd spec creation |
/audit --patterns |
規格建立後檢查覆蓋率 |
Next Steps | 後續步驟
After running audit:
| Finding |
Action |
建議動作 |
| Health ERROR ⭐ Recommended / 推薦 |
Run uds init or uds check --restore |
執行修復指令 |
| Pattern detected |
Consider requesting new standard via --report |
考慮透過 --report 請求新標準 |
| Modified standard |
Review if standard needs more flexibility |
檢視標準是否需要更多彈性 |
| Unused standard |
Consider removing with uds uninstall |
考慮移除未使用標準 |
Related Standards | 相關規範
Version History | 版本歷史
| Version |
Date |
Changes |
| 1.0.0 |
2026-03-04 |
Initial release — three-layer audit system |
License
CC BY 4.0 — See LICENSE for details.
1---2name: audit3scope: universal4description: |5 [UDS] Diagnose UDS installation health and submit structured feedback upstream.6 Use when: .standards/ looks broken or out of sync, verifying manifest integrity, reporting friction with an existing UDS standard.7 Not for: auditing your own application code quality — use /metrics or /code-review; dependency and secret scanning — use /scan.8 Keywords: UDS audit, health check, manifest integrity, standards feedback, friction, 安裝健康, 標準稽核, 回饋.9allowed-tools: Read, Grep, Glob, Bash(git log, uds audit)10argument-hint: "[--health | --patterns | --friction | --report]"11status: stable12# 2026-08-18: `disable-model-invocation: true` removed, and a status recorded.13#14# The flag was applied by d415937e alongside the description rewrite and, like15# the two lifted on 2026-08-17, followed no stateable rule. These eight were16# left alone that day for a reason that was correct at the time: the rule17# settled on was "a reference is model-invocable", and none of them carried a18# `status` at all, so lifting them would have replaced one unruled state with19# one unruled action.20#21# Measured 2026-08-18, which is what closed it: all eight carry a full22# `Use when:` trigger and a `Not for:` exclusion, all eight describe an action23# rather than reference material, and all eight already have a slash command —24# which is exactly the shape of `code-review-assistant`, whose paired `/code-review`25# was ruled not to justify the flag. `journey-test-assistant` is the standing26# precedent: same "Generate X" shape, `status: stable`, never disabled.27#28# `stable` rather than a new value: `skills/` uses reference, stable and29# experimental, and inventing a fourth would be the same unruled-action mistake30# in different clothing.31#32# The cost of being wrong is asymmetric and observable in only one direction.33# Over-triggering shows up and is undone by deleting a line; a skill that is34# structurally unable to fire produces no signal at all. (XSPEC-378 R5)35---3637# Audit Assistant | 審計助手3839> **Language**: English | [繁體中文](../../locales/zh-TW/skills/audit-assistant/SKILL.md)4041**Version**: 1.0.042**Last Updated**: 2026-03-044344Diagnose UDS installation health, detect development patterns worth standardizing, identify friction with existing standards, and submit structured feedback to the UDS repository.4546診斷 UDS 安裝健康狀態、偵測值得規範化的開發模式、識別與現有標準的摩擦點,並向 UDS 儲存庫提交結構化回饋。4748## Workflow | 工作流程4950```51DIAGNOSE ──► ANALYZE ──► REPORT52診斷健康 分析模式 回報回饋53```5455### Phase 1: DIAGNOSE | 診斷5657Run health check on UDS installation.5859執行 UDS 安裝健康檢查。6061| Check | Description | 檢查項目 |62|-------|-------------|---------|63| `.standards/` exists | Verify directory and files | 驗證目錄與檔案 |64| `manifest.json` valid | Parse and validate manifest | 解析驗證 manifest |65| File integrity | Compare hashes against manifest | 比對雜湊與 manifest |66| AI config references | Verify AI config files reference `.standards/` | 驗證 AI 設定檔引用 |6768### Phase 2: ANALYZE | 分析6970Detect patterns and friction points.7172偵測模式與摩擦點。7374| Analysis | Method | 分析方法 |75|----------|--------|---------|76| Directory patterns | Scan for known standard categories | 掃描已知標準類別 |77| Commit patterns | Analyze recent 100 commits for recurring topics | 分析近 100 筆 commit |78| Modified standards | Compare file hashes (diff-based) | 比對檔案雜湊 |79| Unused standards | Check AI config references | 檢查 AI 設定引用 |80| Orphaned files | Find untracked files in `.standards/` | 找出未追蹤檔案 |8182### Phase 3: REPORT | 回報8384Submit findings as structured GitHub issue.8586將發現以結構化 GitHub issue 提交。8788| Method | Condition | 方法 |89|--------|-----------|------|90| `gh issue create` | `gh` CLI installed | gh CLI 已安裝 |91| Browser deeplink | Fallback to pre-filled URL | 退回至預填 URL |92| Clipboard copy | Last resort | 最終手段複製至剪貼簿 |9394## Usage | 使用方式9596```bash97# Full audit (all layers)98uds audit99100# Health check only101uds audit --health102103# Pattern detection only104uds audit --patterns105106# Friction detection only107uds audit --friction108109# JSON output110uds audit --format json111112# Summary only (for scripts)113uds audit --quiet114115# Submit feedback interactively116uds audit --report117118# Preview report without submitting119uds audit --report --dry-run120```121122## Integration with Other Skills | 與其他技能的整合123124When suggested by other skills (e.g., `/checkin`, `/commit`, `/code-review`, `/sdd`), `/audit` can be invoked to:125126當被其他技能建議時,`/audit` 可根據情境執行針對性的檢查:127128| Context | Recommended Command | 情境 |129|---------|--------------------|------|130| After `/checkin` failure | `/audit --health` | checkin 失敗後診斷 |131| After `/commit` | `/audit --report` | 提交後回報發現 |132| After `/code-review` finds friction | `/audit --friction` | 審查發現摩擦時 |133| After `/sdd` spec creation | `/audit --patterns` | 規格建立後檢查覆蓋率 |134135## Next Steps | 後續步驟136137After running audit:138139| Finding | Action | 建議動作 |140|---------|--------|---------|141| Health ERROR ⭐ **Recommended / 推薦** | Run `uds init` or `uds check --restore` | 執行修復指令 |142| Pattern detected | Consider requesting new standard via `--report` | 考慮透過 `--report` 請求新標準 |143| Modified standard | Review if standard needs more flexibility | 檢視標準是否需要更多彈性 |144| Unused standard | Consider removing with `uds uninstall` | 考慮移除未使用標準 |145146## Related Standards | 相關規範147148- [checkin-standards](../../core/checkin-standards.md) — Code check-in requirements149- [testing-standards](../../core/testing-standards.md) — Testing requirements150151## Version History | 版本歷史152153| Version | Date | Changes |154|---------|------|---------|155| 1.0.0 | 2026-03-04 | Initial release — three-layer audit system |156157## License158159CC BY 4.0 — See [LICENSE](../../LICENSE) for details.