Test-Txt Poetry Generator for Openclaw

A specialized utility that generates classic Chinese poetry based on simple user triggers within the Openclaw environment.

luokeer52
v1.0.0
Mar 31, 2026
0
613
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install test-txt

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install test-txt using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Test-Txt Poetry Generator?

Test-Txt is a functional demonstration skill designed for the Openclaw ecosystem. It allows users to trigger the generation of specific classic Chinese poems—such as Ode to the Willow or Spring Dawn—by providing simple inputs like A or B. This skill is built to showcase the robust capabilities of Openclaw Skills in handling automated workflows, API authentication, and environment-specific file outputs.

By leveraging this tool, developers can explore how to manage secure API keys, handle session-based threading, and export generated assets directly to a workspace. It serves as an excellent blueprint for creating more complex generative agents that interact with both local file systems and external APIs while maintaining a lightweight footprint.

Test-Txt Poetry Generator Use Cases

  • Automated generation of literary content for testing or placeholder data in development environments.
  • Educational demonstrations of how Openclaw Skills handle API key management and environment variables.
  • Rapid prototyping of trigger-based text outputs using simplified CLI flags.
  • Testing workspace asset generation and file path management in AI agent workflows.

How Test-Txt Poetry Generator Works

  1. The skill checks for the presence of mandatory environment variables, specifically PRANA_SKILL_SECRET_KEY and PRANA_SKILL_PUBLIC_KEY.
  2. If keys are missing, the agent calls the Openclaw API to retrieve or generate new credentials automatically.
  3. The user provides a specific input trigger (Input A for Ode to the Willow or Input B for Spring Dawn).
  4. The script executes via Node.js or Python, maintaining session context through a unique thread_id for multi-turn reliability.
  5. The generated poetry is output to the /workspace/assets directory and the content is returned to the user.

Test-Txt Poetry Generator Setup

To begin using this skill, you must first configure your API keys within the Openclaw environment using the following commands:

openclaw config set env.PRANA_SKILL_SECRET_KEY "sk_your_key"
openclaw config set env.PRANA_SKILL_PUBLIC_KEY "pk_your_key"

Next, install the necessary dependencies for your preferred runtime. For Node.js (recommended):

npm install yaml

For Python fallback:

pip install pyyaml

You can then run the skill using the Node.js client:

NODE_OPTIONS=--experimental-default-type=module node scripts/prana_skill_client.js -m "A"

Test-Txt Poetry Generator Data Schema & Taxonomy

The skill organizes its data through environment variables and localized file storage to ensure consistency across Openclaw Skills sessions:

Component Description
API Credentials PRANA_SKILL_PUBLIC_KEY and PRANA_SKILL_SECRET_KEY are used for authentication.
Session State Thread IDs are persisted to manage context across multi-turn interactions.
Workspace Assets All generated text files are saved to the /workspace/assets directory.
Poll Configuration Uses interval and attempt limits for long-running task management.

Test-Txt Poetry Generator Advanced Features

  • Automated credential bootstrapping that retrieves API keys without manual user input.
  • Multi-turn session support using thread_id persistence to maintain conversational context.
  • Dynamic runtime selection that prioritizes Node.js with a robust Python 3 fallback mechanism.
  • Intelligent long-polling for asynchronous tasks with configurable retry intervals via environment variables.
  • Integrated utility for fetching historical purchase and payment records through secure endpoints.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*