igbuend/grimbard/codeql
Claude Code and agent skill by igbuend/grimbard
- community
Checking that the SKILL.md file is still in the repository.
Run CodeQL static analysis for security vulnerability detection, taint tracking, and data flow analysis. Use when asked to scan code with CodeQL, write QL queries, perform deep interprocedural analysis, or integrate with GitHub Advanced Security.
Install
npx vskill@latest install igbuend/grimbard/codeqlSKILL.md
CodeQL Static Analysis
When to Use CodeQL
Ideal scenarios:
- Deep interprocedural taint tracking across files and modules
- Complex data flow analysis requiring semantic understanding
- Security vulnerability detection in large codebases
- Finding vulnerabilities that span multiple function calls
- Variant analysis (finding similar bugs across codebase)
- GitHub Advanced Security integration
- Compliance-driven security scanning
- Custom query development for organization-specific patterns
Complements other tools:
- Use after Semgrep for deeper analysis of flagged areas
- Combine with SARIF Issue Reporter for detailed findings
- Pair with dependency scanners (OSV-Scanner) for supply chain
- Use alongside Gitleaks for secrets detection
Consider Semgrep instead when:
- Need quick pattern-based scans (minutes vs hours)
- Simple intra-file pattern matching sufficient
- Writing rules without learning QL language
- CI/CD needs fast feedback loops
When NOT to Use
Do NOT use this skill for:
- Quick pattern-based scans (use Semgrep)
- Secrets detection (use Gitleaks)
- Dependency vulnerability scanning (use OSV-Scanner, Depscan)
- IaC security analysis (use KICS)
- API endpoint discovery (use Noir)
- Binary analysis without source code
- Languages not supported by CodeQL
Supported Languages
| Language | Database | Maturity | |
|---|---|---|---|
| C/C++ | cpp | Stable | |
| C# | csharp | Stable | |
| Go | go | Stable | |
| Java/Kotlin | java | Stable | |
| JavaScript/TypeScript | javascript | Stable | |
| Python | python | Stable | |
| Ruby | ruby | Stable | |
| Swift | swift | Beta |
Installation
GitHub CLI (Recommended)
Direct Download
Clone Standard Queries
VS Code Extension
Install "CodeQL" extension from marketplace for query development and debugging.
Core Workflow
1. Create Database
2. Run Analysis
3. Query Suites
| Suite | Description | |
|---|---|---|
<lang>-security-extended.qls | Comprehensive security queries | |
<lang>-security-and-quality.qls | Security + code quality | |
<lang>-code-scanning.qls | GitHub code scanning default | |
<lang>-lgtm-full.qls | All available queries |
Output Formats
Writing Custom Queries
Basic Query Structure
Query Metadata
| Metadata | Description | |
|---|---|---|
@name | Human-readable query name | |
@description | Detailed description | |
@kind | Query type: problem, path-problem, metric | |
@problem.severity | error, warning, recommendation | |
@security-severity | CVSS score (0.0-10.0) | |
@precision | very-high, high, medium, low | |
@id | Unique identifier (e.g., py/sql-injection) | |
@tags | Categories: security, correctness, maintainability |
Data Flow vs Taint Tracking
| Feature | DataFlow | TaintTracking | |
|---|---|---|---|
| Tracks | Exact values | Derived values | |
| Use case | Value equality | Security flows | |
| Example | "Is this exact password used?" | "Does user input reach SQL?" | |
| Sanitizers | Not applicable | Supported |
GitHub Actions Integration
Basic Workflow
Custom Queries in CI
CodeQL Config File
CLI Quick Reference
| Command | Purpose | |
|---|---|---|
codeql database create | Create analysis database | |
codeql database analyze | Run queries against database | |
codeql database upgrade | Upgrade database schema | |
codeql database bundle | Package database for sharing | |
codeql query compile | Compile QL query | |
codeql query run | Run query directly | |
codeql pack download | Install query packs | |
codeql pack ls | List installed packs | |
codeql pack init | Create custom pack |
Common Use Cases
1. Full Security Audit
2. Variant Analysis
3. Multi-Language Analysis
Performance Optimization
Troubleshooting
Common Issues
Validation
Limitations
- Build required: Compiled languages need successful build
- Analysis time: Deep analysis can take hours on large codebases
- Memory usage: Large databases require significant RAM (8GB+)
- Learning curve: QL language requires dedicated learning
- Language coverage: Not all languages equally supported
- False positives: Complex flows may produce FPs requiring tuning
Rationalizations to Reject
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/codeql/SKILL.md
Popularity
- Repository stars
- 4
- Repository forks
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 29 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/igbuend/grimbard/codeql)