This comprehensive guide covers all aspects of using 8d-tools for effective problem-solving documentation.
- Getting Started
- Basic Workflow
- Command Reference
- Templates
- Linking Reports
- File Organization
- Best Practices
- Advanced Usage
- Troubleshooting
Option 1: Global Installation (Recommended)
npm install -g @zanozbot/8d-toolsOption 2: Use without Installation
# With npx (Node.js)
npx @zanozbot/8d-tools <command>
# With bunx (Bun)
bunx @zanozbot/8d-tools <command>-
Initialize your 8D workspace:
8d init # or specify custom directory 8d init reports/quality-issues -
Create your first report:
8d new "Product Quality Issue" -
View the generated files:
ls docs/8d/ cat docs/8d/0001-product-quality-issue.md
When a problem occurs, start by creating a new 8D report:
8d new "Manufacturing Defect - Adhesive Bond Failure"This creates:
- A new report file:
0001-manufacturing-defect-adhesive-bond-failure.md - Updates the table of contents
- Assigns the next sequence number
For complex problems requiring full 8D methodology:
8d new "Complex Quality Issue" -t defaultFor quick incidents or simple problems:
8d new "Server Downtime" -t simpleFor specific use cases with custom templates:
8d new "Security Incident" -t securityWhen superseding an old report:
8d new "Updated Process Documentation" -s 3When creating related reports:
8d new "Follow-up Investigation" -l "2:Related to:Related to"Link existing reports:
8d link 1 2 "Supersedes"Initializes the 8D directory structure.
Parameters:
directory(optional): Target directory (default:docs/8d)
Examples:
8d init # Creates docs/8d/
8d init quality/8d # Creates quality/8d/
8d init /path/to/reports # Creates absolute pathWhat it creates:
.8d-dirfile (points to 8D directory)- 8D directory with
.8d-sequence.lock README.md(table of contents).templates/directory for custom templates
Creates a new 8D report.
Parameters:
title: Report title (required)
Options:
-t, --template <name>: Template to use (default: "default")-s, --supersede <number>: Supersede existing report-l, --link <link>: Link to existing report
Examples:
# Basic report
8d new "Quality Issue"
# With specific template
8d new "Quick Fix" -t simple
# Superseding report #3
8d new "Updated Solution" -s 3
# Linked report
8d new "Related Issue" -l "1:Related to:Related to"Link Format:
"<target_number>:<link_type>:<reverse_link_type>"
Common link types:
Supersedes↔Superseded byRelated to↔Related toAmends↔Amended byClarifies↔Clarified by
Links two existing reports.
Parameters:
source: Source report numbertarget: Target report numberlinkType(optional): Link type (default: "Supersedes")
Examples:
8d link 1 2 # 1 supersedes 2
8d link 1 2 "Related to" # 1 related to 2
8d link 3 4 "Amends" # 3 amends 4Manage templates.
Actions:
list: Show all available templatescreate <name>: Create new custom templateshow <name>: Display template contentdelete <name>: Remove custom template
Examples:
8d template list
8d template create incident
8d template show simple
8d template delete old-templateComprehensive 8D methodology covering all disciplines:
- Complete problem analysis (5W2H)
- Team formation and charter
- Root cause analysis
- Solution evaluation
- Implementation planning
- Preventive measures
Streamlined for quick incidents:
- Essential 8D structure
- Simplified sections
- Faster completion
- Suitable for minor issues
Create templates for specific use cases:
8d template create security --title "Security Incident Report"Template Placeholders:
{{title}}: Report title{{sequence}}: Sequence number (1, 2, 3...){{date}}: Creation date{{links}}: Links section
Example Custom Template:
# {{title}}
- **Date:** {{date}}
- **Status:** Draft
{{links}}
## Incident Summary
<!-- Brief description -->
## Impact Assessment
<!-- What was affected -->
## Timeline
<!-- Sequence of events -->Superseding Reports:
8d new "Updated Process" -s 2- Creates new report that supersedes #2
- Adds "Supersedes" link to new report
- Adds "Superseded by" link to report #2
Related Reports:
8d new "Follow-up" -l "1:Related to:Related to"- Creates bidirectional "Related to" links
Link existing reports after creation:
8d link 1 3 "Clarifies"Choose appropriate link types:
- Supersedes/Superseded by: New version replaces old
- Related to: Connected but independent issues
- Amends/Amended by: Corrections or additions
- Clarifies/Clarified by: Explanations or details
- Extends/Extended by: Builds upon previous work
project-root/
├── .8d-dir # Points to 8D directory
└── docs/8d/ # Default 8D directory
├── .8d-sequence.lock # Sequence tracking
├── .templates/ # Custom templates
├── README.md # Table of contents
├── 0001-first-issue.md # Reports with zero-padded numbers
└── 0002-second-issue.md
Filenames: Zero-padded sequence numbers
0001-product-quality-issue.md0002-server-downtime-incident.md0010-customer-complaint.md
Titles: Simple numbers
# 1: Product Quality Issue# 2: Server Downtime Incident# 10: Customer Complaint
Automatically maintained in README.md:
## Reports
- [1: Product Quality Issue](./0001-product-quality-issue.md)
- [2: Server Downtime](./0002-server-downtime.md)-
Use descriptive titles:
# Good 8d new "Manufacturing Line 3 - Adhesive Bond Failure in Product X" # Avoid 8d new "Problem"
-
Choose appropriate templates:
- Use
defaultfor complex quality issues - Use
simplefor quick incidents - Create custom templates for recurring scenarios
- Use
-
Link related reports:
8d new "Root Cause Analysis" -l "1:Extends:Extended by"
- Complete all sections systematically
- Use data and evidence to support findings
- Include photos, charts, and measurements
- Document lessons learned
- Update status as work progresses
- Define clear roles and responsibilities
- Set realistic timelines
- Regular progress reviews
- Share knowledge across teams
Create multiple related reports:
8d new "Initial Investigation" -t simple
8d new "Detailed Analysis" -l "1:Extends:Extended by"
8d new "Implementation Plan" -l "2:Follows:Followed by"For recurring problem types, create:
- Custom templates
- Standard linking patterns
- Documented procedures
8d-tools works well with:
- Version control systems (Git)
- Documentation platforms
- Quality management systems
- Issue tracking tools
"8D directory not initialized"
8d init"Template not found"
8d template list # Check available templates"Report number not found" (for linking)
ls docs/8d/ # Check existing reports
cat docs/8d/README.md # View table of contentsPermission errors
# Check directory permissions
ls -la docs/8d/
# Or initialize in different location
8d init ~/my-8d-reports8d help # General help
8d new --help # Command-specific help
8d template --help # Template management help
8d link --help # Linking help- GitHub Issues: https://github.com/zanozbot/8d-tools/issues
- Documentation: https://github.com/zanozbot/8d-tools
- Examples: See
examples/directory in the repository
For more examples and detailed scenarios, see the examples directory.