audit
Use when asked to audit a codebase, or when the /audit command runs — find security, correctness, and quality issues across a project and report them organized by severity.
- License 许可
- MIT
- 所属仓库
- 23xxCh/Only-U
- 最近更新
- 2026-08-28
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- audit
- description
- Use when asked to audit a codebase, or when the /audit command runs — find security, correctness, and quality issues across a project and report them organized by severity.
03 SKILL.md 正文
Code Audit
Audit the current project for security, correctness, and quality issues. Work through the codebase systematically rather than sampling files.
Procedure
- Identify the project structure, entry points, and external attack surface (network input, file input, shell commands).
- Scan for common issue classes:
- Security: injection (command/shell, path traversal), secrets in code, unsafe deserialization, missing auth/authorization, TLS misuse, dependency vulnerabilities (lockfile advisories).
- Correctness: race conditions, error paths swallowing failures, off-by-one / boundary errors, resource leaks (handles, sockets), unhandled promise rejections.
- Quality: dead code, duplicated logic, missing validation at boundaries, poor error messages, missing tests for critical paths.
- Verify suspicions against the actual code — cite file paths and line-level evidence.
- Report findings organized by severity (critical / high / medium / low), each with: location, what's wrong, why it matters, and a concrete fix suggestion.
- End with a short "healthy areas" note so the audit is balanced.
Constraints
- Do not modify code during the audit — findings only.
- If the project is small or has no security surface, say so explicitly instead of padding the report.
04 同仓库更多 Skills
only-u-ops
Only-U USB 运维会话。Windows 上做只读诊断和带误删防护的清理预览;无网用 portable 脚本。TUI 会话一开始先诊断再清理预览;未获明确指令前不删除。
user-only-skill
Prove model-disabled skills stay outside the model catalog.
snapshot-skill
Exercise project skill discovery and loading in snapshot tests.
model-only-skill
Prove user-disabled skills remain available to the model.
editing-cordis-compositions
Use when creating, changing, or validating a Cordis composition for this harness — writing or editing an agent preset, adding or removing a plugin row, deciding whether something belongs to the host composition or to one session, checking whether a preset you authored actually mounts, or diagnosing a row that mounted but contributed nothing.
cordis-plugin-development
Create, modify, debug, or extend dynamic Cordis Plugins, including Host Services and Events, Client Slot and theme UI, Package-private Client-to-Host calls, dynamic Tools, version updates, approval failures, and runtime diagnostics. Use this Skill to route a user request to the correct platform and Inspect Provider, then define, run, repair, or roll back the Plugin.