Get the FREE Ultimate OpenClaw Setup Guide →

test-skill

Scanned
npx machina-cli add skill martinemde/skillet/test-skill --openclaw
Files (1)
SKILL.md
552 B

Test Skill

This is a simple test skill to verify skillet is working correctly.

Task

Create a todo list item:

  1. Check if the greeting.txt file exists
  2. Write a new version of the greeting.txt file with the content
Hello from Skillet!
This file was created by Claude Code through the skillet CLI.
Date: [current date]

After creating the file, read it back and confirm the contents were written correctly.

Source

git clone https://github.com/martinemde/skillet/blob/main/.claude/skills/test-skill/SKILL.mdView on GitHub

Overview

This is a simple test skill to verify skillet is working by creating a greeting.txt file. It checks for the file, writes a new version with a greeting and a date, and then reads it back to confirm the contents were written correctly.

How This Skill Works

The skill uses the allowed tools Write and Read to operate on greeting.txt. It first ensures the file exists, then writes the following content, and finally reads the file back to verify the update: Hello from Skillet! This file was created by Claude Code through the skillet CLI. Date: [current date].

When to Use It

  • Smoke test skillet integration with a simple file I/O sequence.
  • Validate Read/Write permissions using greeting.txt.
  • Test idempotent writes in a clean environment.
  • Debug file creation and content formatting in CI or local dev.
  • Demonstrate a templated greeting file with a dynamic date.

Quick Start

  1. Step 1: Check if greeting.txt exists.
  2. Step 2: Write a new version of the greeting.txt file with the content: Hello from Skillet! This file was created by Claude Code through the skillet CLI. Date: [current date]
  3. Step 3: Read greeting.txt and verify the contents were written correctly.

Best Practices

  • Ensure the working directory is correct and writable.
  • Use the exact content template when writing the file.
  • Verify the write operation by performing a subsequent Read.
  • Handle file encoding as UTF-8 to avoid surprises.
  • Clean up test files in CI if needed.

Example Use Cases

  • Local development smoke test of skillet I/O.
  • CI step to validate file creation and content correctness.
  • Debugging a Write failure by inspecting the resulting file.
  • Generate a templated greeting file for onboarding notes.
  • Verify idempotent updates to greeting.txt across runs.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers