@jakkrichm/create-nexus-devflow 2.11.1 → 2.12.1
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 +3 -3
- package/dist/bin/create-nexus-devflow.d.ts +2 -0
- package/dist/bin/create-nexus-devflow.js +63 -2
- package/dist/bin/create-nexus-devflow.js.map +1 -1
- package/dist/lib/project-config.d.ts +3 -1
- package/dist/lib/project-config.js +3 -1
- package/dist/lib/project-config.js.map +1 -1
- package/dist/lib/skill-manager.d.ts +5 -0
- package/dist/lib/skill-manager.js +30 -0
- package/dist/lib/skill-manager.js.map +1 -1
- package/dist/lib/update.d.ts +4 -2
- package/dist/lib/update.js +12 -6
- package/dist/lib/update.js.map +1 -1
- package/dist/scripts/prepare-template.js +11 -0
- package/dist/scripts/prepare-template.js.map +1 -1
- package/package.json +1 -1
- package/template/.agents/skills/analyze/SKILL.md +113 -0
- package/template/.agents/skills/doctor/SKILL.md +52 -49
- package/template/.agents/skills/doctor/scripts/run-state.mjs +513 -0
- package/template/.agents/skills/feature/SKILL.md +2 -0
- package/template/.agents/skills/feature/reference/feature-spec-template.md +82 -0
- package/template/.agents/skills/implement/SKILL.md +3 -35
- package/template/.agents/skills/implement/reference/rollback-implementation.md +35 -0
- package/template/.agents/skills/onboard/SKILL.md +43 -2
- package/template/.agents/skills/overview/SKILL.md +25 -12
- package/template/.agents/skills/report-html/SKILL.md +25 -5
- package/template/.agents/skills/status/SKILL.md +17 -20
- package/template/.claude/skills/analyze/SKILL.md +113 -0
- package/template/.claude/skills/doctor/SKILL.md +52 -49
- package/template/.claude/skills/doctor/scripts/run-state.mjs +513 -0
- package/template/.claude/skills/feature/SKILL.md +2 -0
- package/template/.claude/skills/feature/reference/feature-spec-template.md +82 -0
- package/template/.claude/skills/implement/SKILL.md +3 -35
- package/template/.claude/skills/implement/reference/rollback-implementation.md +35 -0
- package/template/.claude/skills/onboard/SKILL.md +43 -2
- package/template/.claude/skills/overview/SKILL.md +25 -12
- package/template/.claude/skills/report-html/SKILL.md +25 -5
- package/template/.claude/skills/status/SKILL.md +17 -20
- package/template/AGENTS.md +19 -11
- package/template/devflow/analysis/REQ-20260903-001-sync-upstream-ai-blueprint/codebase-impact.md +46 -0
- package/template/devflow/build-plan.md +32 -2
- package/template/devflow/context/ai-interaction.md +2 -0
- package/template/devflow/inbox/REQ-20260903-001-sync-upstream-ai-blueprint/clarifications.md +34 -0
- package/template/devflow/inbox/REQ-20260903-001-sync-upstream-ai-blueprint/parsed.md +66 -0
- package/template/devflow/inbox/REQ-20260903-001-sync-upstream-ai-blueprint/raw/upstream-v152-diff.md +16 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Business & Technical Requirement Specification (REQ-20260903-001)
|
|
2
|
+
|
|
3
|
+
> **Requirement ID**: `REQ-20260903-001-sync-upstream-ai-blueprint`
|
|
4
|
+
> **Source**: Upstream AI Blueprint v1.5.2 (`5b46859`)
|
|
5
|
+
> **Status**: `Parsed & Normalized`
|
|
6
|
+
> **Target Release**: Nexus-DevFlow v2.12.1 / Feature `071`
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 1. Executive Summary (ภาพรวมผู้บริหาร)
|
|
11
|
+
|
|
12
|
+
การอัปเดตเพื่อซิงก์ความสามารถและมาตรฐานความปลอดภัย Git จาก Upstream AI Blueprint v1.5.2 เข้าสู่ Nexus-DevFlow:
|
|
13
|
+
1. **การจัดการ Unborn Repository ใน `/onboard`**: รองรับกรณีที่โปรเจกต์เพิ่งรัน `git init` แต่ยังไม่มี First Commit (Unborn `HEAD`) โดย `/onboard` จะตรวจจับอัตโนมัติ เสนอสร้าง Reviewed Scaffold Initial Commit และตั้ง Default Branch (`main`) ให้พร้อมใช้งานทันทีโดยไม่ให้ผู้ใช้ต้องออกจาก IDE ไปพิมพ์คำสั่ง Git เอง
|
|
14
|
+
2. **Setup-Branch Baseline Finalization ใน `/overview`**: รองรับกรณีการ Onboard และวางแผนบน Dedicated Setup Branch (เช่น `feature/devflow-plans`) โดยเมื่ออนุมัติ Baseline Commit จะทำการ commit, fast-forward merge กลับเข้าสู่ `main`, สลับ branch และลบ setup branch ให้เรียบร้อยแบบ Local-Only
|
|
15
|
+
3. **Dedicated E2E Automated Scenario (`unborn-onboarding.ts`)**: ชุดทดสอบ Agentic E2E ตรวจสอบพฤติกรรมของ AI Agent ตั้งแต่ Unborn Repo -> Onboarding -> Baseline Fast-Forward
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 2. Target Persona & User Stories
|
|
20
|
+
|
|
21
|
+
| Persona | Problem Statement | Desired Outcome |
|
|
22
|
+
| :--- | :--- | :--- |
|
|
23
|
+
| **New Project Developer** | Scaffold โปรเจกต์ใหม่และรัน `git init` แต่ยังไม่ได้ commit พอรัน `/onboard` AI มัก error หรือสับสนเรื่อง branch | `/onboard` ตรวจจับสถานะ unborn repository และช่วยสร้าง scaffold commit แรกให้อัตโนมัติหลังกดอนุมัติ |
|
|
24
|
+
| **Branch-Isolated Developer** | ต้องการวางแผน DevFlow บน setup branch ชั่วคราวก่อนเริ่มฟีเจอร์แรก | `/overview` อนุมัติ Baseline แล้วรวมกลับเข้า `main` แบบ Fast-Forward และลบ branch ชั่วคราวให้อัตโนมัติ |
|
|
25
|
+
| **DevFlow Maintainer** | ต้องการให้ Nexus-DevFlow มี Feature & Safety Parity 100% กับ Upstream AI Blueprint | มีชุดทดสอบ E2E scenario และ static contracts รองรับ |
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## 3. Functional Requirements (FR)
|
|
30
|
+
|
|
31
|
+
### FR-1: Unborn Git Pre-flight & Scaffold Initial Commit (`/onboard`)
|
|
32
|
+
- **FR-1.1**: เมื่อเริ่มทำงาน `/onboard` (Step 0) ต้องตรวจสอบ `git rev-parse --is-inside-work-tree` และ `git rev-parse --verify HEAD`
|
|
33
|
+
- **FR-1.2**: หากไม่มี `HEAD` (Unborn repository):
|
|
34
|
+
- กรอง Candidate Files เฉพาะไฟล์โครงสร้างของ Application (ยกเว้น workflow files เช่น `AGENTS.md`, `CLAUDE.md`, `.agents/`, `.claude/`, `devflow/`)
|
|
35
|
+
- ค้นหา default branch (จาก `main`, `master`, หรือ Git default)
|
|
36
|
+
- ถามยืนยัน 1 ครั้ง: `Create the initial scaffold commit and continue Onboard? (Recommended)`
|
|
37
|
+
- เมื่อได้รับอนุมัติ สร้าง commit `chore: scaffold application` บน default branch และสลับกลับมา setup branch (ถ้ามี) เพื่อ onboard ต่อทันที
|
|
38
|
+
|
|
39
|
+
### FR-2: Branch-Aware Baseline Finalization (`/overview`)
|
|
40
|
+
- **FR-2.1**: ใน `/overview` อนุญาตให้ทำงานบน Default Branch หรือ Dedicated Setup Branch ที่แตกมาจาก Tip ของ Default Branch
|
|
41
|
+
- **FR-2.2**: หากรันบน Unborn Repo ให้แจ้งให้ไปรัน `/onboard` ก่อน (ไม่สร้าง root commit ใน overview)
|
|
42
|
+
- **FR-2.3**: ปรับ Prompt ข้อความยืนยันเป็น: `Finalize the DevFlow baseline locally? (Recommended)`
|
|
43
|
+
- **FR-2.4**: รวม metadata installer `devflow/.state/manifest.json` เข้า Baseline Commit โดยยกเว้น transient state `run.json`
|
|
44
|
+
- **FR-2.5**: หากรันบน Setup Branch เมื่ออนุมัติแล้ว จะทำการ:
|
|
45
|
+
1. Commit `chore: establish DevFlow project baseline` บน setup branch
|
|
46
|
+
2. สลับกลับไป default branch (`git checkout main`)
|
|
47
|
+
3. รัน `git merge --ff-only <setup-branch>`
|
|
48
|
+
4. ลบ setup branch ในเครื่อง (`git branch -d <setup-branch>`)
|
|
49
|
+
5. อยู่บนสถานะ clean working tree พร้อมเริ่ม `/feature`
|
|
50
|
+
|
|
51
|
+
### FR-3: E2E Test Suite Extension (`unborn-onboarding.ts`)
|
|
52
|
+
- **FR-3.1**: เพิ่มไฟล์ Scenario `scripts/e2e/scenarios/unborn-onboarding.ts`
|
|
53
|
+
- **FR-3.2**: ทดสอบ Full Flow ใน Sandbox: `git init` -> setup branch -> overlay DevFlow -> `/onboard` -> `/overview` -> fast-forward `main`
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 4. Non-Functional Requirements (NFR)
|
|
58
|
+
|
|
59
|
+
1. **Security & Local-Only Guarantee**:
|
|
60
|
+
- ห้ามรัน `git push` ในทุกกรณีของการทำ Baseline Finalization
|
|
61
|
+
- ห้ามรวม Application Source Code ปะปนเข้ากับ Baseline Commit
|
|
62
|
+
- ป้องกัน Secret / Token หลุดเข้า Root Commit โดยตรวจสอบ `.gitignore`
|
|
63
|
+
2. **Token & Prompt Efficiency**:
|
|
64
|
+
- การปรับแต่งคำอธิบายและข้อความใน `SKILL.md` ทั้ง `.agents/` และ `.claude/` ต้องคงความกระชับ ไม่เกินงบประมาณตัวอักษร
|
|
65
|
+
3. **Adapter Parity**:
|
|
66
|
+
- ทั้ง 5 Adapters (Google Antigravity, Claude Code, OpenAI Codex, GitHub Copilot, OpenCode) ต้องได้รับพฤติกรรมที่เท่าเทียมกัน
|
package/template/devflow/inbox/REQ-20260903-001-sync-upstream-ai-blueprint/raw/upstream-v152-diff.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Upstream AI Blueprint v1.5.2 Changes Summary
|
|
2
|
+
|
|
3
|
+
Commit: 5b468599890a6d59a1570e343e6241db5ffd0ae9
|
|
4
|
+
Author: Brad Traversy <traversymedia@gmail.com>
|
|
5
|
+
Date: Thu Sep 3 08:30:38 2026 -0400
|
|
6
|
+
Message: fix: handle repositories without an initial commit
|
|
7
|
+
|
|
8
|
+
## Modified Files:
|
|
9
|
+
- `.agents/skills/onboard/SKILL.md` (+43, -1)
|
|
10
|
+
- `.agents/skills/overview/SKILL.md` (+41, -21)
|
|
11
|
+
- `.claude/skills/onboard/SKILL.md` (+43, -1)
|
|
12
|
+
- `.claude/skills/overview/SKILL.md` (+41, -21)
|
|
13
|
+
- `blueprint/context/ai-interaction.md` (+4, -2)
|
|
14
|
+
- `packages/create-ai-blueprint/package.json` (+1, -1)
|
|
15
|
+
- `scripts/e2e/scenarios/unborn-onboarding.ts` (+85)
|
|
16
|
+
- `scripts/validate-blueprint.ts` (+23, -5)
|