-
Notifications
You must be signed in to change notification settings - Fork 2
Clarify daf active is only needed for development sessions, not analysis-only #352
Copy link
Copy link
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationskillstaskux
Description
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 activein 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 activeIS useful - Analysis-only sessions (daf jira new, daf git new, daf investigate) → NO changes →
daf activeNOT 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 projectsProposed:
**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 stateChange 2: Update Best Practices section (line 352)
Current:
6. **Check multi-project context** - Run `daf active` before making changesProposed:
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 workFor "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 changesAcceptance Criteria
- daf-workflow skill distinguishes between development and analysis-only sessions
- "Before making changes" section clarifies it's for development sessions only
- Best practices section updated with "(development sessions only)" qualifier
- Analysis-only workflow sections explicitly state
daf activeis not needed - Examples showing
daf activeusage are in development session context only - Skill is clear that analysis-only = no need for
daf active
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
- Review skill after changes
- Test analysis-only sessions (daf jira new, daf git new) - AI should not run
daf active - Test development sessions (daf open) - AI should run
daf activebefore changes - Verify skill guidance is contextually appropriate
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationskillstaskux