Agent SkillsLibPDF-js/core › create-scratch

create-scratch

GitHub

用于在指定目录下创建临时备忘、探索或想法的笔记文件。通过脚本自动生成唯一ID、日期和标题,支持多种内容输入方式,确保文件名不冲突并便于组织管理。

.opencode/skills/create-scratch/SKILL.md LibPDF-js/core

Trigger Scenarios

用户需要记录临时想法 用户希望保存讨论中的草稿内容 用户请求创建新的笔记文件

Install

npx skills add LibPDF-js/core --skill create-scratch -g -y
More Options

Non-standard path

npx skills add https://github.com/LibPDF-js/core/tree/main/.opencode/skills/create-scratch -g -y

Use without installing

npx skills use LibPDF-js/core@create-scratch

指定 Agent (Claude Code)

npx skills add LibPDF-js/core --skill create-scratch -a claude-code -g -y

安装 repo 全部 skill

npx skills add LibPDF-js/core --all -g -y

预览 repo 内 skill

npx skills add LibPDF-js/core --list

SKILL.md

Frontmatter
{
    "name": "create-scratch",
    "description": "Create a new scratch file in .agents\/scratches\/"
}

You are creating a new scratch file in the .agents/scratches/ directory.

Your Task

  1. Determine the slug - Based on the conversation context and intent, determine an appropriate file slug (kebab-case recommended). Ask the user if unclear.
  2. Gather content - Collect or generate the scratch content from the discussion
  3. 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}.md in .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-notesQuick 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.

Version History

  • 9eedd5f Current 2026-07-24 22:02

Same Skill Collection

.opencode/skills/code-review/SKILL.md
.opencode/skills/continue-implementation/SKILL.md
.opencode/skills/create-documentation/SKILL.md
.opencode/skills/explore-references/SKILL.md
.opencode/skills/interview-spec/SKILL.md
.opencode/skills/conventional-commit/SKILL.md
.opencode/skills/create-plan/SKILL.md
.opencode/skills/dx-review/SKILL.md
.opencode/skills/implement-spec/SKILL.md

Metadata

Files
0
Version
0fa22e0
Hash
809be88d
Indexed
2026-07-24 22:02

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 14:14
浙ICP备14020137号-1 $방문자$