agentleFS
supportersimulatorsupportersimulator/3-surgeons/skills/sentinel/SKILL.md

sentinel

Skill2 starsChanged 9 months agoMITView on GitHub

Detect complexity risks across configurable dimensions

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use blueprint, scout and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • WordPressSkill

    blueprint

    Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing, validating schema keys, choosing steps/resources, and debugging Blueprint files. For only running or sharing a Playground environment, use wp-playground.

    Also in 3 projects that use this

  • srpadronoSkill

    scout

    Writes UI tests for untested steps in the journey map using framework-correct selectors, waits, and patterns. Use when writing tests to fill coverage gaps or generating E2E tests for untested journey steps.

    Also in 3 projects that use this

  • jdonohooSkill

    architect

    Architect Vern - Systems design, scalable architecture, production-grade thinking. The blueprints before the build.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If no vectors trigger, the score is 0.0.

    line 74

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Sentinel

When to Run

The Sentinel scans content for complexity indicators across multiple dimensions (vectors). It answers the question: "What risks am I not seeing?" Run it:

  • Before major changes -- scan the diff or plan description to surface hidden risks
  • After feature completion -- scan the implementation to catch complexity you introduced
  • Periodic scans -- scan key files or modules to monitor complexity drift over time
  • Before cross-examination -- if sentinel flags high risk, escalate to full cross-exam

Do NOT use for: health checks (use probe), claim validation (use consensus), or infrastructure verification (use gains-gate).

How to Invoke

CLI

3s sentinel "Refactoring the authentication module to use JWT tokens with Redis-backed session storage and a new OAuth2 provider integration"

MCP Tool

sentinel_run(content="Refactoring the authentication module to use JWT tokens with Redis-backed session storage and a new OAuth2 provider integration")

The content parameter is the text to scan -- it can be a description of planned work, a code diff, a commit message, or any text that describes what you are doing.

How It Works

Complexity Vectors

The Sentinel evaluates content against a set of complexity vectors. Each vector has:

PropertyPurpose
keywordsTerms to search for in the content (case-insensitive)
risk_scoreSeverity weight from 0.0 to 1.0
noise_thresholdMaximum keyword hits before the vector is discarded as noise

Default Vectors

IDVectorKeywordsRisk Score
CV-001Authentication complexityauth, token, jwt, oauth, session0.7
CV-002Database schema changesmigration, schema, alter table, index0.6
CV-003API surface changesendpoint, route, api, rest, graphql0.5
CV-004Security concernsinjection, xss, csrf, vulnerability, exploit0.9
CV-005Performance impactcache, latency, throughput, bottleneck, n+10.6
CV-006Concurrency issueslock, mutex, race condition, deadlock, thread0.8
CV-007External dependenciesapi key, third-party, vendor, sdk, external0.5
CV-008State managementstate, redux, context, global, singleton0.4

The Noise Gate

If a keyword appears more than noise_threshold times (default 6) in the content, that vector is discarded rather than triggered. Why? Content that mentions "auth" 20 times is probably an authentication module -- the keyword is ubiquitous in that context and not a useful risk signal. The noise gate prevents false positives from domain-specific content.

A vector triggers only when: 0 < hits <= noise_threshold.

Scoring

The overall score is the average of all triggered vectors' risk scores:

overall_score = sum(triggered_risk_scores) / count(triggered_vectors)

If no vectors trigger, the score is 0.0.

Interpreting Risk Levels

Risk LevelScore RangeMeaningRecommended Action
none0.0No complexity vectors triggeredProceed normally
low0.01 - 0.19Minor complexity detectedMonitor, no special action
medium0.20 - 0.49Moderate complexityReview before proceeding
high0.50 - 0.79Significant complexityConsider cross-examination before proceeding
critical0.80 - 1.0Multiple high-risk vectors triggeredCross-examination strongly recommended

Reading the Output

CLI Output

Sentinel scan: 8 vectors checked
Triggered: 3 | Risk: high | Score: 0.67

Triggered vectors:
  [CV-001] Authentication complexity -- 3 hits (risk=0.7)
  [CV-006] Concurrency issues -- 2 hits (risk=0.8)
  [CV-005] Performance impact -- 1 hits (risk=0.6)

Recommendations:
  - High concurrency issues detected -- consider cross-examination
  - Elevated authentication complexity -- review before proceeding
  - Elevated performance impact -- review before proceeding

Key Fields

FieldWhat It Tells You
vectors_checkedTotal vectors evaluated (usually 8 with defaults)
vectors_triggeredHow many had keyword hits within noise threshold
risk_levelAggregate risk category (none/low/medium/high/critical)
overall_scoreNumeric risk score 0.0-1.0
triggered_vectorsDetails: which vectors, how many hits, individual risk scores
recommendationsActionable suggestions per triggered vector

Recommendations Logic

The Sentinel generates one recommendation per triggered vector:

Vector Risk ScoreRecommendation Template
>= 0.8"High {vector name} detected -- consider cross-examination"
>= 0.5"Elevated {vector name} -- review before proceeding"
< 0.5"Minor {vector name} noted -- monitor"

Workflow: Sentinel as Risk Pre-Screen

# 1. Scan your planned change
3s sentinel "Adding Redis cache layer with distributed locks for the session store"

# 2. If risk is high/critical, escalate
3s cross-exam "Adding Redis cache with distributed locks for session store -- sentinel flagged concurrency and performance risks"

# 3. If risk is low/medium, proceed with awareness
# The triggered vectors tell you exactly where to focus your review

Custom Vectors

The Sentinel accepts custom vectors programmatically:

from three_surgeons.core.sentinel import Sentinel, ComplexityVector

custom_vectors = [
    ComplexityVector(
        id="CV-CUSTOM-001",
        name="Payment processing",
        keywords=["stripe", "payment", "charge", "refund", "invoice"],
        risk_score=0.9,
        noise_threshold=4,
    ),
]

sentinel = Sentinel(vectors=custom_vectors)
result = sentinel.run_cycle("Adding Stripe payment processing with automatic refunds")

This allows project-specific risk dimensions beyond the defaults.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.