スキル一覧に戻る
stephenwinters81

sentinel

by stephenwinters81

0🍴 0📅 2026年1月13日
GitHubで見るManusで実行

SKILL.md


name: sentinel description: File-mediated parallel security audit for codebases. Launches domain-specific auditors that write findings to files, then synthesizes into consolidated report. Token-efficient through file state instead of context accumulation.

Sentinel: Security Compliance & Privacy Audit Protocol

When to Activate

Use this skill when the user requests:

  • Security audit of a codebase
  • Privacy/compliance review (HIPAA, GDPR, etc.)
  • Vulnerability assessment
  • Security posture evaluation
  • User explicitly mentions "sentinel", "security audit", or "compliance review"

Architecture

File-Mediated Parallel Auditors

Why File-Mediated?

Traditional sequential audits accumulate context:

  • Phase 1 findings passed to Phase 2
  • Phase 2 findings passed to Phase 3
  • Token usage grows O(n) with phases

Sentinel uses files as intermediate state:

  • Each auditor writes findings to a file
  • Auditors run in parallel (no dependencies)
  • Synthesis reads only the output files
  • Token usage stays O(1) per agent

The Audit Domains

DomainFileFocus
Authentication01-authentication.mdJWT, sessions, tokens, password handling
Data Protection02-data-protection.mdEncryption at rest/transit, key management, PHI
API Security03-api-security.mdCORS, rate limiting, middleware, headers
Input Validation04-input-validation.mdInjection, sanitization, Pydantic validators
Secrets Management05-secrets-management.mdEnv vars, hardcoded secrets, key rotation
Privacy Compliance06-privacy-compliance.mdAudit logs, data retention, consent

Execution Flow

┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ Auth Auditor │ │ Data Auditor │ │ API Auditor  │  ... (6 parallel)
│ writes:      │ │ writes:      │ │ writes:      │
│ 01-auth.md   │ │ 02-data.md   │ │ 03-api.md    │
└──────────────┘ └──────────────┘ └──────────────┘
       │               │               │
       └───────────────┴───────────────┘
                       │
                       ▼
              ┌──────────────────┐
              │ Synthesis Agent  │
              │ reads: *.md      │
              │ writes: REPORT   │
              └──────────────────┘

Invocation

python3 .claude/skills/sentinel/sentinel.py [target_dir]

Options

# Audit specific directory (default: current dir)
python3 .claude/skills/sentinel/sentinel.py ./api

# Custom output directory
python3 .claude/skills/sentinel/sentinel.py --output ./security-reports

# Specific domains only
python3 .claude/skills/sentinel/sentinel.py --domains auth,api,secrets

# Skip synthesis (just run auditors)
python3 .claude/skills/sentinel/sentinel.py --no-synthesis

Output Structure

docs/security-audit/
├── 01-authentication.md      # JWT, sessions, password handling
├── 02-data-protection.md     # Encryption, PHI, key management
├── 03-api-security.md        # CORS, rate limiting, headers
├── 04-input-validation.md    # Injection vectors, sanitization
├── 05-secrets-management.md  # Env vars, hardcoded secrets
├── 06-privacy-compliance.md  # Audit logs, retention, consent
└── SECURITY-REPORT.md        # Consolidated findings with severity

Finding Format

Each auditor produces findings in this format:

## [SEVERITY] Finding Title

**Location:** `path/to/file.py:123`
**Category:** Authentication / Injection / etc.
**CWE:** CWE-XXX (if applicable)

### Description
What the vulnerability/issue is.

### Evidence
Code snippets or configuration showing the issue.

### Recommendation
How to fix it.

### References
- OWASP link
- Relevant documentation

Severity Levels

LevelDescription
CRITICALExploitable now, data breach risk
HIGHSignificant vulnerability, needs immediate attention
MEDIUMSecurity weakness, should fix soon
LOWMinor issue or hardening opportunity
INFOObservation, best practice suggestion

Token Efficiency

ApproachTokens per AgentTotal (6 domains)
SequentialAccumulates~150k+
File-mediated~25k fixed~150k parallel + 30k synthesis

Key savings:

  • Synthesis agent reads ~30KB of files instead of full audit context
  • Each auditor starts fresh (no inherited context)
  • Parallel execution = faster wall-clock time

Requirements

  • Claude Code CLI installed and authenticated (claude command available)
  • Python packages: rich, asyncio

Example Usage

# Full audit of current project
python3 .claude/skills/sentinel/sentinel.py .

# Audit only the API backend
python3 .claude/skills/sentinel/sentinel.py ./api --output ./api-security-audit

# Quick auth + secrets check
python3 .claude/skills/sentinel/sentinel.py --domains auth,secrets

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です