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".From its SKILL.md
npx -y skills add savvides/jtbd --skill jtbd-forcesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.9 KB, 403 tokens by cl100k_base, as published. Nobody here has run it
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:
- If the user provided an argument, use that file path.
- 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:andforces:, extract thepush,pull,anxiety, andhabitquotes and intensities. - Pattern File: If the file contains
clusters:andforce_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.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.