create-scratch
Generates temporary markdown files in .agents/scratches/ with automatic frontmatter and unique IDs.
Install
mkdir -p .claude/skills/create-scratch && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3873" && unzip -o skill.zip -d .claude/skills/create-scratch && rm skill.zipInstalls to .claude/skills/create-scratch
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Create a new scratch file in .agents/scratches/Key capabilities
- →Generate a unique three-word ID for a scratch file
- →Create frontmatter with the current date and formatted title
- →Save the file as {id}-{slug}.md in .agents/scratches/
- →Accept content directly as an argument
- →Accept multi-line content using heredoc syntax
- →Accept piped content from standard input
How it works
This skill creates a new markdown file in the .agents/scratches/ directory, automatically generating a unique ID, current date, and a formatted title from the provided slug.
Inputs & outputs
When to use create-scratch
- →Capture quick code snippets during debugging
- →Draft ideas for new features
- →Store temporary notes for current session
About this skill
You are creating a new scratch file in the .agents/scratches/ directory.
Your Task
- Determine the slug - Based on the conversation context and intent, determine an appropriate file slug (kebab-case recommended). Ask the user if unclear.
- Gather content - Collect or generate the scratch content from the discussion
- Create the file - Use the create-scratch script to generate the file
Usage
The script will automatically:
- Generate a unique three-word ID (e.g.,
calm-teal-cloud) - Create frontmatter with current date and formatted title
- Save the file as
{id}-{slug}.mdin.agents/scratches/
Creating the File
Option 1: Direct Content
If you have the content ready, run:
bun scripts/create-scratch.ts "<slug>" "Your scratch content here"
Option 2: Multi-line Content (Heredoc)
For multi-line content, use heredoc:
bun scripts/create-scratch.ts "<slug>" << HEREDOC
Your multi-line
scratch content
goes here
HEREDOC
Option 3: Pipe Content
You can also pipe content:
echo "Your content" | bun scripts/create-scratch.ts "<slug>"
File Format
The created file will have:
---
date: 2026-01-21
title: Scratch Title
---
Your content here
The title is automatically formatted from the slug (e.g., quick-notes → Quick Notes).
Guidelines
- Use descriptive slugs in kebab-case (e.g.,
exploration-ideas,temporary-notes) - Scratch files are for temporary notes, explorations, or ideas
- The unique ID ensures no filename conflicts
- Files are automatically dated for organization
Begin
Create a scratch file using an appropriate slug based on the conversation context and content for notes or exploration.
Prerequisites
How it compares
This workflow automates the creation of standardized temporary files with unique IDs and structured frontmatter, unlike manually creating and organizing scratch files.
Compared to similar skills
create-scratch side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| create-scratch (this skill) | 1 | 6mo | Review | Beginner |
| obsidian-bases | 11 | 4mo | Review | Intermediate |
| video-transcript-downloader | 4 | 2mo | Review | Intermediate |
| obsidian-clipper-template-creator | 3 | 6mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by LibPDF-js
View all by LibPDF-js →You might also like
obsidian-bases
kepano
Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.
video-transcript-downloader
steipete
Download videos, audio, subtitles, and clean paragraph-style transcripts from YouTube and any other yt-dlp supported site. Use when asked to “download this video”, “save this clip”, “rip audio”, “get subtitles”, “get transcript”, or to troubleshoot yt-dlp/ffmpeg and formats/playlists.
obsidian-clipper-template-creator
davila7
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-vault-ops
ballred
Read and write Obsidian vault files, manage wiki-links, process markdown with YAML frontmatter. Use when working with vault file operations, creating notes, or managing links.
baoyu-danger-x-to-markdown
JimLiu
Converts X (Twitter) tweets and articles to markdown with YAML front matter. Uses reverse-engineered API requiring user consent. Use when user mentions "X to markdown", "tweet to markdown", "save tweet", or provides x.com/twitter.com URLs for conversion.
log-work
pchalasani
Log the work segment that you did after the last work log until now in a