@relipa/ai-flow-kit 0.0.9-beta.1 → 0.1.0-beta.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 +109 -13
- package/bin/aiflow.js +525 -475
- package/custom/mcp-presets/figma-desktop.json +9 -9
- package/custom/rules/project-conventions.md +51 -51
- package/custom/skills/read-study-requirement/SKILL.md +22 -3
- package/custom/templates/shared/gate-workflow.md +13 -12
- package/custom/templates/tools/gemini.md +22 -22
- package/docs/common/CHANGELOG.md +44 -1
- package/docs/common/QUICK_START.md +47 -0
- package/docs/common/cli-reference.md +60 -8
- package/docs/common/workflows/figma.md +105 -105
- package/package.json +10 -3
- package/scripts/create-score-excel.js +354 -0
- package/scripts/guide.js +2 -0
- package/scripts/hooks/session-start.js +315 -295
- package/scripts/hooks/session-stop.js +122 -122
- package/scripts/init.js +17 -2
- package/scripts/link-resolver.js +179 -0
- package/scripts/use.js +117 -11
package/README.md
CHANGED
|
@@ -90,7 +90,8 @@ npm uninstall -g @relipa/ai-flow-kit
|
|
|
90
90
|
| Command | Description |
|
|
91
91
|
|---------|-------------|
|
|
92
92
|
| `aiflow init` | Setup framework, adapters, and multi-AI rules. |
|
|
93
|
-
| `aiflow use <ticket
|
|
93
|
+
| `aiflow use <ticket...>` | Load context from one or more tickets/files. First target is primary; rest become supplementary. |
|
|
94
|
+
| `aiflow fetch-links <url>` | Fetch a Backlog/Jira link and print SupplementaryContext JSON (used by AI at runtime). |
|
|
94
95
|
| `aiflow task` | Manage multiple tasks — pause, switch, resume. |
|
|
95
96
|
| `aiflow task next` | Finalize gate approval and prepare for fresh session. |
|
|
96
97
|
| `aiflow prompt` | Generate tool-optimized prompts (`--env cursor`). |
|
|
@@ -128,6 +129,16 @@ aiflow init --framework spring-boot,reactjs --adapter backlog,jira
|
|
|
128
129
|
|
|
129
130
|
**Supported Adapters:** `backlog`, `jira`, `google-sheets`, `figma`, `figma-desktop`
|
|
130
131
|
|
|
132
|
+
**Figma adapters:**
|
|
133
|
+
|
|
134
|
+
| Adapter | Command | Auth | Requirement |
|
|
135
|
+
|---------|---------|------|-------------|
|
|
136
|
+
| `figma` | `ak init -a figma` | Personal Access Token (`figd_...`) | None — REST API |
|
|
137
|
+
| `figma-desktop` | `ak init -a figma-desktop` | Desktop session (no token needed) | Figma Desktop app installed & open |
|
|
138
|
+
|
|
139
|
+
> The `figma-desktop` adapter uses the official `@figma/mcp-server` package from Figma Inc. and is the recommended option if you already use Figma Desktop.
|
|
140
|
+
> See [Figma workflow guide](docs/common/workflows/figma.md) for usage with the `figma-to-component` skill.
|
|
141
|
+
|
|
131
142
|
---
|
|
132
143
|
|
|
133
144
|
### `aiflow sync-skills`
|
|
@@ -145,28 +156,25 @@ aiflow sync-skills
|
|
|
145
156
|
|
|
146
157
|
---
|
|
147
158
|
|
|
148
|
-
### `aiflow use <ticket
|
|
159
|
+
### `aiflow use <ticket...>`
|
|
149
160
|
|
|
150
|
-
Load ticket context into `.aiflow/context/current.json`.
|
|
161
|
+
Load ticket context into `.aiflow/context/current.json`. Accepts **one or more targets** (ticket ID, Backlog/Jira URL, or local file). The first target becomes the **primary context**; any additional targets are appended as **`supplementaryContext[]`** for AI to read alongside the primary.
|
|
151
162
|
|
|
152
163
|
```bash
|
|
153
|
-
#
|
|
164
|
+
# Single target (backward compatible)
|
|
154
165
|
aiflow use PROJ-33
|
|
155
166
|
aiflow use https://mycompany.backlog.com/view/PROJ-33
|
|
156
167
|
|
|
157
|
-
#
|
|
158
|
-
aiflow use PROJ-
|
|
168
|
+
# Multiple targets — primary + supplementary
|
|
169
|
+
aiflow use PROJ-33 PROJ-10 docs/arch.md
|
|
170
|
+
# PROJ-33 drives Gate 1; PROJ-10 + docs/arch.md become supplementary context
|
|
159
171
|
|
|
160
|
-
#
|
|
161
|
-
aiflow use PROJ-
|
|
172
|
+
# Backlog / Jira ticket
|
|
173
|
+
aiflow use PROJ-123
|
|
162
174
|
|
|
163
|
-
#
|
|
175
|
+
# Comments
|
|
164
176
|
aiflow use PROJ-33 --with-comments
|
|
165
|
-
|
|
166
|
-
# Load newest 5 comments
|
|
167
177
|
aiflow use PROJ-33 --comments-last 5
|
|
168
|
-
|
|
169
|
-
# Load comments from index 3 onwards
|
|
170
178
|
aiflow use PROJ-33 --comments-from 3
|
|
171
179
|
|
|
172
180
|
# Manual input
|
|
@@ -183,6 +191,44 @@ aiflow use PROJ-33 --full # Full Mode: deep analysis with Q&A
|
|
|
183
191
|
aiflow use PROJ-33 --save sprint-42-bug
|
|
184
192
|
```
|
|
185
193
|
|
|
194
|
+
> **New in v0.1.0 — Auto Link Resolution:** When the primary ticket description contains Backlog/Jira URLs, `ak use` automatically fetches them and stores results in `supplementaryContext[]`. Comment links (`#comment-456` or `?focusedCommentId=456`) fetch **only that comment**. Capped at 5 auto-resolved links per `use` to keep loads fast.
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
### `aiflow fetch-links <url>`
|
|
199
|
+
|
|
200
|
+
Fetch a single Backlog/Jira link and print a `SupplementaryContext` JSON object to stdout. Intended for AI runtime use inside the `read-study-requirement` skill when a link is found in the ticket description that wasn't already resolved at `use` time.
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
# Backlog ticket → full ticket JSON
|
|
204
|
+
aiflow fetch-links "https://company.backlog.com/view/PROJ-10"
|
|
205
|
+
|
|
206
|
+
# Backlog comment → that single comment only
|
|
207
|
+
aiflow fetch-links "https://company.backlog.com/view/PROJ-10#comment-456"
|
|
208
|
+
|
|
209
|
+
# Jira ticket / comment
|
|
210
|
+
aiflow fetch-links "https://company.atlassian.net/browse/PROJ-10"
|
|
211
|
+
aiflow fetch-links "https://company.atlassian.net/browse/PROJ-10?focusedCommentId=789"
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
Output schema:
|
|
215
|
+
|
|
216
|
+
```json
|
|
217
|
+
{
|
|
218
|
+
"sourceType": "ticket | comment",
|
|
219
|
+
"sourceUrl": "...",
|
|
220
|
+
"ticketId": "PROJ-10",
|
|
221
|
+
"commentId": "456",
|
|
222
|
+
"title": "...",
|
|
223
|
+
"description": "...",
|
|
224
|
+
"content": "...",
|
|
225
|
+
"author": "...",
|
|
226
|
+
"date": "..."
|
|
227
|
+
}
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
Exits non-zero with a stderr message if the URL is not a recognised Backlog/Jira pattern or fetching fails.
|
|
231
|
+
|
|
186
232
|
---
|
|
187
233
|
|
|
188
234
|
### `aiflow task`
|
|
@@ -378,6 +424,56 @@ Then run `aiflow update` or `aiflow sync-skills` to apply.
|
|
|
378
424
|
|
|
379
425
|
---
|
|
380
426
|
|
|
427
|
+
## Release Notes
|
|
428
|
+
|
|
429
|
+
> Summary of major changes per version. See full details in [CHANGELOG.md](docs/common/CHANGELOG.md).
|
|
430
|
+
|
|
431
|
+
### v0.1.0 — 2026-05-28
|
|
432
|
+
- Multi-target `ak use` — load multiple tickets/files in a single call (primary + supplementary).
|
|
433
|
+
- Auto link resolution — auto-fetch Backlog/Jira URLs found in the ticket description (capped at 5 links).
|
|
434
|
+
- Comment-aware resolution — `#comment-456` links fetch only that specific comment.
|
|
435
|
+
- New `ak fetch-links <url>` command for AI runtime use.
|
|
436
|
+
- SessionStart hook renders the `supplementaryContext[]` block into the prompt.
|
|
437
|
+
- Added Jest test suite (20+ unit tests for `link-resolver`).
|
|
438
|
+
|
|
439
|
+
### v0.0.9 — 2026-05-25
|
|
440
|
+
- New `figma-desktop` adapter (uses `@figma/mcp-server`, no token required).
|
|
441
|
+
- `figma-to-component` skill supports Next.js App Router and Angular.
|
|
442
|
+
- `ak gate N start|approved` auto-syncs `task-state.json`.
|
|
443
|
+
- New `project-conventions.md` — enforces Gate 2 plan output at `plan/[ticket-id]/plan.md`.
|
|
444
|
+
- WSL clipboard support in `ak prompt`.
|
|
445
|
+
- Fixes: wrong Figma tool names, PAT verify using wrong auth header, `currentGate` not advancing.
|
|
446
|
+
|
|
447
|
+
### v0.0.8 — 2026-05-14
|
|
448
|
+
- New CLI alias `ak` (short for `aiflow`) + aliases for every sub-command.
|
|
449
|
+
- Flexible comment loading options: `--coms`, `--cid`, `--clast`, `--cfrom`, `--cto`.
|
|
450
|
+
- Fixed Backlog comment pagination (switched to `minId`-based).
|
|
451
|
+
- v0.0.8-beta.1: Actually removed auto-commit + added PreToolUse hook blocking `git commit/add/push`.
|
|
452
|
+
|
|
453
|
+
### v0.0.7 — 2026-05-08
|
|
454
|
+
- `aiflow use --file` auto-generates `taskId` from filename + interactive `taskType` prompt.
|
|
455
|
+
- Auto-generates `task-summary.md` at each gate transition.
|
|
456
|
+
- Added NestJS and PHP Plain framework support.
|
|
457
|
+
- New `aiflow sync-skills` command.
|
|
458
|
+
- Marker-based update for `CLAUDE.md`, `GEMINI.md`, `.cursorrules`.
|
|
459
|
+
- Auto-manages `.gitignore` for generated files.
|
|
460
|
+
|
|
461
|
+
### v0.0.6 — 2026-04-29
|
|
462
|
+
- **Fast Mode** enabled by default (reduced Q&A, single-session implementation).
|
|
463
|
+
- New `aiflow task` command group (status/list/pause/switch/resume).
|
|
464
|
+
- Integrated RTK token compression (60–90% savings).
|
|
465
|
+
- `--file` loader supports plain-text input.
|
|
466
|
+
|
|
467
|
+
### v0.0.5 — 2026-04-23
|
|
468
|
+
- Telemetry MVP — opt-in tracking, HMAC-SHA256 signed payload, no prompt content logged.
|
|
469
|
+
- New `aiflow gate <n> <action>` command for AI to call automatically on gate transitions.
|
|
470
|
+
- Safe overwrite flow in `aiflow init` (backs up existing files before overwrite).
|
|
471
|
+
|
|
472
|
+
### v0.0.1 — 2026-04-13
|
|
473
|
+
- Initial release: `aiflow` CLI, 5-Gate workflow, 7 custom skills, support for Claude Code / Gemini / Copilot.
|
|
474
|
+
|
|
475
|
+
---
|
|
476
|
+
|
|
381
477
|
## Troubleshooting
|
|
382
478
|
|
|
383
479
|
**`aiflow` not found:**
|