prizmkit 1.1.78 → 1.1.80

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 (115) hide show
  1. package/bundled/VERSION.json +3 -3
  2. package/bundled/dev-pipeline/scripts/init-pipeline.py +2 -0
  3. package/bundled/dev-pipeline-windows/scripts/init-pipeline.py +2 -0
  4. package/bundled/skills/_metadata.json +1 -1
  5. package/bundled/skills/app-planner/SKILL.md +10 -347
  6. package/bundled/skills/app-planner/references/infrastructure-convention-discovery.md +108 -0
  7. package/bundled/skills/app-planner/references/project-conventions-discovery.md +59 -0
  8. package/bundled/skills/app-planner/references/project-state-detection.md +88 -0
  9. package/bundled/skills/app-planner/references/rules-configuration.md +46 -0
  10. package/bundled/skills/bug-fix-workflow/SKILL.md +1 -30
  11. package/bundled/skills/bug-fix-workflow/references/bug-diagnosis.md +66 -0
  12. package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +3 -40
  13. package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +49 -0
  14. package/bundled/skills/feature-pipeline-launcher/SKILL.md +3 -46
  15. package/bundled/skills/feature-pipeline-launcher/references/configuration.md +55 -0
  16. package/bundled/skills/feature-workflow/SKILL.md +5 -121
  17. package/bundled/skills/feature-workflow/references/brainstorm-guide.md +137 -0
  18. package/bundled/skills/prizm-kit/SKILL.md +11 -0
  19. package/bundled/skills/prizmkit-code-review/SKILL.md +66 -135
  20. package/bundled/skills/prizmkit-code-review/references/dev-agent-prompt.md +30 -0
  21. package/bundled/skills/prizmkit-code-review/references/review-report-template.md +31 -0
  22. package/bundled/skills/prizmkit-code-review/references/reviewer-agent-prompt.md +62 -0
  23. package/bundled/skills/prizmkit-code-review/scripts/check_loop.py +186 -0
  24. package/bundled/skills/prizmkit-committer/SKILL.md +6 -0
  25. package/bundled/skills/prizmkit-deploy/SKILL.md +48 -72
  26. package/bundled/skills/prizmkit-deploy/references/data-safety-examples.md +120 -0
  27. package/bundled/skills/prizmkit-deploy/references/ssh-bootstrap-flow.md +49 -0
  28. package/bundled/skills/prizmkit-deploy/references/ssh-execution-flow.md +41 -0
  29. package/bundled/skills/prizmkit-deploy/references/ssh-takeover.md +20 -0
  30. package/bundled/skills/prizmkit-implement/SKILL.md +6 -0
  31. package/bundled/skills/prizmkit-plan/SKILL.md +1 -83
  32. package/bundled/skills/prizmkit-plan/references/examples.md +85 -0
  33. package/bundled/skills/prizmkit-prizm-docs/SKILL.md +13 -0
  34. package/bundled/skills/prizmkit-test/SKILL.md +3 -151
  35. package/bundled/skills/prizmkit-test/references/examples.md +70 -0
  36. package/bundled/skills/prizmkit-test/references/test-generation-steps.md +49 -0
  37. package/bundled/skills/prizmkit-test/references/test-report-template.md +42 -0
  38. package/bundled/skills/recovery-workflow/SKILL.md +1 -30
  39. package/bundled/skills/recovery-workflow/references/detection.md +58 -0
  40. package/bundled/skills/refactor-pipeline-launcher/SKILL.md +3 -45
  41. package/bundled/skills/refactor-pipeline-launcher/references/configuration.md +54 -0
  42. package/bundled/skills/refactor-planner/SKILL.md +9 -149
  43. package/bundled/skills/refactor-planner/references/fast-path.md +59 -0
  44. package/bundled/skills/refactor-planner/references/planning-phases.md +135 -0
  45. package/bundled/skills/refactor-workflow/SKILL.md +4 -103
  46. package/bundled/skills/refactor-workflow/references/brainstorm-guide.md +116 -0
  47. package/bundled/skills-windows/app-planner/SKILL.md +10 -349
  48. package/bundled/skills-windows/app-planner/references/infrastructure-convention-discovery.md +108 -0
  49. package/bundled/skills-windows/app-planner/references/project-conventions-discovery.md +59 -0
  50. package/bundled/skills-windows/app-planner/references/project-state-detection.md +90 -0
  51. package/bundled/skills-windows/app-planner/references/rules-configuration.md +46 -0
  52. package/bundled/skills-windows/bug-fix-workflow/SKILL.md +1 -30
  53. package/bundled/skills-windows/bug-fix-workflow/references/bug-diagnosis.md +66 -0
  54. package/bundled/skills-windows/bugfix-pipeline-launcher/SKILL.md +2 -29
  55. package/bundled/skills-windows/bugfix-pipeline-launcher/references/configuration.md +49 -0
  56. package/bundled/skills-windows/feature-pipeline-launcher/SKILL.md +2 -35
  57. package/bundled/skills-windows/feature-pipeline-launcher/references/configuration.md +55 -0
  58. package/bundled/skills-windows/feature-workflow/SKILL.md +5 -121
  59. package/bundled/skills-windows/feature-workflow/references/brainstorm-guide.md +137 -0
  60. package/bundled/skills-windows/prizm-kit/SKILL.md +92 -0
  61. package/bundled/skills-windows/prizmkit-code-review/SKILL.md +156 -0
  62. package/bundled/skills-windows/prizmkit-code-review/references/dev-agent-prompt.md +30 -0
  63. package/bundled/skills-windows/prizmkit-code-review/references/review-report-template.md +31 -0
  64. package/bundled/skills-windows/prizmkit-code-review/references/reviewer-agent-prompt.md +62 -0
  65. package/bundled/skills-windows/prizmkit-code-review/scripts/check_loop.py +186 -0
  66. package/bundled/skills-windows/prizmkit-committer/SKILL.md +87 -0
  67. package/bundled/skills-windows/prizmkit-deploy/SKILL.md +444 -0
  68. package/bundled/skills-windows/prizmkit-deploy/references/ci-cd-workflows.md +115 -0
  69. package/bundled/skills-windows/prizmkit-deploy/references/cloud-platform-deploy.md +93 -0
  70. package/bundled/skills-windows/prizmkit-deploy/references/data-safety-examples.md +120 -0
  71. package/bundled/skills-windows/prizmkit-deploy/references/database-setup.md +46 -0
  72. package/bundled/skills-windows/prizmkit-deploy/references/deploy-config-schema.md +148 -0
  73. package/bundled/skills-windows/prizmkit-deploy/references/deploy-history-schema.md +62 -0
  74. package/bundled/skills-windows/prizmkit-deploy/references/deployment-modes.md +50 -0
  75. package/bundled/skills-windows/prizmkit-deploy/references/direct-upload.md +26 -0
  76. package/bundled/skills-windows/prizmkit-deploy/references/dns-setup.md +42 -0
  77. package/bundled/skills-windows/prizmkit-deploy/references/docker-deploy.md +31 -0
  78. package/bundled/skills-windows/prizmkit-deploy/references/firewall-setup.md +37 -0
  79. package/bundled/skills-windows/prizmkit-deploy/references/live-validation-notes.md +21 -0
  80. package/bundled/skills-windows/prizmkit-deploy/references/nginx-blue-green.md +59 -0
  81. package/bundled/skills-windows/prizmkit-deploy/references/ssh-bootstrap-flow.md +49 -0
  82. package/bundled/skills-windows/prizmkit-deploy/references/ssh-execution-flow.md +41 -0
  83. package/bundled/skills-windows/prizmkit-deploy/references/ssh-takeover.md +20 -0
  84. package/bundled/skills-windows/prizmkit-deploy/references/ssl-setup.md +56 -0
  85. package/bundled/skills-windows/prizmkit-implement/SKILL.md +71 -0
  86. package/bundled/skills-windows/prizmkit-plan/SKILL.md +102 -0
  87. package/bundled/skills-windows/prizmkit-plan/assets/plan-template.md +115 -0
  88. package/bundled/skills-windows/prizmkit-plan/assets/spec-template.md +73 -0
  89. package/bundled/skills-windows/prizmkit-plan/references/clarify-guide.md +67 -0
  90. package/bundled/skills-windows/prizmkit-plan/references/examples.md +85 -0
  91. package/bundled/skills-windows/prizmkit-plan/references/verification-checklist.md +60 -0
  92. package/bundled/skills-windows/prizmkit-prizm-docs/SKILL.md +128 -0
  93. package/bundled/skills-windows/prizmkit-prizm-docs/assets/prizm-docs-format.md +613 -0
  94. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-init.md +45 -0
  95. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-rebuild.md +15 -0
  96. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-status.md +14 -0
  97. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-update.md +19 -0
  98. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-validate.md +17 -0
  99. package/bundled/skills-windows/prizmkit-retrospective/SKILL.md +87 -0
  100. package/bundled/skills-windows/prizmkit-retrospective/references/knowledge-injection-steps.md +50 -0
  101. package/bundled/skills-windows/prizmkit-retrospective/references/structural-sync-steps.md +43 -0
  102. package/bundled/skills-windows/prizmkit-test/SKILL.md +133 -0
  103. package/bundled/skills-windows/prizmkit-test/references/examples.md +70 -0
  104. package/bundled/skills-windows/prizmkit-test/references/test-generation-steps.md +49 -0
  105. package/bundled/skills-windows/prizmkit-test/references/test-report-template.md +42 -0
  106. package/bundled/skills-windows/recovery-workflow/SKILL.md +1 -52
  107. package/bundled/skills-windows/recovery-workflow/references/detection.md +58 -0
  108. package/bundled/skills-windows/refactor-pipeline-launcher/SKILL.md +2 -32
  109. package/bundled/skills-windows/refactor-pipeline-launcher/references/configuration.md +54 -0
  110. package/bundled/skills-windows/refactor-planner/SKILL.md +9 -149
  111. package/bundled/skills-windows/refactor-planner/references/fast-path.md +59 -0
  112. package/bundled/skills-windows/refactor-planner/references/planning-phases.md +135 -0
  113. package/bundled/skills-windows/refactor-workflow/SKILL.md +4 -103
  114. package/bundled/skills-windows/refactor-workflow/references/brainstorm-guide.md +116 -0
  115. package/package.json +1 -1
@@ -0,0 +1,85 @@
1
+ # Plan Examples
2
+
3
+ ## Example 1: New Feature
4
+
5
+ **Input:** "I want users to upload avatars"
6
+
7
+ **Phase 0 output:** `.prizmkit/specs/003-user-avatar/spec.md`
8
+ ```markdown
9
+ # User Avatar Upload
10
+ ## Overview
11
+ Allow registered users to upload and manage profile pictures.
12
+ ## Goals
13
+ ### G-1: Upload Avatar
14
+ As a registered user, I want to upload a profile picture,
15
+ so that other users can visually identify me.
16
+ **Acceptance Criteria:**
17
+ - Given I am on my profile page
18
+ - When I select an image file and click upload
19
+ - Then my avatar is updated and visible across the platform
20
+ ## Scope
21
+ - **In scope:** Upload, display, remove avatar; image format validation
22
+ - **Out of scope:** Image cropping/editing, avatar history
23
+ ```
24
+
25
+ **Phase 1-2 output:** `plan.md` excerpt:
26
+ ```markdown
27
+ ## Tasks
28
+ ### Phase: Foundation (T-010~T-019)
29
+ - [ ] [T-010] [G-1] Add avatar_url field to User model — file: src/models/user.ts
30
+ - [ ] [T-011] [G-1] Create S3 upload utility — file: src/lib/s3.ts
31
+ ### Phase: Core [P] (T-100~T-109)
32
+ - [ ] [T-100] [P] [G-1] POST /api/avatar upload endpoint — file: src/routes/avatar.ts
33
+ ```
34
+
35
+ ## Example 2: Refactoring
36
+
37
+ **Input:** "Extract shared auth middleware from the API routes"
38
+
39
+ **Phase 0 output:** `.prizmkit/specs/004-extract-auth-middleware/spec.md`
40
+ ```markdown
41
+ # Extract Auth Middleware
42
+ ## Overview
43
+ Consolidate duplicated authentication logic scattered across route files into a single shared middleware.
44
+ ## Goals
45
+ ### G-1: Extract Shared Authentication Logic
46
+ Consolidate duplicated auth checks from 5 route files into a single middleware module.
47
+ **Acceptance Criteria:**
48
+ - All existing auth-related tests pass without modification
49
+ - Auth logic exists in exactly one file (src/middleware/auth.ts)
50
+ - No route file contains inline token verification
51
+ ## Scope
52
+ - **In scope:** src/routes/users.ts, orders.ts, admin.ts, payments.ts, profile.ts
53
+ - **Out of scope:** Authorization (role-based access), rate limiting
54
+ ## Behavior Preservation
55
+ - All 23 existing API tests must pass unchanged
56
+ - Response formats and HTTP status codes must not change
57
+ - Error message strings must remain identical
58
+ ```
59
+
60
+ ## Example 3: Bug Fix
61
+
62
+ **Input:** "Login page crashes when API returns 401"
63
+
64
+ **Phase 0 output:** `.prizmkit/specs/005-login-401-crash/spec.md`
65
+ ```markdown
66
+ # Fix: Login Crash on 401 Response
67
+ ## Overview
68
+ Login page throws unhandled exception when auth API returns 401, causing a white screen.
69
+ ## Goals
70
+ ### G-1: Handle 401 Response Gracefully
71
+ When the auth API returns 401, display an error message instead of crashing.
72
+ **Acceptance Criteria:**
73
+ - Given user submits invalid credentials, When API returns 401, Then error message "Invalid credentials" is displayed
74
+ - Given user submits invalid credentials, When API returns 401, Then no unhandled exception is thrown
75
+ ## Root Cause
76
+ - Error classification: Runtime
77
+ - Root cause: `AuthService.handleLogin()` at src/services/auth.ts:42 does not handle null token
78
+ - Affected files: src/services/auth.ts (L42), src/pages/login.tsx (L28)
79
+ ## Scope
80
+ - **In scope:** Null handling in auth service, error display in login page
81
+ - **Out of scope:** Other HTTP error codes (403, 500), auth flow redesign
82
+ ## Behavior Preservation
83
+ - All existing login success tests must pass unchanged
84
+ - Auth token flow for valid credentials must not change
85
+ ```
@@ -0,0 +1,60 @@
1
+ # Verification Checklist — Spec & Plan Consistency
2
+
3
+ Run this checklist after generating the Tasks section in plan.md. Fix any issues inline before outputting the final plan.
4
+
5
+ ---
6
+
7
+ ## Coverage
8
+
9
+ - [ ] Every goal (G-N) in spec.md has at least one task in plan.md
10
+ - [ ] Every task has a target file path (`— file: path/to/file`)
11
+ - [ ] Risk assessment contains at least one risk with a mitigation plan
12
+ - [ ] If spec includes `## Behavior Preservation` → at least one verification task exists
13
+ - [ ] If spec includes `## Root Cause` → at least one reproduction test task exists
14
+
15
+ ## Duplication Detection
16
+
17
+ - [ ] No near-duplicate requirements exist across spec.md sections (same intent, different wording)
18
+ - [ ] If duplicates found, consolidate to the clearer phrasing and remove the other
19
+
20
+ ## Orphan Detection
21
+
22
+ - [ ] No task exists without a mapped goal (orphan task)
23
+ - [ ] No plan component exists without a corresponding spec requirement
24
+
25
+ ## Ambiguity Scan
26
+
27
+ - [ ] No unresolved `[NEEDS CLARIFICATION]`, TBD, TODO, or `???` markers remain
28
+ - [ ] No vague criteria without measurable thresholds (e.g., "fast", "secure", "scalable", "intuitive" — replace with concrete numbers or conditions)
29
+
30
+ ## Terminology Consistency
31
+
32
+ - [ ] Same concept uses the same name in both spec.md and plan.md (no terminology drift)
33
+ - [ ] Data entities referenced in plan.md exist in spec.md (and vice versa)
34
+
35
+ ## Task Ordering
36
+
37
+ - [ ] No task references the output of a later task without an explicit dependency note
38
+ - [ ] Foundation tasks precede Core tasks that depend on them
39
+ - [ ] Checkpoint tasks exist between phases
40
+
41
+ ## Rules Alignment
42
+
43
+ - [ ] No spec or plan element conflicts with `.prizmkit/prizm-docs/root.prizm` RULES MUST/NEVER directives
44
+ - [ ] Tech stack choices in plan.md match `.prizmkit/prizm-docs/root.prizm` TECH_STACK (if defined)
45
+
46
+ ## Database Design (skip if no Data Model section)
47
+
48
+ - [ ] New entity/field naming follows conventions documented in "Existing Schema Audit"
49
+ - [ ] All fields have explicit nullability (NOT NULL or nullable)
50
+ - [ ] Foreign key constraints and indexes are defined
51
+ - [ ] ID strategy and timestamp patterns match existing tables
52
+ - [ ] No unresolved questions remain in Data Model "Unresolved Questions" section
53
+ - [ ] Style Conformance Checklist in plan.md is fully checked
54
+
55
+ ## Action on Failure
56
+
57
+ If any check fails:
58
+ 1. Fix the issue directly in spec.md or plan.md
59
+ 2. Re-run the failed checks only
60
+ 3. Do not proceed to output until all checks pass
@@ -0,0 +1,128 @@
1
+ ---
2
+ name: "prizmkit-prizm-docs"
3
+ description: "Project documentation specification and standard for AI-optimized progressive context loading. Defines the .prizmkit/prizm-docs/ 3-level hierarchy (L0/L1/L2), format rules, size limits, and loading protocol. Use this skill to: bootstrap docs for new projects (init), check doc freshness (status), regenerate stale modules (rebuild), validate format compliance (validate), or migrate existing docs (migrate). For incremental doc updates after code changes, use /prizmkit-retrospective instead — it is the sole writer of .prizmkit/prizm-docs/ during development. Trigger on: 'initialize docs', 'check doc status', 'rebuild docs', 'validate docs', 'migrate docs', 'docs are stale', 'prizm docs'. (project)"
4
+ ---
5
+
6
+ # Prizm Docs - AI Documentation Framework
7
+
8
+ Full specification: ${SKILL_DIR}/assets/prizm-docs-format.md
9
+
10
+ ## Intent Routing
11
+
12
+ This skill handles 6 operations. When invoked, determine the user's intent and execute the matching operation:
13
+
14
+ | User Intent | Operation | Trigger Phrases |
15
+ |---|---|---|
16
+ | Bootstrap new project docs | **Init** | "initialize docs", "set up prizm docs", "bootstrap documentation" |
17
+ | Sync docs after code changes | **Update** | "update docs", "sync documentation", "docs are stale" |
18
+ | Check doc freshness | **Status** | "check docs", "are docs up to date", "doc status" |
19
+ | Regenerate module docs | **Rebuild** | "rebuild docs for X", "regenerate module docs" |
20
+ | Check format compliance | **Validate** | "validate docs", "check doc format", "docs valid?" |
21
+ | Convert existing docs | **Migrate** | "migrate docs", "convert docs to prizm format" |
22
+
23
+ ---
24
+
25
+ ## Role Clarification
26
+
27
+ **This skill vs `/prizmkit-retrospective`**:
28
+
29
+ | Aspect | `/prizmkit-prizm-docs` | `/prizmkit-retrospective` |
30
+ |--------|----------------------|--------------------------|
31
+ | **Role** | Documentation SPECIFICATION + BOOTSTRAP | Incremental WRITER during development |
32
+ | **When** | Project setup, health checks, migrations | After feature completion, before commit |
33
+ | **Writes** | Initial .prizmkit/prizm-docs/ structure (init, rebuild, migrate) | Incremental updates to existing .prizmkit/prizm-docs/ |
34
+ | **Reads** | Source code structure (for init/rebuild) | git diff + code changes (for sync) |
35
+ | **Knowledge** | Defines format rules, size limits, loading protocol | Extracts TRAPS/RULES/DECISIONS into `.prizmkit/prizm-docs/` |
36
+
37
+ **Key principle**: `/prizmkit-prizm-docs` defines WHAT the docs should look like and bootstraps them. `/prizmkit-retrospective` is the SOLE WRITER that keeps docs in sync with code during ongoing development.
38
+
39
+ ### When to Use
40
+ - First-time project documentation setup (init)
41
+ - Checking if docs are up to date (status)
42
+ - Rebuilding stale module docs after major changes (rebuild)
43
+ - Validating doc format compliance (validate)
44
+ - Migrating existing docs to Prizm format (migrate)
45
+ - User says "initialize docs", "check doc status", "rebuild docs", "validate docs"
46
+
47
+ ### When NOT to Use
48
+ - Incremental doc updates after code changes → use /prizmkit-retrospective (the sole writer during development)
49
+ - Project has no .prizmkit/prizm-docs/ and user doesn't want to initialize
50
+ - User wants to edit code → use /prizmkit-plan and /prizmkit-implement
51
+
52
+ ## Operation: Init
53
+
54
+ Bootstrap .prizmkit/prizm-docs/ for the current project.
55
+ PRECONDITION: No .prizmkit/prizm-docs/ directory exists, or user confirms overwrite.
56
+ → Read `${SKILL_DIR}/references/op-init.md` for detailed steps.
57
+
58
+ ## Operation: Update
59
+
60
+ Update .prizmkit/prizm-docs/ to reflect recent code changes.
61
+ PRECONDITION: .prizmkit/prizm-docs/ exists with root.prizm.
62
+ → Read `${SKILL_DIR}/references/op-update.md` for detailed steps.
63
+
64
+ ## Operation: Status
65
+
66
+ Check freshness of all .prizm docs.
67
+ PRECONDITION: .prizmkit/prizm-docs/ exists with root.prizm.
68
+ → Read `${SKILL_DIR}/references/op-status.md` for detailed steps.
69
+
70
+ ## Operation: Rebuild
71
+
72
+ Regenerate docs for a specific module from scratch. Requires a module path argument.
73
+ PRECONDITION: .prizmkit/prizm-docs/ exists. Module path is valid.
74
+ → Read `${SKILL_DIR}/references/op-rebuild.md` for detailed steps.
75
+
76
+ ## Operation: Validate
77
+
78
+ Check format compliance and consistency of all .prizm docs.
79
+ PRECONDITION: .prizmkit/prizm-docs/ exists.
80
+ → Read `${SKILL_DIR}/references/op-validate.md` for detailed steps.
81
+
82
+ ## Operation: Migrate
83
+
84
+ Convert existing documentation to .prizmkit/prizm-docs/ format.
85
+ PRECONDITION: Existing docs/ or docs/AI_CONTEXT/ directory. No .prizmkit/prizm-docs/ (or user confirms overwrite).
86
+
87
+ STEPS:
88
+ 1. DISCOVER existing docs: Scan docs/, docs/AI_CONTEXT/, README.md, ARCHITECTURE.md, and any structured documentation files.
89
+ 2. EXTRACT information from existing docs: project metadata, module descriptions, architecture patterns, rules, decisions, dependencies.
90
+ 3. MAP existing doc content to Prizm levels: project-wide info -> L0 root.prizm, module-level info -> L1 docs (MODULE, FILES, RESPONSIBILITY, KEY_FILES, DEPENDENCIES), detailed module info -> L2 docs (INTERFACES, DATA_FLOW, TRAPS, DECISIONS, domain-specific sections).
91
+ 4. CONVERT prose content to KEY: value format. Strip markdown formatting, tables, diagrams. Condense explanatory text into single-line values.
92
+ 5. GENERATE .prizmkit/prizm-docs/ structure following standard init procedure but seeded with extracted information instead of scanning source code alone.
93
+ 6. VALIDATE migrated docs against Prizm format rules and size limits.
94
+ 7. REPORT migration summary: files processed, content mapped, information that could not be automatically converted (requires manual review).
95
+
96
+ OUTPUT: Migration report with list of source docs processed, generated .prizm files, and any manual review items.
97
+
98
+ ## Error Handling
99
+
100
+ - **root.prizm is corrupted or invalid format**: Back up the existing file, then run Rebuild on all modules to regenerate from source code.
101
+ - **Broken pointers (-> references to non-existent files)**: Create the missing .prizm file if the source module exists; remove the pointer if the source module was deleted.
102
+ - **Size limit exceeded**: For L0, consolidate MODULE_INDEX entries. For L1, move implementation details to L2. For L2, trim non-essential derived detail and keep only durable project knowledge.
103
+ - **No git history available**: Fall back to filesystem timestamps for freshness checks; warn user that accuracy may be reduced.
104
+
105
+ ### Key Protocols (reference)
106
+ For detailed protocol specifications, see prizm-docs-format.md:
107
+ - Progressive Loading: Section 6.1
108
+ - Auto-Update: Section 7.1
109
+ - RULES hierarchy: Section 3.1
110
+
111
+ ## Examples
112
+
113
+ **Init output (Node.js project):**
114
+ ```
115
+ Generated .prizmkit/prizm-docs/:
116
+ root.prizm (L0) — 3 modules in MODULE_INDEX
117
+ routes.prizm (L1) — 12 files, 4 interfaces
118
+ models.prizm (L1) — 8 files, 3 interfaces
119
+ services.prizm (L1) — 15 files, 6 interfaces
120
+ ```
121
+
122
+ **Update after adding new API endpoint:**
123
+ ```
124
+ Changed: src/routes/avatar.ts (A), src/models/user.ts (M)
125
+ Updated: .prizmkit/prizm-docs/routes.prizm — added avatar.ts to KEY_FILES, new POST /api/avatar interface
126
+ Updated: .prizmkit/prizm-docs/models.prizm — updated User interface with avatar_url field
127
+ Skipped: .prizmkit/prizm-docs/services.prizm — no changes in services module
128
+ ```