@punks/cli 4.0.1 → 4.0.2

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 (27) hide show
  1. package/dist/BASELINE_CHANGELOG.md +10 -0
  2. package/dist/CHANGELOG.md +7 -0
  3. package/dist/baseline/scaffold-baseline/baseline.json +5 -5
  4. package/dist/baseline/scaffold-baseline/data/catalog/packs.json +2 -2
  5. package/dist/baseline/scaffold-baseline/data/catalog/skills.json +8 -0
  6. package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +5 -12
  7. package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/SKILL.md +7 -8
  8. package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/SKILL.md +97 -0
  9. package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/agents/openai.yaml +4 -0
  10. package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/references/infrastructure-deployment.md +29 -0
  11. package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/references/security-by-design.md +22 -0
  12. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/provider-upgrade/SKILL.md +10 -7
  13. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +18 -50
  14. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-component/SKILL.md +34 -74
  15. package/dist/baseline/scaffold-baseline.json +5 -5
  16. package/dist/baseline/scaffold-baseline.tgz +0 -0
  17. package/dist/index.js +2 -2
  18. package/dist/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +5 -12
  19. package/dist/skills/agnostic/research/parallel-research/SKILL.md +7 -8
  20. package/dist/skills/agnostic/security/architect-pipeline/SKILL.md +97 -0
  21. package/dist/skills/agnostic/security/architect-pipeline/agents/openai.yaml +4 -0
  22. package/dist/skills/agnostic/security/architect-pipeline/references/infrastructure-deployment.md +29 -0
  23. package/dist/skills/agnostic/security/architect-pipeline/references/security-by-design.md +22 -0
  24. package/dist/skills/frameworks/pulumi/provider-upgrade/SKILL.md +10 -7
  25. package/dist/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +10 -42
  26. package/dist/skills/frameworks/pulumi/pulumi-component/SKILL.md +18 -58
  27. package/package.json +1 -1
@@ -6,9 +6,7 @@ written to the project wiki before the run can complete.
6
6
 
7
7
  ## Contract
8
8
 
9
- 1. Record the current checkout and branch before dispatching lanes. This branch
10
- is the retention reference. A detached checkout is a blocker.
11
- 2. Resolve `<wiki-root>` using the repository convention (`apps/wiki` for a
9
+ 1. Resolve `<wiki-root>` using the repository convention (`apps/wiki` for a
12
10
  monorepo, `wiki` for a single-repo project), then read `<wiki-root>/AGENTS.md`
13
11
  before writing. The consolidated report path is always
14
12
  `<wiki-root>/content/docs/project/research/<slug>-research-report.md`, as a
@@ -16,19 +14,14 @@ written to the project wiki before the run can complete.
16
14
  substitute `public-docs`, `specs`, or a context-only handoff. If the
17
15
  `project/research` route is missing, create its index and route metadata only
18
16
  as required by the wiki's existing conventions.
19
- 3. Run 2-4 readonly lanes. Lanes never write the report.
20
- 4. After synthesis, the coordinator or one designated consolidator writes one
17
+ 2. Run 2-4 readonly lanes. Lanes never write the report.
18
+ 3. After synthesis, the coordinator or one designated consolidator writes one
21
19
  Markdown report at the resolved wiki path. There is exactly one writer and
22
20
  one consolidated report. Include the primary source for every retained
23
21
  factual claim and separate facts, inferences, conflicts, and unresolved
24
22
  product decisions.
25
- 5. Write and commit the report and any required route metadata in one commit in
26
- the current checkout on the current branch. Never create, switch, checkout,
27
- or use another branch or worktree to persist the report. Push that same
28
- branch when remote retention is required; otherwise retain it locally.
29
- 6. Verify the checkout and branch are unchanged and that the same branch
30
- contains the report commit. Do this before returning the immutable commit SHA
31
- and path, plus the verified branch retention reference.
23
+ 4. Persist the consolidated report in the repository at the resolved intended
24
+ project-wiki path before returning.
32
25
 
33
26
  The report may close factual uncertainty. It must not silently choose product
34
27
  direction or impersonate a human decision-maker. A later `docs-ingest-phase`
@@ -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
 
@@ -78,4 +77,4 @@ Return:
78
77
  - conflicts or uncertainty
79
78
  - the synthesized conclusion
80
79
  - the next local action
81
- - durable report immutable SHA, path, and verified retention reference
80
+ - 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.
@@ -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
 
@@ -235,8 +236,8 @@ Every line changed could introduce a regression. Prefer the smallest change that
235
236
 
236
237
  ### Do not run pulumi up
237
238
 
238
- Provider upgrades modify source code and need code review before deployment.
239
- PR -> review -> merge -> deploy via CI/CD.
239
+ Provider upgrades modify source code. Preview validates the Pulumi translation; CI/CD and
240
+ release orchestration belong to `$architect-pipeline`.
240
241
 
241
242
  ---
242
243
 
@@ -269,7 +270,8 @@ Run `pulumi preview --refresh --run-program` immediately after updating the depe
269
270
  Do not research breaking changes first - many upgrades just work, especially minor
270
271
  versions.
271
272
 
272
- If the preview is clean (only the provider version bump), create a PR.
273
+ If the preview is clean (only the provider version bump), report the exact bump and
274
+ preview evidence. Use `$architect-pipeline` for any CI/CD or release workflow.
273
275
 
274
276
  ---
275
277
 
@@ -320,8 +322,9 @@ upstream GitHub issue). "I believe this is expected" is not a source.
320
322
  ```
321
323
 
322
324
  If the preview is clean (or all remaining diffs are documented no-ops with cited sources),
323
- create a pull request. If unresolved diffs remain, present the summary as an exception
324
- report and ask the user how they'd like to proceed before creating a PR.
325
+ report the upgrade as ready for review. If unresolved diffs remain, present the summary as
326
+ an exception report and ask the user how they would like to proceed. Use `$architect-pipeline`
327
+ for the surrounding CI/CD or release workflow.
325
328
 
326
329
  ---
327
330
 
@@ -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
@@ -385,15 +385,15 @@ aliases: ["urn:pulumi:stack::project::aws:s3/bucket:Bucket::old-name"]
385
385
 
386
386
  ---
387
387
 
388
- ### 7. Preview Before Every Deployment
388
+ ### 7. Preview Before Every `pulumi up`
389
389
 
390
390
  **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.
391
391
 
392
392
  **Detection signals**:
393
393
 
394
394
  - Running `pulumi up --yes` interactively without reviewing changes
395
- - No preview step anywhere in the CI/CD workflow for a given change
396
- - Preview output not reviewed before merge or deployment approval
395
+ - Running `pulumi up` without first inspecting a preview for the same stack and configuration
396
+ - Preview output not retained as evidence for the corresponding `pulumi up`
397
397
 
398
398
  **Wrong**:
399
399
 
@@ -426,46 +426,14 @@ pulumi up
426
426
  - Resources being deleted that shouldn't be
427
427
  - More changes than expected from your code diff
428
428
 
429
- **CI/CD integration**:
430
-
431
- ```yaml
432
- # GitHub Actions example
433
- jobs:
434
- preview:
435
- runs-on: ubuntu-latest
436
- steps:
437
- - uses: actions/checkout@v4
438
- - name: Pulumi Preview
439
- uses: pulumi/actions@v5
440
- with:
441
- command: preview
442
- stack-name: production
443
- env:
444
- PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
445
-
446
- deploy:
447
- needs: preview
448
- runs-on: ubuntu-latest
449
- if: github.ref == 'refs/heads/main'
450
- steps:
451
- - name: Pulumi Up
452
- uses: pulumi/actions@v5
453
- with:
454
- command: up
455
- stack-name: production
456
- ```
457
-
458
- **PR workflow**:
459
-
460
- - Run preview on every PR
461
- - Post preview output as PR comment
462
- - Require preview review before merge
463
- - Deploy only on merge to main
429
+ Pipeline triggers, approvals, preview promotion, credentials, and provider-specific
430
+ workflow configuration belong to `$architect-pipeline`. This section owns the Pulumi
431
+ operation boundary: preview the exact stack and configuration, inspect its resource
432
+ operations, then run `pulumi up` only after that result is accepted.
464
433
 
465
434
  **References**:
466
435
 
467
436
  - https://www.pulumi.com/docs/cli/commands/pulumi_preview/
468
- - https://www.pulumi.com/docs/iac/packages-and-automation/continuous-delivery/github-actions/
469
437
 
470
438
  ---
471
439
 
@@ -479,7 +447,7 @@ jobs:
479
447
  | Set parent: this | Component children at root level | Pass `{ parent: this }` to all child resources |
480
448
  | Secrets from day one | Plaintext passwords/keys in config | Use `--secret` flag, ESC |
481
449
  | Aliases when refactoring | Delete+create in preview | Add alias with old name/parent |
482
- | Preview before deploy | `pulumi up --yes` | Always run `pulumi preview` first |
450
+ | Preview before `pulumi up` | `pulumi up --yes` | Always run `pulumi preview` first for the same stack and configuration |
483
451
 
484
452
  ## Validation Checklist
485
453
 
@@ -491,7 +459,7 @@ When reviewing Pulumi code, verify:
491
459
  - [ ] Child resources have `{ parent: this }`
492
460
  - [ ] Sensitive values use `config.requireSecret()` or `--secret`
493
461
  - [ ] Refactored resources have aliases preserving identity
494
- - [ ] Deployment process includes preview step
462
+ - [ ] Every `pulumi up` has a reviewed preview for the same stack and configuration
495
463
 
496
464
  ## Related Skills
497
465
 
@@ -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
 
@@ -698,7 +700,6 @@ Choose a distribution method based on your audience:
698
700
  | Same project | Direct import | Standard language import |
699
701
  | Same organization | Private registry | `pulumi package publish` to Pulumi Cloud |
700
702
  | Same organization | Git repository | `pulumi package add <repo>` with version tags |
701
- | Language ecosystem | Package manager | Publish to npm, PyPI, NuGet, or Maven |
702
703
  | Public community | Pulumi Registry | Submit via pulumi/registry GitHub repo |
703
704
 
704
705
  ### Pulumi Private Registry
@@ -711,60 +712,28 @@ Publish a component to the private registry:
711
712
  pulumi package publish https://github.com/myorg/my-component --publisher myorg
712
713
  ```
713
714
 
714
- Version components using git tags with a `v` prefix:
715
-
716
- ```bash
717
- git tag v1.0.0
718
- git push origin v1.0.0
719
- ```
720
-
721
715
  A README file is required when publishing. Pulumi uses it as the component's documentation page in the registry.
722
716
 
723
- Automate publishing from GitHub Actions using OIDC authentication:
724
-
725
- ```yaml
726
- name: Publish Component
727
- on:
728
- push:
729
- tags:
730
- - "v*"
731
-
732
- permissions:
733
- id-token: write
734
- contents: read
735
-
736
- jobs:
737
- publish:
738
- runs-on: ubuntu-latest
739
- env:
740
- PULUMI_ORG: myorg
741
- steps:
742
- - uses: actions/checkout@v4
743
- with:
744
- fetch-depth: 0
745
- - uses: pulumi/auth-actions@v1
746
- with:
747
- organization: ${{ env.PULUMI_ORG }}
748
- requested-token-type: urn:pulumi:token-type:access_token:organization
749
- - run: pulumi package publish https://github.com/${{ github.repository }} --publisher ${{ env.PULUMI_ORG }}
750
- ```
751
-
752
- **Prerequisites**: Configure GitHub OIDC integration with Pulumi Cloud before using this workflow.
753
-
754
- The registry supports private GitHub and GitLab repositories. For non-OIDC setups, authenticate with `GITHUB_TOKEN` or `GITLAB_TOKEN` environment variables.
717
+ The registry supports private GitHub and GitLab repositories. Pulumi Cloud authentication is
718
+ Pulumi-specific: use CLI login or supported automation; `pulumi/auth-actions@v1` can exchange
719
+ workflow OIDC for an organization token; and `GITHUB_TOKEN` or `GITLAB_TOKEN` can authenticate
720
+ private source repositories where supported. Pulumi Cloud OIDC organization configuration,
721
+ registry behavior, and package command syntax remain here. Generic trust-boundary, trigger,
722
+ job, and publishing workflow design belong to `$architect-pipeline`.
755
723
 
756
724
  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).
757
725
 
758
- **Reference**: https://www.pulumi.com/docs/idp/get-started/private-registry/
726
+ **References**:
759
727
 
760
- ### Git Repository Distribution
728
+ - https://www.pulumi.com/docs/idp/get-started/private-registry/
729
+ - https://www.pulumi.com/docs/pulumi-cloud/access-management/oidc/
730
+ - https://github.com/pulumi/auth-actions
761
731
 
762
- Tag releases for consumers to pin versions:
732
+ ### Git Repository Distribution
763
733
 
764
- ```bash
765
- git tag v1.0.0
766
- git push origin v1.0.0
767
- ```
734
+ Consumers install a repository-backed component with `pulumi package add`. The repository
735
+ URL may include a version tag or other supported version ref; use an immutable version for
736
+ repeatable consumer resolution.
768
737
 
769
738
  Consumers install with:
770
739
 
@@ -772,15 +741,6 @@ Consumers install with:
772
741
  pulumi package add https://github.com/myorg/my-component@v1.0.0
773
742
  ```
774
743
 
775
- ### Package Manager Distribution
776
-
777
- Publish language-specific packages for native dependency management:
778
-
779
- - **npm**: `npm publish` for TypeScript/JavaScript
780
- - **PyPI**: `twine upload` for Python
781
- - **NuGet**: `dotnet nuget push` for .NET
782
- - **Maven Central**: Standard Maven publishing for Java
783
-
784
744
  **Reference**: https://www.pulumi.com/docs/iac/using-pulumi/pulumi-packages/
785
745
 
786
746
  ---
@@ -813,7 +773,7 @@ Publish language-specific packages for native dependency management:
813
773
  | Defaults | Use `??` operator to apply sensible defaults in constructor |
814
774
  | Composition | Lower-level components composed into higher-level ones |
815
775
  | Multi-language | `PulumiPlugin.yaml` + entry point; consumers use `pulumi package add` |
816
- | Distribution | Private registry, git tags, package managers, or public Pulumi Registry |
776
+ | Distribution | Private registry, repository version refs, or public Pulumi Registry |
817
777
 
818
778
  ## Related Skills
819
779
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/cli",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "Harness Intelligence scaffolding CLI",
5
5
  "homepage": "https://github.com/wearedevpunks/harness-intelligence/tree/main/apps/cli#readme",
6
6
  "bugs": {