Claude Code skill for a C# review remark and rationale comment
Turn a developer-supplied explanation into a short comment beside the reviewed C# code. Keep compatibility rationale close to the behavior it protects.
中文Install in Claude Code
Open a local exercise directory in Claude Code with the sample C# file. Prepare the review remark, its target method, and the developer’s compatibility requirement.
- Review `.claude/skills/answer-review-remark/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/answer-review-remark/` in your project and save the reviewed file as `.claude/skills/answer-review-remark/SKILL.md`.
- Start Claude Code from that project's root, then select `/answer-review-remark` in the slash menu.
Example task
In `ShelfLabels.cs`, a reviewer suggests removing leading spaces from `ShelfLabel`. The developer explains that the legacy printer reads fixed positions and requires the first two columns to stay blank. Add one comment for that reason. Use `Atlas` as the book title.
static string ShelfLabel(string title)
{
return " " + title;
}What to check
The only addition is a compatibility comment immediately above the return statement. With `Atlas` as input, the method still returns `" Atlas"` with two leading spaces.
static string ShelfLabel(string title)
{
// The legacy printer requires the first two columns to remain blank.
return " " + title;
}Original SKILL.md on GitHub · Updated
Frequently asked question
What reason belongs in the source comment?
Explain that the legacy printer requires the first two columns to remain blank. Put that one-sentence compatibility reason beside the return statement.