post-issue-comment — скилл для Claude Code: установка
Скилл собирает контекст GitHub issue, пишет короткий ответ на английском и публикует его. Нужен, когда ответ должен учитывать всю дискуссию.
npx skills add dyoshikawa/rulesync --skill post-issue-comment -a claude-codeЧто делает post-issue-comment
Скилл принимает запрос с номером или URL GitHub issue и замыслом ответа. Если одного из них нет, он просит уточнение. Затем параллельно получает описание, метаданные и комментарии через gh issue view; при необходимости смотрит связанные pull request, коммиты или файлы.
После этого скилл пишет короткий ответ на английском и публикует его командой gh issue comment <issue_number> --body "<reply body>". Текст должен опираться на обсуждение, передавать позицию пользователя и не добавлять чужих выводов. Формат — обычные абзацы без заголовков и длинных списков.
Без GitHub CLI в PATH публикация комментария не сработает. Если контекста для решения не хватает, скилл предлагает прямо сказать об этом в ответе, а не додумывать детали.
Какие задачи решает
- собрать описание и комментарии GitHub issue
- учесть последний комментарий перед ответом
- сформулировать позицию пользователя на английском
- опубликовать ответ в нужном issue
Примеры запросов агенту
- Собери контекст указанного GitHub issue и опубликуй короткий ответ: согласись с предложением и попроси добавить тест.
- Ответь на issue, который я укажу: вежливо объясни, почему предлагаемое изменение не подходит, и упомяни связанные файлы.
- Посмотри обсуждение issue и напиши на английском комментарий по моему замыслу, затем опубликуй его.
Как установить post-issue-comment
1Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill post-issue-comment -a claude-code2Вручную: положить файлы
~/.claude/skills/post-issue-comment/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/post-issue-comment/
1Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill post-issue-comment -a codex2Вручную: положить файлы
.agents/skills/post-issue-comment/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill post-issue-comment -a cursor2Вручную: положить файлы
.cursor/skills/post-issue-comment/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install dyoshikawa/rulesync post-issue-comment2Вручную: положить файлы
.github/skills/post-issue-comment/SKILL.md1Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill post-issue-comment -a gemini-cli2Командой платформы
gemini skills install https://github.com/dyoshikawa/rulesync --path .rulesync/skills/post-issue-commentВручную: положить файлы
.devin/skills/post-issue-comment/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add dyoshikawa/rulesync --skill post-issue-comment -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о post-issue-comment
Как установить post-issue-comment в Claude Code?
Выполните npx skills add dyoshikawa/rulesync --skill post-issue-comment -a claude-code, затем проверьте файл ~/.claude/skills/post-issue-comment/SKILL.md.
Что делает post-issue-comment?
Скилл получает контекст GitHub issue, учитывает замысел пользователя, готовит короткий ответ на английском и публикует его через GitHub CLI.
Что нужно для публикации комментария?
Скилл использует команды gh issue view и gh issue comment, поэтому GitHub CLI должен быть доступен. В запросе также нужны issue и содержание будущего ответа.
Исходный текст
SKILL.md · MIT
--- name: post-issue-comment description: >- Post a reply comment on a GitHub issue in English with a natural, concise writing style, based on the intent passed as arguments targets: - "*" --- arguments = the user's request Parse `arguments` as: - `target_issue`: the issue number (or URL) to reply to - `intent`: the gist of the reply the user wants to post (what to say, the stance to take, the points to cover) If `target_issue` is not provided, ask the user which issue to comment on. If `intent` is not provided, ask the user what the reply should convey. ## Step 1: Gather Issue Context Run the following in parallel: - Get the issue description and metadata: `gh issue view <issue_number>` - Get the issue comments: `gh issue view <issue_number> --comments` If the issue references related pull requests, commits, or files that are needed to craft an informed reply, gather that context as well. ## Step 2: Draft the Reply Based on the issue content and the user's `intent`, draft a reply comment. - Ground the reply in the actual discussion — address the latest comment or the original issue as appropriate. - Reflect the user's `intent` faithfully; do not add positions the user did not ask for. - If relevant context is missing or a decision cannot be made without more information, say so in the reply rather than guessing. ## Step 3: Post the Comment Post the drafted reply using: ```bash gh issue comment <issue_number> --body "<reply body>" ``` ## Writing Style Write in **English only**. Style guidelines — write like a human teammate, not a bot: - Use plain paragraphs. Avoid headings (`##`), horizontal rules (`---`), and excessive bullet lists. - Keep it conversational and direct. Say what matters, skip the filler. - Do not use phrases like "Great point!" or "Thanks for raising this!" unless you genuinely mean it and have nothing else to add. - Be honest. If you disagree or see an issue, say so clearly but respectfully. - Short is fine. A two-sentence comment is better than a five-paragraph essay with no substance. ## Step 4: Report Output the issue number and a brief summary of the comment that was posted.
© dyoshikawa · MIT · dyoshikawa/rulesync