scratchpad

Extract the nearest JSDoc Example block from a TypeScript source file.

1.6k|107|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/MapleTechLabs/maple --skill scratchpad-mapletechlabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scratchpad
Source: https://github.com/MapleTechLabs/maple/tree/main/.context/effect/.agents/skills/scratchpad
Command: npx skills add https://github.com/MapleTechLabs/maple --skill scratchpad-mapletechlabs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Manually copying JSDoc code examples from source files to test or experiment with them is time-consuming and error-prone. This Skill automates that process, letting developers quickly access and run code examples directly from their codebase.

Core Features & Use Cases

  • Automatic Example Selection: Finds the JSDoc Example block nearest to your active cursor, selection, or specified line number in a source file.
  • Runnable Scratchpad Files: Generates uniquely named TypeScript files in the scratchpad directory, with optional auto-appended Effect runtime runners for immediate execution.
  • Use Case: When working with the Effect TypeScript library, you can instantly pull a Schedule retry example from the source code to test behavior without manual copy-paste.

Quick Start

Use the scratchpad skill to extract the JSDoc example nearest your current cursor in the Effect Schedule.ts source file.

Frequently Asked Questions about scratchpad

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract JSDoc examples from TypeScript source files into a runnable file?

To extract JSDoc examples, the scratchpad skill pulls the nearest JSDoc Example block from a specified TypeScript source file and line number, saving it directly to a local directory as a runnable TypeScript file.

What is the best way to test Effect TypeScript library examples without manual copy-paste?

The best way to test Effect TypeScript library examples is using a scratchpad extraction tool that automatically pulls JSDoc code blocks and appends Effect runtime runners for immediate execution.

Can I automatically append Effect runtime runners to extracted TypeScript scratchpad files?

Yes, you can auto-append Effect runtime runners to extracted TypeScript scratchpad files. This feature configures the generated code for immediate execution within the Effect library workflow.

Does the scratchpad extraction tool support configurable output directories for generated files?

Yes, the scratchpad extraction tool supports configurable output directories. It automatically generates uniquely named TypeScript files in your specified directory to prevent accidental file overwrites.

How do I locate the nearest JSDoc Example block from a specific line number in a TypeScript file?

You can locate the nearest JSDoc Example block by specifying a line number or cursor position in your TypeScript source file. The skill automatically finds and extracts the closest matching block.