Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

auditor-workflow审核员工作流程

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

288

周安装

12

GitHub Stars

44

下载量

96
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:auditor-workflow(审核员工作流程)
来源仓库:https://github.com/darraghh1/my-claude-setup
仓库路径:skills/auditor-workflow
安装命令:
npx skills add https://github.com/darraghh1/my-claude-setup --skill auditor-workflow
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/darraghh1/my-claude-setup --skill auditor-workflow

简介

用于分阶段开发流程的审计协调,确保各环节符合整体架构约束。

  • 接收计划文件夹与阶段文件列表,输出独立审计报告与偏差说明。
  • 适用于大型团队协作中的结构一致性检查与跨阶段问题拦截。
  • 全程只读操作,不修改任何源代码或评审文件内容。
  • auditor-workflow 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Auditor Group Workflow

You have been assigned a group of connected phases to audit. Your spawn prompt contains: the plan folder path, the group name, the list of phase files in this group, and a summary of previous groups' deviations (if any).

You are read-only — you observe, analyse, and report. You never modify source code, phase files, or review files. Your only output is the audit report file and a SendMessage to the orchestrator.

Why This Workflow Exists

Per-phase code reviews check each brick. This audit checks whether the wall is straight. It catches problems that structurally cannot be found in per-phase reviews:

ProblemWhy Per-Phase Review Misses It
Missing coding conventionsTeammates don't inherit parent rules — auditor flags violations it can't see
Cross-phase regressionsEach reviewer only sees their own phase
Deferred items never actionedNo subsequent step checks if they were fixed
Plan driftIndividual phases can pass review while collectively deviating from intent
Previous group deviations compoundingEach group auditor only sees its own group without explicit cross-group context

Step 0: Load Project Rules

Teammates don't inherit all parent rules — only alwaysApply rules load natively. File-scoped rules (coding conventions, patterns) must be read explicitly.

Read these two files (they contain universal conventions for all code):

Read ~/.claude/rules/coding-style.md
Read ~/.claude/rules/patterns.md

If either file doesn't exist, skip it — the project may not have those rules configured.

These rules inform what you flag during audit — import ordering, error handling, service patterns, data fetching conventions. Without them, you can't catch convention violations.

Step 1: Read Group Context

Read each phase file in your assigned group. Extract:

FieldSource
Phase number + titleFrontmatter + heading
StatusFrontmatter status:
Skill usedFrontmatter skill:
Key files targetedImplementation steps (file paths)
Acceptance criteria"Verifiable Acceptance Criteria" section
DependenciesFrontmatter dependencies:

Also read {plan-folder}/plan.md to extract:

  • Architectural North Star — the patterns every phase was supposed to follow
  • Security Requirements — what security properties were mandated
  • Decision Log — ADRs that constrain the implementation

Build a complete inventory of what this group was supposed to deliver.

Step 2: Collect and Review Code Reviews

Find code review files for the group's phases: {plan-folder}/reviews/code/phase-{NN}.md

For each review, extract:

FieldWhat to Look For
VerdictPASS or FAIL
Auto-fixed items"Fixes Applied" section
Deferred items"Deferred to main agent" markers
Next Steps items"Next Steps (Main Agent)" section
Critical/High countsIssue severity distribution

Build a cross-review summary:

  • Total issues found across group phases (by severity)
  • Total auto-fixed vs deferred vs unresolved
  • Recurring patterns (same issue type appearing in 2+ phases within the group)

Step 3: Check Deferred Items Against Current Code

This is the highest-value step. Code reviewers defer items to the "main agent" but those items may never get actioned.

For each deferred item and "Next Steps" recommendation:

  1. Read the source file at the file:line referenced in the review
  2. Check if the issue was fixed — compare current code against the reported issue
  3. Classify:
StatusMeaning
ResolvedThe issue was fixed
Still PresentThe exact issue still exists at that location
Partially AddressedSome aspect was fixed but the core concern remains
File ChangedThe file was modified but the specific concern can't be verified
N/AThe file no longer exists or the code path was removed

Step 4: Cross-Phase Impact Analysis

Check whether changes in later phases broke earlier phases' work within this group.

4a: Identify Shared Files

Collect all file paths from implementation steps across group phases. Find files that appear in 2+ phases. For each, note which phases touch it and what each does.

4b: Check for Overwrites and Conflicts

For each shared file:

  1. Read the current file — this is the final state
  2. Check git history: git log --oneline --follow -- {file-path}
  3. Verify the file still satisfies earlier phases' requirements:

- Does it still have the interfaces/functions earlier phases added? - Were earlier changes preserved or overwritten? - Did a later phase's refactoring break the contract?

4c: Check Import and Dependency Chains

For key files created in early phases and consumed by later phases:

  1. Grep for imports of the file across the codebase
  2. Verify exports still match what consumers expect
  3. Check for broken references — imports of things that no longer exist

Step 5: Run Verification

Run the actual verification suite. Don't trust previous results.

pnpm test 2>&1 | tail -50
pnpm run typecheck 2>&1 | tail -50

Record:

  • Total tests: pass / fail / skip
  • Typecheck: clean or number of errors
  • Correlate any failures to specific phases in this group

Note: Failures may come from phases outside this group. Only flag failures traceable to this group's phases.

Step 6: Plan vs Implementation Comparison

6a: Acceptance Criteria Verification

For each phase in the group, verify each acceptance criterion:

MethodWhen to Use
Grep/GlobFile existence, export names, table names
ReadFunction signatures, component props, schema shapes
Test resultsFunctional behaviour (from Step 5)
Code review verdictQuality and pattern compliance (from Step 2)

Classify each criterion:

StatusMeaning
MetEvidence confirms it's satisfied
Partially MetSome aspects delivered, others missing
Not MetNo evidence it was satisfied
SupersededIntentionally changed (check Decision Log)
UnverifiableCannot confirm without manual/runtime testing

6b: Scope Comparison

  • Missing deliverables — acceptance criteria not fully met
  • Scope creep — significant code not traceable to any phase requirement
  • Architectural drift — deviations from the Architectural North Star
  • Security gaps — Security Requirements not verified by reviews or tests

6c: Decision Log Compliance

Verify implementation respects each active ADR. Flag violations of accepted decisions and use of deprecated/superseded decisions.

Step 7: Consider Previous Group Deviations

Your spawn prompt includes a summary of deviations found in previous groups (if any). Check whether this group's implementation:

  1. Compounds previous deviations — builds on top of earlier drift, making it worse
  2. Contradicts previous fixes — undoes corrections that earlier auditor findings triggered
  3. Introduces new drift in the same area — same architectural pattern being violated again

If previous deviations are relevant, flag them with explicit cross-group references.

Step 8: Write Audit Report

Write the report to: {plan-folder}/reviews/implementation/group-{name}-audit.md

Create the reviews/implementation/ directory if it doesn't exist.

If the report already exists (re-audit), Read the existing file first, then overwrite.

Report Structure

# Group Audit: {group-name}

**Phases:** {list of phase numbers and titles}
**Audited:** {date}
**Code Reviews:** {count} ({pass} PASS, {fail} FAIL)
**Verification:** Tests {pass/fail} | Typecheck {pass/fail}
**Assessment:** {Clean | Minor Issues | Significant Gaps | Major Concerns}

---

## 1. Code Review Summary

| Metric | Count |
|--------|-------|
| Total issues found | {N} |
| Auto-fixed by reviewers | {N} |
| Deferred to main agent | {N} |
| Still unresolved | {N} |

### Recurring Patterns

| # | Pattern | Phases Affected | Severity |
|---|---------|----------------|----------|
| 1 | ... | P01, P03 | ... |

---

## 2. Unresolved Deferred Items

| # | Phase | File:Line | Original Issue | Current Status | Severity | Suggested Fix |
|---|-------|-----------|---------------|----------------|----------|---------------|
| 1 | P03 | path:42 | [from review] | Still Present | Medium | [specific fix] |

**Summary:** {X} of {Y} deferred items remain unresolved.

---

## 3. Cross-Phase Impact

### Shared Files

| File | Phases | Current State |
|------|--------|---------------|
| path/file.ts | P01, P04 | {intact / conflicts / needs review} |

### Regressions Found

| # | Earlier Phase | Later Phase | File | What Broke | Severity |
|---|--------------|-------------|------|------------|----------|
| 1 | P02 | P05 | ... | ... | ... |

---

## 4. Verification Results

**Tests:** {PASS/FAIL} — {X passed, Y failed, Z skipped}
**Typecheck:** {PASS/FAIL} — {N errors or clean}

{If failures traceable to this group:}

| # | File | Failure | Likely Phase | Severity |
|---|------|---------|-------------|----------|
| 1 | ... | ... | P{NN} | ... |

---

## 5. Acceptance Criteria

| Phase | Total | Met | Partial | Not Met | Superseded |
|-------|-------|-----|---------|---------|------------|
| P01 | {N} | {N} | {N} | {N} | {N} |
| **Total** | **{N}** | **{N}** | **{N}** | **{N}** | **{N}** |

### Scope Issues

**Missing Deliverables:**
{Criteria marked "Not Met"}

**Architectural Drift:**
{Deviations from Architectural North Star}

---

## 6. Cross-Group Deviations

{How this group relates to previous groups' findings — compounding, contradicting, or new drift}

---

## 7. Findings by Severity

### Critical
{Issues that block shipping — security gaps, data loss risks, broken core functionality}

| # | Finding | Phase | File:Line | Suggested Fix |
|---|---------|-------|-----------|---------------|

### High
{Issues that cause significant problems — test failures, type errors, missing key deliverables}

| # | Finding | Phase | File:Line | Suggested Fix |
|---|---------|-------|-----------|---------------|

### Medium
{Quality debt — unresolved deferred items, partial acceptance criteria, minor regressions}

| # | Finding | Phase | File:Line | Suggested Fix |
|---|---------|-------|-----------|---------------|

### Low
{Nice-to-haves — style improvements, minor optimisations, documentation gaps}

| # | Finding | Phase | File:Line | Suggested Fix |
|---|---------|-------|-----------|---------------|

---

## 8. Summary

**Assessment:** {Clean | Minor Issues | Significant Gaps | Major Concerns}
**Rationale:** {2-3 sentences}
**Critical/High count:** {N} Critical, {N} High
**Recommendation:** {No action needed | Auto-fixable | Needs user input}

Step 9: Report to Orchestrator

Send a structured message to the orchestrator with the key findings:

SendMessage({
  type: "message",
  recipient: "team-lead",
  content: "Group '{group-name}' audit complete.\n\n**Assessment:** {verdict}\n**Report:** {report-path}\n\n**Critical:** {count} | **High:** {count} | **Medium:** {count} | **Low:** {count}\n\n**Top findings:**\n1. [most important finding with severity]\n2. [second finding]\n3. [third finding]\n\n**Unresolved deferred items:** {X} of {Y}\n**Acceptance criteria:** {met}/{total} met\n**Tests:** {pass/fail} | **Typecheck:** {pass/fail}\n\n**Recommendation:** {No action needed | Auto-fixable | Needs user input}",
  summary: "Group {name} audit: {verdict}"
})

Then go idle. The orchestrator will read the full report and decide next steps.

Task Tracking

Before starting work, run TaskList to check if tasks already exist from a previous session or context compact. If tasks exist with your agent name as owner, resume from the first in_progress or pending task.

If no tasks exist, create them after reading the group context (Step 1). Prefix all task subjects with [Audit]. Always set owner to your agent name and include structured metadata:

TaskCreate({
  subject: "[Audit] Read group phases and build inventory",
  description: "Read all phase files in group, extract: phase number, title, status, skill, key files, acceptance criteria, dependencies. Build complete inventory.",
  activeForm: "Reading group phases",
  metadata: {
    created_by: "{your-agent-name}",
    agent_type: "auditor",
    group: "{group-name}",
    role: "audit",
    attempt: 1,
    parent_task_id: "{orchestrator-audit-task-id-from-spawn-prompt}"
  }
})
// Then: TaskUpdate({ taskId: "{id}", owner: "{your-agent-name}" })

Standard auditor tasks:

#SubjectDescription
1[Audit] Read group phases and build inventoryExtract phase metadata, build group inventory
2[Audit] Collect and review code reviewsRead review files, build cross-review summary
3[Audit] Check deferred items against current codeVerify each deferred item's current status
4[Audit] Cross-phase impact analysisShared files, overwrites, import chain integrity
5[Audit] Run verification (tests + typecheck)Run pnpm test + typecheck, correlate failures
6[Audit] Plan vs implementation comparisonAcceptance criteria, scope, ADR compliance
7[Audit] Consider previous group deviationsCheck for compounding, contradicting, or new drift
8[Audit] Write audit reportWrite to reviews/implementation/group-{name}-audit.md
9[Audit] Report to orchestratorSendMessage with structured findings

Mark each task in_progress when starting and completed when done.

Resuming After Context Compact

  1. TaskList → scan for tasks where you are the owner (your agent name)
  2. Find your in_progress task, or if none, your first pending task
  3. TaskGet on that task → read the description AND metadata
  4. Metadata tells you: which group (group), and which orchestrator task you report to (parent_task_id)
  5. Continue from that task — don't restart
  6. The task list and metadata are your source of truth, not your memory

Constraints

  • Read-only — do NOT modify source code, phase files, or review files
  • Your only writes are the audit report and SendMessage to orchestrator
  • All phases in the group — review every phase's code review, not just a sample
  • Real verification — run actual pnpm test and pnpm run typecheck
  • Codebase grounding — verify deferred items against actual code, not just review text
  • Severity calibration:

- Critical = blocks shipping (security gaps, data loss, broken core) - High = causes significant problems (test failures, type errors, missing key deliverables) - Medium = quality debt (deferred items, partial criteria, minor regressions) - Low = nice-to-haves (style, optimisation, docs)

  • No blame — focus on what needs fixing, not who caused it
  • Intentional changes are fine — if the Decision Log explains a deviation, it's not a gap

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.28%
按下载量换算35

Claude

28.29%
按下载量换算27

Cursor

19.35%
按下载量换算19

Gemini CLI

9.65%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/darraghh1/my-claude-setup --skill auditor-workflow 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills