agentleFS
ktnytktnyt/cclsp/.claude/skills/security-review/SKILL.md

security-review

Skill675 starsChanged 9 months agoMITView on GitHub

Request a security expert assessment for code changes that touch child process spawning, file system access, configuration loading, or environment variable handling. Use when the Reviewer identifies security-sensitive changes in the MCP-LSP bridge.

187 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use kotlin-testing, configure-ecc and 10 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.
  • tpavanipradeepSkill

    kotlin-testing

    Kotlin testing patterns with Kotest, MockK, coroutine testing, property-based testing, and Kover coverage. Follows TDD methodology with idiomatic Kotlin practices.

    Also in 6 projects that use this

  • saxon-ySkill

    configure-ecc

    Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.

    Also in 12 projects that use this

  • InfopibeSkill

    content-hash-cache-pattern

    Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.

    Also in 12 projects that use this

  • InfopibeSkill

    ralphinho-rfc-pipeline

    RFC-driven multi-agent DAG execution pattern with quality gates, merge queues, and work unit orchestration.

    Also in 10 projects that use this

  • mryeastcodeSkill

    pytorch-patterns

    PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.

    Also in 9 projects that use this

  • berntpoppSkill

    dependency-cve-sweep

    Use when handling Dependabot PRs, CodeQL/Trivy alerts, or doing a routine dependency/CVE sweep for this repo.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 165 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the everything-claude-code:security-reviewer agent via the Task tool:

    line 44
  2. Distinctive:

    CRITICAL: Must fix before merge (injection, traversal, credential leak)

    line 57
  3. Distinctive:

    HIGH: Should fix before merge (missing timeouts, incomplete cleanup)

    line 58

“Common” is measured: kept by at least 6 in 10 of the 165 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

Security Review

Invoke the security-reviewer agent to assess security-sensitive changes.

When to trigger

  • Child process spawning or lifecycle changes (src/lsp-client.ts)
  • File system read/write operations (src/file-editor.ts, src/file-scanner.ts)
  • Configuration file loading or parsing (cclsp.json, CCLSP_CONFIG_PATH)
  • Environment variable handling
  • New or modified LSP server adapter (src/lsp/adapters/)
  • Setup wizard input handling (src/setup.ts)

Review checklist

  1. Command injection: Are user-supplied values (config file paths, server commands) sanitized before being passed to child_process spawn?
  2. Path traversal: Can file paths from LSP responses escape the project root? Are file:// URIs validated before resolving?
  3. Resource exhaustion: Are there timeouts on LSP server responses? Can a malicious LSP server cause unbounded memory growth?
  4. Config trust boundary: Is cclsp.json treated as trusted input? What happens if it contains unexpected fields or types?
  5. Process cleanup: Are child processes reliably terminated on shutdown? Can orphaned processes persist?
  6. Symlink attacks: Does file resolution follow symlinks outside the project directory?

How to invoke

Use the everything-claude-code:security-reviewer agent via the Task tool:

Task(
  subagent_type: "everything-claude-code:security-reviewer",
  prompt: "Review the following changes for security concerns: <describe changes>"
)

Output expectations

The security reviewer should produce:

  • CRITICAL: Must fix before merge (injection, traversal, credential leak)
  • HIGH: Should fix before merge (missing timeouts, incomplete cleanup)
  • MEDIUM: Fix when possible (defensive checks, hardening opportunities)
  • LOW: Informational (best practice suggestions)

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.