spectredeath/em-cubed/js-text-transformer

Claude Code and agent skill by spectredeath/em-cubed

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

JavaScript text transformer for normalization, tokenization, and feature extraction in NLP pipelines.

Install

npx vskill@latest install spectredeath/em-cubed/js-text-transformer

SKILL.md

The same SKILL.md was published earlier as spectredeath/em-cubed/js-text-transformer.

Purpose

Apply JavaScript-based string transformations (tokenization, slug generation, etc.) from within Python skills.

Description

Leverage QuickJS for text transformations that are more naturally expressed in JavaScript (e.g., regex-based cleaning, slug generation). Python orchestrates data loading and result handling.

Implementation

Python
python
def main(skill_input):
"""Main orchestrator."""
text = skill_input.get("text", "")
transform_type = skill_input.get("transform", "slug")
# Map transform type to JS code (in practice, fetched from SKILL body)
js_code = get_js_for_transform(transform_type)
# Inject text into JS context
context = {"text": text}
result = context["surfaces"]["quickjs"].execute_sync(js_code, context)
if result["status"] != "ok":
return {"status": "error", "message": result.get("message")}
return {"status": "ok", "transformed": result["value"]}
def get_js_for_transform(transform_type):
"""Return JS code snippet based on requested transformation."""
if transform_type == "slug":
return """
var result = text.toLowerCase()
.trim()
.replace(/[^\\w\\s-]/g, '')
.replace(/[\\s_-]+/g, '-')
.replace(/^-+|-+$/g, '');
"""
elif transform_type == "upper":
return "var result = text.toUpperCase();"
else:
return "var result = text;"
QuickJS
javascript
// Transformation logic injected via context
// The result is stored in `result` variable and returned to Python

Examples

python
input_data = {"text": " Hello, World! ", "transform": "slug"}
# Expected output: {"status": "ok", "transformed": "hello-world"}

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/spectredeath/em-cubed/js-text-transformer/badge)](https://verified-skill.com/skills/spectredeath/em-cubed/js-text-transformer)

Something wrong with this skill or its page? Tell us.