artifact-path

artifact-path is a skill for Claude Code from restarter/lets-workflow. It costs 63 tokens per session (1,235 once invoked), scanned A, original, MIT.

A command-focused helper for choosing a unique, task-specific path for files written under the shared .lets directory. These files include plans, reviews, and session snapshots.

In plain words
What is it for?
Use it immediately before writing a supported artifact so the output path includes the right kind, task identifier, branch or session marker, and collision-safe version suffix.
Why use it?
It prevents separate work sessions or worktrees from overwriting artifacts that happen to have the same name or date.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Claude Code.

Part of the lets plugin — 20 skills, 26 commands, 15 agents shipped together

Good fit Use it immediately before writing a supported artifact so the output path includes the right kind, task identifier, branch or session marker, and collision-safe version suffix.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/restarter/lets-workflow/artifact-path
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add restarter/lets-workflow --skill artifact-path
Clone the repo
git clone --depth 1 https://github.com/restarter/lets-workflow

Made for: Claude Code.

Or install lets, the plugin that ships this one along with the rest of its 20 skills, 26 commands, 15 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for artifact-path

README.md
[![agentmods](https://agentmods.dev/badge/skills/restarter/lets-workflow/artifact-path/github.svg)](https://agentmods.dev/skills/restarter/lets-workflow/artifact-path)
Your own site
<a href="https://agentmods.dev/skills/restarter/lets-workflow/artifact-path"><img src="https://agentmods.dev/badge/skills/restarter/lets-workflow/artifact-path/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for artifact-path

Your own site · 80×15
<a href="https://agentmods.dev/skills/restarter/lets-workflow/artifact-path"><img src="https://agentmods.dev/badge/skills/restarter/lets-workflow/artifact-path.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,235 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.01235
Opus 5.5 $0.00025 $0.00494
Sonnet 5.5 $0.00013 $0.00247
Haiku 4.5 $0.00006 $0.00123

Measured 1mo ago against content hash b4ef42c9c0ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

artifact-path scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/lets/skills/artifact-path/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Artifact Path

.lets/ is ONE directory shared by every worktree of the repo (whole-dir symlink). Two sessions writing the same artifact kind on the same day used to overwrite each other (lets-05c4s - a plan review was lost). This skill is the single place that names an artifact and guarantees the path is free.

Contract: args kind=<kind> ext=<md|json|dir> [task=<task-id>]. Output: ONE echoed line ARTIFACT_FILE=<absolute path>. The caller writes to that path VERBATIM - never recomputes the stamp, never strips the -vN suffix, never writes anywhere else. ext=dir CREATES the directory (the mkdir is the claim) and echoes its path; a file kind only names a free path.

Name shape

{YYYY-MM-DD}-{HHMM}-{ID}-{KIND}[-vN].{EXT} under the kind's directory:

kind directory
plan .lets/plans/
idea .lets/plans/
review-local, review-branch, review-pr-<n>, review-plan .lets/reviews/
snapshot .lets/sessions/
handoff .lets/handoffs/
reports-<command> (with ext=dir) .lets/reports/ - one directory per dispatching run, filled by the agent-report skill

ID is the task id when one is active (MANDATORY whenever a task exists - same rule as the branch named by the active tracker convention). With no task: {branch-slug}-{6hex}, 6hex = first 6 chars of $CLAUDE_CODE_SESSION_ID, so two taskless sessions on main still get distinct names. -vN (v2, v3, ...) is appended whenever the path already exists - for task and taskless alike.

Step 1: Resolve the task id

If the caller passed task=, use it. Otherwise invoke Skill(skill: "lets:detect-task", args: "fallback=no") and use its result (may be empty). fallback=no is mandatory: the searched fallback asks a question, and a taskless snapshot on /lets:end must stay silent.

Step 2: Compute the path

LETS_PROJECT_ROOT=$(git rev-parse --show-toplevel)
KIND="{kind}"; EXT="{ext}"; TASK_ID="{task-id or empty}"
case "$KIND" in
  plan|idea) DIR=plans ;;
  review-*) DIR=reviews ;;
  snapshot*) DIR=sessions ;;
  handoff) DIR=handoffs ;;
  reports-*) DIR=reports ;;
  *) echo "artifact-path: unknown kind '$KIND'"; exit 1 ;;
esac
mkdir -p "$LETS_PROJECT_ROOT/.lets/$DIR"
STAMP=$(date +%Y-%m-%d-%H%M)
if [ -n "$TASK_ID" ]; then
  ID="$TASK_ID"
else
  HEX=$(printf '%s' "${CLAUDE_CODE_SESSION_ID:-$$}" | cut -c1-6)   # session-id prefix; PID outside Claude Code
  ID="$(git branch --show-current | tr '/' '-')-${HEX}"
fi
BASE="$LETS_PROJECT_ROOT/.lets/$DIR/${STAMP}-${ID}-${KIND}"
N=2
if [ "$EXT" = dir ]; then
  # mkdir without -p is atomic: two sessions in the same minute get two directories, never one shared
  ARTIFACT_FILE="$BASE"
  until mkdir "$ARTIFACT_FILE" 2>/dev/null; do
    [ -e "$ARTIFACT_FILE" ] || { echo "artifact-path: cannot create $ARTIFACT_FILE"; exit 1; }
    ARTIFACT_FILE="${BASE}-v${N}"; N=$((N+1))
  done
else
  ARTIFACT_FILE="${BASE}.${EXT}"
  while [ -e "$ARTIFACT_FILE" ]; do ARTIFACT_FILE="${BASE}-v${N}.${EXT}"; N=$((N+1)); done
fi
echo "ARTIFACT_FILE=$ARTIFACT_FILE"

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed b4ef42c9c0ff
  2. 2mo ago Changed · +13 lines · +6 tokens per session 166f77e958ad
  3. 2mo ago Changed · +2 lines · +4 tokens per session 81b6ddcecf1a
  4. 2mo ago Changed · +2 lines 7b66ecd89a29
  5. 2mo ago Changed ddfff4fe7c8f
  6. 3mo ago First seen · 64 lines · 53 tokens per session scan A 6ae3d887e287

Subscribe to this mod's changes

artifact-path is a skill published in the GitHub repository restarter/lets-workflow (17 stars, last pushed 2d ago), licensed MIT. It adds 63 tokens to every session and 1,235 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

artifact-path compared with skills from other repositories

artifact-path next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
artifact-pathrestarter/lets-workflowSkill172d agoMITA63Claude Code
dekko-verifyaahlijia/dekkoSkill612d agoMITA151Claude Code
dekko-review-contextaahlijia/dekkoSkill612d agoMITA74Claude Code
fixJebel-Quant/rhiza-claudeSkill8todaynoneA51Claude Code
watch-prjustincampbell/gh-watchSkill41mo agoMITA48Claude Code
triage-reportRockyHong/super-bootstrapSkill32d agoMITA151Claude Code
review-healthscharissis/polakoSkill13d agoMITA0Claude Code