@jakkrichm/create-nexus-devflow 2.0.11 → 2.0.13
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/bin/create-nexus-devflow.js +15 -3
- package/lib/update.js +15 -1
- package/package.json +1 -1
- package/template/.agents/skills/70-release/SKILL.md +2 -0
- package/template/.agents/skills/ci/SKILL.md +25 -78
- package/template/.agents/skills/commit/SKILL.md +39 -43
- package/template/.agents/skills/debug/SKILL.md +43 -104
- package/template/.agents/skills/deploy/SKILL.md +37 -65
- package/template/.agents/skills/insight/SKILL.md +27 -116
- package/template/.agents/skills/preview/SKILL.md +24 -103
- package/template/.agents/skills/review/SKILL.md +53 -37
- package/template/.agents/skills/rollback/SKILL.md +1 -0
- package/template/.agents/skills/security-review/SKILL.md +44 -147
- package/template/.agents/skills/simplify/SKILL.md +48 -57
- package/template/.agents/skills/test/SKILL.md +63 -51
- package/template/.claude/skills/70-release/SKILL.md +2 -0
- package/template/.claude/skills/ci/SKILL.md +25 -78
- package/template/.claude/skills/commit/SKILL.md +39 -43
- package/template/.claude/skills/debug/SKILL.md +43 -104
- package/template/.claude/skills/deploy/SKILL.md +37 -65
- package/template/.claude/skills/insight/SKILL.md +27 -116
- package/template/.claude/skills/preview/SKILL.md +24 -103
- package/template/.claude/skills/review/SKILL.md +53 -37
- package/template/.claude/skills/rollback/SKILL.md +1 -0
- package/template/.claude/skills/security-review/SKILL.md +44 -147
- package/template/.claude/skills/simplify/SKILL.md +48 -57
- package/template/.claude/skills/test/SKILL.md +63 -51
- package/template/devflow/history/HISTORY.md +27 -0
- package/template/devflow/reference/running-id-contract.md +1 -1
- package/template/.agents/skills/9arm-skills/README.md +0 -51
- package/template/.agents/skills/9arm-skills/debug-mantra/SKILL.md +0 -86
- package/template/.agents/skills/9arm-skills/management-talk/SKILL.md +0 -79
- package/template/.agents/skills/9arm-skills/post-mortem/SKILL.md +0 -71
- package/template/.agents/skills/9arm-skills/scrutinize/SKILL.md +0 -72
- package/template/.agents/skills/browser-testing-with-devtools/SKILL.md +0 -302
- package/template/.agents/skills/ci-cd-and-automation/SKILL.md +0 -390
- package/template/.agents/skills/code-review-and-quality/SKILL.md +0 -392
- package/template/.agents/skills/code-simplification/SKILL.md +0 -331
- package/template/.agents/skills/debugging-and-error-recovery/SKILL.md +0 -298
- package/template/.agents/skills/deployment-procedures/SKILL.md +0 -241
- package/template/.agents/skills/deprecation-and-migration/SKILL.md +0 -206
- package/template/.agents/skills/diagnosing-bugs/SKILL.md +0 -93
- package/template/.agents/skills/git-workflow-and-versioning/SKILL.md +0 -300
- package/template/.agents/skills/human-review-decisions/SKILL.md +0 -74
- package/template/.agents/skills/idea-refine/SKILL.md +0 -178
- package/template/.agents/skills/idea-refine/examples.md +0 -238
- package/template/.agents/skills/idea-refine/frameworks.md +0 -99
- package/template/.agents/skills/idea-refine/refinement-criteria.md +0 -113
- package/template/.agents/skills/idea-refine/scripts/idea-refine.sh +0 -15
- package/template/.agents/skills/incremental-implementation/SKILL.md +0 -248
- package/template/.agents/skills/insight-capture/SKILL.md +0 -84
- package/template/.agents/skills/intelligent-routing/SKILL.md +0 -176
- package/template/.agents/skills/md2html/SKILL.md +0 -154
- package/template/.agents/skills/md2html/components.md +0 -505
- package/template/.agents/skills/md2html/template.html +0 -1152
- package/template/.agents/skills/planning-and-task-breakdown/SKILL.md +0 -239
- package/template/.agents/skills/pr-review/SKILL.md +0 -143
- package/template/.agents/skills/pr-review-analysis/SKILL.md +0 -89
- package/template/.agents/skills/preview-local-check/SKILL.md +0 -59
- package/template/.agents/skills/release-git-operations/SKILL.md +0 -97
- package/template/.agents/skills/review-followup-routing/SKILL.md +0 -98
- package/template/.agents/skills/security-and-hardening/SKILL.md +0 -349
- package/template/.agents/skills/security-and-hardening/security-checklist.md +0 -134
- package/template/.agents/skills/shipping-and-launch/SKILL.md +0 -311
- package/template/.agents/skills/silent-failure-audit/SKILL.md +0 -73
- package/template/.agents/skills/spec-orchestration/SKILL.md +0 -91
- package/template/.agents/skills/specialist-agent-routing/SKILL.md +0 -107
- package/template/.agents/skills/test-driven-development/SKILL.md +0 -422
- package/template/.agents/skills/test-driven-development/testing-patterns.md +0 -236
- package/template/.agents/skills/test-execution-and-coverage/SKILL.md +0 -56
- package/template/.agents/skills/using-agent-skills/SKILL.md +0 -171
- package/template/.agents/skills/verification-orchestration/SKILL.md +0 -68
- package/template/.agents/skills/vulnerability-scanner/SKILL.md +0 -276
- package/template/.agents/skills/vulnerability-scanner/checklists.md +0 -121
- package/template/.agents/skills/vulnerability-scanner/scripts/security_scan.py +0 -458
- package/template/.agents/skills/wiki/SKILL.md +0 -149
- package/template/.agents/skills/workflow-documentation-sync/SKILL.md +0 -87
- package/template/.claude/skills/9arm-skills/README.md +0 -51
- package/template/.claude/skills/9arm-skills/debug-mantra/SKILL.md +0 -86
- package/template/.claude/skills/9arm-skills/management-talk/SKILL.md +0 -79
- package/template/.claude/skills/9arm-skills/post-mortem/SKILL.md +0 -71
- package/template/.claude/skills/9arm-skills/scrutinize/SKILL.md +0 -72
- package/template/.claude/skills/browser-testing-with-devtools/SKILL.md +0 -302
- package/template/.claude/skills/ci-cd-and-automation/SKILL.md +0 -390
- package/template/.claude/skills/code-review-and-quality/SKILL.md +0 -392
- package/template/.claude/skills/code-simplification/SKILL.md +0 -331
- package/template/.claude/skills/debugging-and-error-recovery/SKILL.md +0 -298
- package/template/.claude/skills/deployment-procedures/SKILL.md +0 -241
- package/template/.claude/skills/deprecation-and-migration/SKILL.md +0 -206
- package/template/.claude/skills/diagnosing-bugs/SKILL.md +0 -93
- package/template/.claude/skills/git-workflow-and-versioning/SKILL.md +0 -300
- package/template/.claude/skills/human-review-decisions/SKILL.md +0 -74
- package/template/.claude/skills/idea-refine/SKILL.md +0 -178
- package/template/.claude/skills/idea-refine/examples.md +0 -238
- package/template/.claude/skills/idea-refine/frameworks.md +0 -99
- package/template/.claude/skills/idea-refine/refinement-criteria.md +0 -113
- package/template/.claude/skills/idea-refine/scripts/idea-refine.sh +0 -15
- package/template/.claude/skills/incremental-implementation/SKILL.md +0 -248
- package/template/.claude/skills/insight-capture/SKILL.md +0 -84
- package/template/.claude/skills/intelligent-routing/SKILL.md +0 -176
- package/template/.claude/skills/md2html/SKILL.md +0 -154
- package/template/.claude/skills/md2html/components.md +0 -505
- package/template/.claude/skills/md2html/template.html +0 -1152
- package/template/.claude/skills/planning-and-task-breakdown/SKILL.md +0 -239
- package/template/.claude/skills/pr-review/SKILL.md +0 -143
- package/template/.claude/skills/pr-review-analysis/SKILL.md +0 -89
- package/template/.claude/skills/preview-local-check/SKILL.md +0 -59
- package/template/.claude/skills/release-git-operations/SKILL.md +0 -97
- package/template/.claude/skills/review-followup-routing/SKILL.md +0 -98
- package/template/.claude/skills/security-and-hardening/SKILL.md +0 -349
- package/template/.claude/skills/security-and-hardening/security-checklist.md +0 -134
- package/template/.claude/skills/shipping-and-launch/SKILL.md +0 -311
- package/template/.claude/skills/silent-failure-audit/SKILL.md +0 -73
- package/template/.claude/skills/spec-orchestration/SKILL.md +0 -91
- package/template/.claude/skills/specialist-agent-routing/SKILL.md +0 -107
- package/template/.claude/skills/test-driven-development/SKILL.md +0 -422
- package/template/.claude/skills/test-driven-development/testing-patterns.md +0 -236
- package/template/.claude/skills/test-execution-and-coverage/SKILL.md +0 -56
- package/template/.claude/skills/using-agent-skills/SKILL.md +0 -171
- package/template/.claude/skills/verification-orchestration/SKILL.md +0 -68
- package/template/.claude/skills/vulnerability-scanner/SKILL.md +0 -276
- package/template/.claude/skills/vulnerability-scanner/checklists.md +0 -121
- package/template/.claude/skills/vulnerability-scanner/scripts/security_scan.py +0 -458
- package/template/.claude/skills/wiki/SKILL.md +0 -149
- package/template/.claude/skills/workflow-documentation-sync/SKILL.md +0 -87
|
@@ -3,129 +3,68 @@ name: debug
|
|
|
3
3
|
description: "[Devflow] Root cause investigation and diagnostic loop before or during implementation without editing code. Use when encountering broken behavior, test failures, or bugs."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
description: Root cause analysis and debugging. Transitional compatibility path for the Debug companion command in DevFlow 2.0.
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Debug - Root Cause Analysis
|
|
11
|
-
|
|
12
|
-
## Issue: $ARGUMENTS
|
|
13
|
-
|
|
14
|
-
This file keeps its old numeric path for migration compatibility.
|
|
15
|
-
|
|
16
|
-
In DevFlow 2.0, `Debug` is a companion command, not a numbered mainline workflow. Its investigative depth should remain comparable to the original debug workflow.
|
|
17
|
-
|
|
18
|
-
## Purpose
|
|
19
|
-
|
|
20
|
-
Use `Debug` to find the actual origin of an issue, not just the visible symptom.
|
|
21
|
-
|
|
22
|
-
Use it when:
|
|
23
|
-
|
|
24
|
-
- implementation work is blocked by a defect
|
|
25
|
-
- verification reveals a failure that needs root-cause analysis
|
|
26
|
-
- the team needs RCA before deciding the next implementation step
|
|
6
|
+
# Debug & Root Cause Analysis (RCA)
|
|
27
7
|
|
|
28
|
-
|
|
8
|
+
## Overview
|
|
29
9
|
|
|
30
|
-
|
|
31
|
-
- from `40-implement`
|
|
32
|
-
- from `50-verify`
|
|
10
|
+
This is the comprehensive debugging master skill for Nexus-DevFlow. It guides systematic root-cause investigation without blindly editing code. The goal is to find the actual origin of an issue, not merely suppress visible symptoms.
|
|
33
11
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
Apply the local skill pack at `.agents/skills/9arm-skills/debug-mantra/SKILL.md`.
|
|
39
|
-
|
|
40
|
-
- Source pack: `9arm-skills`
|
|
41
|
-
- Credit: `thananon/9arm-skills`
|
|
42
|
-
- Upstream: https://github.com/thananon/9arm-skills
|
|
43
|
-
- Mantra: `Reproduce -> Trace fail path -> Falsify hypothesis -> Cross-reference breadcrumbs`
|
|
12
|
+
**The Debug Mantra (9arm Pattern)**:
|
|
13
|
+
```text
|
|
14
|
+
Reproduce ➔ Trace Fail Path ➔ Falsify Hypotheses ➔ Cross-reference Breadcrumbs ➔ RCA Proof
|
|
15
|
+
```
|
|
44
16
|
|
|
45
17
|
---
|
|
46
18
|
|
|
47
|
-
##
|
|
48
|
-
|
|
49
|
-
You are doing Root Cause Analysis, not just symptom triage. Keep the richer original debugging discipline and map the next step back into DevFlow 2.0.
|
|
50
|
-
|
|
51
|
-
### Phase 1: Reproduce And Classify
|
|
52
|
-
|
|
53
|
-
- restate the symptom clearly
|
|
54
|
-
- capture expected vs actual behavior
|
|
55
|
-
- determine whether the issue is reproducible
|
|
56
|
-
- do not recommend a fix before the reproduction story is credible
|
|
19
|
+
## 1. The 4-Phase Diagnostic Loop
|
|
57
20
|
|
|
58
|
-
### Phase
|
|
21
|
+
### Phase 1: Reproduce & Classify
|
|
22
|
+
- Restate the observed symptom vs. expected behavior with exact steps.
|
|
23
|
+
- Create a minimal reproduction script, test case, or curl command.
|
|
24
|
+
- Rule: **Do not propose a code fix before the reproduction story is verified.**
|
|
59
25
|
|
|
60
|
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
26
|
+
### Phase 2: Isolate & Hypothesize
|
|
27
|
+
- Generate 2–4 distinct hypotheses ranked by probability.
|
|
28
|
+
- Formulate specific criteria and evidence that would *falsify* each hypothesis.
|
|
63
29
|
|
|
64
|
-
### Phase 3:
|
|
30
|
+
### Phase 3: Non-Destructive Investigation
|
|
31
|
+
- Trace code execution paths end-to-end (stack traces, logs, variable states, async boundaries).
|
|
32
|
+
- Inspect recent commits or configuration changes that touch the affected boundary.
|
|
33
|
+
- Test hypotheses methodically using tests and logging without altering business logic.
|
|
65
34
|
|
|
66
|
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
35
|
+
### Phase 4: Root Cause Conclusion (RCA)
|
|
36
|
+
- State precisely *why* the bug occurred (underlying invariant violation).
|
|
37
|
+
- Define the minimal, robust architectural fix direction.
|
|
38
|
+
- Propose regression prevention measures (unit test, type guard, linter rule).
|
|
70
39
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
- name the root cause
|
|
74
|
-
- explain why it is the root cause
|
|
75
|
-
- describe the fix direction
|
|
76
|
-
- capture prevention or follow-up measures
|
|
77
|
-
|
|
78
|
-
This command supports the active stage. It does not replace the mainline stage itself.
|
|
79
|
-
|
|
80
|
-
## Output Format
|
|
81
|
-
|
|
82
|
-
Save the RCA report to `devflow/debug/rca-{slug}.md`.
|
|
83
|
-
|
|
84
|
-
Before generating the report:
|
|
40
|
+
---
|
|
85
41
|
|
|
86
|
-
|
|
87
|
-
2. Preserve its required headings and structure
|
|
88
|
-
3. Replace placeholder text with concrete evidence
|
|
89
|
-
4. Re-check the output against `rca.template.md`, ensure required headings remain, and remove all placeholders before completion
|
|
42
|
+
## 2. Output Format (RCA Report)
|
|
90
43
|
|
|
91
|
-
|
|
44
|
+
Save substantial RCA investigations under:
|
|
45
|
+
```text
|
|
46
|
+
devflow/debug/rca-{slug}.md
|
|
47
|
+
```
|
|
92
48
|
|
|
49
|
+
Structure:
|
|
93
50
|
```markdown
|
|
94
51
|
## Debug Summary
|
|
95
52
|
|
|
96
|
-
1. **Symptom**: [What is happening]
|
|
97
|
-
2. **Evidence**: [
|
|
98
|
-
3. **Investigation Path**: [
|
|
99
|
-
4. **Root Cause**: [
|
|
100
|
-
5. **Fix Direction**: [
|
|
101
|
-
6. **
|
|
53
|
+
1. **Symptom**: [What is happening vs expected]
|
|
54
|
+
2. **Evidence**: [Error logs, stack trace, file:line references]
|
|
55
|
+
3. **Investigation Path**: [Hypotheses tested and falsification proof]
|
|
56
|
+
4. **Root Cause**: [The exact mechanism causing the failure]
|
|
57
|
+
5. **Fix Direction**: [Recommended scoped change]
|
|
58
|
+
6. **Regression Guard**: [Reproduction test to add before fixing]
|
|
102
59
|
```
|
|
103
60
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
```text
|
|
107
|
-
Debug flaky login redirect
|
|
108
|
-
Debug failing migration in CI
|
|
109
|
-
Debug why webhook verification breaks in staging
|
|
110
|
-
Debug unexpected duplicate records
|
|
111
|
-
```
|
|
61
|
+
---
|
|
112
62
|
|
|
113
63
|
## Relationship To DevFlow 2.0
|
|
114
64
|
|
|
115
|
-
- Classification
|
|
116
|
-
- Mainline
|
|
117
|
-
-
|
|
118
|
-
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
- `AGENTS.md`
|
|
123
|
-
- `.agent/resources/schemas/rca.template.md`
|
|
124
|
-
- Related commands: `40-implement`, `50-verify`, `Test`, `Insight`, `Wiki`, `Agent`
|
|
125
|
-
|
|
126
|
-
## Next Workflow Recommendation
|
|
127
|
-
|
|
128
|
-
- Default: return to `00-discover {discovery_id}` when the failure entered through discovery; otherwise return to `40-implement` when a tracked fix already exists
|
|
129
|
-
- Alternate: `30-plan` if the fix needs planning changes
|
|
130
|
-
- Alternate: `50-verify` when the issue is resolved and needs re-checking
|
|
131
|
-
|
|
65
|
+
- **Classification**: Companion command & Investigation lane
|
|
66
|
+
- **Mainline integration**:
|
|
67
|
+
- During `00-discover`: Unclear failure intake before allocation
|
|
68
|
+
- During `40-implement`: Hard test failure or unexpected runtime exception
|
|
69
|
+
- During `50-verify`: Defect found during QA inspection
|
|
70
|
+
- **Handoff**: `test` (write repro test), `40-implement` (execute fix), `50-verify` (re-check)
|
|
@@ -1,91 +1,63 @@
|
|
|
1
|
-
---name: deploy
|
|
2
|
-
|
|
3
|
-
description: "[Devflow] Production deployment pre-flight checks, smoke validation, and deployment execution."
|
|
4
1
|
---
|
|
5
|
-
|
|
2
|
+
name: deploy
|
|
3
|
+
description: "[Devflow] Production deployment pre-flight checks, launch readiness, smoke validation, and deployment execution."
|
|
4
|
+
---
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
# Production Deployment & Launch Readiness
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
## Overview
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
This is the comprehensive deployment master skill for Nexus-DevFlow. It handles pre-flight validation, multi-platform deployment execution (Vercel, Render, Railway, Fly.io, Docker), health checks, smoke verification, and safe rollback readiness.
|
|
12
11
|
|
|
13
12
|
```text
|
|
14
|
-
|
|
13
|
+
Pre-Flight Checks ➔ Build & Smoke Test ➔ Deployment Execution ➔ Health Verification ➔ Release Logging
|
|
15
14
|
```
|
|
16
15
|
|
|
17
|
-
Treat this workflow file as a compatibility wrapper around that skill in `deploy` mode.
|
|
18
|
-
|
|
19
16
|
---
|
|
20
17
|
|
|
21
|
-
##
|
|
18
|
+
## 1. Pre-Flight Verification Checklist
|
|
22
19
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
Before initiating any deployment, verify:
|
|
21
|
+
1. **Code & Quality**: Zero syntax/type errors, linters clean, unit & integration tests passing (`npm test`).
|
|
22
|
+
2. **Security**: No secrets in source code, environment variables documented in `.env.example`, `npm audit` checked.
|
|
23
|
+
3. **Database & Migrations**: Schema migrations verified backwards-compatible and applied.
|
|
24
|
+
4. **Performance & Assets**: Production bundles compiled, assets compressed, Core Web Vitals considered.
|
|
25
|
+
5. **Observability**: Healthcheck endpoint (`/api/health`) responsive, error tracking configured.
|
|
28
26
|
|
|
29
27
|
---
|
|
30
28
|
|
|
31
|
-
##
|
|
29
|
+
## 2. Platform Deployment Matrix
|
|
32
30
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
5. **Infrastructure**: Env vars set, migrations ready, monitoring configured.
|
|
40
|
-
6. **Documentation**: README / ADRs / CHANGELOG updated.
|
|
31
|
+
| Target Platform | Deploy Method / Command | Verification Method |
|
|
32
|
+
| :--- | :--- | :--- |
|
|
33
|
+
| **Vercel** | `vercel --prod` or Git push | Inspect deployment URL & build logs |
|
|
34
|
+
| **Render / Railway** | `railway up` or Git integration | Check service status & container logs |
|
|
35
|
+
| **Fly.io** | `fly deploy` | Check `fly status` and HTTP response |
|
|
36
|
+
| **Docker / VPS** | `docker compose up -d --build` | Check container health & PM2 logs |
|
|
41
37
|
|
|
42
|
-
|
|
38
|
+
---
|
|
43
39
|
|
|
44
|
-
|
|
45
|
-
Determine the project's platform (Vercel, Railway, Docker, Fly.io, etc.) and execute the appropriate build & deploy commands.
|
|
46
|
-
- Vercel: `vercel --prod`
|
|
47
|
-
- Railway: `railway up`
|
|
48
|
-
- Docker: `docker compose up -d`
|
|
49
|
-
- Fly.io: `fly deploy`
|
|
40
|
+
## 3. Post-Deployment Smoke Verification & Health Check
|
|
50
41
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
- Verify that the deployed application is responding (HTTP 200 OK) and all services (Database, API) are healthy.
|
|
42
|
+
1. Send an HTTP request to the deployed domain: verify HTTP 200 OK.
|
|
43
|
+
2. Test critical paths (Authentication, API endpoints, core database transactions).
|
|
44
|
+
3. Confirm telemetry and error log stream are free of unhandled exceptions.
|
|
55
45
|
|
|
56
46
|
---
|
|
57
47
|
|
|
58
|
-
##
|
|
48
|
+
## 4. Rollback Readiness
|
|
59
49
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
- **Health Check**: Status of API and Database
|
|
50
|
+
Always have an immediate rollback plan before triggering production releases:
|
|
51
|
+
- Pin the previous stable build artifact, Docker image tag, or Git commit hash.
|
|
52
|
+
- If post-deployment smoke tests fail, trigger rollback immediately:
|
|
53
|
+
```text
|
|
54
|
+
deploy rollback
|
|
55
|
+
```
|
|
67
56
|
|
|
68
|
-
|
|
69
|
-
Generate an Error summary detailing:
|
|
70
|
-
- **Error**: Step where it failed (e.g., Build failed at TypeScript compilation)
|
|
71
|
-
- **Details**: Exact error snippet
|
|
72
|
-
- **Resolution**: Step-by-step fix recommendation
|
|
73
|
-
- **Rollback Available**: Suggest running `Deploy rollback` if needed.
|
|
57
|
+
---
|
|
74
58
|
|
|
75
59
|
## Relationship To DevFlow 2.0
|
|
76
60
|
|
|
77
|
-
- Classification
|
|
78
|
-
- Mainline
|
|
79
|
-
-
|
|
80
|
-
- Typical handoff targets: `60-report`, `Changelog`, `Wiki`
|
|
81
|
-
|
|
82
|
-
## Sources
|
|
83
|
-
|
|
84
|
-
- `AGENTS.md`
|
|
85
|
-
- `.agents/skills/release-git-operations/SKILL.md`
|
|
86
|
-
- `.agents/skills/shipping-and-launch/SKILL.md`
|
|
87
|
-
- `.agents/skills/deployment-procedures/SKILL.md`
|
|
88
|
-
- `.agent/resources/schemas/deploy_report.template.md`
|
|
89
|
-
- Related commands: `70-release`, `Commit`, `PR`, `Changelog`, `60-report`
|
|
90
|
-
|
|
91
|
-
|
|
61
|
+
- **Classification**: Companion command & Delivery support
|
|
62
|
+
- **Mainline integration**: Invoked after `70-release` when ready to deploy.
|
|
63
|
+
- **Handoff**: `60-report`, `changelog`, `rollback`
|
|
@@ -1,131 +1,42 @@
|
|
|
1
|
-
---
|
|
2
|
-
|
|
3
|
-
description: "[Devflow] Extract reusable lessons, patterns,
|
|
1
|
+
---
|
|
2
|
+
name: insight
|
|
3
|
+
description: "[Devflow] Extract reusable lessons, architectural patterns, post-mortem incident learning, and token optimizations from completed work."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
7
|
-
|
|
8
|
-
## Target: $ARGUMENTS
|
|
9
|
-
|
|
10
|
-
Use this workflow after implementation, QA, human approval, PR review, or a debugging session to preserve useful knowledge for future work.
|
|
11
|
-
|
|
12
|
-
Primary behavior now lives in the `insight-capture` skill. Keep this workflow as the compatibility wrapper and knowledge-capture entry point.
|
|
13
|
-
|
|
14
|
-
## Prompt Source
|
|
15
|
-
|
|
16
|
-
Adapted from:
|
|
17
|
-
|
|
18
|
-
- `insight_extractor.md`
|
|
19
|
-
|
|
20
|
-
Additional credited discipline when the source work is a bug, regression, or incident:
|
|
21
|
-
|
|
22
|
-
- `.agents/skills/9arm-skills/post-mortem/SKILL.md`
|
|
23
|
-
- Source pack: `9arm-skills`
|
|
24
|
-
- Credit: `thananon/9arm-skills`
|
|
25
|
-
- Upstream: https://github.com/thananon/9arm-skills
|
|
26
|
-
- Adapted for: Antigravity IDE / Nexus-DevFlow
|
|
27
|
-
|
|
28
|
-
## Process
|
|
29
|
-
|
|
30
|
-
### 1. Load Evidence
|
|
31
|
-
|
|
32
|
-
Inspect the available evidence:
|
|
33
|
-
|
|
34
|
-
- git diff or recent commits
|
|
35
|
-
- `40-implement.md`
|
|
36
|
-
- `50-verify.md`
|
|
37
|
-
- `70-release.md`
|
|
38
|
-
- `60-report.md`
|
|
39
|
-
- modified files
|
|
40
|
-
- human feedback or PR comments
|
|
41
|
-
|
|
42
|
-
### 2. Extract Reusable Knowledge
|
|
43
|
-
|
|
44
|
-
Capture only actionable knowledge:
|
|
45
|
-
|
|
46
|
-
- file purpose and important changes
|
|
47
|
-
- reusable patterns
|
|
48
|
-
- gotchas and triggers
|
|
49
|
-
- approach outcome
|
|
50
|
-
- alternatives tried
|
|
51
|
-
- context or token usage notes that explain avoidable overhead
|
|
52
|
-
- recommendations for future sessions
|
|
53
|
-
|
|
54
|
-
Avoid generic notes that do not help future work.
|
|
55
|
-
|
|
56
|
-
For bug, regression, or incident work, apply the `post-mortem` lens only after fix and validation evidence exist:
|
|
57
|
-
|
|
58
|
-
- what broke
|
|
59
|
-
- impact
|
|
60
|
-
- reliable repro or timeline
|
|
61
|
-
- root cause
|
|
62
|
-
- fix
|
|
63
|
-
- validation evidence
|
|
64
|
-
- why it slipped through
|
|
65
|
-
- prevention or follow-up
|
|
66
|
-
|
|
67
|
-
### 3. Save Or Route Insights
|
|
68
|
-
|
|
69
|
-
Use the smallest durable destination:
|
|
6
|
+
# Insight Extraction & Post-Mortem Learning
|
|
70
7
|
|
|
71
|
-
|
|
72
|
-
- `devflow/lessons.md` for project-wide lessons
|
|
73
|
-
- `60-report` for final narrative communication before release
|
|
74
|
-
- `70-release` for release-facing notes and execution details
|
|
8
|
+
## Overview
|
|
75
9
|
|
|
76
|
-
|
|
10
|
+
This is the insight and knowledge extraction master skill for Nexus-DevFlow. It captures reusable engineering lessons, architectural patterns, gotchas, post-mortem incident analyses, and token-efficiency notes from completed implementation and verification work.
|
|
77
11
|
|
|
78
|
-
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
12
|
+
**9arm Post-Mortem Pattern**:
|
|
13
|
+
```text
|
|
14
|
+
What Broke ➔ Business Impact ➔ Root Cause ➔ Fix Evidence ➔ Prevention & Guardrails
|
|
15
|
+
```
|
|
82
16
|
|
|
83
|
-
|
|
17
|
+
---
|
|
84
18
|
|
|
85
|
-
|
|
19
|
+
## 1. Types of Knowledge Extracted
|
|
86
20
|
|
|
87
|
-
|
|
21
|
+
1. **Architectural Patterns**: Reusable structural patterns, data transformations, or component designs.
|
|
22
|
+
2. **Gotchas & Hidden Invariants**: Subtle platform bugs, async timing issues, ORM quirks, or browser edge cases.
|
|
23
|
+
3. **Incident Post-Mortems**: Rigorous root cause analysis and why tests/checks failed to catch the bug initially.
|
|
24
|
+
4. **Context & Token Optimization**: Notes on avoidable context reading or redundant artifact parsing.
|
|
88
25
|
|
|
89
|
-
|
|
26
|
+
---
|
|
90
27
|
|
|
91
|
-
|
|
28
|
+
## 2. Process & Recording Destinations
|
|
92
29
|
|
|
93
|
-
-
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
- recommendations
|
|
99
|
-
- where the insight was recorded or should be recorded
|
|
30
|
+
1. **Load Evidence**: Review `git diff`, `40-implement.md`, `50-verify.md`, or test logs.
|
|
31
|
+
2. **Distill Insights**: Formulate clear, actionable, non-generic takeaways.
|
|
32
|
+
3. **Save to Persistent Memory**:
|
|
33
|
+
- Save project-wide engineering lessons to `devflow/context/lessons.md` (or `knowledge/lessons.md`).
|
|
34
|
+
- Feed run-specific learnings into `60-report.md` and `70-release.md`.
|
|
100
35
|
|
|
101
|
-
|
|
36
|
+
---
|
|
102
37
|
|
|
103
38
|
## Relationship To DevFlow 2.0
|
|
104
39
|
|
|
105
|
-
- Classification
|
|
106
|
-
- Mainline
|
|
107
|
-
-
|
|
108
|
-
- Typical handoff targets: `Wiki`, `60-report`, `Help`
|
|
109
|
-
|
|
110
|
-
## Sources
|
|
111
|
-
|
|
112
|
-
- `AGENTS.md`
|
|
113
|
-
- `.agent/resources/schemas/lessons.template.md`
|
|
114
|
-
- Related commands: `Debug`, `50-verify`, `Wiki`, `60-report`, `Help`
|
|
115
|
-
|
|
116
|
-
## Next Workflow Recommendation
|
|
117
|
-
|
|
118
|
-
- **Primary**: `Wiki project ingest {source}` when the insight is reusable project knowledge.
|
|
119
|
-
- **Why**: `Insight` extracts lessons; `Wiki` compiles selected lessons into navigable knowledge pages.
|
|
120
|
-
- **Alternatives**:
|
|
121
|
-
- `60-report {ID}` - choose this when the insight should become the final communication summary before release.
|
|
122
|
-
- `70-release {ID}` - choose this when the insight should shape release packaging or execution details.
|
|
123
|
-
- `Help {ID}` - choose this when the next route is unclear.
|
|
124
|
-
|
|
125
|
-
## Wiki Update Recommendation
|
|
126
|
-
|
|
127
|
-
- **Needed**: `yes` for reusable lessons, gotchas, decisions, validated root causes, or token/context optimizations.
|
|
128
|
-
- **Scope**: `project` for target-project lessons, `framework` for DevFlow workflow lessons.
|
|
129
|
-
- **Reason**: Insight extraction is the safest handoff point for wiki compilation.
|
|
130
|
-
- **Suggested Command**: `Wiki project ingest {source}`
|
|
131
|
-
|
|
40
|
+
- **Classification**: Companion command & Continuous learning
|
|
41
|
+
- **Mainline integration**: Invoked after `50-verify` or `60-report`.
|
|
42
|
+
- **Handoff**: `60-report`, `70-release`
|
|
@@ -3,119 +3,40 @@ name: preview
|
|
|
3
3
|
description: "[Devflow] Local preview server management, smoke-check, and temporary runtime inspection before formal verification."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
description: Preview management and temporary runtime checks. Transitional compatibility path for the Preview companion command in DevFlow 2.0.
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Preview Management
|
|
11
|
-
|
|
12
|
-
## Usage
|
|
13
|
-
|
|
14
|
-
```text
|
|
15
|
-
Preview
|
|
16
|
-
Preview start
|
|
17
|
-
Preview stop
|
|
18
|
-
Preview restart
|
|
19
|
-
Preview check
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
This file keeps its old numeric path for migration compatibility.
|
|
23
|
-
|
|
24
|
-
In DevFlow 2.0, `Preview` is a companion command, not a numbered mainline workflow.
|
|
25
|
-
|
|
26
|
-
Primary behavior now lives in:
|
|
27
|
-
|
|
28
|
-
```text
|
|
29
|
-
.agents/skills/preview-local-check/SKILL.md
|
|
30
|
-
```
|
|
6
|
+
# Preview Management & Local Runtime Inspection
|
|
31
7
|
|
|
32
|
-
|
|
8
|
+
## Overview
|
|
33
9
|
|
|
34
|
-
|
|
10
|
+
This is the preview master skill for Nexus-DevFlow. It manages local development/preview servers (`npm run dev`, `npm run preview`, `vite`, `next dev`), handles port conflicts, and executes smoke checks before formal verification.
|
|
35
11
|
|
|
36
|
-
|
|
12
|
+
## Usage & Sub-Commands
|
|
37
13
|
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
Preferred DevFlow 2.0 pairing:
|
|
44
|
-
|
|
45
|
-
- from `40-implement`
|
|
46
|
-
- from `50-verify`
|
|
14
|
+
- `/preview` - Inspect current preview status and health
|
|
15
|
+
- `/preview start` - Start the local preview/dev server
|
|
16
|
+
- `/preview stop` - Stop the running server process
|
|
17
|
+
- `/preview restart` - Restart the preview server
|
|
18
|
+
- `/preview check` - Perform runtime smoke check against `http://localhost:<port>`
|
|
47
19
|
|
|
48
20
|
---
|
|
49
21
|
|
|
50
|
-
##
|
|
22
|
+
## 1. Process & Runtime Management
|
|
51
23
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
24
|
+
1. **Detect Framework & Command**: Identify the project runtime (`npm run dev`, `vite preview`, `pnpm start`, `python -m http.server`).
|
|
25
|
+
2. **Handle Port Conflicts**: Check if the standard port (3000, 5173, 8080) is occupied; auto-select fallback port or terminate stale background processes.
|
|
26
|
+
3. **Health & Smoke Check**: Query local endpoint via HTTP GET to verify HTTP 200 OK and asset loading.
|
|
27
|
+
4. **Report Status**:
|
|
28
|
+
```markdown
|
|
29
|
+
## Preview Status
|
|
30
|
+
- **URL**: `http://localhost:3000`
|
|
31
|
+
- **App Type**: Next.js / Vite / Node.js
|
|
32
|
+
- **Health Status**: `OK` (200 OK)
|
|
33
|
+
- **Console / Network**: Zero fatal runtime errors
|
|
34
|
+
```
|
|
57
35
|
|
|
58
36
|
---
|
|
59
37
|
|
|
60
|
-
## Internal Process
|
|
61
|
-
|
|
62
|
-
`Preview` manages the local preview workflow using the `preview-local-check` skill plus any available preview automation or equivalent project-local commands.
|
|
63
|
-
|
|
64
|
-
When handling preview operations:
|
|
65
|
-
|
|
66
|
-
1. detect the correct project or server command path
|
|
67
|
-
2. report the current state clearly
|
|
68
|
-
3. handle port conflicts gracefully
|
|
69
|
-
4. keep the action scoped to preview management, not broader deployment
|
|
70
|
-
5. distinguish between preview success and full verification success
|
|
71
|
-
|
|
72
|
-
Commands should use the nearest equivalent project-local preview command for the project, such as `npm run dev`, `npm run preview`, framework-specific local servers, or other runtime helpers that already exist in the target project.
|
|
73
|
-
|
|
74
|
-
### Resolving Port Conflicts
|
|
75
|
-
|
|
76
|
-
If the port is in use, offer options:
|
|
77
|
-
|
|
78
|
-
1. start on a different port
|
|
79
|
-
2. terminate the process on the existing port
|
|
80
|
-
3. specify a custom port
|
|
81
|
-
|
|
82
|
-
### Status Format
|
|
83
|
-
|
|
84
|
-
When displaying status, clearly state:
|
|
85
|
-
|
|
86
|
-
- URL
|
|
87
|
-
- project path
|
|
88
|
-
- app type
|
|
89
|
-
- health status
|
|
90
|
-
- notes about blockers, missing dependencies, or startup warnings
|
|
91
|
-
|
|
92
|
-
Example summary:
|
|
93
|
-
|
|
94
|
-
```markdown
|
|
95
|
-
## Preview Status
|
|
96
|
-
|
|
97
|
-
- **URL**: `http://localhost:3000`
|
|
98
|
-
- **Project Path**: `[absolute path]`
|
|
99
|
-
- **App Type**: `Next.js | FastAPI | Odoo | PHP | Other`
|
|
100
|
-
- **Health Status**: `OK | Warning | Failed`
|
|
101
|
-
- **Notes**: [port conflict, startup issue, missing dependency, or none]
|
|
102
|
-
```
|
|
103
|
-
|
|
104
38
|
## Relationship To DevFlow 2.0
|
|
105
39
|
|
|
106
|
-
- Classification
|
|
107
|
-
- Mainline
|
|
108
|
-
-
|
|
109
|
-
- Typical handoff targets: `50-verify`, `Debug`, `40-implement`
|
|
110
|
-
|
|
111
|
-
## Sources
|
|
112
|
-
|
|
113
|
-
- `AGENTS.md`
|
|
114
|
-
- `.agents/skills/preview-local-check/SKILL.md`
|
|
115
|
-
- Related commands: `40-implement`, `50-verify`, `Debug`
|
|
116
|
-
|
|
117
|
-
## Next Workflow Recommendation
|
|
118
|
-
|
|
119
|
-
- **Primary**: `50-verify` when preview confirms the change is ready for formal checks
|
|
120
|
-
- **Alternative**: `40-implement` when preview exposed implementation work
|
|
121
|
-
|
|
40
|
+
- **Classification**: Companion command & Runtime support
|
|
41
|
+
- **Mainline stages**: `40-implement` (interactive visual check), `50-verify` (smoke test check)
|
|
42
|
+
- **Handoff**: `50-verify`
|