Skip to content
Back to skills

security-audit-rlm

ASecurity

Run and troubleshoot privacy-preserving, local DSPy RLM security audits for large legacy .NET codebases. Use when asked to scan repositories for vulnerabilities, tune RLM/tool limits, fix truncation/stall issues, or produce actionable markdown/json audit outputs without loading entire codebases into model context.

  • 78 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added June 11, 2026
researchpythongitbackendsecurity

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned June 11, 2026

npx -y skills add mitkox/megacode --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of security-audit-rlm?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for security-audit-rlm
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mitkox-security-audit-rlm/badge)](https://www.skillsdirectory.com/skills/mitkox-security-audit-rlm)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: security-audit-rlm
description: Run and troubleshoot privacy-preserving, local DSPy RLM security audits for large legacy .NET codebases. Use when asked to scan repositories for vulnerabilities, tune RLM/tool limits, fix truncation/stall issues, or produce actionable markdown/json audit outputs without loading entire codebases into model context.
---

# Security Audit RLM

Use this skill to operate `audit.py` as a tool-driven RLM workflow for large repositories.

Repository: `https://github.com/mitkox/megacode`

## Execute

1. Verify prerequisites:
   - `deno --version`
   - model endpoint is reachable (default `http://localhost:8000/v1`)
2. Run a baseline audit:
   - `AUDIT_VERBOSE=1 python audit.py --source-root <repo-path>`
3. Confirm outputs:
   - `security_audit_report.md`
   - `security_audit_metadata.json`
   - `security_audit_manifest.jsonl`

## Tune For Large Legacy Repos

- Lower planner churn:
  - `--max-iterations 8..12`
  - `--rlm-max-llm-calls 60..100`
- Bound REPL noise:
  - `--rlm-max-output-chars 15000..30000`
- Bound tool payloads:
  - `--tool-max-lines 200..400`
  - `--tool-max-chars 20000..40000`
  - `--search-max-files 800..2000`
  - `--search-max-matches 200..600`
- Control runtime:
  - `--timeout-seconds 600..1800`
  - `--retries 1..2`

## Operating Rules

- Keep analysis local when privacy constraints require it.
- Use RLM tool access, not full-context repository injection.
- Keep intermediate output concise and deterministic.
- Prioritize high-severity findings with file/line evidence and concrete fixes.

## Troubleshooting

- If run appears stalled:
  - enable verbose mode
  - reduce `--max-iterations`
  - reduce `--rlm-max-output-chars`
- If model truncates:
  - raise `--lm-max-tokens` if backend supports it
  - reduce tool output and iteration count
- If path/file access errors appear in RLM steps:
  - ensure tool-only repository access is used by the audit flow
  - re-run after confirming current `audit.py` includes `list_manifest/read_file/search_pattern` tools

## Deliverable Format

Ensure report sections remain:

1. Executive Summary
2. Critical Findings (CRITICAL/HIGH)
3. Other Findings (MEDIUM/LOW)
4. Remediation

Files in this skill

  • CHANGELOG.md1.8 KB
  • CODE_OF_CONDUCT.md1018 B
  • CONTRIBUTING.md664 B
  • SECURITY.md523 B
  • SKILL.md2.1 KB
  • audit.py41.1 KB
  • pyproject.toml1.4 KB
  • tests/test_audit.py3.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.