sentinel-api

Scan code for security vulnerabilities and leaked secrets via the Sentinel REST API and apply auto-fix patches.

Updated Apr 22, 2026
One-click install
npx skills add https://github.com/imrishuroy/algopatterns --skill sentinel-api-imrishuroy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentinel-api
Source: https://github.com/imrishuroy/algopatterns/tree/main/.agents/skills/sentinel-api
Command: npx skills add https://github.com/imrishuroy/algopatterns --skill sentinel-api-imrishuroy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Detecting security vulnerabilities, leaked credentials, and vulnerable dependencies across a codebase requires specialized tooling and manual review. This Skill automates the full workflow of uploading a git repository to the Sentinel API, running security analysis, and applying generated fix patches. ## Core Features & Use Cases - Repository Sync: Upload local git repositories to Sentinel using full or incremental git bundle syncs via signed upload URLs. - Security Analysis: Run detection for security vulnerabilities, leaked secrets, and dependency issues across 17 supported languages including Python, Go, JavaScript, and Java. - Auto-Fix Application: Retrieve unified diff patches from analysis results and apply them directly with git apply. - Use Case: Before merging a pull request, sync the branch to Sentinel, run an analysis on the commit range, review detected issues like SQL injection or hardcoded API keys, and apply the generated fix patch automatically. ## Quick Start Set the SENTINEL_API_KEY environment variable and ask the AI to scan this repository for security vulnerabilities and secrets using Sentinel, then apply any available fixes.

Frequently Asked Questions about sentinel-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan a repository for security vulnerabilities with the Sentinel API?

Create a repository via POST /repositories, sync your code as a git bundle using the sync_repo.sh script, then create an analysis with the commit SHA as from_ref. Poll the analysis endpoint until status is completed to retrieve detected issues.

How do I detect leaked secrets and API keys in source code?

Enable the secrets detection category when creating a Sentinel repository or analysis. The scan identifies leaked credentials, API keys, and tokens in source files, reporting file location, line position, and an explanation for each finding.

What languages does Sentinel security scanning support?

Sentinel supports 17 languages including Python, JavaScript, TypeScript, Java, Go, C#, C/C++, Ruby, Rust, PHP, Kotlin, Swift, Scala, Shell, SQL, Terraform, Ansible, and Docker. Specify languages using their slug values in repository settings.

Can I scan only the changes in a pull request instead of the whole repo?

Yes. Use incremental syncs with a base_ref to upload only changes since a commit, then run an analysis with from_ref and to_ref defining the commit range, or pass a git patch directly to the analysis endpoint.

Why is my Sentinel analysis stuck in queued or in_progress status?

Analyses are processed asynchronously, so queued or in_progress statuses are normal. Poll GET /analysis/{id} at intervals using the poll_analysis.sh script until the status becomes completed, canceled, or an error occurs.

What are the limitations of Sentinel auto-fix patches?

Auto-fixes are returned as unified diff patches applied with git apply, and may not cover every detected issue. Results paginate at 50 items by default, so use the issues and fixes endpoints with limit parameters to retrieve all findings.