@fledge/workflow 0.2.0 → 0.3.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.
package/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # @fledge/workflow
2
+
3
+ Workflow skills for the [Fledge](https://github.com/fledge-build/fledge-build) development workflow. Provides agent skills that guide feature planning, brief creation, and lifecycle management.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pnpm add -D @fledge/workflow
9
+ ```
10
+
11
+ On install, skills are automatically copied into your project's `.claude/skills/` directory. The `@fledge/cli` binary is resolved via `npx` at runtime, no separate install needed.
12
+
13
+ ## Skills
14
+
15
+ ### `fledge-brief`
16
+
17
+ Guides the agent through feature brief creation and lifecycle. Invoked directly:
18
+
19
+ ```
20
+ /fledge-brief
21
+ ```
22
+
23
+ The skill walks through:
24
+
25
+ 1. **New brief** -- gather context from completed briefs, define requirements, break down into tasks
26
+ 2. **Continue a brief** -- review progress, update tasks, revise scope
27
+ 3. **Complete a brief** -- write a summary, validate, and mark as done
28
+
29
+ The skill uses `fledge brief` CLI commands for file operations and state transitions. All artifacts are plain markdown files with YAML frontmatter, stored in `.fledge/briefs/`.
30
+
31
+ ## Dependencies
32
+
33
+ | Package | Role |
34
+ | ------------- | ------------------------------------------------------- |
35
+ | `@fledge/cli` | Resolved via `npx` at runtime. Provides brief lifecycle commands, schema validation, and skill installation |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fledge/workflow",
3
3
  "type": "module",
4
- "version": "0.2.0",
4
+ "version": "0.3.0",
5
5
  "author": "René Schapka",
6
6
  "license": "MIT",
7
7
  "files": [
@@ -13,8 +13,8 @@
13
13
  "engines": {
14
14
  "node": ">=24"
15
15
  },
16
- "peerDependencies": {
17
- "@fledge/cli": "^0.5.0"
16
+ "dependencies": {
17
+ "@fledge/cli": "^0.6.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@antfu/eslint-config": "7.7.3",
@@ -7,6 +7,8 @@ metadata:
7
7
  type: workflow
8
8
  ---
9
9
 
10
+ All CLI commands below use `npx -y @fledge/cli` as the binary prefix (abbreviated as `fledge` in examples). Always use the full `npx -y @fledge/cli <command>` form when executing.
11
+
10
12
  ## Step 0: Determine intent
11
13
 
12
14
  Ask what the user wants to do, or infer from context. Present these options:
@@ -15,7 +17,7 @@ Ask what the user wants to do, or infer from context. Present these options:
15
17
  2. **Continue a brief** — pick up an existing brief. Proceed to Step 4.
16
18
  3. **Complete a brief** — wrap up a finished feature. Proceed to Step 5.
17
19
 
18
- If unclear, run `fledge brief list` to show current briefs and ask.
20
+ If unclear, run `npx -y @fledge/cli brief list` to show current briefs and ask.
19
21
 
20
22
  ---
21
23
 
@@ -23,7 +25,7 @@ If unclear, run `fledge brief list` to show current briefs and ask.
23
25
 
24
26
  Before writing anything, build an understanding of what exists.
25
27
 
26
- 1. Run `fledge brief list --status completed` to read summaries of completed features. Note anything relevant to the new feature.
28
+ 1. Run `npx -y @fledge/cli brief list --status completed` to read summaries of completed features. Note anything relevant to the new feature.
27
29
  2. Ask the user what they want to build. Keep it conversational, not a form. Aim to understand:
28
30
  - What is the user-facing change?
29
31
  - Why does it matter?
@@ -38,7 +40,7 @@ Proceed to Step 2.
38
40
 
39
41
  ## Step 2: Draft the brief
40
42
 
41
- Run `fledge brief create <name>` to create the brief directory.
43
+ Run `npx -y @fledge/cli brief create <name>` to create the brief directory.
42
44
 
43
45
  Write the brief content into `brief.md`. The frontmatter is managed by the CLI. The markdown body should capture:
44
46
 
@@ -74,7 +76,7 @@ tasks:
74
76
 
75
77
  Order tasks by dependency: tasks that others depend on come first within their group.
76
78
 
77
- After writing tasks, run `fledge brief validate <name>` to confirm the brief is valid, then run `fledge brief start <name>` to transition to active.
79
+ After writing tasks, run `npx -y @fledge/cli brief validate <name>` to confirm the brief is valid, then run `npx -y @fledge/cli brief start <name>` to transition to active.
78
80
 
79
81
  Present the complete brief and task list to the user for review before starting.
80
82
 
@@ -82,22 +84,22 @@ Present the complete brief and task list to the user for review before starting.
82
84
 
83
85
  ## Step 4: Continue a brief
84
86
 
85
- Run `fledge brief list` to show all briefs. If the user does not specify which brief, ask them to pick one.
87
+ Run `npx -y @fledge/cli brief list` to show all briefs. If the user does not specify which brief, ask them to pick one.
86
88
 
87
- Run `fledge brief status <name>` to show progress. Read the brief and tasks files to understand the full context.
89
+ Run `npx -y @fledge/cli brief status <name>` to show progress. Read the brief and tasks files to understand the full context.
88
90
 
89
91
  From here, the user may want to:
90
92
  - **Discuss a task** — talk through approach before implementing
91
93
  - **Update tasks** — mark tasks as done, add new tasks, reorder
92
94
  - **Revise the brief** — update scope or design decisions based on what was learned during implementation
93
95
 
94
- When updating task status, modify the `tasks.md` frontmatter directly, then run `fledge brief status <name>` to confirm the update.
96
+ When updating task status, modify the `tasks.md` frontmatter directly, then run `npx -y @fledge/cli brief status <name>` to confirm the update.
95
97
 
96
98
  ---
97
99
 
98
100
  ## Step 5: Complete a brief
99
101
 
100
- Run `fledge brief status <name>` to verify all tasks are done.
102
+ Run `npx -y @fledge/cli brief status <name>` to verify all tasks are done.
101
103
 
102
104
  If there are incomplete tasks, ask the user whether to:
103
105
  1. Mark remaining tasks as done (if they were completed outside this conversation)
@@ -108,4 +110,4 @@ Write a summary into the `brief.md` frontmatter `summary` field. The summary sho
108
110
  - What was built
109
111
  - Key decisions or patterns established that future features should know about
110
112
 
111
- Run `fledge brief complete <name>` to transition to completed. The CLI validates that all tasks are done and the summary is present.
113
+ Run `npx -y @fledge/cli brief complete <name>` to transition to completed. The CLI validates that all tasks are done and the summary is present.