publish-artifact
БесплатноБез исполняемых скриптовНе проверенPublish an rp1 artifact (investigation report, design doc, audit) from .rp1/work/ as an idempotent PR or issue comment instead of committing it to the repo…
от rp1-run★ 38 звёзд на GitHubОб этом скилле
Publish Artifact
Publish an rp1 artifact (markdown under .rp1/work/; frontmatter optional) as a PR or issue comment without committing the artifact file to the repo. Re-running updates the same comment in place.
The artifact file is never modified by this skill — it is read-only on the local side, write-only on the GitHub side.
⚠️ Always dry-run first on a real PR or issue
The skill writes to a real GitHub PR/issue comment by default. Before publishing to a PR/issue you care about (especially one with active reviewers), run with
"dry_run": truefirst. A dry-run still resolves the target, validates, and runs the safety gates — it only skips the GitHub write — then returns the projecteddata.comment_bodyplus thedata.action(postorpatch) the real run would take. Once the projection looks right, re-run withoutdry_runto post.
When to invoke
- User explicitly runs
/rp1-dev:publish-artifact <path> [target]. - User has just produced an rp1 artifact and asks how to share it on a PR or issue without committing it.
- User asks to "summarize an rp1 investigation report into a PR or issue comment."
When NOT to invoke
- The file is not an rp1 work artifact at all (not under
.rp1/work/and unrelated to rp1). This skill publishes rp1 artifacts; frontmatter is optional, but the file should be an rp1 work product. - The user wants to keep the artifact in the repo. This skill is for the don't commit it case.
Gather the inputs
| Field | Required | How to determine |
|---|---|---|
artifact_path |
yes | The path to the artifact markdown the user wants to publish. A path outside .rp1/work/ is allowed (a warning is returned). |
target |
no | A PR/issue number or full GitHub PR/issue URL the user named. Omit it to default to the current branch's open PR. |
dry_run |
no | true when the user wants a preview, or on a first publish to a real target. Defaults to false (real post). |
force |
no | true only when the user explicitly wants to override a safety gate (closed/merged target, or a comment owned by another author). Defaults to false. See references/edge-cases.md. |
Procedure
The whole procedure runs as one command — the github-pr publish-comment agent-tool. Pipe a single JSON object on stdin and read the JSON result on stdout:
echo '{"artifact_path": "<path>", "target": "<pr-or-issue>", "dry_run": false, "force": false}' \
| rp1 agent-tools github-pr publish-comment
Include only the fields you have: artifact_path is required; omit target, dry_run, and force when they are unset rather than guessing values.
That single process does everything: derive owner/repo from the git origin remote → resolve the PR/issue target → project the comment body → find any existing comment for this artifact via its marker → POST or PATCH (or, under dry_run, return the projected body and the action it would take, writing nothing). It calls the GitHub API directly; it never shells out to gh and never modifies the artifact file.
Run the one command. Do not re-implement these steps inline or call
git/ghyourself. The procedure threads state across steps — the projected body, the idempotencydoc_key, the chosenaction, and the target comment id. The agent-tool holds that state in one process. Pass the user's inputs straight through, read the JSON output, and relay the result.
Reading the output
The command prints the standard agent-tools JSON envelope on stdout. The publish
fields are nested under data — read them as data.<field>, not at the top level:
{
"success": true,
"tool": "github-pr",
"data": {
"action": "post" | "patch",
"comment_url": "https://github.com/...#issuecomment-...",
"doc_key": "<rp1_doc_id or path:<relative-path>>",
"size_bytes": 1234,
"warnings": ["..."],
"dry_run": false,
"comment_body": "<projected body — present only on dry_run>"
}
}
data.action—post(new comment created) orpatch(existing comment updated in place). On a dry-run this is the action the real run would take.data.comment_url— link to the created/updated comment;nullon a dry-run.data.doc_key— the idempotency marker key (rp1_doc_idwhen present, elsepath:<relative-path>).data.size_bytes— projected comment body size; the GitHub 65 KB cap is enforced as a hard error.data.warnings— surface every entry to the user. These are advisory (summary-ladder rung, orphaned prior comment, stale local mtime, path outside.rp1/work/), not failures.data.comment_body— on a dry-run only, the full projected body. Show it (or diff it) so the user can confirm before a real post.
On success: relay data.action, data.comment_url, and any data.warnings.
On a refusal or error: the command exits non-zero and prints an error envelope on stderr — `{ "success": false, "tool": "github-pr", "dat
Установить publish-artifact в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(echo *)Bash(rp1 *)Вложенные файлы
FAQ
Что делает скилл publish-artifact?
Publish an rp1 artifact (investigation report, design doc, audit) from .rp1/work/ as an idempotent PR or issue comment instead of committing it to the repo; re-runs update the same comment in place.
Как установить скилл publish-artifact?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл publish-artifact запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic