Index of every page on this site: llms.txt
All skills
aktsmm avatar

/review-security-structure

@9bedf91
by yamapanaktsmm/agent-skills27 stars
5
Run it yourself

Review owned or authorized code for security using structure-first evidence: AST/structure maps, call graphs, complexity, Source/Sink flow, and defensive findings. Use when asked for security review, vulnerability review, AST structure map review, SAST triage, Source/Sink, taint flow, parser/scanner hardening, CI/CD security, LLM/agent tool boundary review, 脆弱性レビュー, 構造マップ, セキュリティレビュー.

Use this Skill: https://skilld.dev/gh/aktsmm/agent-skills/review-security-structure

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈115 tokens for metadata: the name and description. ≈1.3k when used: this file. ≈1.1k more on demand in 2 files.

Description uses 5.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈415 characters, or 5.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Review Security Structure

Defensively review code or structure artifacts by reading architecture and data flow before reading full source. Use structural signals to identify vulnerabilities, logic flaws, parser/scanner risks, CI/CD risks, and LLM/agent tool-boundary risks.

When to Use

  • security review, vulnerability review, SAST triage, AST, structure map, call graph, Source/Sink, taint flow
  • 脆弱性レビュー, セキュリティレビュー, 構造マップ, AST レポート, 依存関係, 複雑度
  • Reviewing owned or explicitly authorized code, design docs, scan results, or generated structure maps
  • Hardening parsers, scanners, CI/CD tools, file walkers, and agent/tool-call boundaries against malformed or adversarial input

Safety Scope

  • Keep the work defensive: review, risk explanation, safe verification ideas, and minimal fixes.
  • Do not provide unauthorized testing, intrusion, persistence, evasion, credential theft, weaponized PoC, or destructive external steps.
  • If exploitability is uncertain, place the item in Hypotheses rather than Findings.
  • If code changes are requested, keep them minimal and verify with existing tests or a focused local check.

Inputs to Prefer

Use provided structure artifacts first, then inspect the smallest code/config range needed.

Input Examples
Structure AST summaries, class/function lists, Mermaid graphs, JSON reports
Data flow Source, Propagator, Sanitizer, Sink, taint flow
Call graph caller -> callee edges, boundary-crossing calls, fallback paths
Complexity large functions, branch concentration, exception density
Scope/state variable scope, global state, shared mutable state, auth boundaries
Static results secret scan, dependency scan, lint/type/SAST warnings
Context README, design notes, CI workflow, deployment config

Structure Map Build

同等の成果物がない場合は、findings review に入る前に最小で read-only の structure map を作る。手順(7 steps)と minimum map contract (entry_points / files / symbols / imports / call_edges / complexity / sources / sinks / sanitizers / scan_limits) は references/structure-map.md。生成ができない場合は Structure Map Summary に blocker と limits を記録する。

Review Flow

  1. Gate the target: assume review is allowed for current workspace/user-provided artifacts; ask only if ownership or authorization is unclear.
  2. Classify the target: web app, CLI, library, scanner, CI/CD tool, infrastructure definition, data processor, extension, or agent tool.
  3. Read an existing structure map, or build the minimal map from the contract above before full source reading.
  4. Model trust boundaries: who controls which input, where it flows, what authority the Sink has, and what data is sensitive.
  5. Trace Source -> Propagator -> Sanitizer -> Sink. Look for missing validation, wrong order, branch gaps, implicit deserialization, and type-conversion surprises.
  6. Review call graph paths that bypass authn/authz, validation, initialization, feature flags, or normal handlers.
  7. Review complexity and logic risks: giant functions, broad try/catch, deep nesting, fallback behavior, shared state, TOCTOU, and cache races.
  8. For parsers/scanners/file walkers, prioritize crash, unbounded recursion, symlink loops, huge/deep ASTs, encoding edge cases, dependency resolution failures, and detection bypass.
  9. For CI/CD, review workflow inputs, artifact/cache trust, token permissions, PR boundaries, release gates, and secret exposure.
  10. For LLM/agent code, review prompt injection paths, external document trust, tool-call authorization, path safety, command policy, and log redaction.

Evidence Rules

  • Findings require structural signal, reachability, impact, and a defensive verification or fix direction.
  • Confidence is High, Medium, or Low. Avoid certainty language unless verified.
  • Keep unsupported ideas in Hypotheses with the missing evidence and next check.
  • Reference local files with precise paths and line links when possible. Do not paste full source files.

Output Format

Findings -> Structure Map Summary -> Hypotheses -> Code to Inspect -> Recommended Fix Plan -> Verification Summary の順で返す。全テーブルスキーマと Recommended Fix Plan 本文は references/output-format.md。Findings がゼロの場合はその旨を先頭に明示する。

Thanks to / References

Inspired by these structure-first review resources. Treat them as references, not required dependencies.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill is a security review framework designed to analyze code structures and data flows. It handles potentially malicious code inputs during its review process, which poses a low risk of indirect prompt injection. No malicious code or exfiltration patterns were detected.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 9bedf91. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 15 hours ago.

Activeupdated 2 months ago
argument-hint
対象パス、構造マップ、ASTレポート、call graph、scan結果など
user-invocable
true
metadata
{
  "author": "yamapan (https://github.com/aktsmm)"
}

README badge

README badge for aktsmm/agent-skills/review-security-structure