catlog22
|
03399259f4
|
feat: optimize docs workflow and add gitignore support to scripts
Major Changes:
1. Add classify-folders.sh script
- Extract folder classification logic from inline script
- Support for code/navigation/skip folder types
- Placed in .claude/scripts/ for reusability
2. Optimize /workflow:docs command (docs.md)
- Simplify Phase 1: single-step session initialization
- Add Path Mirroring Strategy section
- Document structure now mirrors source structure
- Update to single config.json file (replace multiple .process files)
- Fix path detection for Windows/Git Bash compatibility
- Update all task templates with mirrored output paths
3. Add parent .gitignore support
- detect_changed_modules.sh: parse .gitignore from current or git root
- update_module_claude.sh: respect .gitignore patterns when counting files
- Unified build_exclusion_filters() function across scripts
Key Improvements:
- Documentation output: .workflow/docs/ with project structure mirroring
- Session init: 4 steps → 1 bash command block
- Config files: multiple files → single config.json
- Path detection: improved Windows/Git Bash normalization
- Gitignore support: current dir → parent dir fallback
Related Issue: Fix core directory exclusion in get_modules_by_depth.sh
(Note: get_modules_by_depth.sh is in user global config, not in this repo)
|
2025-10-12 15:06:13 +08:00 |
|