breakdown

Breakdown Usage Guide

This document explains various use cases and command patterns for the Breakdown tool.

Installation

Breakdown is primarily intended for use as a CLI tool.
You can install it using the official Deno/JSR standard method with the following command:

deno install -A -f --global breakdown jsr:@tettuan/breakdown

Note:
The CLI module must be specified as jsr:@tettuan/breakdown.
This is based on the exports configuration in deno.json.


Updates

When a new version is published, you can overwrite the installation with the same command:

deno install -A -f --global breakdown jsr:@tettuan/breakdown

Using as a Library

When importing directly from TypeScript/JavaScript,
you can add it as a dependency with deno add:

deno add @tettuan/breakdown

Notes

Local Installation to Project Directory

If you want to use the breakdown command only within a specific project, you can install it to .deno/bin using the --root option:

deno install -A -f --global --root .deno -n breakdown jsr:@tettuan/breakdown

After installation, add the bin directory to your PATH:

export PATH="$(pwd)/.deno/bin:$PATH"

To make this setting permanent, add it to your shell configuration file (e.g., ~/.zshrc or ~/.bashrc).

Troubleshooting

If the command is not responding, try the following steps:

  1. Verify installation:
    which breakdown
    
  2. Test with direct execution:
    deno run --allow-all jsr:@tettuan/breakdown
    
  3. Compile as binary:
    deno compile -A -o ~/.deno/bin/breakdown jsr:@tettuan/breakdown
    
  4. Check path:
    echo $PATH
    

Basic Commands

Initialize Working Directory

breakdown init

This command creates the necessary working directory structure specified in the configuration.

Markdown Processing Commands

The following combinations are available:

Command \ Layer Command Description Project Issue Task
to Converts input Markdown to the next layer format Decompose to project
breakdown to project -o=
Decompose from project to issues
breakdown to issue <project_summary.md|written_issue.md> -o=
Decompose from issue to tasks
breakdown to task <issue.md|written_task.md> -o=
summary Generates new Markdown or specified layer Markdown Generate project summary in Markdown format
echo “" | breakdown summary project -o=
Generate issue summary in Markdown format
breakdown summary issue –from= --input=task -o=
Generate task summary in Markdown format
breakdown summary task –from= -o=
defect Generates fixes from error logs or defect information Generate project info from defect info
tail -100 “" | breakdown defect project -o=
Generate issues from defect info
breakdown defect issue –from= -o=
Generate tasks from defect info
breakdown defect task –from= -o=

Decomposition to Project

breakdown to project <written_project_summary.md> -o=<project_dir>

Decomposition to Issues

breakdown to issue <project_summary.md|written_issue.md> -o=<issue_dir>

Decomposition to Tasks

breakdown to task <issue.md|written_task.md> -o=<tasks_dir>

Generate Markdown Summary

Project Summary Generate project overview from unorganized information:

echo "<messy_something>" | breakdown summary project -o=<project_summary.md>

Issue Summary Generate issues from task groups:

breakdown summary issue --from=<aggregated_tasks.md> --input=task -o=<issue_markdown_dir>

Task Summary Generate organized tasks from unorganized task information:

breakdown summary task --from=<unorganized_tasks.md> -o=<task_markdown_dir>