DrDuck

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2025 License: MIT Imports: 1 Imported by: 0

README ΒΆ

DrDuck πŸ¦†

DocOps CLI tool for automated documentation workflows

DrDuck is a command-line tool that integrates with AI coding assistants (Claude Code CLI, Cursor) to automate the creation and management of Architectural Decision Records (ADRs) and other documentation following DocOps principles.

Features

  • πŸ€– AI Integration: Works with Claude Code CLI and Cursor for intelligent ADR generation
  • πŸ“ ADR Management: Create, list, and manage Architectural Decision Records
  • πŸ”„ Git Hooks: Optional pre-commit and pre-push hooks for documentation validation
  • πŸ“ Flexible Storage: Store ADRs in the same repo or a separate documentation repository
  • 🎨 Templates: Support for MADR, simple, and custom ADR templates
  • ⚑ Interactive Setup: Beautiful CLI prompts for configuration

Quick Start

Installation
# Go install (recommended - any platform with Go)
go install github.com/SilverFlin/DrDuck@latest

# Or install specific version
go install github.com/SilverFlin/DrDuck@v0.1.0

# Manual download (all platforms)
# Download from: https://github.com/SilverFlin/DrDuck/releases
Initialize a Project
# Interactive setup
drduck init

# This will prompt you to choose:
# - AI provider (Claude Code CLI or Cursor)
# - Documentation storage (same repo or separate repo)
# - ADR template format (MADR, simple, custom)
# - Git hooks (pre-commit, pre-push)
Create Your First ADR
# Create a new ADR
drduck new -n "use-postgresql-database"

# List all ADRs
drduck list

Commands

  • drduck init - Initialize DrDuck in the current project
  • drduck new -n "name" - Create a new ADR
  • drduck list - List all ADRs with status
  • drduck --version - Show version information
  • drduck --help - Show help information

Configuration

DrDuck stores configuration in .drduck/config.yml:

ai_provider: "claude-code"     # or "cursor"
doc_storage: "same-repo"       # or "separate-repo"
adr_template: "madr"          # or "simple", "custom"
hooks:
  pre_commit: true            # Install pre-commit hook
  pre_push: false            # Install pre-push hook
doc_path: "docs/adrs"        # ADR storage path (same-repo)
separate_repo_url: ""        # Separate repo URL if applicable

Project Structure

After initialization, DrDuck creates:

.drduck/
β”œβ”€β”€ config.yml              # Configuration file
β”œβ”€β”€ templates/              # Custom templates
└── hooks/                  # Git hook scripts

docs/adrs/                  # ADRs (if same-repo storage)
β”œβ”€β”€ README.md              # ADR index
β”œβ”€β”€ 0001-use-adr.md        # First ADR
└── 0002-feature-name.md   # Additional ADRs

ADR Templates

MADR Template (Default)

Based on Markdown Any Decision Records, includes:

  • Context and problem statement
  • Decision with rationale
  • Consequences (positive, negative, neutral)
  • Alternatives considered
Simple Template

Lightweight format with:

  • Problem description
  • Solution overview
  • Rationale
  • Impact assessment

Integration with AI Assistants

DrDuck is designed to work with:

  • Claude Code CLI: Integrates with your Claude coding sessions
  • Cursor: Works with Cursor's AI-powered development environment

The tool can automatically analyze code changes and help complete ADRs based on development context.

Git Hooks

Optional git hooks help maintain documentation discipline:

  • Pre-commit: Validates ADR completeness for staged changes
  • Pre-push: Ensures significant changes have associated ADRs

Hooks can be bypassed with git commit --no-verify when needed.

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Roadmap

  • Claude Code CLI integration
  • Cursor integration
  • Separate repository support
  • Custom template system
  • CI/CD pipeline integration
  • Web-based ADR visualization

Built with ❀️ by SilverFlin

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis
internal
adr
ai
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL