Skip to main content

/feature - Feature Management Command

Manage features within CODITECT epics. Features are discrete pieces of functionality that deliver user value.

Usage

# Create feature in epic
/feature create E001 "Feature Title" [--points 8] [--priority 70]

# List features
/feature list [E001] [--status STATUS] [--sprint S01]

# Show feature details with tasks
/feature show F001

# Update feature
/feature update F001 --status in_progress --sprint S01

# Add task to feature
/feature add-task F001 "Task Title"

# Estimate feature
/feature estimate F001 --points 13

# Assign to sprint
/feature assign-sprint F001 S01

System Prompt

System Prompt

⚠️ EXECUTION DIRECTIVE: When the user invokes this command, you MUST:

  1. IMMEDIATELY execute - no questions, no explanations first
  2. ALWAYS show full output from script/tool execution
  3. ALWAYS provide summary after execution completes

DO NOT:

  • Say "I don't need to take action" - you ALWAYS execute when invoked
  • Ask for confirmation unless requires_confirmation: true in frontmatter
  • Skip execution even if it seems redundant - run it anyway

The user invoking the command IS the confirmation.


You are managing CODITECT features using the Work Item Hierarchy system (ADR-006).

ID Convention:

  • Features: F{NNN} (F001, F042, F123)
  • Tasks: T{NNNN} (child of feature)

Hierarchy: Project → Sub-Project → Epic → Feature → Task → Subtask

Story Points (Fibonacci): 1, 2, 3, 5, 8, 13, 21

Available Actions:

Create Feature

python3 scripts/work_items.py feature create "$EPIC_ID" "$TITLE" \
--points $POINTS --priority $PRIORITY

List Features

python3 scripts/work_items.py feature list [--epic "$EPIC_ID"] [--status "$STATUS"] [--sprint "$SPRINT_ID"]

Show Feature

python3 scripts/work_items.py feature show "$FEATURE_ID"

Update Feature

python3 scripts/work_items.py feature update "$FEATURE_ID" $OPTIONS

Assign to Sprint

python3 scripts/work_items.py feature assign-sprint "$FEATURE_ID" "$SPRINT_ID"

Output Format:

Feature F001 created successfully.

ID: F001
Title: User Login Flow
Epic: E001 (User Authentication)
Status: backlog
Priority: 70 (Medium)
Points: 8
Sprint: -
Progress: 0%
Tasks: 0
Created: 2025-12-13T10:30:00Z

Next steps:
/task create F001 "Implement UI" - Add task
/feature assign-sprint F001 S01 - Add to sprint
/feature update F001 --status planned - Change status

Examples

Create Feature with Estimate

/feature create E001 "OAuth Integration" --points 13 --priority 80

View Feature with Tasks

/feature show F001

Output:

F001: OAuth Integration (40% complete)
Epic: E001 (User Authentication)
Status: in_progress
Priority: 80 (High)
Points: 13
Sprint: S01 (Sprint 1)
Hours: 12h estimated, 5h actual

Tasks:
├── T0001: Research OAuth providers (100%) ✓ [2h]
├── T0002: Implement Google OAuth (100%) ✓ [3h]
├── T0003: Implement GitHub OAuth (0%) [3h]
├── T0004: Token refresh logic (0%) [2h]
└── T0005: Write integration tests (0%) [2h]

List Features in Sprint

/feature list --sprint S01

Estimate Multiple Features

/feature estimate F001 --points 8
/feature estimate F002 --points 13
/feature estimate F003 --points 5

Success Output

When feature management completes:

✅ COMMAND COMPLETE: /feature
Action: <create|list|show|update|estimate>
Feature: F<NNN>
Title: <feature-title>
Epic: E<NNN>
Status: <status>
Points: <story-points>
Tasks: N
Progress: N%

Completion Checklist

Before marking complete:

  • Action identified
  • Feature ID resolved
  • Operation executed
  • Results displayed

Failure Indicators

This command has FAILED if:

  • ❌ No action specified
  • ❌ Invalid feature ID
  • ❌ Epic not found
  • ❌ Database error

When NOT to Use

Do NOT use when:

  • Managing epics (use /epic)
  • Managing tasks (use /task)
  • Full development workflow (use /feature-development)

Anti-Patterns (Avoid)

Anti-PatternProblemSolution
No estimateCan't plan sprintUse /feature estimate
Skip epicOrphaned featureAlways link to epic
No tasksUnmeasurable progressBreak into tasks

Principles

This command embodies:

  • #3 Complete Execution - Full work item workflow
  • #6 Clear, Understandable - Clear hierarchy display
  • #9 Based on Facts - Track actual progress

Full Standard: CODITECT-STANDARD-AUTOMATION.md


Script: scripts/work_items.py Standard: CODITECT-CORE-STANDARDS/CODITECT-STANDARD-WORK-ITEMS.md Version: 1.0.0