本文へ移動
cccskills
無料GitHub で公開

temp-files

Guidelines for creating temporary files in system temp directory. Use when agents need to create reports, logs, or progress files without cluttering the repository.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Temporary Files Skill

When you need to create files to track progress, generate reports, or store temporary data, use the system's temporary directory instead of the repository root.

Directory Structure

Use this base path for all temporary files (aligns with Claude Code's existing task output convention):

/tmp/claude/{sanitized-cwd}/

Where {sanitized-cwd} is the current working directory path with / replaced by - (leading slash stripped first to avoid a leading dash).

Example: Working in /Users/bobby/workspace/pivot/llamafarm → /tmp/claude/Users-bobby-workspace-pivot-llamafarm/

Creating a Temp File

Step 1: Create the directory

SANITIZED_PATH=$(echo "$PWD" | sed 's|^/||' | tr '/' '-')
REPORT_DIR="/tmp/claude/${SANITIZED_PATH}/reviews"
mkdir -p "$REPORT_DIR"

Step 2: Generate a unique filename

Use this pattern: {descriptor}-{YYYYMMDD-HHMMSS}.{ext}

TIMESTAMP=$(date +%Y%m%d-%H%M%S)
FILENAME="code-review-${TIMESTAMP}.md"
FILEPATH="${REPORT_DIR}/${FILENAME}"

Step 3: Write the file

Use the Write tool with the full temp path.

Step 4: Inform the user

Always tell the user where the file was created:

Report saved to: /tmp/claude/Users-bobby-workspace-pivot-llamafarm/reviews/code-review-20260108-143052.md

When to Use This Pattern

  • Code review reports
  • Analysis outputs
  • Progress tracking files
  • Test result summaries
  • Any generated documentation not explicitly requested in a specific location

When NOT to Use This Pattern

  • User explicitly specifies a file path
  • Creating files that should be committed (e.g., README, config files)
  • Editing existing files

Cleanup Note

Files in /tmp/ are cleared on system restart. If the user needs to preserve a file, suggest they copy it to a permanent location.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

CLI best practices for LlamaFarm. Covers Cobra, Bubbletea, Lipgloss patterns for Go CLI development.

日本語の概要は準備中です。原文の説明を表示しています。

llama-farm/llamafarm8362026年6月10日 更新

Comprehensive code review for diffs. Analyzes changed code for security vulnerabilities, anti-patterns, and quality issues. Auto-detects domain (frontend/backend) from file paths.

日本語の概要は準備中です。原文の説明を表示しています。

llama-farm/llamafarm8362026年6月10日 更新

Commit changes, push to GitHub, and open a PR. Includes quality checks (security, patterns, simplification). Use --quick to skip checks.

日本語の概要は準備中です。原文の説明を表示しています。

llama-farm/llamafarm8362026年6月10日 更新

Best practices for the Common utilities package in LlamaFarm. Covers HuggingFace Hub integration, GGUF model management, and shared utilities.

日本語の概要は準備中です。原文の説明を表示しています。

llama-farm/llamafarm8362026年6月10日 更新

Configuration module patterns for LlamaFarm. Covers Pydantic v2 models, JSONSchema generation, YAML processing, and validation.

日本語の概要は準備中です。原文の説明を表示しています。

llama-farm/llamafarm8362026年6月10日 更新

Designer subsystem patterns for LlamaFarm. Covers React 18, TanStack Query, TailwindCSS, and Radix UI.

日本語の概要は準備中です。原文の説明を表示しています。

llama-farm/llamafarm8362026年6月10日 更新

llama-farm のスキルをすべて見る

このスキルの問題を報告する