plankit-cli 1.3.0 → 1.4.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.
Files changed (107) hide show
  1. package/README.md +229 -34
  2. package/package.json +1 -1
  3. package/src/agents.js +8 -4
  4. package/src/cli.js +126 -5
  5. package/src/commandBundles.js +105 -0
  6. package/src/config.js +20 -2
  7. package/templates/PLANKIT.md +7 -0
  8. package/templates/dotnet-commands/codex/dotnet-architecture-audit.md +25 -0
  9. package/templates/dotnet-commands/codex/dotnet-clean-guardrails.md +24 -0
  10. package/templates/dotnet-commands/codex/dotnet-ef-migration.md +25 -0
  11. package/templates/dotnet-commands/codex/dotnet-endpoint-from-model.md +26 -0
  12. package/templates/dotnet-commands/codex/dotnet-extract-service.md +25 -0
  13. package/templates/dotnet-commands/codex/dotnet-feature.md +26 -0
  14. package/templates/dotnet-commands/codex/dotnet-generate-tests.md +25 -0
  15. package/templates/dotnet-commands/codex/dotnet-health.md +24 -0
  16. package/templates/dotnet-commands/codex/dotnet-migrate-minimal-api.md +25 -0
  17. package/templates/dotnet-commands/codex/dotnet-modernize.md +25 -0
  18. package/templates/dotnet-commands/cursor/dotnet-architecture-audit.md +26 -0
  19. package/templates/dotnet-commands/cursor/dotnet-clean-guardrails.md +25 -0
  20. package/templates/dotnet-commands/cursor/dotnet-ef-migration.md +26 -0
  21. package/templates/dotnet-commands/cursor/dotnet-endpoint-from-model.md +27 -0
  22. package/templates/dotnet-commands/cursor/dotnet-extract-service.md +26 -0
  23. package/templates/dotnet-commands/cursor/dotnet-feature.md +27 -0
  24. package/templates/dotnet-commands/cursor/dotnet-generate-tests.md +26 -0
  25. package/templates/dotnet-commands/cursor/dotnet-health.md +25 -0
  26. package/templates/dotnet-commands/cursor/dotnet-migrate-minimal-api.md +26 -0
  27. package/templates/dotnet-commands/cursor/dotnet-modernize.md +26 -0
  28. package/templates/dotnet-commands/opencode/dotnet-architecture-audit.md +23 -0
  29. package/templates/dotnet-commands/opencode/dotnet-clean-guardrails.md +22 -0
  30. package/templates/dotnet-commands/opencode/dotnet-ef-migration.md +23 -0
  31. package/templates/dotnet-commands/opencode/dotnet-endpoint-from-model.md +24 -0
  32. package/templates/dotnet-commands/opencode/dotnet-extract-service.md +23 -0
  33. package/templates/dotnet-commands/opencode/dotnet-feature.md +24 -0
  34. package/templates/dotnet-commands/opencode/dotnet-generate-tests.md +23 -0
  35. package/templates/dotnet-commands/opencode/dotnet-health.md +22 -0
  36. package/templates/dotnet-commands/opencode/dotnet-migrate-minimal-api.md +23 -0
  37. package/templates/dotnet-commands/opencode/dotnet-modernize.md +23 -0
  38. package/templates/dotnet-skills/gemini/dotnet-architecture-audit/SKILL.md +26 -0
  39. package/templates/dotnet-skills/gemini/dotnet-clean-guardrails/SKILL.md +25 -0
  40. package/templates/dotnet-skills/gemini/dotnet-ef-migration/SKILL.md +26 -0
  41. package/templates/dotnet-skills/gemini/dotnet-endpoint-from-model/SKILL.md +27 -0
  42. package/templates/dotnet-skills/gemini/dotnet-extract-service/SKILL.md +26 -0
  43. package/templates/dotnet-skills/gemini/dotnet-feature/SKILL.md +27 -0
  44. package/templates/dotnet-skills/gemini/dotnet-generate-tests/SKILL.md +26 -0
  45. package/templates/dotnet-skills/gemini/dotnet-health/SKILL.md +25 -0
  46. package/templates/dotnet-skills/gemini/dotnet-migrate-minimal-api/SKILL.md +26 -0
  47. package/templates/dotnet-skills/gemini/dotnet-modernize/SKILL.md +26 -0
  48. package/templates/vue-commands/codex/component-pattern-audit.md +24 -0
  49. package/templates/vue-commands/codex/design-token-discover.md +24 -0
  50. package/templates/vue-commands/codex/design-token-migrate.md +24 -0
  51. package/templates/vue-commands/codex/js-to-ts.md +25 -0
  52. package/templates/vue-commands/codex/reactivity-audit.md +25 -0
  53. package/templates/vue-commands/codex/state-strategy-audit.md +23 -0
  54. package/templates/vue-commands/codex/vue-guardrails.md +24 -0
  55. package/templates/vue-commands/codex/vue-health.md +28 -0
  56. package/templates/vue-commands/codex/vue-legacy-map.md +25 -0
  57. package/templates/vue-commands/codex/vue-migration-plan.md +24 -0
  58. package/templates/vue-commands/codex/vue-modernize-slice.md +26 -0
  59. package/templates/vue-commands/codex/vue-pattern-map.md +24 -0
  60. package/templates/vue-commands/codex/vue-standardize.md +26 -0
  61. package/templates/vue-commands/codex/vue-style-audit.md +24 -0
  62. package/templates/vue-commands/codex/vue-target-architecture.md +24 -0
  63. package/templates/vue-commands/cursor/component-pattern-audit.md +25 -0
  64. package/templates/vue-commands/cursor/design-token-discover.md +25 -0
  65. package/templates/vue-commands/cursor/design-token-migrate.md +25 -0
  66. package/templates/vue-commands/cursor/js-to-ts.md +26 -0
  67. package/templates/vue-commands/cursor/reactivity-audit.md +26 -0
  68. package/templates/vue-commands/cursor/state-strategy-audit.md +24 -0
  69. package/templates/vue-commands/cursor/vue-guardrails.md +25 -0
  70. package/templates/vue-commands/cursor/vue-health.md +29 -0
  71. package/templates/vue-commands/cursor/vue-legacy-map.md +26 -0
  72. package/templates/vue-commands/cursor/vue-migration-plan.md +25 -0
  73. package/templates/vue-commands/cursor/vue-modernize-slice.md +27 -0
  74. package/templates/vue-commands/cursor/vue-pattern-map.md +25 -0
  75. package/templates/vue-commands/cursor/vue-standardize.md +27 -0
  76. package/templates/vue-commands/cursor/vue-style-audit.md +25 -0
  77. package/templates/vue-commands/cursor/vue-target-architecture.md +25 -0
  78. package/templates/vue-commands/opencode/component-pattern-audit.md +22 -0
  79. package/templates/vue-commands/opencode/design-token-discover.md +22 -0
  80. package/templates/vue-commands/opencode/design-token-migrate.md +22 -0
  81. package/templates/vue-commands/opencode/js-to-ts.md +23 -0
  82. package/templates/vue-commands/opencode/reactivity-audit.md +23 -0
  83. package/templates/vue-commands/opencode/state-strategy-audit.md +21 -0
  84. package/templates/vue-commands/opencode/vue-guardrails.md +22 -0
  85. package/templates/vue-commands/opencode/vue-health.md +26 -0
  86. package/templates/vue-commands/opencode/vue-legacy-map.md +23 -0
  87. package/templates/vue-commands/opencode/vue-migration-plan.md +22 -0
  88. package/templates/vue-commands/opencode/vue-modernize-slice.md +24 -0
  89. package/templates/vue-commands/opencode/vue-pattern-map.md +22 -0
  90. package/templates/vue-commands/opencode/vue-standardize.md +24 -0
  91. package/templates/vue-commands/opencode/vue-style-audit.md +22 -0
  92. package/templates/vue-commands/opencode/vue-target-architecture.md +22 -0
  93. package/templates/vue-skills/gemini/component-pattern-audit/SKILL.md +25 -0
  94. package/templates/vue-skills/gemini/design-token-discover/SKILL.md +25 -0
  95. package/templates/vue-skills/gemini/design-token-migrate/SKILL.md +25 -0
  96. package/templates/vue-skills/gemini/js-to-ts/SKILL.md +26 -0
  97. package/templates/vue-skills/gemini/reactivity-audit/SKILL.md +26 -0
  98. package/templates/vue-skills/gemini/state-strategy-audit/SKILL.md +24 -0
  99. package/templates/vue-skills/gemini/vue-guardrails/SKILL.md +25 -0
  100. package/templates/vue-skills/gemini/vue-health/SKILL.md +29 -0
  101. package/templates/vue-skills/gemini/vue-legacy-map/SKILL.md +26 -0
  102. package/templates/vue-skills/gemini/vue-migration-plan/SKILL.md +25 -0
  103. package/templates/vue-skills/gemini/vue-modernize-slice/SKILL.md +27 -0
  104. package/templates/vue-skills/gemini/vue-pattern-map/SKILL.md +25 -0
  105. package/templates/vue-skills/gemini/vue-standardize/SKILL.md +27 -0
  106. package/templates/vue-skills/gemini/vue-style-audit/SKILL.md +25 -0
  107. package/templates/vue-skills/gemini/vue-target-architecture/SKILL.md +25 -0
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: vue-legacy-map
3
+ description: Catalog all legacy Vue files, mixins, filters, Options API components, and tech debt hotspots.
4
+ ---
5
+
6
+ # /vue-legacy-map
7
+
8
+ Build an inventory of legacy code, deprecated APIs, and tech debt hotspots.
9
+
10
+ ## Workflow
11
+ 1. Scan for Options API components, this.$ references, mixins, event bus ($on/$emit), and filters.
12
+ 2. Detect deprecated CSS deep selectors (::v-deep, /deep/, >>>).
13
+ 3. Find legacy Vuex stores and mutation patterns.
14
+ 4. Assign migration complexity score (Low, Medium, High, Critical) based on size, coupling, and dependencies.
15
+ 5. Generate ranked migration backlog table.
16
+
17
+ ## Guardrail
18
+ Read-only inventory. Do not transform files.
19
+
20
+ ## Options
21
+ - --filter <type> filter by mixins, vuex, options, or deep-selectors
22
+ - --min-complexity <l> filter by complexity level
23
+
24
+ # vue-legacy-map
25
+
26
+ Execute the workflow with the target arguments from the request.
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: vue-migration-plan
3
+ description: Generate a phased, low-risk migration plan for a legacy Vue feature or directory.
4
+ ---
5
+
6
+ # /vue-migration-plan
7
+
8
+ Formulate an incremental, phased migration plan for a feature slice before code modifications.
9
+
10
+ ## Workflow
11
+ 1. Analyze dependencies and call paths of the target directory.
12
+ 2. Identify shared state, shared UI primitives, and data access layers.
13
+ 3. Divide migration into safe phases: (1) Leaf components, (2) State & data access, (3) Container/Page components, (4) Verification.
14
+ 4. Generate PlanKit phase specifications under artifacts/current/<feature>/phases/.
15
+
16
+ ## Guardrail
17
+ Enforce incremental migration over big-bang rewrites. Keep each phase independently testable.
18
+
19
+ ## Options
20
+ - --phases <n> number of migration phases (default: 3)
21
+ - --feature <name> name of the feature workspace
22
+
23
+ # vue-migration-plan
24
+
25
+ Execute the workflow with the target arguments from the request.
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: vue-modernize-slice
3
+ description: Perform an end-to-end modernization of a Vue feature slice with validation and guardrails.
4
+ ---
5
+
6
+ # /vue-modernize-slice
7
+
8
+ Orchestrate complete vertical slice modernization from legacy to target architecture.
9
+
10
+ ## Workflow
11
+ 1. Discover feature boundaries, templates, stores, and dependencies.
12
+ 2. Generate phased plan with vue-migration-plan.
13
+ 3. Modernize components: Options API -> <script setup>, JS -> TS, Vuex -> Pinia.
14
+ 4. Apply design tokens with design-token-migrate.
15
+ 5. Run vue-tsc, linter, and unit tests to verify zero regressions.
16
+
17
+ ## Guardrail
18
+ Maintain backward compatibility at every step. Do not commit failing builds.
19
+
20
+ ## Options
21
+ - --slice <dir> path to feature slice directory
22
+ - --dry-run preview all planned changes
23
+ - --no-tests skip running tests
24
+
25
+ # vue-modernize-slice
26
+
27
+ Execute the workflow with the target arguments from the request.
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: vue-pattern-map
3
+ description: Map architectural patterns across the Vue repository for state, data fetching, styling, and components.
4
+ ---
5
+
6
+ # /vue-pattern-map
7
+
8
+ Map and categorize all coexisting architectural patterns across the Vue codebase.
9
+
10
+ ## Workflow
11
+ 1. Identify pattern categories: Component syntax, State management, Data fetching, Styling, Routing, Testing.
12
+ 2. Fingerprint each file into its matching pattern archetype.
13
+ 3. Cluster patterns and determine: PREFERRED (target), TRANSITIONAL, and LEGACY.
14
+ 4. Output a comprehensive pattern directory map and migration complexity ranking.
15
+
16
+ ## Guardrail
17
+ Do not assume repository majority equals target architecture in mixed legacy codebases.
18
+
19
+ ## Options
20
+ - --category <name> filter by category (state, data, styling, component)
21
+ - --json output pattern clusters as JSON
22
+
23
+ # vue-pattern-map
24
+
25
+ Execute the workflow with the target arguments from the request.
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: vue-standardize
3
+ description: Refactor a Vue component or composable to conform to the established target architecture.
4
+ ---
5
+
6
+ # /vue-standardize
7
+
8
+ Refactor a component or composable to align with target conventions with zero breaking changes.
9
+
10
+ ## Workflow
11
+ 1. Parse target SFC (script, template, style).
12
+ 2. Convert Options API to <script setup> with Composition API.
13
+ 3. Replace this.$store with Pinia store or reactive composable.
14
+ 4. Preserve public API (props, emits, exposed slots) to avoid breaking parent components.
15
+ 5. Verify TypeScript types and run component tests.
16
+
17
+ ## Guardrail
18
+ Never rewrite business logic. Always preserve component prop/event contracts and visual styling.
19
+
20
+ ## Options
21
+ - --dry-run preview changes without writing
22
+ - --no-tests skip running verification tests
23
+ - --interactive confirm transformations step by step
24
+
25
+ # vue-standardize
26
+
27
+ Execute the workflow with the target arguments from the request.
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: vue-style-audit
3
+ description: Audit styling patterns, global vs scoped CSS/SCSS, deep selectors, and hardcoded values.
4
+ ---
5
+
6
+ # /vue-style-audit
7
+
8
+ Analyze CSS/SCSS architecture, scoping violations, and hardcoded values across Vue components.
9
+
10
+ ## Workflow
11
+ 1. Catalog all <style> tags: scoped vs unscoped, lang (css, scss, less), and CSS Modules.
12
+ 2. Identify leaky global styles and deprecated deep selectors (::v-deep, /deep/).
13
+ 3. Detect hardcoded hex colors, magic numbers in margins/padding, font sizes, and z-indexes.
14
+ 4. Generate style report highlighting candidates for design token extraction.
15
+
16
+ ## Guardrail
17
+ Read-only style audit.
18
+
19
+ ## Options
20
+ - --json output style metrics as JSON
21
+ - --path <dir> restrict audit to specific directory
22
+
23
+ # vue-style-audit
24
+
25
+ Execute the workflow with the target arguments from the request.
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: vue-target-architecture
3
+ description: Define or inspect the target architectural conventions for modernizing the Vue application.
4
+ ---
5
+
6
+ # /vue-target-architecture
7
+
8
+ Establish and document the canonical target architecture for the repository.
9
+
10
+ ## Workflow
11
+ 1. Inspect existing modern slices or prompt for target conventions.
12
+ 2. Define target standards: Vue 3, <script setup>, TypeScript strictness, Pinia stores, styling foundation, testing framework.
13
+ 3. Classify patterns into PREFERRED, TRANSITIONAL, and LEGACY.
14
+ 4. Record target architectural profile in artifacts/VUE_TARGET.md for PlanKit commands to reference.
15
+
16
+ ## Guardrail
17
+ Require explicit target decisions before broad refactoring. Never guess without evidence.
18
+
19
+ ## Options
20
+ - --interactive guide through target architecture decisions
21
+ - --save persist target architecture to artifacts
22
+
23
+ # vue-target-architecture
24
+
25
+ Execute the workflow with the target arguments from the request.