بنقرة واحدة
sentinel-learn
Scan documentation files for conventions and generate draft Sentinel rules
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Scan documentation files for conventions and generate draft Sentinel rules
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
View or update Sentinel configuration
Scaffold Sentinel config and rules directory in the current repository, installing prerequisites if needed
Create or edit a Sentinel rule through guided conversation
Show Sentinel telemetry stats — rule performance, latency, violations, and hottest targets
Dismiss a draft Sentinel rule and prevent re-proposal
List pending draft Sentinel rules with provenance
| name | sentinel-learn |
| description | Scan documentation files for conventions and generate draft Sentinel rules |
| user-invocable | true |
Scan repository documentation files (CLAUDE.md, ADRs, READMEs) for conventions that should be enforced as Sentinel rules.
Check that .claude/sentinel/config.yaml exists. If not, tell the user to run /sentinel-init first and stop.
python3 sentinel_scribe.py --learn
Parse the JSON output. It contains: files_scanned, conventions_found, drafts_created.
Report to the user:
The scribe scans files matching scribe.doc_globs in config.yaml. Default globs:
CLAUDE.md, AGENTS.md, README.md, docs/**/*.md, ADR*.mdUsers can customize via:
scribe:
doc_globs:
- "CLAUDE.md"
- "docs/architecture/**/*.md"
After scanning, suggest the most relevant action:
/sentinel-drafts — review the proposed draft rules (if any were created)/sentinel-config — customize scribe.doc_globs to scan additional documentation sources/sentinel-rule — create a rule manually for conventions that aren't captured in documentation