원클릭으로
refactor-execute
Automatically processes TizenFX ai-task issues (dispatching between refactoring/feature modes) and creates a PR.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Automatically processes TizenFX ai-task issues (dispatching between refactoring/feature modes) and creates a PR.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | refactor-execute |
| description | Automatically processes TizenFX ai-task issues (dispatching between refactoring/feature modes) and creates a PR. |
A universal automation pipeline that sequentially processes GitHub Issues labeled ai-task.
The task mode is dynamically determined based on the [Type: Refactoring] keyword in the issue body or explicit instructions in comments.
gh CLI (authenticated)⓪ Discover target Issues (ai-task)
→ ① Determine task mode (Refactoring vs Feature/Bug)
→ [Refactoring] Refactor + guarantee API preservation → Build → Benchmark → PR
→ [Feature/Bug] Implement feature + tests → Build → PR
gh issue list --repo samsung/TizenFX --label "ai-task" --state open --json number,title,createdAt --jq 'sort_by(.createdAt) | .[]'
Fetch the selected issue details and comments:
gh issue view {NUMBER} --repo samsung/TizenFX --comments
Mode dispatch criteria:
[Type: Refactoring], or comments explicitly request refactoring/optimization.
→ Apply benchmark and rollback stages.gh repo clone samsung/TizenFX || (cd TizenFX && git checkout main && git pull)
git checkout -b ai-task/issue-{ID}
Build verification (required):
dotnet build
→ Must have 0 errors. Fix errors and rebuild if any occur.
[Feature-centric mode] Unit tests:
dotnet test
→ Existing tests must pass. Add missing test cases when necessary.
test/Tizen.Benchmark.Gallery/sdb deviceWhen sdb-related errors/issues occur (device not connected, deploy failure, execution error, etc.):
gh pr comment {PR_NUMBER} --repo samsung/TizenFX --body "⚠️ **Benchmark skipped**: Encountered an issue with sdb device connection/deployment/execution, so the benchmark could not be run. Manual benchmark verification is required. Error: {error summary}"
On successful execution:
git checkout -- .
→ After rollback, retry from Stage ③ with a different approach (max 1 retry)
→ If a regression persists on retry, leave a comment on the issue and move to the next issuePerform a final .NET expert review over the full set of changes.
Commit and push changes:
git add -A
git commit -m "Refactor: {change summary} (Fixes #{ID})"
git push origin HEAD
Write the PR description (pr_description.md):
## Summary
{Summary of the changes}
## Changes
{List of changed files and what changed in each}
## Mode
{Refactoring / Feature}
## Verification
- [ ] Build: passed
- [ ] Tests: {passed / N/A}
- [ ] Benchmark: {result summary / skipped (sdb error: reason) / N/A}
Fixes #{ID}
Create the PR:
gh pr create --repo samsung/TizenFX --title "[AI Task] {task summary}" --body-file pr_description.md --label "ai-task"
3-1. Verify and ensure the label is applied:
gh pr view --repo samsung/TizenFX --json labels --jq '.labels[].name' | grep -q "ai-task" || \
gh pr edit --repo samsung/TizenFX --add-label "ai-task"
For TizenFX issues that lack the `ai-task` label and have no assignee, posts an English first-pass technical answer plus a CODEOWNERS-based reviewer mention. Comments only — never assigns, never edits labels, never modifies code.
Performs code review on every open PR of TizenFX and replies with technical responses to new comments left by other reviewers. Never asks the author/reviewers for action and never leaves follow-up reminders.
For AI-generated PRs labeled `ai-task` in TizenFX, evaluates human/AI review feedback and either applies it to the code or responds. AI comments are capped at MAX_AI_ROUNDS=3 — beyond that they are skipped entirely to prevent infinite loops.
Automatically scans the TizenFX codebase on a rotating schedule to discover .NET 8 / C# 12+ refactoring targets and register them as GitHub Issues.