Receber por email
← Voltar para o catálogo

jtbd-forces

Generates an HTML diagram of the four forces driving a switch. Accepts either a single interview file (.jtbd/switches/*.yml) or an aggregate patterns file (.jtbd/patterns/*.yml). Outputs a standalone HTML file to .jtbd/forces/. Use when: "draw forces", "jtbd forces", "forces diagram".

0estrelas
Atualizado há 6 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add savvides/jtbd

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/jtbd-forces/svg)](https://www.skillteca.com.br/skills/jtbd-forces)

Skills relacionadas

Ver todas de Desenvolvimento →

Alerta por categoria

Receba novas skills de Desenvolvimento toda segunda

1 email curto, só com as skills novas de Desenvolvimento. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Preamble

Check for the .jtbd/ directory. If it doesn't exist, tell the user they need to run /jtbd-switch or /jtbd-patterns first and exit. Make sure the .jtbd/forces/ directory exists.

[ -d ".jtbd" ] || { echo "Error: .jtbd/ directory not found. Run /jtbd-switch or /jtbd-patterns first."; exit 1; }
mkdir -p .jtbd/forces/

Read Input

Determine the input file:

  1. If the user provided an argument, use that file path.
  2. If no argument is provided, ask the user to provide the path to a switch file or a patterns file.

Use the Read tool to read the contents of the provided file.

Process Data

Determine the type of file based on its structure:

  • Switch File: If the file contains interviewee: and forces:, extract the push, pull, anxiety, and habit quotes and intensities.
  • Pattern File: If the file contains clusters: and force_patterns:, extract the strongest push, pull, anxiety, and habit patterns.

Generate HTML

Generate a standalone HTML file. It must not rely on external CSS/JS. Use Flexbox or CSS Grid to create a visual layout matching Moesta's methodology:

  • Left side: Push (top) and Pull (bottom) arrows pointing right.
  • Right side: Anxiety (top) and Habit (bottom) arrows pointing left.

Include the extracted quotes/patterns in the respective quadrants.

Output

Write the generated HTML to .jtbd/forces/[filename-base].html using the Write tool. (e.g., if input was sarah-ops.yml, output is sarah-ops.html). Inform the user where the file was saved.

Compartilhar X LinkedIn