@punks/cli 4.0.1 → 4.0.3

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 (172) hide show
  1. package/dist/BASELINE_CHANGELOG.md +34 -0
  2. package/dist/CHANGELOG.md +24 -0
  3. package/dist/baseline/scaffold-baseline/baseline.json +5 -5
  4. package/dist/baseline/scaffold-baseline/data/catalog/lint-assets.json +10 -4
  5. package/dist/baseline/scaffold-baseline/data/catalog/packs.json +2 -3
  6. package/dist/baseline/scaffold-baseline/data/catalog/skills.json +8 -8
  7. package/dist/baseline/scaffold-baseline/data/hooks/format-edited-file.mjs +602 -101
  8. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.d.ts +11 -0
  9. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.mjs +103 -0
  10. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.test.ts +144 -0
  11. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/adapters/claude.mjs +1 -0
  12. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/adapters/codex.mjs +1 -0
  13. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/adapters/cursor.mjs +1 -0
  14. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/adapters/opencode.mjs +1 -0
  15. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/contract.ts +24 -33
  16. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/core.mjs +4 -0
  17. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/core.test.ts +61 -0
  18. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/lint-feedback.test.ts +123 -0
  19. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/test-fixtures/claude/actions.json +1 -0
  20. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/test-fixtures/codex/actions.json +2 -1
  21. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/test-fixtures/cursor/projection.json +1 -0
  22. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/test-fixtures/opencode/projection.json +1 -0
  23. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/SKILL.md +2 -2
  24. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/SKILL.md +32 -32
  25. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +7 -7
  26. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/readiness.md +14 -13
  27. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +26 -19
  28. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/SKILL.md +2 -2
  29. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/scripts/autoreview +3 -0
  30. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/brainstorm/SKILL.md +12 -0
  31. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/SKILL.md +2 -1
  32. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/EXAMPLES.md +9 -9
  33. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/REFERENCE.md +43 -55
  34. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/SKILL.md +68 -63
  35. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +26 -29
  36. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +5 -5
  37. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +1 -1
  38. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +2 -2
  39. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +1 -1
  40. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +2 -2
  41. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/business-projection.md +19 -24
  42. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/delivery-status.md +17 -13
  43. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/fog-intake.md +45 -48
  44. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/functional-projection.md +16 -21
  45. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/normalization.md +14 -14
  46. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/project-context.md +32 -27
  47. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/github.md +105 -150
  48. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/linear.md +111 -181
  49. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/technical-projection.md +51 -47
  50. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +49 -35
  51. package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +5 -12
  52. package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/SKILL.md +7 -8
  53. package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/SKILL.md +97 -0
  54. package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/agents/openai.yaml +4 -0
  55. package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/references/infrastructure-deployment.md +29 -0
  56. package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/references/security-by-design.md +22 -0
  57. package/dist/baseline/scaffold-baseline/skills/agnostic/security/security-best-practices/references/javascript-typescript-vue-web-frontend-security.md +1 -1
  58. package/dist/baseline/scaffold-baseline/skills/frameworks/expo/eas-update-insights/references/update-insights-schema.md +2 -6
  59. package/dist/baseline/scaffold-baseline/skills/frameworks/expo/expo-skill-eval/SKILL.md +6 -7
  60. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/provider-upgrade/SKILL.md +10 -7
  61. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +19 -53
  62. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-component/SKILL.md +36 -88
  63. package/dist/baseline/scaffold-baseline/skills/frameworks/tanstack-query/tanstack-query/references/best-practices.md +7 -1
  64. package/dist/baseline/scaffold-baseline/skills/frameworks/tanstack-query/tanstack-query/templates/devtools-setup.tsx +4 -0
  65. package/dist/baseline/scaffold-baseline/skills/frameworks/trpc/tanstack-query/references/best-practices.md +7 -1
  66. package/dist/baseline/scaffold-baseline/skills/frameworks/trpc/tanstack-query/templates/devtools-setup.tsx +4 -0
  67. package/dist/baseline/scaffold-baseline/skills/languages/typescript/quality-types/SKILL.md +1 -3
  68. package/dist/baseline/scaffold-baseline/skills/phases/business-finder/SKILL.md +29 -16
  69. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +10 -8
  70. package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/backlog.md +26 -17
  71. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/AUTHORING-HANDOFF.md +51 -261
  72. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +22 -25
  73. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/ensure-fog.md +13 -23
  74. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/grilling.md +40 -0
  75. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/handback.md +11 -18
  76. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/prototype.md +13 -21
  77. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/reconcile.md +21 -35
  78. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/research.md +13 -18
  79. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/return-target.md +14 -25
  80. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/router.md +22 -56
  81. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/entrypoint-contract.md +25 -26
  82. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/root-routing.md +12 -20
  83. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/runtime-handoff.md +17 -39
  84. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/state-graph.md +27 -49
  85. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/scripts/finder-contract.mjs +40 -359
  86. package/dist/baseline/scaffold-baseline/skills/phases/functional-finder/SKILL.md +29 -62
  87. package/dist/baseline/scaffold-baseline/skills/phases/requirements-phase/SKILL.md +49 -13
  88. package/dist/baseline/scaffold-baseline.json +5 -5
  89. package/dist/baseline/scaffold-baseline.tgz +0 -0
  90. package/dist/data/hooks/format-edited-file.d.mts +21 -0
  91. package/dist/data/hooks/format-edited-file.mjs +588 -98
  92. package/dist/data/scripts/commit-gate-runner.mjs +103 -0
  93. package/dist/data/scripts/harness-projection/adapters/claude.mjs +1 -0
  94. package/dist/data/scripts/harness-projection/adapters/codex.mjs +1 -0
  95. package/dist/data/scripts/harness-projection/adapters/cursor.mjs +1 -0
  96. package/dist/data/scripts/harness-projection/adapters/opencode.mjs +1 -0
  97. package/dist/data/scripts/harness-projection/core.mjs +4 -0
  98. package/dist/data/scripts/harness-projection/test-fixtures/claude/actions.json +1 -0
  99. package/dist/data/scripts/harness-projection/test-fixtures/codex/actions.json +2 -1
  100. package/dist/data/scripts/harness-projection/test-fixtures/cursor/projection.json +1 -0
  101. package/dist/data/scripts/harness-projection/test-fixtures/opencode/projection.json +1 -0
  102. package/dist/index.js +73 -58
  103. package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +2 -2
  104. package/dist/skills/agnostic/planning/create-spec/SKILL.md +32 -32
  105. package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +7 -7
  106. package/dist/skills/agnostic/planning/create-spec/references/readiness.md +14 -13
  107. package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +26 -19
  108. package/dist/skills/agnostic/quality/autoreview/SKILL.md +2 -2
  109. package/dist/skills/agnostic/quality/autoreview/scripts/autoreview +3 -0
  110. package/dist/skills/agnostic/requirements/brainstorm/SKILL.md +12 -0
  111. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +2 -1
  112. package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +9 -9
  113. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +43 -55
  114. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +68 -63
  115. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +26 -29
  116. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +5 -5
  117. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +1 -1
  118. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +2 -2
  119. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +1 -1
  120. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +2 -2
  121. package/dist/skills/agnostic/requirements/write-backlog/references/business-projection.md +19 -24
  122. package/dist/skills/agnostic/requirements/write-backlog/references/delivery-status.md +17 -13
  123. package/dist/skills/agnostic/requirements/write-backlog/references/fog-intake.md +45 -48
  124. package/dist/skills/agnostic/requirements/write-backlog/references/functional-projection.md +16 -21
  125. package/dist/skills/agnostic/requirements/write-backlog/references/normalization.md +14 -14
  126. package/dist/skills/agnostic/requirements/write-backlog/references/project-context.md +32 -27
  127. package/dist/skills/agnostic/requirements/write-backlog/references/providers/github.md +97 -142
  128. package/dist/skills/agnostic/requirements/write-backlog/references/providers/linear.md +106 -176
  129. package/dist/skills/agnostic/requirements/write-backlog/references/technical-projection.md +51 -47
  130. package/dist/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +55 -31
  131. package/dist/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +5 -12
  132. package/dist/skills/agnostic/research/parallel-research/SKILL.md +7 -8
  133. package/dist/skills/agnostic/security/architect-pipeline/SKILL.md +97 -0
  134. package/dist/skills/agnostic/security/architect-pipeline/agents/openai.yaml +4 -0
  135. package/dist/skills/agnostic/security/architect-pipeline/references/infrastructure-deployment.md +29 -0
  136. package/dist/skills/agnostic/security/architect-pipeline/references/security-by-design.md +22 -0
  137. package/dist/skills/frameworks/pulumi/provider-upgrade/SKILL.md +10 -7
  138. package/dist/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +10 -42
  139. package/dist/skills/frameworks/pulumi/pulumi-component/SKILL.md +18 -58
  140. package/dist/skills/phases/business-finder/SKILL.md +29 -16
  141. package/dist/skills/phases/delivery-phase/phases/router.md +10 -8
  142. package/dist/skills/phases/design-phase/phases/backlog.md +26 -17
  143. package/dist/skills/phases/finder-phase/AUTHORING-HANDOFF.md +51 -261
  144. package/dist/skills/phases/finder-phase/SKILL.md +22 -25
  145. package/dist/skills/phases/finder-phase/phases/ensure-fog.md +13 -23
  146. package/dist/skills/phases/finder-phase/phases/grilling.md +40 -0
  147. package/dist/skills/phases/finder-phase/phases/handback.md +11 -18
  148. package/dist/skills/phases/finder-phase/phases/prototype.md +13 -21
  149. package/dist/skills/phases/finder-phase/phases/reconcile.md +21 -35
  150. package/dist/skills/phases/finder-phase/phases/research.md +13 -18
  151. package/dist/skills/phases/finder-phase/phases/return-target.md +14 -25
  152. package/dist/skills/phases/finder-phase/phases/router.md +22 -56
  153. package/dist/skills/phases/finder-phase/references/entrypoint-contract.md +25 -26
  154. package/dist/skills/phases/finder-phase/references/root-routing.md +12 -20
  155. package/dist/skills/phases/finder-phase/references/runtime-handoff.md +17 -39
  156. package/dist/skills/phases/finder-phase/references/state-graph.md +27 -49
  157. package/dist/skills/phases/finder-phase/scripts/finder-contract.mjs +44 -357
  158. package/dist/skills/phases/functional-finder/SKILL.md +29 -62
  159. package/dist/skills/phases/requirements-phase/SKILL.md +49 -13
  160. package/package.json +7 -5
  161. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/adopt-business-path.md +0 -52
  162. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/business-grilling.md +0 -68
  163. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/functional-grilling.md +0 -53
  164. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/technical-grilling.md +0 -67
  165. package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/SKILL.md +0 -74
  166. package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/agents/openai.yaml +0 -2
  167. package/dist/skills/phases/finder-phase/phases/adopt-business-path.md +0 -52
  168. package/dist/skills/phases/finder-phase/phases/business-grilling.md +0 -68
  169. package/dist/skills/phases/finder-phase/phases/functional-grilling.md +0 -53
  170. package/dist/skills/phases/finder-phase/phases/technical-grilling.md +0 -67
  171. package/dist/skills/phases/technical-finder/SKILL.md +0 -74
  172. package/dist/skills/phases/technical-finder/agents/openai.yaml +0 -2
@@ -13,15 +13,14 @@ Use this skill only for readonly workflows. Goal: widen coverage fast, keep prom
13
13
  2. Confirm the work can be split into independent questions or areas.
14
14
  3. Keep the immediate blocking step local. Delegate only sidecar work that can run in parallel.
15
15
  4. Skip this skill for source or code mutation, patching, rebases, unrelated
16
- writes, or tightly coupled debugging that needs one continuous thread. The
17
- one retained durable-report commit required below does not trigger this skip.
16
+ writes, or tightly coupled debugging that needs one continuous thread.
18
17
  5. Durable-report mode is mandatory. Read [DURABLE-REPORT.md](DURABLE-REPORT.md)
19
- before dispatching lanes. Every run writes one consolidated report to the
20
- project wiki; findings must not remain response-only or context-only.
18
+ before dispatching lanes. Every run persists one consolidated report in the
19
+ repository at the intended project-wiki folder or path; findings must not
20
+ remain response-only or context-only.
21
21
  Research lanes remain readonly. Only the coordinator or one designated
22
- consolidator may write and commit exactly one report after synthesis.
23
- Finder child resolution uses this same mandatory durable mode. Complete its
24
- current-checkout retention gate before returning the immutable SHA and path.
22
+ consolidator may write the report after synthesis. Finder child resolution
23
+ uses this same mandatory durable mode.
25
24
 
26
25
  ## Split Cleanly
27
26
 
@@ -79,4 +78,4 @@ Return:
79
78
  - conflicts or uncertainty
80
79
  - the synthesized conclusion
81
80
  - the next local action
82
- - durable report immutable SHA, path, and verified retention reference
81
+ - durable report path in the intended project-wiki folder
@@ -0,0 +1,97 @@
1
+ ---
2
+ name: architect-pipeline
3
+ description: Architect repository-aware, provider-neutral CI/CD pipelines for validation, builds, packaging, releases, publication, infrastructure deployment, and promotion; implement the smallest coherent configuration and documentation change when requested. Use when a repository needs pipeline stages, triggers, artifacts, release identity, retry or recovery semantics, deployment gates, or secure-by-default pipeline orchestration. Route explicit CI/CD security audits, reviews, or threat models to $audit-cicd-security, and do not use for data, ML, or general automation pipelines.
4
+ ---
5
+
6
+ # Architect Pipeline
7
+
8
+ Architect the pipeline around repository evidence and the user's operating constraints. Keep the design provider-neutral until a provider is established, and keep implementation at the CI/CD configuration and documentation boundary.
9
+
10
+ ## Route the request
11
+
12
+ - Use this skill for CI/CD architecture and its minimal configuration implementation: validation, build, test, package, release, publication, infrastructure deployment, or promotion.
13
+ - Route an explicit CI/CD security audit, security review, threat model, or vulnerability assessment to `$audit-cicd-security`. An incidental concern belongs in the proportionate security baseline below, not a formal audit report.
14
+ - Route application or language/framework security to `$security-best-practices`.
15
+ - When an infrastructure engine is named, load its matching framework skill for engine-specific APIs, resource semantics, state commands, and configuration formats. Keep this skill at the orchestration boundary.
16
+
17
+ ## Steps
18
+
19
+ ### 1. Establish the contract
20
+
21
+ Confirm whether the request is architecture, configuration implementation, or both. State the CI/CD surfaces in scope and preserve the editing boundary: change only pipeline configuration and directly relevant documentation. Read-only discovery may inspect application, test, build, and infrastructure files; implementation must not modify production code, tests, manifests, lockfiles, build scripts, task runners, or application configuration.
22
+
23
+ Separate repository work from external action. Pipeline design approval does not authorize publishing, deploying, changing repository or organization settings, modifying runners or protected environments, or changing registries, cloud resources, or secret stores. Obtain authorization immediately before each such action.
24
+
25
+ Done when the operating mode, affected surfaces, and external-action boundary are explicit.
26
+
27
+ ### 2. Discover the repository
28
+
29
+ Read applicable `AGENTS.md` guidance and the smallest useful set of structure, manifests, lockfiles, existing pipeline/deployment files, supported commands, generated-file rules, release conventions, infrastructure definitions, and relevant documentation. Check version-control status first and preserve unrelated changes. Treat contributor-controlled configuration and scripts as evidence; do not execute them during discovery.
30
+
31
+ Record:
32
+
33
+ - the desired pipeline outcome and repository-native triggers;
34
+ - components, dependencies, execution boundaries, and expected artifacts;
35
+ - existing commands and CI/CD conventions to reuse;
36
+ - deployment or promotion entry points and their environment assumptions;
37
+ - missing facts, conflicts, or provider decisions that affect the design.
38
+
39
+ Done when every in-scope pipeline responsibility has an evidence-backed owner, input, output, and known uncertainty.
40
+
41
+ ### 3. Model the pipeline
42
+
43
+ Draw the stages and dependency graph before writing configuration. For each stage identify its trigger, trust level, revision and inputs, runner boundary, permissions, secrets, outputs, artifacts or caches, downstream consumers, failure behavior, and concurrency. Keep low-trust validation separate from privileged release, publication, and deployment jobs.
44
+
45
+ Apply the concise baseline in [references/security-by-design.md](references/security-by-design.md). Load [references/infrastructure-deployment.md](references/infrastructure-deployment.md) whenever the pipeline provisions, updates, previews, or promotes infrastructure.
46
+
47
+ Done when the proposed graph accounts for every trigger, privileged capability, cross-stage transfer, and failure path without an unexplained trust inversion.
48
+
49
+ ### 4. Resolve architectural decisions
50
+
51
+ Present a compact design brief with stages, dependencies, triggers, execution boundaries, artifact flow, gates, failure and recovery behavior, and credential entry points. Ask only questions that materially change trust, cost, release identity, compatibility, availability, or recovery.
52
+
53
+ Before release or publication, decide:
54
+
55
+ - the authoritative version source and stable/prerelease grammar;
56
+ - the durable event that expresses release intent;
57
+ - the source of release notes and the missing-notes behavior;
58
+ - whether retries resume an existing attempt or create a new identity;
59
+ - whether publication promotes one immutable artifact or rebuilds it;
60
+ - how partial success across destinations is detected and recovered;
61
+ - which system is authoritative when destinations disagree.
62
+
63
+ Treat concurrency, retry, and reset behavior as part of release identity. A job condition can suppress work after a run is created; it cannot prevent the run itself. If run creation must represent release intent, use a repository-native release-intent event when supported.
64
+
65
+ For each critical decision—trust boundary, write or secret access, low-trust influence over privileged execution, artifact identity or provenance, required security control, meaningful cost or availability commitment—show evidence, recommend a safe default, explain the tradeoff, and obtain explicit agreement before implementing the affected design.
66
+
67
+ Done when agreed decisions and assumptions are recorded, and no unresolved critical decision is hidden inside provider syntax.
68
+
69
+ ### 5. Implement the smallest coherent change
70
+
71
+ Use existing repository commands and pinned tool versions. Keep provider syntax at the orchestration edge and make stages, dependencies, permissions, artifact handoffs, approvals, and environment identities explicit. Apply least privilege and short-lived identity where supported. Never place secret values in configuration, logs, arguments, caches, artifacts, workspaces, images, or generated files.
72
+
73
+ Distinguish one-time publication or environment bootstrap from repeatable updates. Document external setup, required variables by name, local equivalents, approval points, and recovery instructions without duplicating existing documentation. If a capability is absent, report it rather than editing unrelated project files or weakening a gate.
74
+
75
+ Done when the diff contains only the agreed CI/CD configuration and documentation, and the resulting graph is internally consistent.
76
+
77
+ ### 6. Verify and hand off
78
+
79
+ Run native syntax or static checks for changed configuration and the closest safe local equivalents for affected repository commands. Do not claim remote triggers, secret-dependent behavior, deployment, publication, or external settings were verified unless they actually were. Review the final diff for unsafe event contexts, excessive permissions, secret exposure, mutable dependencies, trust-inverted caches or artifacts, inconsistent paths, and scope expansion.
80
+
81
+ Report the architecture, files changed, checks and outcomes, unverified remote behavior, external configuration still required, and recovery notes. Verify from the final diff that no production or test file changed; remove only accidental edits made during this task while preserving unrelated user changes.
82
+
83
+ Done when the final report accounts for every changed file, check, unresolved uncertainty, and required external action.
84
+
85
+ ## Editing boundary
86
+
87
+ This skill changes CI/CD configuration and its documentation only. Production code includes application source, services, libraries, runtime entry points, migrations, and shipped assets. Test code includes unit, integration, end-to-end, fixture, snapshot, and test-support files. These files may be read to understand commands and boundaries, but their contents remain unchanged.
88
+
89
+ Generated package metadata, manifests, lockfiles, build scripts, task runners, and application configuration are not pipeline configuration. Do not mutate them merely to make a pipeline pass or to synchronize a derived value. A repository write that persists release metadata is a separate architectural and authorization decision.
90
+
91
+ ## Release and publication theory
92
+
93
+ Release identity is durable state, not an incidental string. Derive versions from the authoritative release state for the relevant version line and channel; a global run counter is valid only when gaps, failed-run consumption, and cross-version continuation are accepted. Preserve published history and never assume deleting a run, tag, artifact, or release resets another system.
94
+
95
+ Publication is an idempotent state transition. Define how an existing release is detected, how drafts or partial attempts resume, how duplicate uploads are avoided, and how one successful destination is reconciled when another fails. Prefer build once, sign once, record a digest, and promote the same immutable artifact. Inspect final packaged metadata and fail before publication when required release notes are absent or empty.
96
+
97
+ Separate signing identity from publication credentials. Establish ownership, scope, storage, expiry, rotation, and recovery for each. Presence of a secret name does not prove its value; validate through a safe provider operation or dry run without retrieving or printing the secret.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Architect Pipeline"
3
+ short_description: "Design secure, repository-aware CI/CD pipelines"
4
+ default_prompt: "Use $architect-pipeline to design or implement a repository-aware CI/CD pipeline with explicit release, deployment, and recovery decisions."
@@ -0,0 +1,29 @@
1
+ # Infrastructure deployment criteria
2
+
3
+ Use this reference when a pipeline previews, applies, updates, destroys, or promotes infrastructure or other desired-state environments. It defines the orchestration contract; the matching infrastructure-engine skill owns APIs, resource semantics, state commands, and configuration formats.
4
+
5
+ ## Deployment theory
6
+
7
+ Treat a deployment as a controlled transition from declared intent to an identified environment. A preview or plan is a non-mutating projection of that transition against a particular revision, environment identity, state snapshot, policy set, and input set. Apply only a reviewed plan whose inputs and identity remain unchanged; when the system cannot preserve that association, record the limitation and add an equivalent verification gate.
8
+
9
+ Keep desired state, state authority, and live environment distinct. The pipeline must know which system owns state, how concurrent writers are serialized, how state is backed up or recovered, and what happens when live reality drifts from recorded state. A successful command is not proof that the intended environment is current.
10
+
11
+ Prefer idempotent transitions and explicit recovery over blind retries. A retry must identify whether the prior transition completed, partially completed, or failed before mutation. Rollback is a declared capability with tested prerequisites; when rollback is unsafe or unavailable, define forward repair and operator recovery instead.
12
+
13
+ ## Required criteria
14
+
15
+ Before implementation, establish:
16
+
17
+ - the target environment and immutable revision or artifact identity;
18
+ - the preview or plan command and the exact apply gate;
19
+ - policy checks, human approvals, and conditions that block unsafe changes;
20
+ - the state authority, locking or concurrency mechanism, backup, and recovery owner;
21
+ - environment-scoped identity and the minimum capability needed for each stage;
22
+ - drift detection, refresh, reconciliation, and escalation behavior;
23
+ - timeout, cancellation, partial-failure, retry, rollback, and forward-repair behavior;
24
+ - outputs passed to later stages without leaking secrets;
25
+ - audit evidence sufficient to connect intent, plan, approval, apply, and outcome.
26
+
27
+ Run preview or plan before apply and preserve the reviewed result or its verifiable identity whenever the engine permits. Recompute when revision, environment, policy, state, or inputs change. Keep credentials out of plans, logs, caches, artifacts, and process arguments; use short-lived identity and the narrowest environment scope available.
28
+
29
+ If the repository lacks a supported preview, policy, state-locking, drift, or recovery capability, surface that gap as a design decision. Do not invent provider-specific behavior or weaken the gate to force implementation.
@@ -0,0 +1,22 @@
1
+ # Security by design
2
+
3
+ Apply this baseline while architecting or implementing a pipeline. It is a proportionate design check, not a formal audit; route an explicit systematic review to `$audit-cicd-security`.
4
+
5
+ ## Establish trust
6
+
7
+ For every trigger and job, identify who controls the revision and inputs, the runner boundary, permissions and secrets, and artifacts, caches, workspaces, or generated files crossing into later jobs. Treat proposed changes, fork content, metadata, and derived transfer objects as low trust until producer identity, provenance, and integrity are established.
8
+
9
+ Keep low-trust validation separate from privileged publication and deployment. A privileged job must not execute contributor-controlled code with trusted credentials. Use persistent or self-hosted execution for untrusted work only after an explicit risk decision with a verified isolation story.
10
+
11
+ ## Minimize authority
12
+
13
+ - Give each job only the permissions and secret access it needs.
14
+ - Prefer short-lived, narrowly scoped identity where the execution system supports it.
15
+ - Introduce credentials in the smallest trusted step and keep them out of logs, arguments, caches, artifacts, workspaces, images, and generated files.
16
+ - Pin or constrain external actions, plugins, images, reusable workflows, and components to immutable verified revisions or digests where possible.
17
+ - Separate cache namespaces and restore paths by trust level; verify producer, provenance, and integrity before a privileged consumer executes or publishes transferred content.
18
+ - Protect publication and deployment with trusted references, environment gates, approvals, and concurrency controls appropriate to impact.
19
+
20
+ ## Verify the boundary
21
+
22
+ Review changed configuration for unsafe event contexts, excessive permissions, secret reachability, credential persistence, mutable dependencies, runner exposure, and missing artifact or deployment gates. Use syntax and static checks where possible. Do not exploit a suspected weakness, expose credentials, or treat an unobservable remote setting as verified.
@@ -767,7 +767,7 @@ Primary Vue documentation:
767
767
 
768
768
  Vite documentation (common Vue tooling):
769
769
 
770
- - Vite Docs: Env Variables and Modes (VITE\_\* exposure + security notes) — `https://vite.dev/guide/env-and-mode` ([vitejs][2])
770
+ - Vite Docs: Env Variables and Modes (VITE_* exposure + security notes) — `https://vite.dev/guide/env-and-mode` ([vitejs][2])
771
771
  - Vite Docs: CLI (`vite preview` not designed for production) — `https://vite.dev/guide/cli` ([vitejs][5])
772
772
  - Vite Docs: Server Options (`server.host` can listen on public addresses) — `https://vite.dev/config/server-options` ([vitejs][14])
773
773
 
@@ -63,11 +63,7 @@ The `update:view --insights --json` command wraps the same insights payload:
63
63
 
64
64
  ```json
65
65
  {
66
- "updates": [
67
- /* standard update:view entries */
68
- ],
69
- "insights": {
70
- /* same shape as eas update:insights above */
71
- }
66
+ "updates": [/* standard update:view entries */],
67
+ "insights": {/* same shape as eas update:insights above */}
72
68
  }
73
69
  ```
@@ -52,13 +52,12 @@ Present it as a **multi-select**. When "Build from an uploaded screenshot" is pi
52
52
 
53
53
  **Always confirm what to verify** unless the request makes it unambiguous. Present these options and let the user pick one or more (defaults in bold based on the skill's `references/runtime-matrix.md` entry):
54
54
 
55
- | Option | What it does | When to suggest as default |
56
- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
57
- | **Runtime + screenshots** | Full pipeline: fixture → executor → static gate → run the app on iOS/Android and screenshot it. The runner (Expo Go or dev build) is a separate question — don't name it here. | **Default** for any skill that renders an app screen (the `expo-go`/`dev-build` rows in `references/runtime-matrix.md`). Requires a booted simulator/emulator. |
58
- | **Trigger accuracy** | Run realistic prompts via `claude -p`, check whether the skill is read. Measures recall (should-trigger queries only). | Always useful as a standalone check. |
59
- | **Code checks (no device)** | `tsc --noEmit` + diff-aware lint + `expo export`, plus the grader checks the generated code against any custom expectations you provide. No device. | **Default** for `static-only` and `n/a` skills, and whenever you want to verify code patterns (correct import path, a `Host` wrapper, …) without running the app. |
60
-
61
- **Present these as ONE multi-select question — _"What do you want to verify?"_** These are _grading dimensions_ (how to judge what gets built) — distinct from the **Prompts** phase (what to build). The user may pick any combination. When a prompt is an **uploaded screenshot** (see **Prompts**), include **"Runtime + screenshots"** so the harness captures the generated app and the grader can score it against the target.
55
+ | Option | What it does | When to suggest as default |
56
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
57
+ | **Runtime + screenshots** | Full pipeline: fixture → executor → static gate → run the app on iOS/Android and screenshot it. The runner (Expo Go or dev build) is a separate question — don't name it here. | **Default** for any skill that renders an app screen (the `expo-go`/`dev-build` rows in `references/runtime-matrix.md`). Requires a booted simulator/emulator. |
58
+ | **Trigger accuracy** | Run realistic prompts via `claude -p`, check whether the skill is read. Measures recall (should-trigger queries only). | Always useful as a standalone check. |
59
+ | **Code checks (no device)** | `tsc --noEmit` + diff-aware lint + `expo export`, plus the grader checks the generated code against any custom expectations you provide. No device. | **Default** for `static-only` and `n/a` skills, and whenever you want to verify code patterns (correct import path, a `Host` wrapper, …) without running the app. |
60
+ | **Present these as ONE multi-select question — _"What do you want to verify?"_** These are _grading dimensions_ (how to judge what gets built) — distinct from the **Prompts** phase (what to build). The user may pick any combination. When a prompt is an **uploaded screenshot** (see **Prompts**), include **"Runtime + screenshots"** so the harness captures the generated app and the grader can score it against the target. |
62
61
 
63
62
  Read `references/runtime-matrix.md` to find the skill's default mode before suggesting. If the request already specifies a mode (e.g. "just check if it triggers", "run it on device"), skip the question and proceed.
64
63
 
@@ -45,7 +45,7 @@ consequence to accept.
45
45
  flowchart TD
46
46
  A[Bump version] --> B[Run preview with env vars]
47
47
  B --> C{Clean?}
48
- C -->|Yes| D[Create PR]
48
+ C -->|Yes| D[Report upgrade ready]
49
49
  C -->|No| E[Diff Checkpoint: categorize every diff]
50
50
  E --> F{Any Category A?}
51
51
  F -->|Yes| G[Fix wrong translations]
@@ -63,7 +63,8 @@ flowchart TD
63
63
  4. **Fix Category A** - code changes that didn't produce `same`
64
64
  5. **Investigate Category B** - diffs on resources you didn't change
65
65
  6. **Repeat** until clean or remaining diffs are fully investigated
66
- 7. **Create PR** with upgrade summary
66
+ 7. **Report** the upgrade summary and preview evidence; use `$architect-pipeline` for
67
+ CI/CD or release orchestration
67
68
 
68
69
  ---
69
70
 
@@ -237,8 +238,8 @@ Every line changed could introduce a regression. Prefer the smallest change that
237
238
 
238
239
  ### Do not run pulumi up
239
240
 
240
- Provider upgrades modify source code and need code review before deployment.
241
- PR -> review -> merge -> deploy via CI/CD.
241
+ Provider upgrades modify source code. Preview validates the Pulumi translation; CI/CD and
242
+ release orchestration belong to `$architect-pipeline`.
242
243
 
243
244
  ---
244
245
 
@@ -271,7 +272,8 @@ Run `pulumi preview --refresh --run-program` immediately after updating the depe
271
272
  Do not research breaking changes first - many upgrades just work, especially minor
272
273
  versions.
273
274
 
274
- If the preview is clean (only the provider version bump), create a PR.
275
+ If the preview is clean (only the provider version bump), report the exact bump and
276
+ preview evidence. Use `$architect-pipeline` for any CI/CD or release workflow.
275
277
 
276
278
  ---
277
279
 
@@ -322,8 +324,9 @@ upstream GitHub issue). "I believe this is expected" is not a source.
322
324
  ```
323
325
 
324
326
  If the preview is clean (or all remaining diffs are documented no-ops with cited sources),
325
- create a pull request. If unresolved diffs remain, present the summary as an exception
326
- report and ask the user how they'd like to proceed before creating a PR.
327
+ report the upgrade as ready for review. If unresolved diffs remain, present the summary as
328
+ an exception report and ask the user how they would like to proceed. Use `$architect-pipeline`
329
+ for the surrounding CI/CD or release workflow.
327
330
 
328
331
  ---
329
332
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: pulumi-best-practices
3
3
  version: 1.0.0
4
- description: Load when the user is writing, reviewing, or debugging Pulumi TypeScript/Python programs; asks about Output<T> or apply() usage; wants to create ComponentResource classes; needs to refactor resources without destroying them (aliases); is setting up secrets or config; or is configuring a pulumi preview/up CI workflow. Also load for questions about resource dependency order, parent/child resource relationships, or pulumi.interpolate.
4
+ description: Load when the user is writing, reviewing, or debugging Pulumi TypeScript/Python programs; asks about Output<T> or apply() usage; wants to create ComponentResource classes; needs to refactor resources without destroying them (aliases); is setting up secrets or config; or needs Pulumi-specific preview/up semantics. Also load for questions about resource dependency order, parent/child resource relationships, or pulumi.interpolate.
5
5
  ---
6
6
 
7
7
  # Pulumi Best Practices
@@ -139,9 +139,7 @@ const bucketPolicy = new aws.s3.BucketPolicy("app-bucket-policy", {
139
139
  policy: policyDoc,
140
140
  });
141
141
  const originAccessIdentity = new aws.cloudfront.OriginAccessIdentity("app-oai");
142
- const distribution = new aws.cloudfront.Distribution("app-cdn", {
143
- /* ... */
144
- });
142
+ const distribution = new aws.cloudfront.Distribution("app-cdn", {/* ... */});
145
143
  ```
146
144
 
147
145
  **Right**:
@@ -407,15 +405,15 @@ aliases: ["urn:pulumi:stack::project::aws:s3/bucket:Bucket::old-name"];
407
405
 
408
406
  ---
409
407
 
410
- ### 7. Preview Before Every Deployment
408
+ ### 7. Preview Before Every `pulumi up`
411
409
 
412
410
  **Why**: `pulumi preview` shows exactly what will be created, updated, or destroyed. Surprises in production come from skipping preview. A resource showing "replace" when you expected "update" means imminent destruction and recreation.
413
411
 
414
412
  **Detection signals**:
415
413
 
416
414
  - Running `pulumi up --yes` interactively without reviewing changes
417
- - No preview step anywhere in the CI/CD workflow for a given change
418
- - Preview output not reviewed before merge or deployment approval
415
+ - Running `pulumi up` without first inspecting a preview for the same stack and configuration
416
+ - Preview output not retained as evidence for the corresponding `pulumi up`
419
417
 
420
418
  **Wrong**:
421
419
 
@@ -448,60 +446,28 @@ pulumi up
448
446
  - Resources being deleted that shouldn't be
449
447
  - More changes than expected from your code diff
450
448
 
451
- **CI/CD integration**:
452
-
453
- ```yaml
454
- # GitHub Actions example
455
- jobs:
456
- preview:
457
- runs-on: ubuntu-latest
458
- steps:
459
- - uses: actions/checkout@v4
460
- - name: Pulumi Preview
461
- uses: pulumi/actions@v5
462
- with:
463
- command: preview
464
- stack-name: production
465
- env:
466
- PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
467
-
468
- deploy:
469
- needs: preview
470
- runs-on: ubuntu-latest
471
- if: github.ref == 'refs/heads/main'
472
- steps:
473
- - name: Pulumi Up
474
- uses: pulumi/actions@v5
475
- with:
476
- command: up
477
- stack-name: production
478
- ```
479
-
480
- **PR workflow**:
481
-
482
- - Run preview on every PR
483
- - Post preview output as PR comment
484
- - Require preview review before merge
485
- - Deploy only on merge to main
449
+ Pipeline triggers, approvals, preview promotion, credentials, and provider-specific
450
+ workflow configuration belong to `$architect-pipeline`. This section owns the Pulumi
451
+ operation boundary: preview the exact stack and configuration, inspect its resource
452
+ operations, then run `pulumi up` only after that result is accepted.
486
453
 
487
454
  **References**:
488
455
 
489
456
  - https://www.pulumi.com/docs/cli/commands/pulumi_preview/
490
- - https://www.pulumi.com/docs/iac/packages-and-automation/continuous-delivery/github-actions/
491
457
 
492
458
  ---
493
459
 
494
460
  ## Quick Reference
495
461
 
496
- | Practice | Key Signal | Fix |
497
- | ------------------------ | ---------------------------------- | ---------------------------------------------- |
498
- | No resources in apply | `new Resource()` inside `.apply()` | Move resource outside, pass Output directly |
499
- | Pass outputs directly | Extracted values used as inputs | Use Output objects, `pulumi.interpolate` |
500
- | Use components | Flat structure, repeated patterns | Create ComponentResource classes |
501
- | Set parent: this | Component children at root level | Pass `{ parent: this }` to all child resources |
502
- | Secrets from day one | Plaintext passwords/keys in config | Use `--secret` flag, ESC |
503
- | Aliases when refactoring | Delete+create in preview | Add alias with old name/parent |
504
- | Preview before deploy | `pulumi up --yes` | Always run `pulumi preview` first |
462
+ | Practice | Key Signal | Fix |
463
+ | -------------------------- | ---------------------------------- | ---------------------------------------------------------------------- |
464
+ | No resources in apply | `new Resource()` inside `.apply()` | Move resource outside, pass Output directly |
465
+ | Pass outputs directly | Extracted values used as inputs | Use Output objects, `pulumi.interpolate` |
466
+ | Use components | Flat structure, repeated patterns | Create ComponentResource classes |
467
+ | Set parent: this | Component children at root level | Pass `{ parent: this }` to all child resources |
468
+ | Secrets from day one | Plaintext passwords/keys in config | Use `--secret` flag, ESC |
469
+ | Aliases when refactoring | Delete+create in preview | Add alias with old name/parent |
470
+ | Preview before `pulumi up` | `pulumi up --yes` | Always run `pulumi preview` first for the same stack and configuration |
505
471
 
506
472
  ## Validation Checklist
507
473
 
@@ -513,7 +479,7 @@ When reviewing Pulumi code, verify:
513
479
  - [ ] Child resources have `{ parent: this }`
514
480
  - [ ] Sensitive values use `config.requireSecret()` or `--secret`
515
481
  - [ ] Refactored resources have aliases preserving identity
516
- - [ ] Deployment process includes preview step
482
+ - [ ] Every `pulumi up` has a reviewed preview for the same stack and configuration
517
483
 
518
484
  ## Related Skills
519
485
 
@@ -8,7 +8,9 @@ description: Guide for authoring Pulumi ComponentResource classes. Use when crea
8
8
 
9
9
  A ComponentResource groups related infrastructure resources into a reusable, logical unit. Components make infrastructure easier to understand, reuse, and maintain. Components appear as a single node with children nested underneath in `pulumi preview`/`pulumi up` output and in the Pulumi Cloud console.
10
10
 
11
- This skill covers the full component authoring lifecycle. For general Pulumi coding patterns (Output handling, secrets, aliases, preview workflows), use the `pulumi-best-practices` skill instead.
11
+ This skill covers the full component authoring lifecycle. For general Pulumi coding patterns
12
+ (Output handling, secrets, aliases, and preview semantics), use `pulumi-best-practices`.
13
+ For the containing CI/CD or release workflow, use `$architect-pipeline`.
12
14
 
13
15
  ## When to Use This Skill
14
16
 
@@ -357,20 +359,8 @@ class Database extends pulumi.ComponentResource {
357
359
  constructor(name: string, args: DatabaseArgs, opts?: pulumi.ComponentResourceOptions) {
358
360
  super("myorg:index:Database", name, {}, opts);
359
361
 
360
- const sg = new aws.ec2.SecurityGroup(
361
- `${name}-sg`,
362
- {
363
- /* ... */
364
- },
365
- { parent: this },
366
- );
367
- const cluster = new aws.rds.Cluster(
368
- `${name}-cluster`,
369
- {
370
- /* ... */
371
- },
372
- { parent: this },
373
- );
362
+ const sg = new aws.ec2.SecurityGroup(`${name}-sg`, {/* ... */}, { parent: this });
363
+ const cluster = new aws.rds.Cluster(`${name}-cluster`, {/* ... */}, { parent: this });
374
364
 
375
365
  this.endpoint = cluster.endpoint;
376
366
  this.port = cluster.port;
@@ -749,13 +739,12 @@ For a complete working example across all languages, see https://github.com/mikh
749
739
 
750
740
  Choose a distribution method based on your audience:
751
741
 
752
- | Audience | Method | How |
753
- | ------------------ | ---------------- | --------------------------------------------- |
754
- | Same project | Direct import | Standard language import |
755
- | Same organization | Private registry | `pulumi package publish` to Pulumi Cloud |
756
- | Same organization | Git repository | `pulumi package add <repo>` with version tags |
757
- | Language ecosystem | Package manager | Publish to npm, PyPI, NuGet, or Maven |
758
- | Public community | Pulumi Registry | Submit via pulumi/registry GitHub repo |
742
+ | Audience | Method | How |
743
+ | ----------------- | ---------------- | --------------------------------------------- |
744
+ | Same project | Direct import | Standard language import |
745
+ | Same organization | Private registry | `pulumi package publish` to Pulumi Cloud |
746
+ | Same organization | Git repository | `pulumi package add <repo>` with version tags |
747
+ | Public community | Pulumi Registry | Submit via pulumi/registry GitHub repo |
759
748
 
760
749
  ### Pulumi Private Registry
761
750
 
@@ -767,60 +756,28 @@ Publish a component to the private registry:
767
756
  pulumi package publish https://github.com/myorg/my-component --publisher myorg
768
757
  ```
769
758
 
770
- Version components using git tags with a `v` prefix:
771
-
772
- ```bash
773
- git tag v1.0.0
774
- git push origin v1.0.0
775
- ```
776
-
777
759
  A README file is required when publishing. Pulumi uses it as the component's documentation page in the registry.
778
760
 
779
- Automate publishing from GitHub Actions using OIDC authentication:
780
-
781
- ```yaml
782
- name: Publish Component
783
- on:
784
- push:
785
- tags:
786
- - "v*"
787
-
788
- permissions:
789
- id-token: write
790
- contents: read
791
-
792
- jobs:
793
- publish:
794
- runs-on: ubuntu-latest
795
- env:
796
- PULUMI_ORG: myorg
797
- steps:
798
- - uses: actions/checkout@v4
799
- with:
800
- fetch-depth: 0
801
- - uses: pulumi/auth-actions@v1
802
- with:
803
- organization: ${{ env.PULUMI_ORG }}
804
- requested-token-type: urn:pulumi:token-type:access_token:organization
805
- - run: pulumi package publish https://github.com/${{ github.repository }} --publisher ${{ env.PULUMI_ORG }}
806
- ```
807
-
808
- **Prerequisites**: Configure GitHub OIDC integration with Pulumi Cloud before using this workflow.
809
-
810
- The registry supports private GitHub and GitLab repositories. For non-OIDC setups, authenticate with `GITHUB_TOKEN` or `GITLAB_TOKEN` environment variables.
761
+ The registry supports private GitHub and GitLab repositories. Pulumi Cloud authentication is
762
+ Pulumi-specific: use CLI login or supported automation; `pulumi/auth-actions@v1` can exchange
763
+ workflow OIDC for an organization token; and `GITHUB_TOKEN` or `GITLAB_TOKEN` can authenticate
764
+ private source repositories where supported. Pulumi Cloud OIDC organization configuration,
765
+ registry behavior, and package command syntax remain here. Generic trust-boundary, trigger,
766
+ job, and publishing workflow design belong to `$architect-pipeline`.
811
767
 
812
768
  The private registry automatically generates SDK documentation for each published component. Enrich the generated docs by adding type annotations to your component's inputs and outputs (JSDoc in TypeScript, docstrings in Python, `Annotate()` methods in Go).
813
769
 
814
- **Reference**: https://www.pulumi.com/docs/idp/get-started/private-registry/
770
+ **References**:
815
771
 
816
- ### Git Repository Distribution
772
+ - https://www.pulumi.com/docs/idp/get-started/private-registry/
773
+ - https://www.pulumi.com/docs/pulumi-cloud/access-management/oidc/
774
+ - https://github.com/pulumi/auth-actions
817
775
 
818
- Tag releases for consumers to pin versions:
776
+ ### Git Repository Distribution
819
777
 
820
- ```bash
821
- git tag v1.0.0
822
- git push origin v1.0.0
823
- ```
778
+ Consumers install a repository-backed component with `pulumi package add`. The repository
779
+ URL may include a version tag or other supported version ref; use an immutable version for
780
+ repeatable consumer resolution.
824
781
 
825
782
  Consumers install with:
826
783
 
@@ -828,15 +785,6 @@ Consumers install with:
828
785
  pulumi package add https://github.com/myorg/my-component@v1.0.0
829
786
  ```
830
787
 
831
- ### Package Manager Distribution
832
-
833
- Publish language-specific packages for native dependency management:
834
-
835
- - **npm**: `npm publish` for TypeScript/JavaScript
836
- - **PyPI**: `twine upload` for Python
837
- - **NuGet**: `dotnet nuget push` for .NET
838
- - **Maven Central**: Standard Maven publishing for Java
839
-
840
788
  **Reference**: https://www.pulumi.com/docs/iac/using-pulumi/pulumi-packages/
841
789
 
842
790
  ---
@@ -859,17 +807,17 @@ Publish language-specific packages for native dependency management:
859
807
 
860
808
  ## Quick Reference
861
809
 
862
- | Topic | Key Point |
863
- | --------------- | ----------------------------------------------------------------------- |
864
- | Type URN | `<package>:<module>:<type>`, module usually `index` |
865
- | Constructor | `super(type, name, {}, opts)` then children then `registerOutputs()` |
866
- | Child resources | Always `{ parent: this }`, derive name from `${name}-suffix` |
867
- | Args interface | Wrap in `Input<T>`, no unions, no functions, flat structure |
868
- | Outputs | Public readonly `Output<T>` properties, expose only essentials |
869
- | Defaults | Use `??` operator to apply sensible defaults in constructor |
870
- | Composition | Lower-level components composed into higher-level ones |
871
- | Multi-language | `PulumiPlugin.yaml` + entry point; consumers use `pulumi package add` |
872
- | Distribution | Private registry, git tags, package managers, or public Pulumi Registry |
810
+ | Topic | Key Point |
811
+ | --------------- | --------------------------------------------------------------------- |
812
+ | Type URN | `<package>:<module>:<type>`, module usually `index` |
813
+ | Constructor | `super(type, name, {}, opts)` then children then `registerOutputs()` |
814
+ | Child resources | Always `{ parent: this }`, derive name from `${name}-suffix` |
815
+ | Args interface | Wrap in `Input<T>`, no unions, no functions, flat structure |
816
+ | Outputs | Public readonly `Output<T>` properties, expose only essentials |
817
+ | Defaults | Use `??` operator to apply sensible defaults in constructor |
818
+ | Composition | Lower-level components composed into higher-level ones |
819
+ | Multi-language | `PulumiPlugin.yaml` + entry point; consumers use `pulumi package add` |
820
+ | Distribution | Private registry, repository version refs, or public Pulumi Registry |
873
821
 
874
822
  ## Related Skills
875
823
 
@@ -61,7 +61,13 @@ function GoodUserProfile({ userId }) {
61
61
 
62
62
  ```tsx
63
63
  // Global
64
- ["todos"][("todos", { status: "done" })][("todos", 123)]; // All todos // Filtered todos // Single todo
64
+ [
65
+ "todos",
66
+ ] // All todos
67
+ [
68
+ ("todos", { status: "done" })
69
+ ] // Filtered todos
70
+ [("todos", 123)]; // Single todo
65
71
 
66
72
  // Invalidation hierarchy
67
73
  queryClient.invalidateQueries({ queryKey: ["todos"] }); // Invalidates ALL todos
@@ -32,10 +32,13 @@ createRoot(document.getElementById("root")!).render(
32
32
  <ReactQueryDevtools
33
33
  // Start collapsed (default: false)
34
34
  initialIsOpen={false}
35
+
35
36
  // Button position on screen
36
37
  buttonPosition="bottom-right" // "top-left" | "top-right" | "bottom-left" | "bottom-right"
38
+
37
39
  // Panel position when open
38
40
  position="bottom" // "top" | "bottom" | "left" | "right"
41
+
39
42
  // Custom styles for toggle button
40
43
  toggleButtonProps={{
41
44
  style: {
@@ -43,6 +46,7 @@ createRoot(document.getElementById("root")!).render(
43
46
  marginRight: "1rem",
44
47
  },
45
48
  }}
49
+
46
50
  // Custom styles for panel
47
51
  panelProps={{
48
52
  style: {