prizmkit 1.0.118 → 1.0.119

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "frameworkVersion": "1.0.118",
3
- "bundledAt": "2026-03-26T15:57:17.490Z",
4
- "bundledFrom": "f6b1f2d"
2
+ "frameworkVersion": "1.0.119",
3
+ "bundledAt": "2026-03-27T15:01:36.094Z",
4
+ "bundledFrom": "3b42eb5"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.118",
2
+ "version": "1.0.119",
3
3
  "skills": {
4
4
  "prizm-kit": {
5
5
  "description": "Full-lifecycle dev toolkit. Covers spec-driven development, Prizm context docs, code quality, debugging, deployment, and knowledge management.",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: "prizmkit-retrospective"
3
- description: "Incremental .prizm-docs/ maintainer. Performs two jobs: (1) structural sync — update .prizm-docs/ KEY_FILES/INTERFACES/DEPENDENCIES, (2) architecture knowledge — inject TRAPS/RULES/DECISIONS into .prizm-docs/. All project knowledge lives in .prizm-docs/ . Run after code review passes and before committing. Trigger on: 'retrospective', 'retro', 'update docs', 'sync docs', 'wrap up', 'done with feature', 'feature complete'. (project)"
3
+ description: "Incremental .prizm-docs/ maintainer + deploy guide generator. Performs three jobs: (1) structural sync — update .prizm-docs/ KEY_FILES/INTERFACES/DEPENDENCIES, (2) architecture knowledge — inject TRAPS/RULES/DECISIONS into .prizm-docs/, (3) deploy guide — detect new frameworks/tools and record setup instructions to deploy_guide.md. All project knowledge lives in .prizm-docs/ . Run after code review passes and before committing. Trigger on: 'retrospective', 'retro', 'update docs', 'sync docs', 'wrap up', 'done with feature', 'feature complete'. (project)"
4
4
  ---
5
5
 
6
6
  # PrizmKit Retrospective
@@ -11,10 +11,11 @@ All project knowledge is maintained in a single store:
11
11
  |-------|----------|---------|---------|
12
12
  | **Architecture Index** | `.prizm-docs/` | MODULE, FILES, INTERFACES, DEPENDENCIES, TRAPS, RULES, DECISIONS | AI quickly locates code structure, interfaces, known pitfalls, and key design decisions |
13
13
 
14
- **This skill performs two jobs in one pass:**
14
+ **This skill performs three jobs in one pass:**
15
15
 
16
16
  1. **Structural Sync** — reflect what changed in code → `.prizm-docs/` (KEY_FILES, INTERFACES, DEPENDENCIES, file counts)
17
17
  2. **Architecture Knowledge** — inject TRAPS, RULES, and DECISIONS → `.prizm-docs/`. All knowledge is consolidated in `.prizm-docs/`.
18
+ 3. **Deploy Guide** — detect new frameworks/tools and record setup instructions → `deploy_guide.md`
18
19
 
19
20
  No other skill writes to `.prizm-docs/`. This is the sole writer during ongoing development. For initial doc setup, validation, or migration, use `/prizmkit-prizm-docs` instead.
20
21
 
@@ -150,6 +151,132 @@ When writing TRAPS:
150
151
 
151
152
  ---
152
153
 
154
+ ## Job 3: Deploy Guide Maintenance (`deploy_guide.md`)
155
+
156
+ When new frameworks or tools that require **manual setup steps** are introduced, record them in `deploy_guide.md` at the project root. This ensures installation, configuration, and deployment knowledge is systematically documented for the team.
157
+
158
+ ### When to Run Job 3
159
+
160
+ Run this job **only when new frameworks/tools are detected** in the current changeset. Skip entirely if no new framework was introduced.
161
+
162
+ ### Step 3-1: Detect New Frameworks
163
+
164
+ From the `git diff --cached` (or `git diff`) output already collected in Job 1, check for newly added entries in dependency manifest files:
165
+
166
+ ```bash
167
+ # Check for newly added dependencies in common manifest files
168
+ git diff --cached -U0 -- package.json requirements*.txt Pipfile pyproject.toml go.mod Cargo.toml pom.xml build.gradle Gemfile composer.json docker-compose*.yml Dockerfile .tool-versions 2>/dev/null | grep '^\+' | grep -v '^\+\+\+' | head -30
169
+ ```
170
+
171
+ **Trigger conditions** (ANY match → proceed to Step 3-2):
172
+ - New dependency added to `package.json` (dependencies/devDependencies)
173
+ - New package in `requirements.txt`, `pyproject.toml`, `Pipfile`, `go.mod`, `Cargo.toml`, `pom.xml`, `build.gradle`, `Gemfile`, `composer.json`
174
+ - New service in `docker-compose*.yml` (e.g., database, cache, message queue)
175
+ - New `Dockerfile` created or base image changed
176
+ - New system tool in `.tool-versions`, `.nvmrc`, `.python-version`
177
+ - New CI/CD configuration file added (`.github/workflows/*.yml`, `.gitlab-ci.yml`, `Jenkinsfile`)
178
+
179
+ **Filter out** (do NOT record):
180
+ - Patch version bumps of existing dependencies (e.g., `1.2.3` → `1.2.4`)
181
+ - Dev-only tools that need no manual setup (linters, formatters, type checkers)
182
+ - Transitive dependencies (lock file changes without manifest changes)
183
+
184
+ ### Step 3-2: Record Framework Info
185
+
186
+ For each detected new framework/tool, gather the following information from the code changes and dependency files:
187
+
188
+ | Field | Description | Source |
189
+ |-------|-------------|--------|
190
+ | **Name** | Framework/tool name | Package name from manifest |
191
+ | **Version** | Installed version or constraint | Version spec from manifest |
192
+ | **Purpose** | Why it was introduced | Infer from code usage, feature context, or commit message |
193
+ | **Install Command** | How to install locally | Standard install command for the ecosystem |
194
+ | **Key Config** | Config files or env vars needed | Scan for new config files, `.env` entries, or env references in code |
195
+ | **Notes** | Setup gotchas, required services, manual steps | Infer from Dockerfile, docker-compose, README references, or TRAPS |
196
+
197
+ ### Step 3-3: Update `deploy_guide.md`
198
+
199
+ Write or append to `deploy_guide.md` at the project root using this template:
200
+
201
+ ```markdown
202
+ # Deploy Guide
203
+
204
+ > Auto-maintained by PrizmKit retrospective. Manual edits are preserved.
205
+ > Last updated: YYYY-MM-DD
206
+
207
+ ## Frameworks & Tools
208
+
209
+ ### <Framework Name>
210
+
211
+ - **Version**: <version constraint>
212
+ - **Purpose**: <why this framework is used>
213
+ - **Install**:
214
+ ```bash
215
+ <install command>
216
+ ```
217
+ - **Key Config**:
218
+ - `<config file or env var>`: <description>
219
+ - **Notes**:
220
+ - <any setup gotchas, required external services, manual steps>
221
+ ```
222
+
223
+ **Update rules**:
224
+ - If `deploy_guide.md` does not exist → create it with the header and first framework entry
225
+ - If `deploy_guide.md` exists → check if the framework already has a section (match by `### <Name>` heading). If yes, update version and any changed config. If no, append a new section.
226
+ - Preserve any manually added content (sections not matching the template are left untouched)
227
+ - Keep entries sorted alphabetically by framework name within `## Frameworks & Tools`
228
+
229
+ **Stage the file**:
230
+ ```bash
231
+ git add deploy_guide.md
232
+ ```
233
+
234
+ ### Example
235
+
236
+ After adding PostgreSQL via docker-compose and Prisma ORM to a Node.js project:
237
+
238
+ ```markdown
239
+ # Deploy Guide
240
+
241
+ > Auto-maintained by PrizmKit retrospective. Manual edits are preserved.
242
+ > Last updated: 2026-03-27
243
+
244
+ ## Frameworks & Tools
245
+
246
+ ### PostgreSQL
247
+
248
+ - **Version**: 16
249
+ - **Purpose**: Primary relational database for user data, orders, and product catalog
250
+ - **Install**:
251
+ ```bash
252
+ docker compose up -d postgres
253
+ ```
254
+ - **Key Config**:
255
+ - `DATABASE_URL` (env): PostgreSQL connection string, format `postgresql://user:pass@host:5432/dbname`
256
+ - `docker-compose.yml`: Service `postgres` with volume `pgdata`
257
+ - **Notes**:
258
+ - Requires Docker running locally
259
+ - Run `npx prisma migrate deploy` after first start to initialize schema
260
+
261
+ ### Prisma
262
+
263
+ - **Version**: ^5.20.0
264
+ - **Purpose**: ORM for type-safe database access and schema migrations
265
+ - **Install**:
266
+ ```bash
267
+ npm install prisma @prisma/client
268
+ npx prisma generate
269
+ ```
270
+ - **Key Config**:
271
+ - `prisma/schema.prisma`: Database schema definition
272
+ - `DATABASE_URL` (env): Shared with PostgreSQL connection
273
+ - **Notes**:
274
+ - After schema changes: `npx prisma migrate dev --name <description>`
275
+ - Generate client after pull: `npx prisma generate`
276
+ ```
277
+
278
+ ---
279
+
153
280
  ## Final: Changelog + Stage
154
281
 
155
282
  **3a.** Append to `.prizm-docs/changelog.prizm`:
@@ -160,6 +287,8 @@ When writing TRAPS:
160
287
  **3b.** Stage all doc changes:
161
288
  ```bash
162
289
  git add .prizm-docs/
290
+ # Stage deploy guide if it was created/updated
291
+ git add deploy_guide.md 2>/dev/null || true
163
292
  ```
164
293
 
165
294
  **3c.** Handoff:
@@ -189,4 +318,5 @@ The pipeline enforces a **docs pass condition**: `.prizm-docs/` must show change
189
318
 
190
319
  - `.prizm-docs/*.prizm` — Structurally synced + TRAPS/RULES/DECISIONS enriched
191
320
  - `.prizm-docs/changelog.prizm` — Appended entries
192
- - All `.prizm-docs/` changes staged via `git add .prizm-docs/`
321
+ - `deploy_guide.md` New framework/tool setup instructions (only when new frameworks detected)
322
+ - All `.prizm-docs/` changes and `deploy_guide.md` staged via `git add`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prizmkit",
3
- "version": "1.0.118",
3
+ "version": "1.0.119",
4
4
  "description": "Create a new PrizmKit-powered project with clean initialization — no framework dev files, just what you need.",
5
5
  "type": "module",
6
6
  "bin": {