agent-work-artifacts-layout

agent-work-artifacts-layout is a skill for Claude Code, Codex from chen3feng/agent-skills. It costs 27 tokens per session (2,410 once invoked), scanned A, original, Apache-2.0.

A file-placement guide for temporary agent-created files such as scripts, audit reports, test fixtures, and pull-request drafts.

In plain words
What is it for?
Choosing safe locations for disposable files, reusable repository helpers, reports, and pull-request body drafts.
Why use it?
It prevents one-off work files from cluttering the repository, being mistaken for project code, or colliding with other sessions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Choosing safe locations for disposable files, reusable repository helpers, reports, and pull-request body drafts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chen3feng/agent-skills/agent-work-artifacts-layout
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 chen3feng/agent-skills --skill agent-work-artifacts-layout
Clone the repo
git clone --depth 1 https://github.com/chen3feng/agent-skills

Made for: Claude Code, Codex.

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 agent-work-artifacts-layout

README.md
[![agentmods](https://agentmods.dev/badge/skills/chen3feng/agent-skills/agent-work-artifacts-layout/github.svg)](https://agentmods.dev/skills/chen3feng/agent-skills/agent-work-artifacts-layout)
Your own site
<a href="https://agentmods.dev/skills/chen3feng/agent-skills/agent-work-artifacts-layout"><img src="https://agentmods.dev/badge/skills/chen3feng/agent-skills/agent-work-artifacts-layout/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 agent-work-artifacts-layout

Your own site · 80×15
<a href="https://agentmods.dev/skills/chen3feng/agent-skills/agent-work-artifacts-layout"><img src="https://agentmods.dev/badge/skills/chen3feng/agent-skills/agent-work-artifacts-layout.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,410 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.
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.00027 $0.02410
Opus 5.5 $0.00011 $0.00964
Sonnet 5.5 $0.00005 $0.00482
Haiku 4.5 $0.00003 $0.00241

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

Security

Grade A, and why

agent-work-artifacts-layout 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 3mo 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.

skills/agent-work-artifacts-layout/SKILL.md · 242 lines

How it starts

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

Agent work artifacts: where do they go?

When to use

Any task where the agent produces files that are not the user's intended deliverable: PR body drafts for gh pr create --body-file, throwaway repro_*.py / check_*.sh scripts, audit reports, analysis dumps, temporary fixtures. Without a convention these end up either polluting the working tree (triggering "do I need to delete this?" round-trips) or getting lost across sessions even when they had reuse value.

Problem

Three recurring failure modes:

  1. PR body files left in the repo root (e.g. pr_body.md), forcing the user to confirm deletion after every PR.
  2. One-off scripts committed to random places — sometimes in the repo root, sometimes nowhere — making future contributors unsure whether they are project tooling or dead weight.
  3. Fixed temp paths like /tmp/pr_body.md that collide between parallel agent sessions.

Solution

Route every artifact through this four-way decision:

1. Single-use (PR body, gh intermediate, shell pipe)?
   → system temp via  mktemp -t <slug>.XXXXXX.<ext>
     (POSIX: $TMPDIR or /tmp; Windows: %TEMP%)

2. Repo-scoped helper, human-authored, part of project lifecycle?
   → scripts/  (or  tools/  if the repo already uses that)
     with argparse CLI, docstring, usage example.

3. Repo-scoped helper, agent-authored, reviewed and reusable?
   → .agent/tools/  (tracked subdirectory of the agent working area,
     see the four-cell layout below)

4. General-purpose, useful across projects?
   → offer to publish as a GitHub Gist.

5. Agent working notes / drafts / caches NOT meant for sharing?
   → .agent/scratchpad/ | .agent/artifacts/ | .agent/context/
     (gitignored, local-only)

If none apply, delete the file rather than leaving it ambiguous.

.agent/ four-cell layout

.agent/ is not a single bucket — split it by lifetime and tracking intent:

Subdirectory Purpose Tracked?
.agent/scratchpad/ Free-form notes, pseudo-code, drafts. No
.agent/artifacts/ Generated deliverables (exported docs, images, one-off reports). No
.agent/tools/ Reviewed agent-authored helpers for this repo. Yes
.agent/context/ Project index / knowledge-base caches / embeddings. No

Read the full file on GitHub · 242 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. 3mo ago First seen · 242 lines · 27 tokens per session scan A 86cd739291ee

Subscribe to this mod's changes

agent-work-artifacts-layout is a skill published in the GitHub repository chen3feng/agent-skills (5 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 27 tokens to every session and 2,410 once invoked, about $0.0001 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-31.

Related

agent-work-artifacts-layout compared with skills from other repositories

agent-work-artifacts-layout next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-work-artifacts-layoutchen3feng/agent-skillsSkill56mo agoApache-2.0A27Claude Code, Codex
git-clean-commit-guardorlando-japan/claude-code-settingSkill22mo agoMITA43Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill110ktodayApache-2.0A53Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.2k2d agoApache-2.0A92Claude Code
developmentfengshao1227/ccg-workflowSkill6.0k11d agoMITA41Claude Code
tencent-docsUnicomAI/wanwuSkill2.4k5d agoApache-2.0A209Claude Code, Codex
debugging-executionsn8n-io/n8nSkill212ktodaynoneA86Claude Code, Codex