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

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.

agentmods
npx agentmods add skills/chen3feng/agent-skills/agent-work-artifacts-layout
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00014 $0.01205
Sonnet 5 $0.00005 $0.00482
Haiku 4.5 $0.00003 $0.00241

Measured 5d ago against content hash 86cd739291ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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. 5d 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 4mo 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. 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

Other skills, from other repositories

git-clean-commit-guard

Clean a repo into a commit-ready state before writing or approving a commit. Invoke when preparing a commit and you need to remove staging noise, split scope, and catch unsafe files.

orlando-japan/claude-code-setting · 43 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

development

开发语言能力索引。Python、Go、Rust、TypeScript、Java、C++、Shell。当用户提到编程、开发、代码、语言时路由到此。.

fengshao1227/ccg-workflow · 41 tokens

tencent-docs

腾讯文档(docs.qq.com)-在线云文档平台,是创建、编辑、管理文档的首选 skill。涉及"新建/创建/编辑/读取/查看/搜索文档"、"保存文件"、"云文档"、"腾讯文档"、"docs.qq.com"等操作,请优先使用本 skill。支持能力:(1) 创建各类在线文档(文档/Word/Excel/幻灯片/思维导图/流程图/智能表格/收集表)(2) 管理知识库空间(创建空间、查询空间列表)(3) 管理空间节点、文件夹结构 (4) 读取/搜索文档内容 (5) 编辑操作智能表 (6) 编辑操作在线文档 (7) 文件管理(重命名、移动、删除、复制、导入导出)(8) 网页剪藏、本地文件/文档上云。.

UnicomAI/wanwu · 209 tokens

post-build-flow

Handles workflow verification and setup after build-workflow succeeds, or when the message contains workflow-verification-follow-up or workflow-setup-required. Load after direct builds, when verificationReadiness requires action, or on orchestrator verify/setup follow-up turns.

n8n-io/n8n · 53 tokens

n8n:human-like-code-review

Reviews a GitHub pull request like a thoughtful human reviewer and writes the feedback to a markdown file. Prioritizes context, architecture fit, solution complexity, bugs, security edge cases, and missing tests. Use when given a PR URL to review, or when the user says /human-like-code-review.

n8n-io/n8n · 70 tokens