All skills
paulrberg avatar

/code-polish

@ccfca26
by Paul Bergpaulrberg/agent-skills94 stars
7

Polish changed code when the user explicitly asks, or when an active workflow requests post-implementation simplification and risk-profiled review over a fixed file scope.

Use this Skill: https://skilld.dev/gh/paulrberg/agent-skills/code-polish

This session only. Nothing lands on disk.

referencesprofilespython.md

≈202 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Python Profile

Load when the diff touches *.py or Python service code.

Checks

  • PY-001 Mutable defaults (HIGH): shared state across calls from mutable default args.
  • PY-002 Async blocking (HIGH): blocking I/O in coroutine paths.
  • PY-003 Dangerous execution (CRITICAL): eval/exec/unsafe deserialization on untrusted input.
  • PY-004 Injection surfaces (CRITICAL): SQL string interpolation, subprocess(..., shell=True) with user input.
  • PY-005 Iterator/lifecycle bugs (MEDIUM): exhausted iterators reused or context cleanup omitted.
  • PY-006 Type-blind boundaries (MEDIUM): weakly validated external payloads.

Evidence Expectations

  • Show exact call path where untrusted input crosses into dangerous API.
  • Include deterministic repro condition when possible.

Source: SKILL.md on GitHub

1 warningtoday5 checks · Risk SAFE
  • Gen Agent Trust Hubtoday

    The skill is a code analysis and simplification tool that operates on local Git repositories. It uses various language-specific profiles to identify defects and suggest improvements. The primary security consideration is that the skill processes untrusted code changes and possesses the capability to execute shell commands (e.g., tests, linters, and formatters), making it a potential target for indirect prompt injection where malicious instructions in the code could influence the agent's behavior.

  • Sockettoday

    No alerts

  • Snyktoday

    Risk: LOW · No issues

  • Runlayer7mo

    1/1 file flagged

  • ZeroLeaks5mo

    1 finding · Score: 86/100

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

Last checked against GitHub yesterday.

Activeupdated last week
argument-hint
[paths] [--simplify] [--review] [--with-profile <name>] [--skip-profile <name>]

README badge

README badge for paulrberg/agent-skills/code-polish