Code Review
dotnet/macios
Review dotnet/macios PRs against established rules. An agent skill from dotnet/macios.
Automatically scans the TizenFX codebase on a rotating schedule to discover .NET 8 / C 12+ refactoring targets and register them as GitHub Issues.
$ npx skills add Samsung/TizenFX --skill refactor-analysis -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Samsung/TizenFX refactor-analysis --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Samsung/TizenFX.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/refactor-analysis .claude/skills/refactor-analysis && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "refactor-analysis" agent skill from https://github.com/Samsung/TizenFX/tree/main/.agents/skills/refactor-analysis into .claude/skills/refactor-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refactor-analysis", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Samsung/TizenFX/tree/main/.agents/skills/refactor-analysisType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Samsung/TizenFX --skill refactor-analysis -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Samsung/TizenFX refactor-analysis --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Samsung/TizenFX.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/refactor-analysis .agents/skills/refactor-analysis && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "refactor-analysis" agent skill from https://github.com/Samsung/TizenFX/tree/main/.agents/skills/refactor-analysis into .agents/skills/refactor-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refactor-analysis", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Samsung/TizenFX --skill refactor-analysis -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Samsung/TizenFX refactor-analysis --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Samsung/TizenFX.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/refactor-analysis .cursor/skills/refactor-analysis && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "refactor-analysis" agent skill from https://github.com/Samsung/TizenFX/tree/main/.agents/skills/refactor-analysis into .cursor/skills/refactor-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refactor-analysis", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Samsung/TizenFX.git --path .agents/skills/refactor-analysis--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Samsung/TizenFX --skill refactor-analysis -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Samsung/TizenFX refactor-analysis --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Samsung/TizenFX.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/refactor-analysis .gemini/skills/refactor-analysis && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "refactor-analysis" agent skill from https://github.com/Samsung/TizenFX/tree/main/.agents/skills/refactor-analysis into .gemini/skills/refactor-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refactor-analysis", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Samsung/TizenFX refactor-analysisInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Samsung/TizenFX --skill refactor-analysis -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Samsung/TizenFX.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/refactor-analysis .github/skills/refactor-analysis && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "refactor-analysis" agent skill from https://github.com/Samsung/TizenFX/tree/main/.agents/skills/refactor-analysis into .github/skills/refactor-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refactor-analysis", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Samsung/TizenFX --skill refactor-analysis -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Samsung/TizenFX refactor-analysis --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Samsung/TizenFX.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/refactor-analysis .opencode/skills/refactor-analysis && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "refactor-analysis" agent skill from https://github.com/Samsung/TizenFX/tree/main/.agents/skills/refactor-analysis into .opencode/skills/refactor-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refactor-analysis", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
refactor-analysisAutomatically scans the TizenFX codebase on a rotating schedule to discover .NET 8 / C 12+ refactoring targets and register them as GitHub Issues.
Refactor Analysis is an agent skill from Samsung/TizenFX. Automatically scans the TizenFX codebase on a rotating schedule to discover .NET 8 / C 12+ refactoring targets and register them as GitHub Issues.
Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Refactoring. It works with .NET, C# and GitHub. The repository describes itself as: C Device APIs for Tizen. The licence is Apache-2.0.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 0352388. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
ghgitFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
learn.microsoft.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Refactor Analysis loads about 2.6k tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 1,018 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Samsung/TizenFX at commit 0352388, republished under its Apache-2.0 licence (© Samsung). 1,018 words, ~2,612 tokens.
.claude/skills/refactor-analysis/SKILL.md (or your agent's skills folder).A pipeline that scans the TizenFX codebase for .NET 8 and C# 12+ modernization/optimization opportunities, drafts concrete application plans, and automatically registers them as GitHub Issues.
Each created issue explicitly states that it is a refactoring objective.
gh CLI (authenticated)① Auto-select target area and scan → ② Optimization feasibility analysis (Self-Reflection)
→ [Pass] ③ Draft refactoring application plan → ④ Auto-register GitHub Issue
→ [Reject] Discard (low ROI / high risk)Automatic directory rotation logic: Because the scan scope is broad, the scan area is automatically rotated on every run.
gh repo clone samsung/TizenFX, or git pull the existing clone to syncsrc/:ls -d src/Tizen.*/ai-task labeled issues:gh issue list --repo samsung/TizenFX --label "ai-task" --state all --json title --jq '.[].title' | grep -oP '\[Scope: [^\]]+\]'Scan Philosophy — 4 Evaluation Lenses (lens-based, not category-based)
Rather than "hunting" for a fixed list of patterns, observe the code through 4 evaluation lenses. A single finding may hit multiple lenses at once; the more it overlaps, the higher its grade.
In priority order:
The most important lens. Target measurable performance improvements.
ToList/ToArray in hot paths, new inside loops, boxing/unboxing, closure allocation (lambda capture)Span<T>/Memory<T>, ArrayPool<T>, stackalloc (small fixed size)FrozenDictionary/FrozenSet (read-only lookup), SearchValues<T> (char search), CollectionsMarshalValueTask (hot path), use IAsyncEnumerable, remove .Result/.Wait() (also prevents deadlocks)Modernize with the latest language and runtime features.
[1, 2, ..x], primary constructors (class/struct), ref readonly parametersrequired members, generic math, raw string literals """..."""record struct, switch expression, init accessorArgumentException.ThrowIfNull(x), ArgumentOutOfRangeException.ThrowIfNegative, TimeProvider#nullable enable, ensure NRT consistencyImprove readability and maintainability (within internal/private scope).
Adherence to official guidelines. Based on Microsoft Design Guidelines.
.Result, .Wait() (cause deadlocks)using declaration, consistent propagationcatch (Exception), swallowed exceptions, mismatched exception typesLens overlap → grade ↑: if a finding hits both Performance and Modernization, it ranks higher than a single-lens finding (see Stage ②).
Quantitative heuristics (to minimize subjective judgment):
case branches, each ≥ 3 linesnew or LINQ chain inside for/foreachFor each finding, self-verify against the following criteria:
→ Fails even one of these → discard (low ROI / high risk)
For items passing the gate, assign a grade using this matrix.
| Grade | Condition | Action |
|---|---|---|
| 🔴 Critical | Performance lens + hot path + measurable numerical improvement expected, OR bug risk (async deadlock, missing IDisposable, NullReferenceException path) | Discover ✓ prioritize PR |
| 🟡 Improvement | Modernization / Clean Code / Coding Guidelines lens with clear readability/maintainability gains, OR a Performance improvement that is not on a hot path | Discover ✓ |
| 🟢 Nice-to-have | Style preference, plain naming taste, marginal theoretical improvement, weak lens match | Exclude (do not register) |
Grade tie-breaking rules:
"Hot path" judgment guide:
For items that pass, author a Markdown plan.
Required plan structure:
[Type: Refactoring]
[Scope: {scanned directory name, e.g., src/Tizen.NUI}]
[Priority: 🔴 Critical | 🟡 Improvement]
[Lens: Performance, Modernization, Clean Code, Coding Guidelines] (list all applicable lenses)
## Observation
{Describe the current state of the code and the problem pattern}
## Problem
{Why refactoring is needed — describe from each applicable lens's perspective}
## Proposed Improvement
{Concrete refactoring approach with Before/After code snippets}
### Target Files
- `{file path 1}`
- `{file path 2}`
## Expected Impact (Quantitative Metrics)
{**Required** for 🔴 Critical; write if possible for 🟡 Improvement}
- e.g., `allocation per call: 3 → 0`, `execution time: ~120ns → ~80ns`, `LOH allocations: eliminated`
- For non-Performance lenses: readability/complexity metrics (cyclomatic complexity, LOC, etc.)
## API Compatibility Check
- Public API signature change: none / {description}
- Behavior change: none / {description}
- Tizen API Level floor: {maintained / raise required — specify}
## Impact Scope
- Number of call sites for the modified symbol (measured via rg): `approx. N locations`
- Distinguish impact within the same assembly vs. other assemblies
- If >100 sites, recommend splitting the scopeImportant:
[Type: Refactoring], [Priority: ...], and [Lens: ...] so that the downstream agent (refactor-execute) can recognize the mode/priority.Duplicate check (required before registration):
gh issue list --repo samsung/TizenFX --label "ai-task" --state open --json title,body --jq '.[] | .title + " " + .body'→ Skip registration if an issue for the same file/pattern already exists
Issue registration:
gh issue create --repo samsung/TizenFX \
--title "[AI Refactoring] {finding name} [Scope: {directory}]" \
--body-file issue_plan.md \
--label "ai-task"[Lens: ...] in the issue body© Samsung, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/refactor-analysis of Samsung/TizenFX.
Open the folder on GitHubat commit 0352388
Refactor Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Refactor Analysis this skillSamsung/TizenFX | 214 | — | ~2.6k | Automated safety check: Pass | Apache-2.0 | |
| Code Reviewdotnet/macios | 2.9k | — | ~1.7k | Automated safety check: Pass | Custom licence | |
| Add Refactoringdotnet/roslynator | 3.5k | — | ~946 | Automated safety check: Pass | Custom licence | |
| Code Reviewjonathanpeppers/dotnes | 780 | — | ~2.1k | Automated safety check: Pass | MIT | |
| Dynamo Dotnet ExpertDynamoDS/Dynamo | 2k | — | ~909 | Automated safety check: Pass | Apache-2.0 | |
| Release Roslynatordotnet/roslynator | 3.5k | — | ~1k | Automated safety check: Pass | Custom licence |
dotnet/macios
Review dotnet/macios PRs against established rules. An agent skill from dotnet/macios.
dotnet/roslynator
A skill your agent uses when adding a new RR refactoring in roslynator, editing Refactorings.xml, registering in RefactoringContext, or when refactorings-testing.md shows XunitRefactoringVerifier —…
jonathanpeppers/dotnes
Review dotnes pull requests against established repository rules.
DynamoDS/Dynamo
Write and review C/.NET code in Dynamo following Dynamo coding standards, modern C patterns, and repo conventions.
dotnet/roslynator
A skill your agent uses when shipping a roslynator release, rolling CHANGELOG.md [Unreleased], updating the VS Code extension changelog, creating a GitHub v release, or optionally tagging cli-v.
dotnet/macios
Manage stacked branches and pull requests with the gh-stack GitHub CLI extension.
Samsung/TizenFX
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.
Samsung/TizenFX
Performs code review on every open PR of TizenFX and replies with technical responses to new comments left by other reviewers.
Samsung/TizenFX
For AI-generated PRs labeled ai-task in TizenFX, evaluates human/AI review feedback and either applies it to the code or responds.
Samsung/TizenFX
Automatically processes TizenFX ai-task issues (dispatching between refactoring/feature modes) and creates a PR.
Categories
Automatically scans the TizenFX codebase on a rotating schedule to discover .NET 8 / C 12+ refactoring targets and register them as GitHub Issues. Refactor Analysis is an agent skill from Samsung/TizenFX.NET 8 / C 12+ refactoring targets and register them as GitHub Issues.
Refactor Analysis fits situations like: tasks that involve Refactoring.
Run `npx skills add Samsung/TizenFX --skill refactor-analysis -a claude-code`. Or copy the skill folder (.agents/skills/refactor-analysis in Samsung/TizenFX) into .claude/skills/refactor-analysis in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Samsung/TizenFX --skill refactor-analysis -a codex`. Or copy the skill folder (.agents/skills/refactor-analysis in Samsung/TizenFX) into .agents/skills/refactor-analysis in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Samsung/TizenFX --skill refactor-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/refactor-analysis, .gemini/skills/refactor-analysis, .github/skills/refactor-analysis and .opencode/skills/refactor-analysis in your project.
Going by SKILL.md and its folder, Refactor Analysis needs the command-line tools its instructions call (gh and git).
SKILL.md names 1 domain. As links in the text: learn.microsoft.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Refactor Analysis is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Refactor Analysis: Code Review (dotnet/macios, 2.9k stars), Add Refactoring (dotnet/roslynator, 3.5k stars), Code Review (jonathanpeppers/dotnes, 780 stars) and Dynamo Dotnet Expert (DynamoDS/Dynamo, 2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Samsung (a GitHub organization) maintains it in Samsung/TizenFX, which has 214 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 6, 2026.
Source: Samsung/TizenFX on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.