원클릭으로
pr-analyzer
Analyze GitHub PR diffs and extract meaningful changes for STP generation
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Analyze GitHub PR diffs and extract meaningful changes for STP generation
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Classify PR review comments on STP/STD documents into auto-fixable vs needs-human categories. Maps free-text feedback to QualityFlow domain rules for automated fix routing.
Resolve Jira ID to project configuration and load project context
Generate comprehensive v2.1-ENHANCED STD YAML with pattern metadata, variables, test structure from ALL STP scenarios (single file)
Orchestrate STP → STD pipeline (generates comprehensive STD YAML only)
Generate test stubs with PSE docstrings from STD YAML — language and framework driven by project config
Detect test conventions from a codebase to drive test generation without tier config
| name | pr-analyzer |
| description | Analyze GitHub PR diffs and extract meaningful changes for STP generation |
| model | claude-opus-4-6 |
Phase: Pre-Processing User-Invocable: false
Analyze GitHub PR diffs and extract meaningful changes for STP generation.
Invoked by the github-pr-fetcher subagent after fetching PR details, diffs, and review comments.
pr_data:
url: https://github.com/example-org/example-repo/pull/1234
owner: example-org
repo: example-repo
pull_number: 1234
title: Add CPU hot-plug support
description: |
This PR implements CPU hot-plug functionality...
state: merged
author: developer
base_branch: main
head_branch: feature/cpu-hotplug
diff: |
diff --git a/pkg/controllers/vm/vm.go b/pkg/controllers/vm/vm.go
index abc123..def456 100644
--- a/pkg/controllers/vm/vm.go
+++ b/pkg/controllers/vm/vm.go
@@ -100,6 +100,20 @@ func (c *ResourceController) Reconcile() {
+func (c *ResourceController) HandleCPUHotplug(res *v1.Resource) error {
...
files:
- filename: pkg/controllers/vm/vm.go
status: modified
additions: 50
deletions: 10
- filename: pkg/controllers/vm/hotplug.go
status: added
additions: 200
deletions: 0
- ...
review_comments:
- user: reviewer1
body: "Consider edge case when VM is migrating"
path: pkg/controllers/vm/hotplug.go
line: 45
- ...
analysis:
pr_url: https://github.com/example-org/example-repo/pull/1234
summary: Implements CPU hot-plug functionality for running VMs
key_changes:
functions:
- name: HandleCPUHotplug
file: pkg/controllers/vm/vm.go
action: added
purpose: Main entry point for CPU hot-plug operations
- name: ValidateCPUChange
file: pkg/controllers/vm/hotplug.go
action: added
purpose: Validates CPU changes before applying
- ...
types:
- name: CPUHotplugSpec
file: api/v1/types.go
action: added
fields_changed:
- MaxSockets
- CurrentSockets
- ...
apis:
- endpoint: /resources/{name}/cpu
method: PATCH
action: added
purpose: Hot-plug CPU to running VM
- ...
configurations:
- name: EnableCPUHotplug
type: feature_gate
location: Platform CR
default: false
- ...
files_by_category:
controllers:
- pkg/controllers/vm/vm.go
- pkg/controllers/vm/hotplug.go
handlers:
- pkg/handlers/hotplug/cpu.go
api:
- api/v1/types.go
- api/v1/types_swagger_generated.go
tests:
- tests/hotplug_test.go
other:
- ...
review_insights:
edge_cases:
- "VM migration during hot-plug needs handling"
- "Consider maximum CPU limit validation"
concerns:
- "Performance impact of frequent hot-plug operations"
suggestions:
- "Add metrics for hot-plug success/failure rate"
impact_assessment:
components_affected:
- app-controller
- app-handler
- app-api
features_potentially_impacted:
- VM lifecycle
- Live migration
- Resource quotas
breaking_changes: false
api_changes: true
config_changes: true
Parse diff for:
func (receiver) FunctionName( - Go methodsfunc FunctionName( - Go functionsParse diff for:
type TypeName struct {type TypeName interface {Look for:
router.Handle, http.HandleFunc)api/ or config/ directories)Look for:
From review comments, extract:
Read {project_context.config_dir}/components.yaml for project-specific file categorization rules.
The following is an example of directory-to-category mapping (actual mappings come from components.yaml):
| Directory Pattern | Category |
|---|---|
pkg/controllers/ | controllers |
pkg/handlers/ | handlers |
pkg/api/ | api |
api/, staging/ | api |
tests/, *_test.go | tests |
config/, deploy/ | config |
cmd/ | cmd |
pkg/util/, pkg/util*/ | util |