Skip to content

Clarify daf active is only needed for development sessions, not analysis-only #352

@itdove

Description

@itdove

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:

  1. 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
    
  2. Line 352 - "Best Practices" section:

    6. **Check multi-project context** - Run `daf active` before making changes
    
  3. 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

  • 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 active is not needed
  • Examples showing daf active usage are in development session context only
  • Skill is clear that analysis-only = no need for daf active

Benefits

  1. Reduces unnecessary overhead in analysis-only sessions
  2. Clearer guidance for AI about when commands are needed
  3. Less confusion about session state checking
  4. 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 active before changes
  • Verify skill guidance is contextually appropriate

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions