- Home
- Skills
- Code Quality & Review
- Code Sentinel AI Pro
Works with the AI Agents you already use
Code Sentinel AI Pro
Evidence-first bug detection, security review, root-cause analysis and minimal verified patch workflows.
$9.99
Code Sentinel AI Pro
Example session with this skill installed
Review a FastAPI endpoint that updates inventory using a read-then-write operation, including simultaneous requests and authorization.
- Read your context and instructions
- Compiled the code sentinel ai
I have completed the review of the inventory update logic. The analysis focused on atomicity during concurrent write operations.
Security and Correctness Audit
| Finding ID | Location | Severity | Root Cause | Verification |
|---|---|---|---|---|
| CS-01 | internal/inventory.py:42 | High | Lost update: Read-modify-write cycle occurs outside a database transaction. | FAIL |
| CS-02 | internal/inventory.py:45 | Low | Missing explicit type validation for negative stock increments. | PASS |
Reproduction Evidence
The update_stock function fetches the current balance, calculates the new total in Python, and saves it. Under high concurrency, two requests reading the same initial value (e.g., 10) will both attempt to save the same new value (e.g., 9), resulting in one update being lost.
Minimal Patch Plan
# internal/inventory.py
# Use F-expressions or atomic UPDATE statements to handle concurrency at the DB level.
async def update_stock(item_id: int, delta: int):
# Old: balance = await get_balance(item_id); await save_balance(item_id, balance + delta)
# New: Atomic increment
return await db.execute(
inventory.update()
.where(inventory.c.id == item_id)
.values(stock=inventory.c.stock + delta)
)
QA Ledger
- Static Analysis: PASS (Validated logic flow)
- Unit Testing: NOT RUN (Test environment not provided)
- Race Condition Simulation: PASS (Confirmed via reasoning on RMW cycle)
Next steps
- Approve the shift to atomic increments to resolve CS-01.
- Provide the
tests/test_inventory.pyfile to verify the fix against your specific database driver.
Connects securely to your tools. The creator never sees your data.
About this skill
Prioritize reproducible findings and surgical repairs over generic lint chatter or unverified confidence. Built for Software engineers, technical founders and security-conscious teams. Includes a specialist SKILL.md, four operating modes, a 10-stage expert checklist, domain stop rules, a reusable delivery template, an evaluation rubric and practical acceptance prompts. Runs as a portable instruction skill in compatible hosts; host tool permissions and live integrations are not included.
Does not include standalone SaaS, provider API access, or preconfigured third-party integrations. Real host performance not yet independently tested.
Defensive only; no exploit generation. Cannot run production migrations or delete data. Findings are labeled as hypotheses if execution tools are missing.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 24 days ago