بنقرة واحدة
file-audit
Use when: per-file AGENTS.md compliance audit with Chinese reports
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when: per-file AGENTS.md compliance audit with Chinese reports
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when: full dev cycle branch->plan->implement->review->PR->merge
Use when: executing tasks via csa run/review/debate, session mgmt
Use when: iterative review-fix loop until csa review --diff is clean
Use when: running CSA-driven code review, independent model selection
Use when: three-layer manager-employee orchestration for delegation
Use when: legacy alias, redirects to dev2merge pipeline
| name | file-audit |
| description | Use when: per-file AGENTS.md compliance audit with Chinese reports |
| allowed-tools | Bash, Read, Grep, Glob, Write |
| triggers | ["file-audit","/file-audit","audit files","AGENTS.md compliance"] |
Check your initial prompt. If it contains the literal string "Use the file-audit skill", then:
YOU ARE THE EXECUTOR. Follow these rules:
../../PATTERN.md relative to this SKILL.md, and follow it step by step.csa run, csa review, csa debate, or ANY csa command. You must perform the work DIRECTLY. Running any csa command causes infinite recursion.Only if you are the main agent (Claude Code / human user):
Audit each source file in a given scope against the applicable AGENTS.md rules chain (root-to-leaf). For every file, generate a Chinese audit report with checkbox compliance evidence under ./drafts/audit/, mirroring the source directory structure. Conclude with a Chinese tech blog summarizing findings, patterns, and lessons learned about maintaining coding standards with AI agents.
csa run --sa-mode true --skill file-audit "Audit all files in src/executor/ against AGENTS.md rules"
When operating under SA mode (e.g., dispatched by /sa or any autonomous workflow),
ALL csa invocations MUST include --sa-mode true. This includes csa run,
csa review, csa debate, and any other execution commands. Omitting --sa-mode
at root depth causes a hard error; passing false when the caller is in SA mode
breaks prompt-guard propagation.
find src/ -name "*.rs")../drafts/audit/../drafts/audit/${RELATIVE_PATH}.audit.md../drafts/audit/blog.zh.md covering methodology, key findings, patterns, and lessons learned.| Command | Effect |
|---|---|
/file-audit src/executor/ | Audit all .rs files in executor module |
/file-audit src/ | Audit entire src directory |
/file-audit crates/csa-acp/src/ | Audit the csa-acp crate |
csa-review (diff-based review vs per-file audit), security-audit (security focus vs compliance focus)./drafts/audit/ directory with per-file reports and summary blog./drafts/audit/ mirroring source directory structure../drafts/audit/blog.zh.md.