@cliangdev/flux-plugin 0.1.0 → 0.2.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.
@@ -1,21 +1,25 @@
1
1
  ---
2
+ name: flux:flux-orchestrator
2
3
  description: Orchestrates Flux workflows based on project context
4
+ user-invocable: false
3
5
  ---
4
6
 
5
7
  # Flux Orchestrator Skill
6
8
 
7
- This skill is automatically active when working in a Flux project. It provides context about available tools and workflow patterns.
9
+ This skill is automatically active when working in a Flux project. It provides context about available tools, workflow patterns, and integration options.
8
10
 
9
11
  ## Available MCP Tools
10
12
 
11
13
  ### Query Tools
12
- - `get_project_context` - Check if project initialized, get name/vision/prefix
14
+ - `get_project_context` - Check if project initialized, get name/vision/adapter type
13
15
  - `get_stats` - Get PRD/epic/task counts by status
14
16
  - `get_entity` - Fetch entity by ref with optional includes (criteria, tasks, dependencies)
15
17
  - `query_entities` - Search entities by type, status, parent ref
18
+ - `render_status` - Get formatted project status with progress bars
16
19
 
17
20
  ### Mutation Tools
18
21
  - `init_project` - Initialize new .flux/ directory with project.json and database
22
+ - `configure_linear` - Configure Linear integration (supports interactive mode)
19
23
  - `create_prd` - Create a new PRD
20
24
  - `create_epic` - Create an epic linked to a PRD
21
25
  - `create_task` - Create a task linked to an epic
@@ -29,102 +33,82 @@ This skill is automatically active when working in a Flux project. It provides c
29
33
  - `add_criteria` - Add acceptance criterion to epic or task
30
34
  - `mark_criteria_met` - Mark criterion as satisfied
31
35
 
32
- ## Workflow States
36
+ ## Available Commands
33
37
 
34
- The Flux project progresses through these states:
38
+ | Command | Purpose |
39
+ |---------|---------|
40
+ | `/flux` | Project init, status, and workflow routing |
41
+ | `/flux:linear` | Connect project to Linear (interactive setup) |
42
+ | `/flux:prd` | Create or refine PRDs |
43
+ | `/flux:breakdown` | Break approved PRD into epics and tasks |
44
+ | `/flux:implement` | Implement tasks with TDD workflow |
35
45
 
36
- 1. **Uninitialized** - No .flux/ directory
37
- - Action: Run `/flux` to initialize
46
+ ## Workflow States
38
47
 
39
- 2. **No PRDs** - Project initialized but empty
40
- - Action: Run `/flux:prd` to create first PRD
48
+ ```
49
+ Uninitialized Initialized PRD Draft Pending Review → Reviewed → Approved → Breakdown Ready → In Progress → Complete
50
+
51
+ (optional) Linear Connected
52
+ ```
41
53
 
42
- 3. **PRD Draft** - PRD created but needs review
43
- - Action: Review and submit for approval or refine
54
+ ### PRD Status Transitions
55
+ ```
56
+ DRAFT → PENDING_REVIEW → REVIEWED → APPROVED → BREAKDOWN_READY → COMPLETED
57
+ ↓ ↓
58
+ DRAFT (revise) DRAFT (revise)
59
+ ```
44
60
 
45
- 4. **PRD Pending Review** - PRD submitted for review
46
- - Action: Run critique agent, then approve or revise
61
+ ### Epic/Task Statuses
62
+ - `PENDING` `IN_PROGRESS` `COMPLETED`
63
+
64
+ ## Backend Adapters
47
65
 
48
- 5. **PRD Reviewed** - Critique complete
49
- - Action: Address feedback, then approve or revise to DRAFT
66
+ Flux supports multiple backends via the adapter pattern:
50
67
 
51
- 6. **PRD Approved** - Ready for epic breakdown
52
- - Action: Run `/flux:breakdown` to create epics
68
+ | Adapter | Storage | Use Case |
69
+ |---------|---------|----------|
70
+ | `local` | SQLite (.flux/flux.db) | Default, offline-first |
71
+ | `linear` | Linear API | Team collaboration, issue tracking |
53
72
 
54
- 7. **Breakdown Ready** - Epics and tasks created
55
- - Action: Run `/flux:implement` to start coding
73
+ ### Switching to Linear
56
74
 
57
- 8. **Implementation In Progress** - Tasks IN_PROGRESS
58
- - Action: Continue implementing current task
75
+ Use `configure_linear` with interactive mode:
76
+ 1. `{interactive: true}` returns teams list
77
+ 2. `{interactive: true, teamId: "..."}` → returns projects list
78
+ 3. `{teamId: "...", projectName/existingProjectId: "..."}` → configures
59
79
 
60
- 9. **Complete** - All tasks COMPLETED
61
- - Action: Review and create PR
80
+ Or run `/flux:linear` for guided setup.
62
81
 
63
82
  ## Entity References
64
83
 
65
- All entities have a reference format: `{PREFIX}-{TYPE}{NUMBER}`
84
+ Format: `{PREFIX}-{TYPE}{NUMBER}`
66
85
 
67
86
  - PRD: `MSA-P1`, `MSA-P2`
68
87
  - Epic: `MSA-E1`, `MSA-E2`
69
88
  - Task: `MSA-T1`, `MSA-T2`
70
89
 
71
- The prefix is generated from the project name during initialization.
72
-
73
- ## Status Values
74
-
75
- ### PRD Statuses (6-stage workflow)
76
- - `DRAFT` - Initial state, being created/refined
77
- - `PENDING_REVIEW` - Submitted for critique
78
- - `REVIEWED` - Critique complete, awaiting approval
79
- - `APPROVED` - Ready for epic breakdown
80
- - `BREAKDOWN_READY` - Epics and tasks created
81
- - `COMPLETED` - All epics done
82
-
83
- ### Valid PRD Transitions
84
- ```
85
- DRAFT → PENDING_REVIEW
86
- PENDING_REVIEW → REVIEWED | DRAFT (revise)
87
- REVIEWED → APPROVED | DRAFT (revise)
88
- APPROVED → BREAKDOWN_READY
89
- BREAKDOWN_READY → COMPLETED
90
- ```
91
-
92
- ### Epic/Task Statuses
93
- - `PENDING` - Not started
94
- - `IN_PROGRESS` - Currently being worked on
95
- - `COMPLETED` - Done
96
-
97
- ## Confidence-Based Autonomy
98
-
99
- The orchestrator uses confidence levels to determine autonomy:
100
-
101
- | Confidence | Behavior | Example |
102
- |------------|----------|---------|
103
- | > 80% | Auto-execute, inform user | "I'm creating the epic structure..." |
104
- | 50-80% | Suggest action, wait for confirmation | "Ready to break down into tasks. Proceed?" |
105
- | < 50% | Ask clarifying question | "Should we research this technology first?" |
106
-
107
- ### Confidence Indicators
108
- - **High confidence (>80%)**: Clear next step, no ambiguity, user has been responsive
109
- - **Medium confidence (50-80%)**: Reasonable next step, some uncertainty
110
- - **Low confidence (<50%)**: Multiple valid paths, unclear requirements, unfamiliar tech
111
-
112
90
  ## Available Subagents
113
91
 
114
- ### Research Agent
115
- - **Trigger**: Unfamiliar technology mentioned, confidence < 70%
116
- - **Purpose**: Gather information about libraries, frameworks, APIs
92
+ ### Research Agent (`flux:flux-researcher`)
93
+ - **Trigger**: Unfamiliar technology, confidence < 70%
117
94
  - **Tools**: Context7, WebSearch, WebFetch
118
95
 
119
- ### Critique Agent
120
- - **Trigger**: PRD status becomes PENDING_REVIEW
121
- - **Purpose**: Analyze feasibility, scope, risks
122
- - **Output**: Structured critique with recommendations
96
+ ### Critique Agent (`flux:flux-critic`)
97
+ - **Trigger**: PRD submitted for review
98
+ - **Output**: Feasibility analysis, risks, recommendations
99
+
100
+ ### Coder Agent (`flux:flux-coder`)
101
+ - **Trigger**: Task implementation
102
+ - **Workflow**: TDD - write tests, implement, verify
103
+
104
+ ### Verifier Agent (`flux:flux-verifier`)
105
+ - **Trigger**: After implementation
106
+ - **Purpose**: Verify acceptance criteria coverage
123
107
 
124
108
  ## Best Practices
125
109
 
126
- 1. **Check context first** - Always call `get_project_context` before taking actions
127
- 2. **Use refs, not IDs** - Tools accept human-readable refs like `MSA-E1`
128
- 3. **Validate status transitions** - Use `update_status` which enforces valid transitions
129
- 4. **Include related data** - Use `include` parameter to fetch nested entities in one call
130
- 5. **Handle errors gracefully** - Tools return errors with codes, display user-friendly messages
110
+ 1. **Check context first** - Call `get_project_context` before actions
111
+ 2. **Use refs, not IDs** - Tools accept `MSA-E1` format
112
+ 3. **Use render_status** - For visual project overview
113
+ 4. **Validate transitions** - `update_status` enforces valid transitions
114
+ 5. **Include related data** - Use `include` param to fetch nested entities
@@ -1,5 +1,7 @@
1
1
  ---
2
+ name: flux:prd-template
2
3
  description: PRD structure and patterns for Flux. Use when creating or refining product requirement documents. PRDs should be concise for humans but detailed enough for AI agents to implement.
4
+ user-invocable: false
3
5
  ---
4
6
 
5
7
  # PRD Template Skill