twg-artifacts · git:20260930.a49ba16 · 2026-09-30 · sha256 7786ee92a99f097d
twg-artifacts git:20260930.a49ba16A
Immutable. This exact content never changes and is served at /api/v1/blob/7786ee92a99f097d.
No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_xq2al3v4r2n7zyas/7786ee92a99f097d0ba4bac4eb181990c8c30d1f928a16e25fc0a2efc26d1c62.json
Then /plugin install twg-artifacts@markdownregistry-xq2al3v4r2n7zyas in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.
--- name: twg-artifacts description: > Use with root `twg` when a user wants to share, publish, send, or update a standalone local or generated file as an Atlassian Artifact. Do not use for Jira or Confluence attachments. --- # TWG artifacts ## CLI launcher fallback Run `twg <command>`. On shell `command not found`, use `$HOME/.local/bin/twg` (macOS/Linux) / `$env:LOCALAPPDATA\Programs\twg\bin\twg.exe` (PowerShell), then tell user to add that directory to PATH. Do not treat auth or command errors as PATH failures. Use `twg artifacts file create <path>` when the user wants to share a standalone local or generated file with coworkers, such as a generated HTML report, Markdown document, or presentation. Return the created artifact URL and metadata. ## Thumbnail Pass `--thumbnail <png-path>` on create or update when a representative preview is available. On macOS, an agent can generate one from the artifact file with `qlmanage -t -s 512 -o <output-directory> <artifact-file>`, then pass the generated PNG to `--thumbnail`. ## HTML files Upload only self-contained HTML. Embed the JavaScript, stylesheets, images, and other required assets in the file; it cannot depend on local files such as `./app.js`. Avoid browser-storage APIs such as `localStorage`, `sessionStorage`, and IndexedDB: the artifact viewer's content security policy may restrict them. ## Describe the content for search Pass `--description <text>` with a concise summary of the file's actual content. This description is indexed to improve artifact search. When the user does not provide one, derive it from the content you created or inspected—not only from its filename or media type. Do not invent content you have not read. ## Choose access for creation <!-- Intentional: `open` is link-only within the organisation, whereas `shared` makes an artifact discoverable. Artifacts are created to share with others, so only unreviewed drafts stay private. --> - Use `--access private` when the user has not had a chance to review a generated file. This is also the CLI default. - Use `--access open` when the user has reviewed the generated file, or supplied the existing file for sharing. Pass it explicitly because the CLI default is `private`. - If it is unclear whether the user reviewed the file, use `--access private`. If the user explicitly wants the file attached to a Jira work item or Confluence page, use that product's attachment commands instead. Use `twg artifacts file get <artifact-id>` only to retrieve metadata for an existing artifact. Use `twg artifacts file share <artifact-id> --account-id <account-id>` to grant specific users access to an existing private artifact. Repeat `--account-id` or pass a comma-separated list. The command accepts Atlassian account IDs and full `ari:cloud:identity::user/...` ARIs and validates them before changing access. If the artifact is open or shared, change it to private before adding explicit user grants. Use `twg artifacts file unshare <artifact-id> --account-id <account-id>` to revoke named user grants, or `--all` to revoke every explicit audience grant, including users, groups, and teams. Revocation does not change the artifact's general access. Named account IDs are validated before access changes are made. The validation checks the artifact's current explicit grants, so a grant can be removed even when the user's profile is hidden or the account is closed. It requires confirmation; pass `--yes` in agent mode or only after the user has approved the complete resolved audience set. `--all` is never inferred from an empty user list. Use `twg artifacts file update <artifact-id> [path]` to change an existing artifact. Pass a replacement file path to publish new content; omit it to change metadata such as the name, description, or access. For a content update, derive `--description` from the replacement file's actual content when the user has not provided one. Omit `--access` unless the user explicitly asks to change visibility; an update otherwise preserves the artifact's existing access.