devflow-kit 0.4.0 â 0.6.0
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.
- package/CHANGELOG.md +129 -0
- package/README.md +61 -9
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +160 -176
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/uninstall.d.ts.map +1 -1
- package/dist/commands/uninstall.js +73 -48
- package/dist/commands/uninstall.js.map +1 -1
- package/dist/utils/git.d.ts +11 -0
- package/dist/utils/git.d.ts.map +1 -0
- package/dist/utils/git.js +36 -0
- package/dist/utils/git.js.map +1 -0
- package/dist/utils/paths.d.ts +32 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +86 -0
- package/dist/utils/paths.js.map +1 -0
- package/package.json +1 -1
- package/src/claude/agents/devflow/audit-architecture.md +92 -110
- package/src/claude/agents/devflow/audit-complexity.md +94 -130
- package/src/claude/agents/devflow/audit-database.md +95 -136
- package/src/claude/agents/devflow/audit-dependencies.md +94 -136
- package/src/claude/agents/devflow/audit-documentation.md +82 -323
- package/src/claude/agents/devflow/audit-performance.md +212 -107
- package/src/claude/agents/devflow/audit-security.md +201 -83
- package/src/claude/agents/devflow/audit-tests.md +82 -471
- package/src/claude/agents/devflow/audit-typescript.md +83 -311
- package/src/claude/agents/devflow/pull-request.md +423 -0
- package/src/claude/commands/devflow/code-review.md +297 -248
- package/src/claude/commands/devflow/plan-next-steps.md +1 -1
- package/src/claude/commands/devflow/plan.md +485 -0
- package/src/claude/commands/devflow/pull-request.md +269 -0
- package/src/claude/commands/devflow/resolve-comments.md +583 -0
- package/src/claude/scripts/statusline.sh +0 -36
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,134 @@ All notable changes to DevFlow 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.6.0] - 2025-11-03
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
#### Complete PR Workflow Commands
|
|
13
|
+
- **`/plan` command** - Interactive planning with design decisions
|
|
14
|
+
- Extracts actionable tasks from discussion
|
|
15
|
+
- Presents tasks to user for selection via interactive UI
|
|
16
|
+
- Saves only chosen tasks to todo list
|
|
17
|
+
- Enables focused, intentional work sessions
|
|
18
|
+
- **`/pull-request` command** - Smart PR creation with auto-generated descriptions
|
|
19
|
+
- Analyzes all commits and changes in branch
|
|
20
|
+
- Generates comprehensive PR description automatically
|
|
21
|
+
- Includes summary, key changes, and test plan
|
|
22
|
+
- Supports `--draft` flag and custom base branch
|
|
23
|
+
- Uses new pull-request sub-agent for deep analysis
|
|
24
|
+
- **`/resolve-comments` command** - Systematic PR feedback resolution
|
|
25
|
+
- Fetches PR review comments via GitHub CLI
|
|
26
|
+
- Triages comments with user (implement, respond, defer)
|
|
27
|
+
- Implements changes and updates PR
|
|
28
|
+
- Posts replies to reviewers
|
|
29
|
+
- Tracks completion status
|
|
30
|
+
|
|
31
|
+
#### Enhanced Audit System
|
|
32
|
+
- **Three-category reporting** - All 9 audit agents refactored for clearer feedback
|
|
33
|
+
- **đ´ Issues in Your Changes** - NEW vulnerabilities/problems introduced (BLOCKING)
|
|
34
|
+
- **â ī¸ Issues in Code You Touched** - Problems near your changes (SHOULD FIX)
|
|
35
|
+
- **âšī¸ Pre-existing Issues** - Legacy problems unrelated to PR (INFORMATIONAL)
|
|
36
|
+
- Prevents scope creep in code reviews by clearly separating what you introduced
|
|
37
|
+
- **New pull-request sub-agent** - Comprehensive PR analysis specialist
|
|
38
|
+
- Analyzes commit history and code changes
|
|
39
|
+
- Generates structured PR descriptions
|
|
40
|
+
- Identifies breaking changes and migration paths
|
|
41
|
+
- Creates test plans and verification steps
|
|
42
|
+
|
|
43
|
+
### Changed
|
|
44
|
+
|
|
45
|
+
#### Code Review Command Rewrite
|
|
46
|
+
- **Completely rewritten `/code-review` command** - Better orchestration and synthesis
|
|
47
|
+
- Orchestrates all audit sub-agents in parallel for faster execution
|
|
48
|
+
- Synthesizes findings from three-category reports
|
|
49
|
+
- Generates actionable summary with clear priorities
|
|
50
|
+
- Separates blocking issues from informational findings
|
|
51
|
+
- Provides focused feedback on what actually needs fixing
|
|
52
|
+
|
|
53
|
+
#### Type Safety Improvements
|
|
54
|
+
- **Enhanced error handling in CLI** - Proper TypeScript type guards
|
|
55
|
+
- Added `NodeSystemError` interface with proper typing
|
|
56
|
+
- Created `isNodeSystemError()` type guard function
|
|
57
|
+
- Replaced `error: any` with `error: unknown` in init command
|
|
58
|
+
- Safely checks `error.code` property with type guard
|
|
59
|
+
- Maintains runtime behavior while improving type safety
|
|
60
|
+
|
|
61
|
+
### Fixed
|
|
62
|
+
|
|
63
|
+
#### Documentation
|
|
64
|
+
- **README CLI examples** - Corrected command invocation format
|
|
65
|
+
- Fixed examples to use `npx devflow-kit` instead of `devflow`
|
|
66
|
+
- Ensures users can successfully run installation commands
|
|
67
|
+
- **Statusline metrics** - Fixed container-specific resource monitoring
|
|
68
|
+
- Now reads container-specific CPU and memory metrics correctly
|
|
69
|
+
- Removed redundant CPU and memory metrics from statusline implementation
|
|
70
|
+
- Improved accuracy for Docker container environments
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
[0.6.0]: https://github.com/dean0x/devflow/compare/v0.5.0...v0.6.0
|
|
75
|
+
|
|
76
|
+
## [0.5.0] - 2025-10-24
|
|
77
|
+
|
|
78
|
+
### Added
|
|
79
|
+
|
|
80
|
+
#### Installation Scope Support
|
|
81
|
+
- **Two-tier installation strategy** - Choose between user-wide and project-specific installation
|
|
82
|
+
- **User scope** (default): Install to `~/.claude/` for all projects
|
|
83
|
+
- **Local scope**: Install to `<git-root>/.claude/` for current project only
|
|
84
|
+
- Interactive prompt with clear descriptions when `--scope` flag not provided
|
|
85
|
+
- CLI flag: `devflow init --scope <user|local>`
|
|
86
|
+
- Automatic .gitignore updates for local scope (excludes `.claude/` and `.devflow/`)
|
|
87
|
+
- Perfect for team projects where DevFlow should be project-specific
|
|
88
|
+
|
|
89
|
+
#### Smart Uninstall with Scope Detection
|
|
90
|
+
- **Auto-detection of installed scopes** - Intelligently finds and removes DevFlow installations
|
|
91
|
+
- Automatically detects which scopes have DevFlow installed (user and/or local)
|
|
92
|
+
- Default behavior: Remove from all detected scopes
|
|
93
|
+
- Manual override: `--scope <user|local>` to target specific scope
|
|
94
|
+
- Clear feedback showing which scopes are being uninstalled
|
|
95
|
+
- Graceful handling when no installation found
|
|
96
|
+
|
|
97
|
+
### Changed
|
|
98
|
+
|
|
99
|
+
#### Code Quality Improvements
|
|
100
|
+
- **Extracted shared utilities** - Eliminated code duplication between init and uninstall commands
|
|
101
|
+
- Created `src/cli/utils/paths.ts` for path resolution functions
|
|
102
|
+
- Created `src/cli/utils/git.ts` for git repository operations
|
|
103
|
+
- Reduced duplication by ~65 lines
|
|
104
|
+
- Single source of truth for path and git logic
|
|
105
|
+
|
|
106
|
+
#### Performance Optimizations
|
|
107
|
+
- **Eliminated redundant git detection** - Cache git root result for reuse
|
|
108
|
+
- Previously called `git rev-parse` twice during installation
|
|
109
|
+
- Now cached once and reused throughout installation process
|
|
110
|
+
- Faster installation, especially in large repositories
|
|
111
|
+
|
|
112
|
+
### Fixed
|
|
113
|
+
|
|
114
|
+
#### CI/CD Compatibility
|
|
115
|
+
- **TTY detection for interactive prompts** - Prevents hanging in non-interactive environments
|
|
116
|
+
- Detects when running in CI/CD pipelines, Docker containers, or automated scripts
|
|
117
|
+
- Falls back to default scope (user) when no TTY available
|
|
118
|
+
- Clear messaging when non-interactive environment detected
|
|
119
|
+
- Explicit instructions for CI/CD usage: `devflow init --scope <user|local>`
|
|
120
|
+
|
|
121
|
+
#### Security Hardening
|
|
122
|
+
- **Environment variable path validation** - Prevents malicious path overrides
|
|
123
|
+
- Validates `CLAUDE_CODE_DIR` and `DEVFLOW_DIR` are absolute paths
|
|
124
|
+
- Warns when paths point outside user's home directory
|
|
125
|
+
- Prevents path traversal attacks via environment variables
|
|
126
|
+
- Security-first approach to custom path configuration
|
|
127
|
+
|
|
128
|
+
### Documentation
|
|
129
|
+
- **Installation Scopes section** in README with clear use cases
|
|
130
|
+
- **Updated CLI commands table** with scope options for init and uninstall
|
|
131
|
+
- **Migration guide** for existing users (scope defaults to user for compatibility)
|
|
132
|
+
- **.gitignore patterns** documented for local scope installations
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
8
136
|
## [0.4.0] - 2025-10-21
|
|
9
137
|
|
|
10
138
|
### Added
|
|
@@ -357,6 +485,7 @@ devflow init
|
|
|
357
485
|
|
|
358
486
|
---
|
|
359
487
|
|
|
488
|
+
[0.5.0]: https://github.com/dean0x/devflow/releases/tag/v0.5.0
|
|
360
489
|
[0.4.0]: https://github.com/dean0x/devflow/releases/tag/v0.4.0
|
|
361
490
|
[0.3.3]: https://github.com/dean0x/devflow/releases/tag/v0.3.3
|
|
362
491
|
[0.3.2]: https://github.com/dean0x/devflow/releases/tag/v0.3.2
|
package/README.md
CHANGED
|
@@ -9,6 +9,29 @@ A comprehensive collection of Claude Code commands and configurations designed t
|
|
|
9
9
|
npx devflow-kit init
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
+
### Installation Scopes
|
|
13
|
+
|
|
14
|
+
DevFlow supports two installation scopes:
|
|
15
|
+
|
|
16
|
+
**User Scope (Default)** - Install for all projects
|
|
17
|
+
```bash
|
|
18
|
+
npx devflow-kit init --scope user
|
|
19
|
+
# Or interactively: npx devflow-kit init (prompts for scope)
|
|
20
|
+
```
|
|
21
|
+
- Installs to `~/.claude/` and `~/.devflow/`
|
|
22
|
+
- Available across all projects
|
|
23
|
+
- Recommended for personal use
|
|
24
|
+
|
|
25
|
+
**Local Scope** - Install for current project only
|
|
26
|
+
```bash
|
|
27
|
+
npx devflow-kit init --scope local
|
|
28
|
+
```
|
|
29
|
+
- Installs to `<git-root>/.claude/` and `<git-root>/.devflow/`
|
|
30
|
+
- Only available in the current project
|
|
31
|
+
- Recommended for team projects where DevFlow should be project-specific
|
|
32
|
+
- Requires a git repository (run `git init` first)
|
|
33
|
+
- Add `.claude/` and `.devflow/` to `.gitignore` (done automatically)
|
|
34
|
+
|
|
12
35
|
That's it! DevFlow is now installed and ready to use in Claude Code.
|
|
13
36
|
|
|
14
37
|
## What's Included
|
|
@@ -47,12 +70,15 @@ This gives you the best of both worlds: automatic assistance when needed, manual
|
|
|
47
70
|
|---------|---------|-------------|
|
|
48
71
|
| `/catch-up` | Smart summaries for starting new sessions with status validation | Starting a session |
|
|
49
72
|
| `/devlog` | Development log for comprehensive session documentation | Ending a session |
|
|
50
|
-
| `/plan-next-steps` | Extract actionable next steps from current discussion | After planning discussion |
|
|
51
|
-
| `/implement` | Smart interactive implementation orchestrator with todo triage | After planning, ready to implement todos |
|
|
52
|
-
| `/debug` | Systematic debugging workflow with hypothesis testing | When errors occur, tests fail, or investigating issues |
|
|
53
73
|
| `/research` | Pre-implementation research and approach analysis | Before implementing unfamiliar features or integrations |
|
|
74
|
+
| `/debug` | Systematic debugging workflow with hypothesis testing | When errors occur, tests fail, or investigating issues |
|
|
75
|
+
| `/plan` | Interactive planning with task selection and prioritization | After research/review, deciding which tasks to tackle |
|
|
76
|
+
| `/plan-next-steps` | Extract actionable next steps from current discussion | After planning discussion, quick task capture |
|
|
77
|
+
| `/implement` | Smart interactive implementation orchestrator with todo triage | After planning, ready to implement todos |
|
|
54
78
|
| `/code-review` | Comprehensive code review using specialized sub-agents | Before committing or creating PR |
|
|
55
79
|
| `/commit` | Intelligent atomic commit creation with safety checks | When ready to commit |
|
|
80
|
+
| `/pull-request` | Create PR with comprehensive analysis and smart description | After commits, ready to create PR |
|
|
81
|
+
| `/resolve-comments` | Systematically address PR review feedback | After PR feedback, need to resolve comments |
|
|
56
82
|
| `/release` | Automated release workflow with version management and publishing | Creating a new release |
|
|
57
83
|
|
|
58
84
|
### đ¤ Sub-Agents
|
|
@@ -67,10 +93,13 @@ This gives you the best of both worlds: automatic assistance when needed, manual
|
|
|
67
93
|
| `audit-dependencies` | Dependencies | Dependency management and security analysis |
|
|
68
94
|
| `audit-database` | Database | Database design and optimization review |
|
|
69
95
|
| `audit-documentation` | Documentation | Docs-code alignment, API accuracy, comment quality |
|
|
96
|
+
| `audit-typescript` | TypeScript | Type safety enforcement and TypeScript code quality |
|
|
70
97
|
| `catch-up` | Context Restoration | Project status and context restoration with validation |
|
|
71
98
|
| `commit` | Git Operations | Intelligent commit creation with safety checks |
|
|
99
|
+
| `pull-request` | PR Creation | Analyze commits/changes and generate comprehensive PR descriptions |
|
|
72
100
|
| `research` | Implementation Planning | Pre-implementation research, approach analysis, and planning |
|
|
73
101
|
| `release` | Release Automation | Project-agnostic release workflow with version management |
|
|
102
|
+
| `debug` | Debugging | Systematic debugging with hypothesis testing and issue tracking |
|
|
74
103
|
|
|
75
104
|
**How Sub-Agents Work:**
|
|
76
105
|
- Specialized AI assistants with deep expertise in specific domains
|
|
@@ -125,14 +154,25 @@ Covers patterns for all major languages and operating systems.
|
|
|
125
154
|
|
|
126
155
|
### During Development
|
|
127
156
|
1. **Skills auto-activate** - `research` skill triggers for unfamiliar features, `pattern-check` validates architecture
|
|
128
|
-
2. **
|
|
129
|
-
3. `/
|
|
130
|
-
4.
|
|
157
|
+
2. **Plan your work** - `/plan` to select which tasks to tackle, or `/plan-next-steps` for quick capture
|
|
158
|
+
3. **Implement systematically** - `/implement` to work through todos with guidance
|
|
159
|
+
4. **Code with confidence** - Skills catch anti-patterns and violations during implementation
|
|
160
|
+
5. `/code-review` - Review changes before committing
|
|
161
|
+
6. `/commit` - Create intelligent atomic commits
|
|
162
|
+
|
|
163
|
+
### Creating Pull Requests
|
|
164
|
+
1. `/code-review` - Comprehensive branch review
|
|
165
|
+
2. `/commit` - Final commits with validation
|
|
166
|
+
3. `/pull-request` - Create PR with smart description
|
|
167
|
+
4. Wait for review feedback
|
|
168
|
+
5. `/resolve-comments` - Address feedback systematically
|
|
169
|
+
6. Repeat steps 4-5 until approved
|
|
131
170
|
|
|
132
171
|
### Ending a Session
|
|
133
172
|
1. `/devlog` - Document decisions and state
|
|
134
173
|
2. `/code-review` - Review branch before creating PR
|
|
135
174
|
3. `/commit` - Final commits with validation
|
|
175
|
+
4. `/pull-request` - Create PR if ready
|
|
136
176
|
|
|
137
177
|
### Creating a Release
|
|
138
178
|
1. `/code-review` - Comprehensive branch review
|
|
@@ -154,10 +194,12 @@ Covers patterns for all major languages and operating systems.
|
|
|
154
194
|
|
|
155
195
|
| Command | Purpose | Options |
|
|
156
196
|
|---------|---------|---------|
|
|
157
|
-
| `devflow init` | Initialize DevFlow for Claude Code | `--skip-docs` - Skip creating `.docs/` structure |
|
|
158
|
-
| `devflow uninstall` | Remove DevFlow from Claude Code | `--keep-docs` - Keep `.docs/` directory |
|
|
197
|
+
| `npx devflow-kit init` | Initialize DevFlow for Claude Code | `--scope <user\|local>` - Installation scope (user: user-wide, local: project-only)<br>`--skip-docs` - Skip creating `.docs/` structure |
|
|
198
|
+
| `npx devflow-kit uninstall` | Remove DevFlow from Claude Code | `--scope <user\|local>` - Uninstall from specific scope only (default: auto-detect all)<br>`--keep-docs` - Keep `.docs/` directory |
|
|
159
199
|
|
|
160
|
-
**What `devflow init` does:**
|
|
200
|
+
**What `npx devflow-kit init` does:**
|
|
201
|
+
|
|
202
|
+
**User Scope** (default):
|
|
161
203
|
- Installs commands to `~/.claude/commands/devflow/`
|
|
162
204
|
- Installs sub-agents to `~/.claude/agents/devflow/`
|
|
163
205
|
- Installs skills to `~/.claude/skills/devflow/`
|
|
@@ -166,6 +208,16 @@ Covers patterns for all major languages and operating systems.
|
|
|
166
208
|
- Creates `.claudeignore` at git repository root
|
|
167
209
|
- Creates `.docs/` structure for project documentation
|
|
168
210
|
|
|
211
|
+
**Local Scope** (`--scope local`):
|
|
212
|
+
- Installs commands to `<git-root>/.claude/commands/devflow/`
|
|
213
|
+
- Installs sub-agents to `<git-root>/.claude/agents/devflow/`
|
|
214
|
+
- Installs skills to `<git-root>/.claude/skills/devflow/`
|
|
215
|
+
- Installs scripts to `<git-root>/.devflow/scripts/`
|
|
216
|
+
- Creates `<git-root>/.claude/settings.json` (statusline and model)
|
|
217
|
+
- Creates `.claudeignore` at git repository root
|
|
218
|
+
- Creates `.docs/` structure for project documentation
|
|
219
|
+
- Adds `.claude/` and `.devflow/` to `.gitignore`
|
|
220
|
+
|
|
169
221
|
**First Run:**
|
|
170
222
|
```bash
|
|
171
223
|
devflow init
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/cli/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/cli/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA4CpC,eAAO,MAAM,WAAW,SAmgBpB,CAAC"}
|