agentleFS
Hzkun001Hzkun001/hzkunsec/skills/code-audit/SKILL.md

code-audit

Skill2 starsChanged 37 days agoMITView on GitHub

Analyze authorized source code for security-relevant data flows, trust boundaries and candidate vulnerabilities. Use when reviewing repositories or code excerpts.

31 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use database-security, malware-analysis and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • JeremyMorganSkill

    database-security

    Examines all database interactions for injection, access control, encryption, and data-exposure risks. Use when auditing database and data-layer security.

    Also in 3 projects that use this

  • tsaleSkill

    malware-analysis

    Professional malware analysis workflow for PE executables and suspicious files. Triggers on file uploads with requests like "analyze this malware", "analyze this sample", "what does this executable do", "check this file for malware", or any request to examine suspicious files. Performs static analysis, threat intelligence triage, behavioral inference, and produces analyst-grade reports with reasoned conclusions.

    Also in 3 projects that use this

  • jefflesterSkill

    api-security

    API security best practices and common vulnerability prevention. Enforces security checks for authentication, input validation, SQL injection, XSS, and OWASP Top 10 vulnerabilities. Use when building or modifying APIs.

    Also in 3 projects that use this

  • QiuChenlySkill

    reverse-engineering

    专业二进制逆向工程分析技能。使用IDA Pro MCP工具分析二进制文件、反编译代码、识别漏洞、理解程序逻辑。当用户要求分析可执行文件、反汇编、逆向工程、漏洞挖掘、恶意软件分析时使用此技能。

    Also in 3 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Rule: No Evidence, No Finding. No Verification, No Completion.

    line 8
  2. Distinctive:

    Do not execute unknown code or run active tests without operator approval.

    line 15

“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Code Audit

Rule: No Evidence, No Finding. No Verification, No Completion.

Input

  • Authorized source tree or excerpts, objective, application context and entry points.

Preconditions

  • Confirm code provenance and authorization; identify language/runtime and relevant framework.
  • Do not execute unknown code or run active tests without operator approval.

Steps

  1. Identify attacker-controlled inputs and boundaries.
  2. Trace sources through transformations, checks, and sensitive sinks.
  3. Inspect defenses and assumptions (authz, parsing, validation, encoding, isolation).
  4. Record exact file paths, line ranges and data-flow evidence.
  5. Form minimal hypotheses with plausible prerequisites and counterarguments.
  6. Hand off ambiguous claims to poc-validation; avoid claiming code patterns are exploits.

Evidence

  • Source-to-sink trace, cited file/line locations, relevant configuration, reproduction prerequisites.

Verification

  • Re-read cited locations; inspect sanitization and call sites; check reachability and alternative paths.
  • Evaluate whether the claimed impact follows from the actual deployment context.

Exit Criteria

  • Each claim labeled HYPOTHESIS or NEEDS_VALIDATION unless separately reproduced.
  • Unknowns and verification handoff recorded explicitly.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.