PR Extension Workflow
БесплатноБез исполняемых скриптовНе проверенAnalyze pull requests for detection coverage gaps and recommend additional detections, story alignments, and test coverage to extend PRs before merge.
от MHaggis★ 531 звезда на GitHubОб этом скилле
PR Extension Workflow Skill
Overview
When a PR adds new detections, there are often opportunities to extend coverage before merge — additional sub-techniques, missing analytic story associations, untested scenarios, or related detections that should ship together. This skill provides a systematic workflow for analyzing and extending detection PRs.
PR Analysis Workflow
Step 1: Inventory the PR
Examine every detection file in the PR:
- Detection count: How many new/modified detections?
- Techniques covered: Which MITRE ATT&CK technique IDs?
- Data sources used: Which log sources and fields?
- Story associations: Which analytic stories are referenced?
- Severity levels: Distribution of severity ratings
Step 2: Identify Coverage Gaps
For each technique in the PR, check:
- Sub-technique coverage — If the PR covers T1059 (Scripting), does it cover the important sub-techniques? (.001 PowerShell, .003 Windows Command Shell, .007 JavaScript)
- Tactic coverage — Does the technique appear under multiple tactics? Are all relevant tactics addressed?
- Platform coverage — If the technique applies to Windows AND Linux, does the PR cover both?
- Evasion variants — Does the detection only catch the obvious case, or does it handle obfuscation/encoding?
Step 3: Check Story Alignment
For each detection:
- Is it associated with at least one analytic story?
- Does a relevant story already exist that this should be added to?
- Should a new story be created to group this with related detections?
Finding stories:
search_stories("<threat_name>")
search_stories("<technique_category>")
Step 4: Review Detection Quality
For each detection in the PR:
- MITRE technique mapping is correct and specific (sub-technique, not just parent)
- Severity is appropriate (not everything is "high")
- Description clearly explains what is detected and why it matters
- Query is optimized for the target SIEM (see Detection Query Optimizer skill)
- Fields used match the expected data model / schema (CIM, ECS, Sigma, or MDE tables)
- Known false positive guidance is included
- Kill chain phase / tactic is accurate
Step 5: Recommend Extensions
Based on the gap analysis, recommend:
- Additional detections — For uncovered sub-techniques or platforms
- Story updates — New or updated analytic stories
- Test coverage — Atomic Red Team tests that should validate the new detections
- Related PRs — Other pending work that should be coordinated
Extension Recommendation Template
When recommending PR extensions, use this format:
## PR Extension Recommendations
### Current Coverage
- Detections: N new, M modified
- Techniques: T1059.001, T1059.003
- Stories: "Windows Command Line Abuse"
### Recommended Additions
#### 1. [Priority: High] Add T1059.007 JavaScript Detection
- **Reason:** PR covers PowerShell and cmd.exe but misses JavaScript/JScript execution
- **Data source:** Sysmon EventCode 1 (process creation)
- **Suggested approach:** Monitor for wscript.exe/cscript.exe with suspicious arguments
#### 2. [Priority: Medium] Create Analytic Story "Script Interpreter Abuse"
- **Reason:** Detections span multiple scripting sub-techniques but no unifying story
- **Suggested detections to include:** All T1059.* from this PR + existing T1059.005
#### 3. [Priority: Low] Add Linux Coverage for T1059.004 (Unix Shell)
- **Reason:** PR is Windows-only but T1059 has Linux sub-techniques
- **Data source:** auditd / syslog process creation
Coverage Gap Identification Queries
Use these to quickly identify what a PR is missing:
# Find all sub-techniques under a parent
get_technique("T1059") → Lists all sub-techniques
# Check existing detection coverage
get_technique_count("T1059.001") → How many detections exist
get_technique_count("T1059.007") → Is this sub-technique covered?
# Find similar detections already in the repo
find_similar_detections("JavaScript execution via wscript")
# Check what stories exist for this area
search_stories("command line")
search_stories("scripting")
Common Extension Patterns
| PR Contains | Often Missing | Priority |
|---|---|---|
| Process creation detections | Parent process context checks | High |
| Single-platform detection | Cross-platform variant | Medium |
| Execution detection | Corresponding persistence detection | High |
| Generic technique detection | Specific sub-technique variants | Medium |
| Detections without story | Story association or new story | Medium |
| High-severity detections | Corresponding hunting queries | Low |
| Signature-based detection | Behavioral/anomaly variant | Medium |
Integration with CI/CD
If your detection repo has CI/CD validation:
- Ensure new detections pass schema validation
- Verify MITRE mappings are valid technique IDs
- Check that referenced analytic stories / rule gro
Установить PR Extension Workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл PR Extension Workflow?
Analyze pull requests for detection coverage gaps and recommend additional detections, story alignments, and test coverage to extend PRs before merge.
Как установить скилл PR Extension Workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл PR Extension Workflow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic