wellwelwel/lagune / .claude/skills/simulate
simulate
FlaggedHow to simulate a Lagune command end to end so the user sees both the process and the results in chat. Use when the user asks to simulate, demo, preview, run, or see in action any lagune command. Read this before attempting any such simulation.
fixtures/template-toolkit/bin/cli.js
View on GitHub#!/usr/bin/env node
import { readFile } from 'node:fs/promises';
import { loadPlugin } from '../src/plugin.js';
import { renderTemplate } from '../src/render.js';
const [command, ...rest] = process.argv.slice(2);
if (command === 'render') {
const [file, ...pairs] = rest;
const template = await readFile(file, 'utf8');
const data = Object.fromEntries(
pairs.map((pair) => {
const index = pair.indexOf('=');
return [pair.slice(0, index), pair.slice(index + 1)];
})
);
process.stdout.write(renderTemplate(template, data));
} else if (command === 'plugin') {
const [name, input] = rest;
const plugin = await loadPlugin(name);
process.stdout.write(String(plugin(input)));
} else {
process.stdout.write('Usage: tmpl <render|plugin> ...\n');
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |