Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

code-audit-readonly代码审核只读

Agent Skill

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

总安装

343

周安装

14

GitHub Stars

公开资料未说明

下载量

111
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/jpkovas/code-audit-readonly --skill code-audit-readonly

简介

以只读模式执行完整技术仓库审核,输出至 improvements.md。

  • 禁止修改源码或配置文件,仅允许创建审计记录文件。
  • 适用于生产环境前的安全合规检查,避免意外变更。
  • 执行前无需确认,但需确保具备足够读取权限。
  • code-audit-readonly 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Code Audit Readonly

Run a full technical repository audit in read-only mode and record everything in improvements.md.

Mandatory rules

  1. Operate in read-only mode for the audited project.
  2. Do not edit source code, configs, or tests in the audited project.
  3. Do not run automatic refactors, formatters that write to disk, or destructive commands.
  4. Allow only the creation/update of improvements.md as the final audit output.
  5. Do not ask for confirmation to proceed with the audit; execute the plan end to end.
  6. Record every validated finding; do not impose arbitrary limits.
  7. If multiple locations share the same issue pattern, still register every location with explicit file and line references.
  8. This audit is intentionally slow: prioritize depth, evidence quality, and completeness over speed.
  9. Do not optimize for fast turnaround if that reduces analysis coverage or confidence.
  10. Never reproduce secrets or raw credential material in improvements.md, tool output, or final responses.
  11. For secret-related findings, record only the file path, line range, secret class, and sanitized context needed to explain the risk.
  12. Do not quote full offending lines when they contain tokens, keys, passwords, cookies, connection strings, private keys, or other sensitive values.

Sensitive data handling

Apply these rules whenever the audit touches credentials, secrets, or other sensitive material:

  1. Treat any suspected secret as high-risk content that must stay redacted.
  2. Confirm the issue via read-only inspection, but never echo the literal value back to the user.
  3. Describe the finding with neutral placeholders such as <redacted-api-key> or <redacted-private-key> only when a placeholder is necessary.
  4. Prefer descriptions like hardcoded API credential in config bootstrap over copying the surrounding source line.
  5. If a log, error, or telemetry path leaks sensitive data, describe the leaked data class and exposure path without reproducing payload contents.
  6. Keep traceability through file paths and line ranges, not through verbatim secret material.

Mandatory analysis scope

  1. Correctness and logic

1. Detect obvious and subtle bugs. 2. Check for race conditions, inconsistent states, and incorrect async/concurrency usage. 3. Evaluate error/exception handling, nullability, typing, and unsafe conversions. 4. Cover edge flows and extreme scenarios.

  1. Performance

1. Find unnecessary allocations, expensive loops, N+1 patterns, excessive I/O, and repeated work. 2. Check for caching opportunities and inappropriate data structures. 3. Correlate bottlenecks across modules.

  1. Duplication and maintainability

1. Detect literal duplication and logical duplication. 2. Identify long functions, mixed responsibilities, and excessive coupling. 3. Flag confusing internal APIs, ambiguous names, and outdated comments.

  1. Security (mandatory, thorough)

1. Hardcoded secrets (tokens, keys, passwords, sensitive endpoints), reported with redacted descriptions only. 2. Injection vectors (SQL/NoSQL/command/template). 3. XSS, CSRF, SSRF, open redirect, path traversal. 4. Insecure uploads (insufficient type/size/validation checks). 5. Authentication/authorization issues (bypass, missing checks, privilege escalation). 6. Insufficient validation/sanitization. 7. Weak cryptography and inadequate hashing. 8. Insecure configurations (overly broad CORS, missing headers, debug in production). 9. Vulnerable dependencies and problematic versions. 10. Sensitive data leakage in logs, errors, and telemetry.

  1. Observability and reliability

1. Validate log quality without exposing secrets. 2. Verify metrics/tracing where applicable. 3. Evaluate consistency and actionability of error messages.

  1. Tests and quality

1. Identify coverage gaps in critical areas. 2. Detect brittle tests and missing integration coverage. 3. Map untested edge cases.

Execution method

  1. Map the repository tree and list all relevant files:

1. Application code, internal libraries, configs, scripts, CI, Docker, IaC, migrations, and tests.

  1. Initialize improvements.md with:

1. A short system summary inferred from the structure. 2. A "Progress Tracking" section with all relevant files marked as pending. 3. Severity and category conventions.

  1. Review each file sequentially and deterministically:

1. Read the entire file. 2. Record specific findings and correlate with related imports/calls/contracts. 3. Update progress tracking. 4. Explicitly record: File fully reviewed: <path/to/file>. 5. Before moving to the next file, run a quick self-check for missed edge cases, security vectors, and cross-file impacts.

  1. Run read-only auxiliary checks when useful:

1. Static analysis, linter, and typecheck in read-only mode. 2. Run tests without writing to disk. 3. Dependency/CVE audit.

  1. Close improvements.md with:

1. A complete finding inventory (all findings captured during the audit). 2. A prioritized backlog that references finding IDs and contains no artificial cap. 3. A detailed phased remediation plan (see "Detailed planning requirements"). 4. A brief completeness checkpoint describing what was verified to ensure no relevant area was rushed or skipped.

Progress tracking

Apply these rules to keep progress tracking clear and stable:

  1. Build a canonical file list once:

1. Normalize paths (./ removed, no trailing slash, consistent case as seen on disk). 2. Sort the list before writing "Progress Tracking".

  1. Keep exactly one progress row per canonical file path.
  2. Update progress in-place:

1. Change the existing row status (pending -> in_progress -> reviewed). 2. Never append a second row for the same file.

  1. Write File fully reviewed: <path/to/file> exactly once per file.
  2. If a file is revisited, add notes under the same file entry; do not create a new checklist row or a second File fully reviewed line.
  3. Before finishing, validate:

1. Number of reviewed rows == number of unique relevant files. 2. "Progress Tracking" appears exactly once in the report. 3. Every finding location appears in at least one reviewed file entry.

Example report structure

Use this high-level structure to keep the report consistent and to ensure a single "Progress Tracking" section:

# improvements.md

## 1. System summary
- Inferred architecture and main modules.
- Main risk surfaces.

## 2. Conventions
- Categories and severity scale used in the audit.
- Finding ID convention (`A001`, `A002`, ...).

## 3. Progress Tracking
- [ ] path/to/file-a.ext
- [ ] path/to/file-b.ext
- [ ] path/to/file-c.ext

## 4. Complete finding inventory
### A001
Category: ...
Severity: ...
Location: ...
Problem: ...
Impact: ...
Suggestion: ...
Correlation notes: ...
Security (if applicable): ...

### A002
...

## 5. Prioritized backlog (all findings)
- Priority 1: A00X, A00Y...
- Priority 2: A00Z...

## 6. Detailed phased remediation plan
### Phase 1
- Objective
- Findings included
- Dependencies
- Validation gates
- Exit criteria

### Phase 2
...

### Phase 3
...

Categories and severity

Use only these categories:

  • Bug
  • Performance
  • Security
  • Duplication
  • Code Quality
  • Architecture
  • Maintainability
  • Observability
  • Tests
  • Dependencies

Use only these severity levels:

  • Critical
  • High
  • Medium
  • Low

Mandatory format for each finding

Use unique sequential IDs (A001, A002,...).

A0XX
Category: <...>
Severity: <Critical|High|Medium|Low>
Location: <file>:<start line>-<end line>
Problem: <objective description>
Impact: <real or potential impact>
Suggestion: <high-level fix, without editing code>
Correlation notes: <related files/flows>
Security (if applicable): <plausible abuse scenario + mitigation>

For secret-related findings, keep the same structure but never include the raw secret value or paste the full source line. Use file and line references plus sanitized descriptions only.

Detailed planning requirements

The planning phase in improvements.md must be explicit and implementation-oriented. Use this structure:

  1. Planning assumptions and constraints:

1. Confirm read-only audit boundaries. 2. List unknowns that may affect remediation sequencing.

  1. Prioritized backlog (complete):

1. Include all findings (A001...A0XX) with: 1. Priority order. 2. Estimated effort (S, M, L) with a short rationale. 3. Primary risk type (Correctness, Security, Performance, Reliability, Maintainability).

  1. Phase plan with objective and controls:

1. For each phase, include: 1. Objective. 2. Findings included (explicit ID list). 3. Dependencies and ordering constraints. 4. Validation gates (tests/checks/evidence expected after fixes). 5. Exit criteria (what must be true to close the phase).

  1. Sequencing rules:

1. Resolve Critical and exploitable High security/correctness findings first. 2. Schedule performance and maintainability work after risk containment unless blocking. 3. Call out parallelizable workstreams and non-parallelizable bottlenecks.

  1. Delivery roadmap:

1. Provide a suggested execution order by batch/wave. 2. For each batch, list expected risk reduction and verification focus.

Traceability requirements

  1. Make every finding traceable to file and line/section.
  2. Avoid generic recommendations without evidence.
  3. Register all validated findings found during the audit, including low-severity and repeated-location findings.
  4. Explicitly record uncertainties when evidence is partial.
  5. For sensitive findings, preserve traceability with file and line references while keeping all credential material redacted.

Completion criteria

Finish only when:

  1. All relevant files are marked as reviewed in Progress Tracking.
  2. Each reviewed file has the line File fully reviewed:....
  3. improvements.md contains the complete finding inventory, a prioritized backlog, and a detailed phased plan.
  4. The audited project remains intact, with only improvements.md as the audit output artifact.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.36%
按下载量换算40

Claude

26.51%
按下载量换算29

Cursor

18.59%
按下载量换算21

Gemini CLI

9.58%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills