Skip to content
Agentmart
Submit a tool

ask-impact-sentinel

Guidelines for impact analysis, breaking change detection, strategic database design, and comprehensive database indexing review.

Skill by NavanithanS

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/navanithans-ask-impact-sentinel

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Guidelines for impact analysis, breaking change detection, strategic database design, and comprehensive database indexing review.

Use cases: design, backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ask-impact-sentinel

What's inside

Skill name
ask-impact-sentinel
Description
Guidelines for impact analysis, breaking change detection, strategic database design, and comprehensive database indexing review.
License
MIT
Instructions
172 lines in SKILL.md · view on GitHub

Files (5)

  • README.md
  • SKILL.md
  • .gitkeep · scripts/
  • skill.yaml
  • .gitkeep · tests/

SKILL.md (first lines)

# Impact Sentinel

A skill focused on impact analysis, breaking change detection, strategic database design, and comprehensive database indexing review.

<critical_constraints>
- ❌ NEVER introduce breaking changes to shared functions without verifying all dependents.
- ❌ NEVER optimize code at the expense of existing functionality or stability.
- ❌ DO NOT perform database operations without considering performance and indexing.
- ❌ NEVER skip the indexing review when a feature touches database queries.
- ✅ ALWAYS identify dependencies before modifying core logic.
- ✅ ALWAYS ensure optimizations are intelligent and verified.
- ✅ ALWAYS use strategic database access and query design.
- ✅ ALWAYS perform a full indexing review covering all related models, services, repositories, and tables — not just the modified controller.
</critical_constraints>

<heuristics>
- If modifying a shared function → Run full dependency check first.
- If optimizing → Verify "Before vs After" performance and correctness.
- If accessing database → Check for missing indexes or potential N+1 issues.
- If any feature touches a database query → Execute the full Database Indexing Review protocol.
- If breaking change is unavoidable → Propose a migration path or versioned API.
- If finalizing a system deployment → You MUST execute live automated validations (Syntax & Terminal Routing).
</heuristics>

## Purpose

The `ask-impact-sentinel` skill guides AI agents to think critically about the consequences of their changes. It ensures that optimizations don't break existing functionality and that database interactions are designed for performance and reliability.

## Usage

Apply this skill when:
- Modifying core functions or shared utilities.
- Refactoring existing logic that has many dependencies.
- Designing or optimizing database schemas and queries.
- Adding, modifying, or reviewing any feature that involves database reads or writes.
- Preparing for a release where stability is paramount.

### Core Protocol

1. **Impact Analysis**: Identify downstream effects of every code change.
2. **Regression Prevention**: Validate that existing features remain functional.
3. **Automated Validation**: Before clearing any code for production, you must explicitly run backend checks:
    - **Syntax & Core Framework Validation**: Run strict framework linting using the CLI (e.g. `php -l path/to/file.php` or `npm run lint`).
    - **Web Routing & Status Code Validation**: Spin up terminal clients to internally ping root routes directly from the framework engine to confirm HTTP 200 statuses and ensure global middlewares didn't crash the stack (e.g. for Laravel: `php artisan tinker --execute="echo app()->handle(Illuminate\Http\Request::create('/', 'GET'))->getStatusCode();"`).
4. **Intelligent Optimization**: Focus on high-impact areas without introducing side effects.
5. **Strategic Data Access**: Prioritize efficient query design and database best practices.
6. **Database Indexing Review**: For every module and controller touched, execute a comprehensive indexing analysis (see dedicated section below).

## Examples

### Before Impact Analysis
```python
# Modifying a shared utility without checking dependents
def get_user_data(user_id):
    return db.query("SELECT * FROM users WHERE id = ?", user_id)
```

### After Impact Analysis
```python
# Checking dependents and ensuring no breaking changes
def get_user_data(user_id):
    # Verified that 5 other modules use this. 
    # Adding a cache layer instead of changing the return structure.
    data = redis.get(f"user:{user_id}")
    if not data:
        data = db.query("SELECT * FROM users WHERE id = ?", user_id)
        redis.set(f"user:{user_id}", data)
    return data
```

## Database Indexing Review Protocol

For **every** module and controller the sentinel works on, a comprehensive database indexing review is **mandatory**. This analysis must extend beyond the modified file to cover **all related models, services, repositories, and database tables** involved in the request.

### Scope of Analysis

When triggered, the indexing review must cover:
- The modified controller or module itself.
- All Eloquent/ORM models referenced directly or indirectly.
- Service classes and repository layers that execute queries on behalf of the controller.
- Database tables involved in joins, subqueries, and relationship eager-loads.
- Scheduled jobs, observers, or event listeners that query the same tables.

### Step-by-Step Procedure

1. **Query Discovery**
   - Trace every database query executed by the feature (including relationships, scopes, and raw queries).
   - List each query with its origin (model, service, repository, or raw statement).
   - Flag N+1 patterns, full-table scans, and unoptimized joins.

2. **Existing Index Audit**
   - Retrieve the current index definitions for every involved table.
   - For SQL databases, run or simulate `SHOW INDEX FROM <table>` (MySQL) or `\d <table>` (PostgreSQL).
   - For MongoDB, inspect `db.collection.getIndexes()`.
   - Map each existing index to the queries it serves.

3. **Missing Index Identification**
   - For each discovered query, determine the optimal index strategy.
   - Identify `WHERE`, `ORDER BY`, `GROUP BY`, and `JOIN ON` columns that lack supporting indexes.
   - Recommend **compound indexes** where multiple columns are filtered or sorted together.
   - For MongoDB, consider field order in compound indexes to match query patterns.

4. **Inefficient Index Detection**
   - Identify indexes with poor selectivity (e.g., boolean columns indexed alone).
   - Detect over-broad indexes that could be narrowed with a prefix or partial index.
   - Flag indexes whose column order does not match the most common query patterns.

5. **Redundant / Unused Index Detection**
   - Identify indexes that are strict prefixes of other compound indexes (and therefore redundant).
   - Detect indexes on columns never referenced in any query path.
   - Flag duplicate indexes (same columns, same order).

6. **Recommendation & Justification**
   - For each recommendation, explain:
     - **What**: The exact index to add, modify, or drop.
     - **Why**: The query it serves and the performance problem it solves.
     - **Impact**: Expected improvement (e.g., "converts a full collection scan to an index seek on ~50k documents").
     - **Trade-off**: Write-performance cost or storage overhead, if relevant.

From NavanithanS/Agent-Skill-Kit, MIT.

More from NavanithanS/Agent-Skill-Kit

Signals

Stars
1
Forks
1
Open issues
0
Last commit (this folder)
Sep 5, 2026 (1 month ago)
Last release
Oct 4, 2026 (24 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from NavanithanS

Cite this page

ask-impact-sentinel skill. Agent Mart. https://agentmart.dev/skills/navanithans-ask-impact-sentinel (last updated 2026-10-24)