@jakkrichm/create-nexus-devflow 2.0.12 → 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.
Files changed (124) hide show
  1. package/lib/update.js +15 -1
  2. package/package.json +1 -1
  3. package/template/.agents/skills/70-release/SKILL.md +2 -0
  4. package/template/.agents/skills/ci/SKILL.md +25 -78
  5. package/template/.agents/skills/commit/SKILL.md +39 -43
  6. package/template/.agents/skills/debug/SKILL.md +43 -104
  7. package/template/.agents/skills/deploy/SKILL.md +37 -65
  8. package/template/.agents/skills/insight/SKILL.md +27 -116
  9. package/template/.agents/skills/preview/SKILL.md +24 -103
  10. package/template/.agents/skills/review/SKILL.md +53 -37
  11. package/template/.agents/skills/rollback/SKILL.md +1 -0
  12. package/template/.agents/skills/security-review/SKILL.md +44 -147
  13. package/template/.agents/skills/simplify/SKILL.md +48 -57
  14. package/template/.agents/skills/test/SKILL.md +63 -51
  15. package/template/.claude/skills/70-release/SKILL.md +2 -0
  16. package/template/.claude/skills/ci/SKILL.md +25 -78
  17. package/template/.claude/skills/commit/SKILL.md +39 -43
  18. package/template/.claude/skills/debug/SKILL.md +43 -104
  19. package/template/.claude/skills/deploy/SKILL.md +37 -65
  20. package/template/.claude/skills/insight/SKILL.md +27 -116
  21. package/template/.claude/skills/preview/SKILL.md +24 -103
  22. package/template/.claude/skills/review/SKILL.md +53 -37
  23. package/template/.claude/skills/rollback/SKILL.md +1 -0
  24. package/template/.claude/skills/security-review/SKILL.md +44 -147
  25. package/template/.claude/skills/simplify/SKILL.md +48 -57
  26. package/template/.claude/skills/test/SKILL.md +63 -51
  27. package/template/devflow/history/HISTORY.md +27 -0
  28. package/template/devflow/reference/running-id-contract.md +1 -1
  29. package/template/.agents/skills/9arm-skills/README.md +0 -51
  30. package/template/.agents/skills/9arm-skills/debug-mantra/SKILL.md +0 -86
  31. package/template/.agents/skills/9arm-skills/management-talk/SKILL.md +0 -79
  32. package/template/.agents/skills/9arm-skills/post-mortem/SKILL.md +0 -71
  33. package/template/.agents/skills/9arm-skills/scrutinize/SKILL.md +0 -72
  34. package/template/.agents/skills/browser-testing-with-devtools/SKILL.md +0 -302
  35. package/template/.agents/skills/ci-cd-and-automation/SKILL.md +0 -390
  36. package/template/.agents/skills/code-review-and-quality/SKILL.md +0 -392
  37. package/template/.agents/skills/code-simplification/SKILL.md +0 -331
  38. package/template/.agents/skills/debugging-and-error-recovery/SKILL.md +0 -298
  39. package/template/.agents/skills/deployment-procedures/SKILL.md +0 -241
  40. package/template/.agents/skills/deprecation-and-migration/SKILL.md +0 -206
  41. package/template/.agents/skills/diagnosing-bugs/SKILL.md +0 -93
  42. package/template/.agents/skills/git-workflow-and-versioning/SKILL.md +0 -300
  43. package/template/.agents/skills/human-review-decisions/SKILL.md +0 -74
  44. package/template/.agents/skills/idea-refine/SKILL.md +0 -178
  45. package/template/.agents/skills/idea-refine/examples.md +0 -238
  46. package/template/.agents/skills/idea-refine/frameworks.md +0 -99
  47. package/template/.agents/skills/idea-refine/refinement-criteria.md +0 -113
  48. package/template/.agents/skills/idea-refine/scripts/idea-refine.sh +0 -15
  49. package/template/.agents/skills/incremental-implementation/SKILL.md +0 -248
  50. package/template/.agents/skills/insight-capture/SKILL.md +0 -84
  51. package/template/.agents/skills/intelligent-routing/SKILL.md +0 -176
  52. package/template/.agents/skills/md2html/SKILL.md +0 -154
  53. package/template/.agents/skills/md2html/components.md +0 -505
  54. package/template/.agents/skills/md2html/template.html +0 -1152
  55. package/template/.agents/skills/planning-and-task-breakdown/SKILL.md +0 -239
  56. package/template/.agents/skills/pr-review/SKILL.md +0 -143
  57. package/template/.agents/skills/pr-review-analysis/SKILL.md +0 -89
  58. package/template/.agents/skills/preview-local-check/SKILL.md +0 -59
  59. package/template/.agents/skills/release-git-operations/SKILL.md +0 -97
  60. package/template/.agents/skills/review-followup-routing/SKILL.md +0 -98
  61. package/template/.agents/skills/security-and-hardening/SKILL.md +0 -349
  62. package/template/.agents/skills/security-and-hardening/security-checklist.md +0 -134
  63. package/template/.agents/skills/shipping-and-launch/SKILL.md +0 -311
  64. package/template/.agents/skills/silent-failure-audit/SKILL.md +0 -73
  65. package/template/.agents/skills/spec-orchestration/SKILL.md +0 -91
  66. package/template/.agents/skills/specialist-agent-routing/SKILL.md +0 -107
  67. package/template/.agents/skills/test-driven-development/SKILL.md +0 -422
  68. package/template/.agents/skills/test-driven-development/testing-patterns.md +0 -236
  69. package/template/.agents/skills/test-execution-and-coverage/SKILL.md +0 -56
  70. package/template/.agents/skills/using-agent-skills/SKILL.md +0 -171
  71. package/template/.agents/skills/verification-orchestration/SKILL.md +0 -68
  72. package/template/.agents/skills/vulnerability-scanner/SKILL.md +0 -276
  73. package/template/.agents/skills/vulnerability-scanner/checklists.md +0 -121
  74. package/template/.agents/skills/vulnerability-scanner/scripts/security_scan.py +0 -458
  75. package/template/.agents/skills/wiki/SKILL.md +0 -149
  76. package/template/.agents/skills/workflow-documentation-sync/SKILL.md +0 -87
  77. package/template/.claude/skills/9arm-skills/README.md +0 -51
  78. package/template/.claude/skills/9arm-skills/debug-mantra/SKILL.md +0 -86
  79. package/template/.claude/skills/9arm-skills/management-talk/SKILL.md +0 -79
  80. package/template/.claude/skills/9arm-skills/post-mortem/SKILL.md +0 -71
  81. package/template/.claude/skills/9arm-skills/scrutinize/SKILL.md +0 -72
  82. package/template/.claude/skills/browser-testing-with-devtools/SKILL.md +0 -302
  83. package/template/.claude/skills/ci-cd-and-automation/SKILL.md +0 -390
  84. package/template/.claude/skills/code-review-and-quality/SKILL.md +0 -392
  85. package/template/.claude/skills/code-simplification/SKILL.md +0 -331
  86. package/template/.claude/skills/debugging-and-error-recovery/SKILL.md +0 -298
  87. package/template/.claude/skills/deployment-procedures/SKILL.md +0 -241
  88. package/template/.claude/skills/deprecation-and-migration/SKILL.md +0 -206
  89. package/template/.claude/skills/diagnosing-bugs/SKILL.md +0 -93
  90. package/template/.claude/skills/git-workflow-and-versioning/SKILL.md +0 -300
  91. package/template/.claude/skills/human-review-decisions/SKILL.md +0 -74
  92. package/template/.claude/skills/idea-refine/SKILL.md +0 -178
  93. package/template/.claude/skills/idea-refine/examples.md +0 -238
  94. package/template/.claude/skills/idea-refine/frameworks.md +0 -99
  95. package/template/.claude/skills/idea-refine/refinement-criteria.md +0 -113
  96. package/template/.claude/skills/idea-refine/scripts/idea-refine.sh +0 -15
  97. package/template/.claude/skills/incremental-implementation/SKILL.md +0 -248
  98. package/template/.claude/skills/insight-capture/SKILL.md +0 -84
  99. package/template/.claude/skills/intelligent-routing/SKILL.md +0 -176
  100. package/template/.claude/skills/md2html/SKILL.md +0 -154
  101. package/template/.claude/skills/md2html/components.md +0 -505
  102. package/template/.claude/skills/md2html/template.html +0 -1152
  103. package/template/.claude/skills/planning-and-task-breakdown/SKILL.md +0 -239
  104. package/template/.claude/skills/pr-review/SKILL.md +0 -143
  105. package/template/.claude/skills/pr-review-analysis/SKILL.md +0 -89
  106. package/template/.claude/skills/preview-local-check/SKILL.md +0 -59
  107. package/template/.claude/skills/release-git-operations/SKILL.md +0 -97
  108. package/template/.claude/skills/review-followup-routing/SKILL.md +0 -98
  109. package/template/.claude/skills/security-and-hardening/SKILL.md +0 -349
  110. package/template/.claude/skills/security-and-hardening/security-checklist.md +0 -134
  111. package/template/.claude/skills/shipping-and-launch/SKILL.md +0 -311
  112. package/template/.claude/skills/silent-failure-audit/SKILL.md +0 -73
  113. package/template/.claude/skills/spec-orchestration/SKILL.md +0 -91
  114. package/template/.claude/skills/specialist-agent-routing/SKILL.md +0 -107
  115. package/template/.claude/skills/test-driven-development/SKILL.md +0 -422
  116. package/template/.claude/skills/test-driven-development/testing-patterns.md +0 -236
  117. package/template/.claude/skills/test-execution-and-coverage/SKILL.md +0 -56
  118. package/template/.claude/skills/using-agent-skills/SKILL.md +0 -171
  119. package/template/.claude/skills/verification-orchestration/SKILL.md +0 -68
  120. package/template/.claude/skills/vulnerability-scanner/SKILL.md +0 -276
  121. package/template/.claude/skills/vulnerability-scanner/checklists.md +0 -121
  122. package/template/.claude/skills/vulnerability-scanner/scripts/security_scan.py +0 -458
  123. package/template/.claude/skills/wiki/SKILL.md +0 -149
  124. 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
- Preferred DevFlow 2.0 pairing:
8
+ ## Overview
29
9
 
30
- - from `00-discover` when a new request begins with a failure whose root cause is unknown
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
- When invoked with a Discovery ID, link the RCA report to that discovery and return to `00-discover {discovery_id}` for the delivery decision. Do not allocate a Running ID for an unapproved fix during Debug.
35
-
36
- ## Source Discipline
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
- ## Internal Process
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 2: Isolate And Hypothesize
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
- - identify likely components, recent changes, or conditions
61
- - generate 2-4 hypotheses ordered by likelihood
62
- - define what evidence would falsify each hypothesis
26
+ ### Phase 2: Isolate & Hypothesize
27
+ - Generate 24 distinct hypotheses ranked by probability.
28
+ - Formulate specific criteria and evidence that would *falsify* each hypothesis.
63
29
 
64
- ### Phase 3: Investigate With Evidence
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
- - trace the real fail path end-to-end
67
- - test hypotheses methodically
68
- - record evidence with file:line or command output
69
- - maintain a breadcrumb trail of observations and conclusions
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
- ### Phase 4: Conclude With RCA
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
- 1. Inspect `.agent/resources/schemas/rca.template.md`
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
- Present the summary in this shape:
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**: [error log, file, line, failing command]
98
- 3. **Investigation Path**: [what was tested and what happened]
99
- 4. **Root Cause**: [why this happened]
100
- 5. **Fix Direction**: [what should be changed]
101
- 6. **Prevention**: [how to avoid recurrence]
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
- ## Examples
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: Companion command
116
- - Mainline status: Not a numbered stage
117
- - Typical entry points: `00-discover`, `40-implement`, `50-verify`, `Issue-Triage`, production failure analysis
118
- - Typical handoff targets: `00-discover {discovery_id}` for discovery-owned RCA, `40-implement`, `50-verify`, `Insight`, `Wiki`
119
-
120
- ## Sources
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
- # ๐Ÿš€ Phase 52: Production Deployment (Auto-Deploy)
2
+ name: deploy
3
+ description: "[Devflow] Production deployment pre-flight checks, launch readiness, smoke validation, and deployment execution."
4
+ ---
6
5
 
7
- ## Usage: `Deploy [subcommand]`
6
+ # Production Deployment & Launch Readiness
8
7
 
9
- Perform pre-flight checks, deployment execution, and verification for production releases.
8
+ ## Overview
10
9
 
11
- Primary behavior now lives in:
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
- .agents/skills/release-git-operations/SKILL.md
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
- ## ๐Ÿ› ๏ธ Sub-commands
18
+ ## 1. Pre-Flight Verification Checklist
22
19
 
23
- - `Deploy` - Interactive deployment wizard
24
- - `Deploy check` - Run pre-deployment checks only
25
- - `Deploy preview` - Deploy to preview/staging
26
- - `Deploy production` - Deploy to production
27
- - `Deploy rollback` - Rollback to previous version
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
- ## ๐Ÿšฆ Internal Process
29
+ ## 2. Platform Deployment Matrix
32
30
 
33
- ### Phase 1: Pre-Flight Checks
34
- Before any deployment, the AI MUST verify the following Checklist:
35
- 1. **Code Quality**: No syntax errors, Linters passing, Tests passing.
36
- 2. **Security**: No hardcoded secrets, Environment variables documented, Dependencies audited.
37
- 3. **Performance**: Bundle size acceptable, Images optimized, No N+1 queries.
38
- 4. **Accessibility**: Keyboard nav works, screen reader compatible, contrast adequate.
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
- *You MUST run appropriate validation commands to systematically audit the codebase before giving the green light.*
38
+ ---
43
39
 
44
- ### Phase 2: Deployment Execution
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
- ### Phase 3: Health Check, Verify & Report
52
- - **Template Verification**: **MANDATORY:** Before final deployment, inspect `.agent/resources/schemas/deploy_report.template.md`, preserve its required layout, and replace placeholder text with concrete environment, commands, checks, rollback notes, and deployment result.
53
- - Save the final deployment and pre-flight check report to `devflow/reports/{date}-deploy-report-{timestamp}.md` (where `{date}` is today's date in `YYYY-MM-DD` format and `{timestamp}` is a clean date/time slug).
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
- ## ๐Ÿ“ Output Formats
48
+ ## 4. Rollback Readiness
59
49
 
60
- ### Successful Deploy
61
- Generate a summary indicating:
62
- - **Summary**: Version, Environment, Duration, Platform
63
- - **URLs**: Production, Dashboard
64
- - **Report Location**: Confirm the deploy checklist and validation report has been written to the specified workspace path.
65
- - **What Changed**: Bullet points of new features or fixes
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
- ### Failed Deploy
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: Companion command
78
- - Mainline status: Release support command, not a numbered stage
79
- - Typical entry points: `70-release` after the report is aligned and packaging is ready to execute
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
- ---name: insight
2
-
3
- description: "[Devflow] Extract reusable lessons, patterns, file insights, and post-mortem learning from completed work."
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
- # Phase 54: Insight Extraction
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
- - stage artifacts when the lesson is specific to the current run
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
- For token/context learning, prefer the smallest concrete note:
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
- - what context was loaded unnecessarily
79
- - which file, artifact, or agent handoff caused repeated reading
80
- - what should be passed as minimal context next time
81
- - exact token counts only when they are available from the runtime or provider
12
+ **9arm Post-Mortem Pattern**:
13
+ ```text
14
+ What Broke Business Impact Root Cause Fix Evidence ➔ Prevention & Guardrails
15
+ ```
82
16
 
83
- When updating `devflow/lessons.md`, inspect `.agent/resources/schemas/lessons.template.md` first and replace any placeholder text with concrete incident facts, insight, prevention, and follow-up action.
17
+ ---
84
18
 
85
- If task logs are appropriate:
19
+ ## 1. Types of Knowledge Extracted
86
20
 
87
- If this insight must be tied back to the running work item, record it in `50-verify.md`, `60-report.md`, `70-release.md`, or `devflow/lessons.md` rather than a legacy task log command.
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
- ## Output
26
+ ---
90
27
 
91
- Return:
28
+ ## 2. Process & Recording Destinations
92
29
 
93
- - file insights
94
- - patterns discovered
95
- - gotchas discovered
96
- - approach outcome
97
- - context usage notes
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
- If `post-mortem` was applied, include a short `Source Discipline` note crediting `9arm-skills/post-mortem`.
36
+ ---
102
37
 
103
38
  ## Relationship To DevFlow 2.0
104
39
 
105
- - Classification: Companion command
106
- - Mainline status: Knowledge capture command, not a numbered stage
107
- - Typical entry points: after `Debug`, `50-verify`, incident work, or review findings
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
- Treat this workflow file as a compatibility wrapper around that skill.
8
+ ## Overview
33
9
 
34
- Manage the local preview development server or temporary runtime check.
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
- Use it when:
12
+ ## Usage & Sub-Commands
37
13
 
38
- - the team wants a quick visual or runtime check before formal verification
39
- - implementation needs a local smoke check
40
- - a temporary render helps clarify what changed
41
- - a human reviewer needs something concrete to inspect before giving feedback
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
- ## Sub-commands
22
+ ## 1. Process & Runtime Management
51
23
 
52
- - `Preview` - show current preview status
53
- - `Preview start` - start the server
54
- - `Preview stop` - stop the server
55
- - `Preview restart` - restart the server
56
- - `Preview check` - run a health check
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: Companion command
107
- - Mainline status: Not a numbered stage
108
- - Typical entry points: `40-implement`, `50-verify`, UI or runtime checking
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`