Problem
The daf-workflow skill instructs the AI to run daf active "before making changes", but this guidance is applied too broadly and causes unnecessary command execution in analysis-only sessions.
Current behavior:
- AI runs
daf active in analysis-only sessions (daf jira new, daf git new, daf investigate)
- These sessions explicitly forbid code changes, so checking active conversation is unnecessary
- Creates confusion and overhead
Files Affected
devflow/cli_skills/daf-workflow/SKILL.md:
-
Line 149 - "Understanding Multi-Project Sessions" section:
Before making changes:
1. Run `daf active` to see which projects are in the session
2. Verify your current working directory
3. Understand how changes might affect other projects
-
Line 352 - "Best Practices" section:
6. **Check multi-project context** - Run `daf active` before making changes
-
Lines 111, 317, 363 - Example commands showing daf active
Root Cause
The skill doesn't distinguish between:
- Development sessions (daf open) → Changes ARE made →
daf active IS useful
- Analysis-only sessions (daf jira new, daf git new, daf investigate) → NO changes →
daf active NOT needed
Proposed Changes
Change 1: Update "Before making changes" section (line 148-151)
Current:
**Before making changes:**
1. Run `daf active` to see which projects are in the session
2. Verify your current working directory
3. Understand how changes might affect other projects
Proposed:
**Before making changes (development sessions only):**
**For development sessions (daf open):**
1. Run `daf active` to see which projects are in the session
2. Verify your current working directory
3. Understand how changes might affect other projects
**For analysis-only sessions (daf jira new, daf git new, daf investigate):**
- Running `daf active` is NOT necessary - you're only reading files
- Focus on analyzing the codebase, not checking session state
Change 2: Update Best Practices section (line 352)
Current:
6. **Check multi-project context** - Run `daf active` before making changes
Proposed:
6. **Check multi-project context** - Run `daf active` before making changes (development sessions only)
Change 3: Add clarification to session type sections
Add explicit guidance in the workflow sections:
For "Workflow: Standard Development Sessions" (line 155):
### 1. Session Start - Read Acceptance Criteria and Check Context
**CRITICAL FIRST STEPS:**
- Run `daf active` to see which projects are in this session
- Read the issue immediately to understand acceptance criteria
- Plan your work to address each criterion
- Track which criteria you'll address as you work
For "Workflow: Ticket Creation Sessions" (line 250):
**Purpose:** Analyze the codebase to create a well-informed issue
**Context checking:**
- `daf active` is NOT needed in analysis-only sessions
- You're only reading files, not making changes
Acceptance Criteria
Benefits
- Reduces unnecessary overhead in analysis-only sessions
- Clearer guidance for AI about when commands are needed
- Less confusion about session state checking
- Faster analysis without redundant command execution
Testing
Problem
The daf-workflow skill instructs the AI to run
daf active"before making changes", but this guidance is applied too broadly and causes unnecessary command execution in analysis-only sessions.Current behavior:
daf activein analysis-only sessions (daf jira new, daf git new, daf investigate)Files Affected
devflow/cli_skills/daf-workflow/SKILL.md:
Line 149 - "Understanding Multi-Project Sessions" section:
Line 352 - "Best Practices" section:
Lines 111, 317, 363 - Example commands showing
daf activeRoot Cause
The skill doesn't distinguish between:
daf activeIS usefuldaf activeNOT neededProposed Changes
Change 1: Update "Before making changes" section (line 148-151)
Current:
Proposed:
Change 2: Update Best Practices section (line 352)
Current:
Proposed:
Change 3: Add clarification to session type sections
Add explicit guidance in the workflow sections:
For "Workflow: Standard Development Sessions" (line 155):
For "Workflow: Ticket Creation Sessions" (line 250):
Acceptance Criteria
daf activeis not neededdaf activeusage are in development session context onlydaf activeBenefits
Testing
daf activedaf activebefore changes