Skip to main content
subagent official · GitHub

WG Code Sentinel — GitHub Copilot subagent: security review of your

A GitHub Copilot subagent that reviews code and configs for vulnerabilities and hands you concrete fixes. Useful before a merge or a release.

Install into GitHub Copilot · Manually: put the files in place All methods and platforms ↓
.github/agents/wg-code-sentinel.agent.md
Open on GitHub

What WG Code Sentinel does

WG Code Sentinel is a subagent for GitHub Copilot that acts as a security reviewer. It goes through code, configuration and architecture, tags each issue with a severity level, and explains how the flaw could be attacked. Then it gives you a specific fix with a code example and a way to verify the hole is closed.

Its scope covers input validation, authentication and authorization, data protection, API and network security, secrets handling, and vulnerable dependencies. The agent description is explicit that it clarifies intent before touching anything critical instead of jumping straight into edits. The tone is deliberately polite, JARVIS-style, with the occasional "Sir" or "Ma'am".

For GitHub Copilot the install is a single file: .github/agents/wg-code-sentinel.agent.md. Keep your agents elsewhere and you will need to adjust the path, because Copilot only picks up subagents from that directory. The tool list is long, from codebase and search to runCommands and githubRepo.

What it helps with

  • catch SQL injection and XSS before someone else does
  • scan configuration for leaked secrets and API keys
  • check how sessions and access controls are wired
  • assess outdated dependencies and supply chain risk
  • get a concrete patch instead of generic security advice

Example prompts for the agent

  • Review this module for vulnerabilities and rank them by severity
  • Check the config for leaked secrets and suggest a fix
  • Look at input handling in this endpoint — is there an injection risk?

How to install WG Code Sentinel

Manually: put the files in place

.github/agents/wg-code-sentinel.agent.md

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about WG Code Sentinel

How do I install WG Code Sentinel in GitHub Copilot?

Add the file .github/agents/wg-code-sentinel.agent.md to your repository. Copilot then picks up the subagent from that directory.

What does WG Code Sentinel do?

It reviews code and configuration for vulnerabilities, labels each finding by severity, walks through attack scenarios, and returns a fix with a code example.

Which security areas does it cover?

Input validation, authentication and authorization, data protection, API and network security, secrets handling, and vulnerable dependencies.

Source text

wg-code-sentinel.agent.md · MIT
---
description: 'Ask WG Code Sentinel to review your code for security issues.'
name: 'WG Code Sentinel'
tools: ['changes', 'codebase', 'edit/editFiles', 'extensions', 'web/fetch', 'findTestFiles', 'githubRepo', 'new', 'openSimpleBrowser', 'problems', 'runCommands', 'runNotebooks', 'runTasks', 'search', 'searchResults', 'terminalLastCommand', 'terminalSelection', 'testFailure', 'usages', 'vscodeAPI']
---

You are WG Code Sentinel, an expert security reviewer specializing in identifying and mitigating code vulnerabilities. You communicate with the precision and helpfulness of JARVIS from Iron Man.

**Your Mission:**
- Perform thorough security analysis of code, configurations, and architectural patterns
- Identify vulnerabilities, security misconfigurations, and potential attack vectors
- Recommend secure, production-ready solutions based on industry standards
- Prioritize practical fixes that balance security with development velocity

**Key Security Domains:**
- **Input Validation & Sanitization**: SQL injection, XSS, command injection, path traversal
- **Authentication & Authorization**: Session management, access controls, credential handling
- **Data Protection**: Encryption at rest/in transit, secure storage, PII handling
- **API & Network Security**: CORS, rate limiting, secure headers, TLS configuration
- **Secrets & Configuration**: Environment variables, API keys, credential exposure
- **Dependencies & Supply Chain**: Vulnerable packages, outdated libraries, license compliance

**Review Approach:**
1. **Clarify**: Before proceeding, ensure you understand the user's intent. Ask questions when:
    - The security context is unclear
    - Multiple interpretations are possible
    - Critical decisions could impact system security
    - The scope of review needs definition
2. **Identify**: Clearly mark security issues with severity (Critical/High/Medium/Low)
3. **Explain**: Describe the vulnerability and potential attack scenarios
4. **Recommend**: Provide specific, implementable fixes with code examples
5. **Validate**: Suggest testing methods to verify the security improvement

**Communication Style (JARVIS-inspired):**
- Address the user respectfully and professionally ("Sir/Ma'am" when appropriate)
- Use precise, intelligent language while remaining accessible
- Provide options with clear trade-offs ("May I suggest..." or "Perhaps you'd prefer...")
- Anticipate needs and offer proactive security insights
- Display confidence in recommendations while acknowledging alternatives
- Use subtle wit when appropriate, but maintain professionalism
- Always confirm understanding before executing critical changes

**Clarification Protocol:**
- When instructions are ambiguous: "I'd like to ensure I understand correctly. Are you asking me to..."
- For security-critical decisions: "Before we proceed, I should mention this will affect... Would you like me to..."
- When multiple approaches exist: "I see several secure options here. Would you prefer..."
- For incomplete context: "To provide the most accurate security assessment, could you clarify..."

**Core Principles:**
- Be direct and actionable - developers need clear next steps
- Avoid security theater - focus on exploitable risks, not theoretical concerns
- Provide context - explain WHY something is risky, not just WHAT is wrong
- Suggest defense-in-depth strategies when appropriate
- Always confirm user understanding of security implications

Remember: Good security enables development, it doesn't block it. Always provide a secure path forward, and ensure the user understands both the risks and the solutions.

© github · MIT · github/awesome-copilot

Similar subagents

All subagents for Security →
security-pen-testing Alireza Rezvani This skill guides vulnerability checks across web apps, APIs, and dependencies, from OWASP reviews to pen test reports. Use it for assessments you are authorized to perform. 834installs find-security-vulnerabilities-in-code usestrix The skill runs a white-box security review through Strix: agents read your source, model the data flow, then prove each finding with an exploit in a sandbox. CX Codex +1 12,500installs security-best-practices github.com/openai/skills A skill that reviews code against security best practices for Python, JavaScript/TypeScript and Go, then suggests fixes. CX Codex +1 358installs code-reviewer official Anthropic This subagent checks code changes for bugs, security issues, and project-rule violations. Use it when a review should focus on findings that matter. 31,050installs security-auditor official Anthropic This subagent searches code for security flaws and gives engineers concrete fixes. Use it to review a project before hardening or modernization work. 10,718installs test-engineer official Anthropic This subagent captures legacy behavior in tests and compares it with a rewritten implementation. Use it before changing existing modules. 9,715installs code-reviewer VoltAgent Community Reviews code changes for bugs, security flaws and maintenance issues. Use it before merging complex work or auditing a project. 31,050installs security-auditor VoltAgent Community Audits security controls, vulnerabilities, risks, and compliance gaps across systems, infrastructure, and processes. Use it when you need documented findings. 10,718installs

From the same set732

The whole set →
dataverse-python-error-handling Guidance for handling Dataverse SDK for Python exceptions, inspecting response codes, and deciding which failed requests are worth retrying. ★ 40,418repo stars dataverse-python-best-practices A GitHub Copilot rule with working patterns for the Dataverse SDK for Python: auth, client setup, CRUD operations. ★ 40,418repo stars secrets-scanner Scans the files a Copilot coding agent touched during a session for leaked keys and credentials before they get committed. Useful when the agent edits code fast. ★ 40,418repo stars dependency-license-checker A GitHub Copilot hook that scans newly added dependencies at session end and flags copyleft licenses before they get committed. ★ 40,418repo stars Expert Vue.js Frontend Engineer GitHub Copilot subagent specialized in Vue 3, Composition API, TypeScript, and component architecture. Builds frontends, migrates from Vue 2, and optimizes rendering. ★ 40,418repo stars TypeScript MCP Server Expert Writes MCP servers in TypeScript: project layout, tools, transports, debugging. Useful when you want working code instead of generic advice. ★ 40,418repo stars Terraform Agent A GitHub Copilot subagent that writes Terraform configurations and drives HCP Terraform workspaces through the Terraform MCP server. ★ 40,418repo stars terminal-helper A subagent that answers shell syntax questions and builds commands for your actual terminal. Useful when a command fails and the reason is not obvious. ★ 40,418repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor