chiron 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/CHANGELOG.md +27 -0
 - data/CLAUDE.md +30 -1
 - data/docs/development_journal.md +84 -1
 - data/lib/chiron/templates/python/commands/quality/python-testing.md +578 -0
 - data/lib/chiron/templates/python/commands/workflows/debug-python.md +222 -0
 - data/lib/chiron/templates/python/commands/workflows/flask-development.md +667 -0
 - data/lib/chiron/templates/python/commands/workflows/python-refactor.md +336 -0
 - data/lib/chiron/templates/shared/commands/context/branch-context.md +176 -0
 - data/lib/chiron/templates/shared/commands/context/catchup.md +6 -1
 - data/lib/chiron/templates/shared/commands/context/quickstart.md +8 -3
 - data/lib/chiron/templates/shared/commands/workflows/branch-management.md +256 -0
 - data/lib/chiron/templates/shared/development_journal.md.erb +9 -3
 - data/lib/chiron/version.rb +1 -1
 - metadata +7 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: ed0812e658fcd053473ebaeb84d3c0e7b5c0ca35cc9a53a66a316e72ba96d0e5
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 45a146731a3eb6797444ae1b8d469e066da1a3e7d50d8913a414d2944c9d9a40
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 0a1d06237d6c61271c7a4313a7242dc9105fdd14dc90a135f8117f18b0a5da1df02a800a5c2f731a02524bdf15a8dc1b698a5efd75f5bb9e7e634c8d6989876a
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 90b73ca6f3b9a550ee4b78220c3f73e83587341e962c0265acdefc1276d06aa89c6f67bedd93258436760f2e6671ef47a0e4bbe0bd76643fd56e0659751ec844
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -5,6 +5,33 @@ All notable changes to this project will be documented in this file. 
     | 
|
| 
       5 
5 
     | 
    
         
             
            The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
         
     | 
| 
       6 
6 
     | 
    
         
             
            and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
      
 8 
     | 
    
         
            +
            ## [0.2.1] - 2025-07-01
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            ### Added
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            #### Branch Tracking for Claude Sessions
         
     | 
| 
      
 13 
     | 
    
         
            +
            - **`/branch-context` Command**: Comprehensive branch information for Claude session continuity
         
     | 
| 
      
 14 
     | 
    
         
            +
            - **Branch Management Workflow**: Complete procedures for creating, switching, and managing Git branches
         
     | 
| 
      
 15 
     | 
    
         
            +
            - **Enhanced Context Commands**: Updated `/quickstart` and `/catchup` with branch awareness
         
     | 
| 
      
 16 
     | 
    
         
            +
            - **Development Journal Integration**: Branch tracking sections and guidelines for documentation
         
     | 
| 
      
 17 
     | 
    
         
            +
            - **Session Continuity**: Workflows for maintaining context across Claude sessions and branch switches
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
            #### New Workflow Templates
         
     | 
| 
      
 20 
     | 
    
         
            +
            - **Branch Context** (`shared/commands/context/branch-context.md`): Detailed branch information and progress tracking
         
     | 
| 
      
 21 
     | 
    
         
            +
            - **Branch Management** (`shared/commands/workflows/branch-management.md`): Complete branch lifecycle management
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
            #### Enhanced Documentation
         
     | 
| 
      
 24 
     | 
    
         
            +
            - **CLAUDE.md**: Added branch management section with naming conventions and session continuity guidelines
         
     | 
| 
      
 25 
     | 
    
         
            +
            - **Development Journal Template**: Enhanced with branch tracking fields and ownership documentation
         
     | 
| 
      
 26 
     | 
    
         
            +
            - **Context Commands**: Integrated branch awareness into existing workflow commands
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
            ### Enhanced
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
            #### Session Management
         
     | 
| 
      
 31 
     | 
    
         
            +
            - **Context Continuity**: Improved Claude session startup with branch context
         
     | 
| 
      
 32 
     | 
    
         
            +
            - **Progress Tracking**: Better documentation of branch work and ownership
         
     | 
| 
      
 33 
     | 
    
         
            +
            - **Collaboration**: Enhanced handoff procedures and shared understanding patterns
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
       8 
35 
     | 
    
         
             
            ## [0.2.0] - 2025-07-01
         
     | 
| 
       9 
36 
     | 
    
         | 
| 
       10 
37 
     | 
    
         
             
            ### Added
         
     | 
    
        data/CLAUDE.md
    CHANGED
    
    | 
         @@ -98,11 +98,40 @@ lib/ 
     | 
|
| 
       98 
98 
     | 
    
         
             
            - Test CLI commands with temporary directories
         
     | 
| 
       99 
99 
     | 
    
         
             
            - Follow RSpec best practices
         
     | 
| 
       100 
100 
     | 
    
         | 
| 
      
 101 
     | 
    
         
            +
            ## Branch Management and Claude Sessions
         
     | 
| 
      
 102 
     | 
    
         
            +
             
     | 
| 
      
 103 
     | 
    
         
            +
            ### Branch Naming Conventions
         
     | 
| 
      
 104 
     | 
    
         
            +
            - `feature/[description]` - New functionality (e.g., `feature/python-support`)
         
     | 
| 
      
 105 
     | 
    
         
            +
            - `bugfix/[description]` - Bug fixes (e.g., `bugfix/template-loading`)
         
     | 
| 
      
 106 
     | 
    
         
            +
            - `hotfix/[description]` - Urgent production fixes
         
     | 
| 
      
 107 
     | 
    
         
            +
            - `experiment/[description]` - Exploratory work
         
     | 
| 
      
 108 
     | 
    
         
            +
             
     | 
| 
      
 109 
     | 
    
         
            +
            ### Claude Session Continuity
         
     | 
| 
      
 110 
     | 
    
         
            +
            - **Starting Sessions**: Always run `/quickstart` to get current context
         
     | 
| 
      
 111 
     | 
    
         
            +
            - **Branch Work**: Use `/branch-context` when working on feature branches
         
     | 
| 
      
 112 
     | 
    
         
            +
            - **Progress Tracking**: Update development journal for significant changes
         
     | 
| 
      
 113 
     | 
    
         
            +
            - **Branch Switching**: Document current state before switching branches
         
     | 
| 
      
 114 
     | 
    
         
            +
             
     | 
| 
      
 115 
     | 
    
         
            +
            ### Development Journal Usage
         
     | 
| 
      
 116 
     | 
    
         
            +
            - Include branch name in all journal entries
         
     | 
| 
      
 117 
     | 
    
         
            +
            - Update "Active Branches & Ownership" section when creating/merging branches
         
     | 
| 
      
 118 
     | 
    
         
            +
            - Link journal entries to related PRD files
         
     | 
| 
      
 119 
     | 
    
         
            +
            - Document architectural decisions and reasoning
         
     | 
| 
      
 120 
     | 
    
         
            +
             
     | 
| 
      
 121 
     | 
    
         
            +
            ### Branch Workflow
         
     | 
| 
      
 122 
     | 
    
         
            +
            1. Create branch from updated main: `git checkout -b feature/description`
         
     | 
| 
      
 123 
     | 
    
         
            +
            2. Document branch purpose in development journal
         
     | 
| 
      
 124 
     | 
    
         
            +
            3. Make initial empty commit with context
         
     | 
| 
      
 125 
     | 
    
         
            +
            4. Develop with frequent commits and journal updates
         
     | 
| 
      
 126 
     | 
    
         
            +
            5. Use `/catchup` and `/branch-context` for status updates
         
     | 
| 
      
 127 
     | 
    
         
            +
            6. Complete pre-commit checklist before merging
         
     | 
| 
      
 128 
     | 
    
         
            +
             
     | 
| 
       101 
129 
     | 
    
         
             
            ## Important Reminders
         
     | 
| 
       102 
130 
     | 
    
         | 
| 
       103 
131 
     | 
    
         
             
            - Always run tests before committing
         
     | 
| 
       104 
     | 
    
         
            -
            - Use semantic commit messages
         
     | 
| 
      
 132 
     | 
    
         
            +
            - Use semantic commit messages with branch context
         
     | 
| 
       105 
133 
     | 
    
         
             
            - Update the development journal for significant changes
         
     | 
| 
       106 
134 
     | 
    
         
             
            - Follow the pre-commit checklist in `.claude/commands/quality/pre-commit.md`
         
     | 
| 
      
 135 
     | 
    
         
            +
            - Use branch management workflows for feature development
         
     | 
| 
       107 
136 
     | 
    
         
             
            - Update CHANGELOG.md for notable changes
         
     | 
| 
       108 
137 
     | 
    
         
             
            - Test gem building and installation locally before releasing
         
     | 
    
        data/docs/development_journal.md
    CHANGED
    
    | 
         @@ -1,11 +1,94 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Development Journal - Chiron Gem
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            ## Project Overview
         
     | 
| 
       4 
     | 
    
         
            -
            Chiron is a Ruby gem that helps Rails developers set up Claude AI workflows, PRD templates, and development journaling systems.
         
     | 
| 
      
 4 
     | 
    
         
            +
            Chiron is a Ruby gem that helps Rails and Python developers set up Claude AI workflows, PRD templates, and development journaling systems.
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            ---
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            ## 2025-07-01 - Major Enhancement: Comprehensive Python Project Support
         
     | 
| 
      
 9 
     | 
    
         
            +
            **Developer(s)**: Claude Code | **Branch**: main | **Context**: User request for Python support
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            ### What was accomplished today:
         
     | 
| 
      
 12 
     | 
    
         
            +
            - **Major Feature Release**: Added complete Python project support to Chiron gem
         
     | 
| 
      
 13 
     | 
    
         
            +
            - **Framework Detection**: Implemented auto-detection for Django, FastAPI, Flask, and generic Python projects
         
     | 
| 
      
 14 
     | 
    
         
            +
            - **Architecture Overhaul**: Created `ProjectConfig` class for language-agnostic tool management
         
     | 
| 
      
 15 
     | 
    
         
            +
            - **Template Reorganization**: Restructured templates into `rails/`, `python/`, and `shared/` directories
         
     | 
| 
      
 16 
     | 
    
         
            +
            - **Comprehensive Testing**: Expanded test suite from 5 to 41 tests with full Python coverage
         
     | 
| 
      
 17 
     | 
    
         
            +
            - **Documentation Update**: Enhanced README, CHANGELOG, and CLI help with Python examples
         
     | 
| 
      
 18 
     | 
    
         
            +
            - **RubyGems Publication**: Successfully published version 0.2.0 to RubyGems
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
            ### Technical decisions made:
         
     | 
| 
      
 21 
     | 
    
         
            +
            - **Multi-Language Architecture**: Designed extensible system supporting both Rails and Python
         
     | 
| 
      
 22 
     | 
    
         
            +
            - **Project Detection**: Auto-detects project type via `requirements.txt`, `pyproject.toml`, `setup.py`, `Pipfile`
         
     | 
| 
      
 23 
     | 
    
         
            +
            - **Framework Intelligence**: Identifies Django (`manage.py`), FastAPI/Flask (via requirements analysis)
         
     | 
| 
      
 24 
     | 
    
         
            +
            - **Template Strategy**: Shared workflows with language-specific conventions and patterns
         
     | 
| 
      
 25 
     | 
    
         
            +
            - **Backward Compatibility**: Maintained 100% compatibility with existing Rails functionality
         
     | 
| 
      
 26 
     | 
    
         
            +
            - **Configuration Management**: `ProjectConfig` class abstracts tool selection (pytest vs RSpec, black vs RuboCop)
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
            ### Features added:
         
     | 
| 
      
 29 
     | 
    
         
            +
            - **Python CLI Options**: `--type=python`, `--with-django`, `--with-fastapi` flags
         
     | 
| 
      
 30 
     | 
    
         
            +
            - **Smart Project Detection**: Interactive prompts for unknown project types
         
     | 
| 
      
 31 
     | 
    
         
            +
            - **Python Workflow Templates**:
         
     | 
| 
      
 32 
     | 
    
         
            +
              - Python Conventions (PEP 8, type hints, async patterns, framework best practices)
         
     | 
| 
      
 33 
     | 
    
         
            +
              - Python Testing (pytest patterns, fixtures, mocking, async testing, CI/CD)
         
     | 
| 
      
 34 
     | 
    
         
            +
              - Python Debugging (pdb workflows, logging strategies, performance profiling)
         
     | 
| 
      
 35 
     | 
    
         
            +
              - Python Refactoring (SOLID principles, design patterns, code organization)
         
     | 
| 
      
 36 
     | 
    
         
            +
              - Flask Development (blueprints, forms, testing, deployment patterns)
         
     | 
| 
      
 37 
     | 
    
         
            +
            - **Framework-Specific Content**: Dynamic CLAUDE.md templates based on detected frameworks
         
     | 
| 
      
 38 
     | 
    
         
            +
            - **Project-Specific Tips**: Contextual setup guidance after initialization
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
      
 40 
     | 
    
         
            +
            ### Code quality metrics:
         
     | 
| 
      
 41 
     | 
    
         
            +
            - **RSpec**: 41 examples, 0 failures (8x increase in test coverage)
         
     | 
| 
      
 42 
     | 
    
         
            +
            - **New Test Categories**: Framework detection, ProjectConfig functionality, Python workflows
         
     | 
| 
      
 43 
     | 
    
         
            +
            - **RuboCop**: 29 minor offenses (mostly method length in CLI - acceptable for feature-rich CLI)
         
     | 
| 
      
 44 
     | 
    
         
            +
            - **Backward Compatibility**: All existing Rails tests continue to pass
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
            ### Architecture improvements:
         
     | 
| 
      
 47 
     | 
    
         
            +
            - **Template Structure**: 
         
     | 
| 
      
 48 
     | 
    
         
            +
              ```
         
     | 
| 
      
 49 
     | 
    
         
            +
              lib/chiron/templates/
         
     | 
| 
      
 50 
     | 
    
         
            +
              ├── rails/           # Rails-specific templates
         
     | 
| 
      
 51 
     | 
    
         
            +
              ├── python/          # Python-specific templates  
         
     | 
| 
      
 52 
     | 
    
         
            +
              └── shared/          # Language-agnostic workflows
         
     | 
| 
      
 53 
     | 
    
         
            +
              ```
         
     | 
| 
      
 54 
     | 
    
         
            +
            - **Language Detection**: Robust project type identification with fallback mechanisms
         
     | 
| 
      
 55 
     | 
    
         
            +
            - **Tool Configuration**: Abstracted command generation for testing, linting, formatting
         
     | 
| 
      
 56 
     | 
    
         
            +
            - **ERB Enhancement**: Framework-aware template rendering with conditional content
         
     | 
| 
      
 57 
     | 
    
         
            +
             
     | 
| 
      
 58 
     | 
    
         
            +
            ### Bugs fixed:
         
     | 
| 
      
 59 
     | 
    
         
            +
            - **Template Fallbacks**: Graceful handling when project-specific templates don't exist
         
     | 
| 
      
 60 
     | 
    
         
            +
            - **CLI Robustness**: Improved error handling for unknown project types
         
     | 
| 
      
 61 
     | 
    
         
            +
            - **Cross-Platform**: Ensured Python detection works across different package managers
         
     | 
| 
      
 62 
     | 
    
         
            +
             
     | 
| 
      
 63 
     | 
    
         
            +
            ### Version and release:
         
     | 
| 
      
 64 
     | 
    
         
            +
            - **Version Bump**: 0.1.0 → 0.2.0 (major feature enhancement)
         
     | 
| 
      
 65 
     | 
    
         
            +
            - **Gem Build**: Successfully built `chiron-0.2.0.gem`
         
     | 
| 
      
 66 
     | 
    
         
            +
            - **RubyGems**: Published to RubyGems registry
         
     | 
| 
      
 67 
     | 
    
         
            +
            - **Documentation**: Comprehensive CHANGELOG with technical details
         
     | 
| 
      
 68 
     | 
    
         
            +
             
     | 
| 
      
 69 
     | 
    
         
            +
            ### Impact and usage:
         
     | 
| 
      
 70 
     | 
    
         
            +
            - **Multi-Language Support**: Chiron now serves both Rails and Python ecosystems
         
     | 
| 
      
 71 
     | 
    
         
            +
            - **Framework Coverage**: Django, FastAPI, Flask, and generic Python projects supported
         
     | 
| 
      
 72 
     | 
    
         
            +
            - **Developer Experience**: Auto-detection eliminates manual configuration
         
     | 
| 
      
 73 
     | 
    
         
            +
            - **Workflow Richness**: Language-specific best practices and patterns included
         
     | 
| 
      
 74 
     | 
    
         
            +
             
     | 
| 
      
 75 
     | 
    
         
            +
            ### Next steps:
         
     | 
| 
      
 76 
     | 
    
         
            +
            - Monitor RubyGems adoption and user feedback
         
     | 
| 
      
 77 
     | 
    
         
            +
            - Consider additional language support (Node.js, Go, etc.)
         
     | 
| 
      
 78 
     | 
    
         
            +
            - Enhance framework detection with more sophisticated analysis
         
     | 
| 
      
 79 
     | 
    
         
            +
            - Add more Python-specific workflow templates based on community needs
         
     | 
| 
      
 80 
     | 
    
         
            +
            - Create video documentation showing Python project initialization
         
     | 
| 
      
 81 
     | 
    
         
            +
             
     | 
| 
      
 82 
     | 
    
         
            +
            ### Notes:
         
     | 
| 
      
 83 
     | 
    
         
            +
            - This represents the largest enhancement to Chiron since its creation
         
     | 
| 
      
 84 
     | 
    
         
            +
            - Successfully maintained backward compatibility while adding major new functionality
         
     | 
| 
      
 85 
     | 
    
         
            +
            - Python support is comprehensive and production-ready
         
     | 
| 
      
 86 
     | 
    
         
            +
            - Architecture now supports easy addition of future languages
         
     | 
| 
       5 
87 
     | 
    
         | 
| 
       6 
88 
     | 
    
         
             
            ---
         
     | 
| 
       7 
89 
     | 
    
         | 
| 
       8 
90 
     | 
    
         
             
            ## 2025-01-21 - Initial Setup and Module Rename
         
     | 
| 
      
 91 
     | 
    
         
            +
            **Developer(s)**: Claude Code | **Branch**: main | **Context**: Initial gem development
         
     | 
| 
       9 
92 
     | 
    
         | 
| 
       10 
93 
     | 
    
         
             
            ### What was accomplished today:
         
     | 
| 
       11 
94 
     | 
    
         
             
            - Set up complete gem development infrastructure
         
     |