@punks/cli 4.0.0 → 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.
- package/AGENTS.md +1 -1
- package/dist/BASELINE_CHANGELOG.md +11 -0
- package/dist/CHANGELOG.md +13 -0
- package/dist/baseline/scaffold-baseline/baseline.json +5 -5
- package/dist/baseline/scaffold-baseline/data/catalog/packs.json +8 -5
- package/dist/baseline/scaffold-baseline/data/catalog/skills.json +16 -0
- package/dist/baseline/scaffold-baseline/data/subagents/manifest.mjs +1 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/SKILL.md +57 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/agents/openai.yaml +4 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/audit-portfolio.md +47 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/implement-suite.md +40 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/route-api-design.md +21 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/user-journey-design.md +21 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +5 -12
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/SKILL.md +7 -8
- package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/SKILL.md +97 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/agents/openai.yaml +4 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/references/infrastructure-deployment.md +29 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/references/security-by-design.md +22 -0
- package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/provider-upgrade/SKILL.md +10 -7
- package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +18 -50
- package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-component/SKILL.md +34 -74
- package/dist/baseline/scaffold-baseline.json +5 -5
- package/dist/baseline/scaffold-baseline.tgz +0 -0
- package/dist/data/subagents/manifest.mjs +1 -0
- package/dist/index.js +2 -2
- package/dist/skills/agnostic/quality/make-tsuite/SKILL.md +57 -0
- package/dist/skills/agnostic/quality/make-tsuite/agents/openai.yaml +4 -0
- package/dist/skills/agnostic/quality/make-tsuite/references/audit-portfolio.md +47 -0
- package/dist/skills/agnostic/quality/make-tsuite/references/implement-suite.md +40 -0
- package/dist/skills/agnostic/quality/make-tsuite/references/route-api-design.md +21 -0
- package/dist/skills/agnostic/quality/make-tsuite/references/user-journey-design.md +21 -0
- package/dist/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +5 -12
- package/dist/skills/agnostic/research/parallel-research/SKILL.md +7 -8
- package/dist/skills/agnostic/security/architect-pipeline/SKILL.md +97 -0
- package/dist/skills/agnostic/security/architect-pipeline/agents/openai.yaml +4 -0
- package/dist/skills/agnostic/security/architect-pipeline/references/infrastructure-deployment.md +29 -0
- package/dist/skills/agnostic/security/architect-pipeline/references/security-by-design.md +22 -0
- package/dist/skills/frameworks/pulumi/provider-upgrade/SKILL.md +10 -7
- package/dist/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +10 -42
- package/dist/skills/frameworks/pulumi/pulumi-component/SKILL.md +18 -58
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## CLI App Guidance
|
|
2
2
|
|
|
3
|
-
Recovery keeps changed changelog paths as the sole product selector.
|
|
3
|
+
Recovery keeps changed changelog paths as the sole product selector. `RELEASE_RECOVERY.json` must bind its failure, target commit/tree, note hash, first-parent order, and provider identities. An exact already-published provider-readback recovery creates no artifacts, mutates no product, and advances authority only after complete readback. Publication uses an immutable current commit/tree input and performs no prior pull-request Candidate Evidence lookup.
|
|
4
4
|
|
|
5
5
|
Primary skills here: `autoreview`, `codebase-design`, `effect`, `effect-backend-structure`, `effect-recoverable-actions`, `effect-service-design`, `improve-codebase-architecture`, `parallel-research`, `prototype`, `quality-types`, `review`, `simplify`, `swarm-planner`, `tdd`, `turborepo`.
|
|
6
6
|
|
|
@@ -6,7 +6,9 @@ Compatibility: `>=4.0.0 <5`
|
|
|
6
6
|
|
|
7
7
|
### Added
|
|
8
8
|
|
|
9
|
+
- Sync canonical `wearedevpunks/skills@f0fff86b76be52adba34fc84768c45f87389e292`; distribute `make-tsuite` for automated software test-portfolio audits and authorized test-only changes across languages, frameworks, and toolchains.
|
|
9
10
|
- Sync canonical `wearedevpunks/skills@2f46794de41b7510eb3bde279203628c310f93ce`; distribute the human-only `business-finder`, `functional-finder`, and `technical-finder` entrypoints backed by one Fog lifecycle engine.
|
|
11
|
+
- Sync canonical `wearedevpunks/skills@2c7473179569d237acd3d01a2df055cb76d2e174`; distribute the verb-first `architect-pipeline` skill for repository-aware, provider-neutral CI/CD and infrastructure deployment, release, artifact promotion, and retry theory.
|
|
10
12
|
|
|
11
13
|
### Changed
|
|
12
14
|
|
|
@@ -15,6 +17,7 @@ Compatibility: `>=4.0.0 <5`
|
|
|
15
17
|
- Clarify recursive backend composition ownership and Effect Layer placement for issue #164.
|
|
16
18
|
- End autonomy at accepted goal bounds through one compact scaffold prompt pointer; route delivery, debugging, review, and direct autoreview expansion through durable human steering.
|
|
17
19
|
- Select baseline publication only from non-empty `BASELINE_CHANGELOG.md` notes and CLI publication only from matching non-empty `CHANGELOG.md` version notes; publish both when both changelogs qualify, while retaining strict candidate proof and artifact readback.
|
|
20
|
+
- Route explicit CI/CD security audits to `audit-cicd-security`, while keeping Pulumi skills scoped to Pulumi APIs, resources, state, registry, and authentication details.
|
|
18
21
|
|
|
19
22
|
### Fixed
|
|
20
23
|
|
|
@@ -22,6 +25,14 @@ Compatibility: `>=4.0.0 <5`
|
|
|
22
25
|
- Reject Finder completion unless Business hierarchy, Functional Story placement and provenance, and the full reachable Technical blocker graph have exact coherent readback, including milestone order and cross-Epic blockers.
|
|
23
26
|
- Keep the root `package.json` as the sole owner of the Effect `prepare` patch command and omit workspace-level prepare-hook receipt entries.
|
|
24
27
|
|
|
28
|
+
## baseline/stable/2026.08.27-parallel-research-persistence - 2026-08-27
|
|
29
|
+
|
|
30
|
+
Compatibility: `>=4.0.0 <5`
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
|
|
34
|
+
- Sync canonical `wearedevpunks/skills@af9df5f9bd0e5ee0b6df865f635145c19afc3c85`; make `parallel-research` persist its consolidated report at the intended project-wiki path without branch, worktree, commit, push, SHA, or retention requirements.
|
|
35
|
+
|
|
25
36
|
## Recovery 560d7917dfa5c3b0a2eace307013c1c07c57d1a3
|
|
26
37
|
|
|
27
38
|
### Fixed
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.0.2 - 2026-08-27
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Distribute the verb-first `architect-pipeline` skill for repository-aware, provider-neutral CI/CD design and implementation, including infrastructure deployment, release, artifact promotion, and retry theory.
|
|
8
|
+
- Keep Pulumi-specific APIs, resources, state, registry, and authentication details in the Pulumi skills while routing explicit CI/CD security audits to `audit-cicd-security`.
|
|
9
|
+
|
|
10
|
+
## 4.0.1 - 2026-08-27
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Distribute `make-tsuite` for automated software test-portfolio audits and authorized test-only changes across languages, frameworks, and toolchains.
|
|
15
|
+
|
|
3
16
|
## 4.0.0 - 2026-08-26
|
|
4
17
|
|
|
5
18
|
### Changed
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"channel": "stable",
|
|
4
|
-
"version": "2026.08.27-
|
|
5
|
-
"tag": "baseline/stable/2026.08.27-
|
|
6
|
-
"commit": "
|
|
4
|
+
"version": "2026.08.27-b0c53c25",
|
|
5
|
+
"tag": "baseline/stable/2026.08.27-b0c53c25",
|
|
6
|
+
"commit": "b0c53c2552e3c0a1ab34519e7486a9bfe11d1fbb",
|
|
7
7
|
"sha256": null,
|
|
8
8
|
"compatibility": {
|
|
9
|
-
"cliVersionRange": ">=4.0.
|
|
9
|
+
"cliVersionRange": ">=4.0.2 <4.1.0"
|
|
10
10
|
},
|
|
11
|
-
"generatedAt": "2026-08-
|
|
11
|
+
"generatedAt": "2026-08-27T13:53:06.000Z"
|
|
12
12
|
}
|
|
@@ -281,13 +281,16 @@
|
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
283
|
"category": "default",
|
|
284
|
-
"description": "Default quality pack:
|
|
284
|
+
"description": "Default quality pack: test-driven delivery, test-suite design, codebase design, and simplification.",
|
|
285
285
|
"hooks": [],
|
|
286
286
|
"id": "quality",
|
|
287
287
|
"lintAssets": ["vitest-core"],
|
|
288
|
-
"promptDetails": [
|
|
288
|
+
"promptDetails": [
|
|
289
|
+
"shared change-quality baseline",
|
|
290
|
+
"workspace test-suite and refactor expectations"
|
|
291
|
+
],
|
|
289
292
|
"promptSurfaces": ["shared-agents", "root-prompt-spec", "workspace-prompt-spec"],
|
|
290
|
-
"skills": ["tdd", "codebase-design", "simplify"],
|
|
293
|
+
"skills": ["tdd", "make-tsuite", "codebase-design", "simplify"],
|
|
291
294
|
"triggerPackages": []
|
|
292
295
|
},
|
|
293
296
|
{
|
|
@@ -354,7 +357,7 @@
|
|
|
354
357
|
},
|
|
355
358
|
{
|
|
356
359
|
"category": "default",
|
|
357
|
-
"description": "Default
|
|
360
|
+
"description": "Default security pack: pipeline architecture, CI audit review, application security best practices, and remediation guardrails.",
|
|
358
361
|
"hooks": [],
|
|
359
362
|
"id": "security",
|
|
360
363
|
"lintAssets": [],
|
|
@@ -364,7 +367,7 @@
|
|
|
364
367
|
"risk-aware approval discipline"
|
|
365
368
|
],
|
|
366
369
|
"promptSurfaces": ["shared-agents", "root-prompt-spec", "workspace-prompt-spec"],
|
|
367
|
-
"skills": ["audit-cicd-security", "security-best-practices"],
|
|
370
|
+
"skills": ["architect-pipeline", "audit-cicd-security", "security-best-practices"],
|
|
368
371
|
"triggerPackages": []
|
|
369
372
|
},
|
|
370
373
|
{
|
|
@@ -31,6 +31,14 @@
|
|
|
31
31
|
"sourceDirectory": "skills/agnostic/backend/logging-best-practices",
|
|
32
32
|
"tier": "agnostic"
|
|
33
33
|
},
|
|
34
|
+
{
|
|
35
|
+
"framework": null,
|
|
36
|
+
"id": "architect-pipeline",
|
|
37
|
+
"language": null,
|
|
38
|
+
"requiresTools": [],
|
|
39
|
+
"sourceDirectory": "skills/agnostic/security/architect-pipeline",
|
|
40
|
+
"tier": "agnostic"
|
|
41
|
+
},
|
|
34
42
|
{
|
|
35
43
|
"framework": null,
|
|
36
44
|
"id": "audit-cicd-security",
|
|
@@ -759,6 +767,14 @@
|
|
|
759
767
|
"sourceDirectory": "skills/agnostic/quality/autoreview",
|
|
760
768
|
"tier": "agnostic"
|
|
761
769
|
},
|
|
770
|
+
{
|
|
771
|
+
"framework": null,
|
|
772
|
+
"id": "make-tsuite",
|
|
773
|
+
"language": null,
|
|
774
|
+
"requiresTools": [],
|
|
775
|
+
"sourceDirectory": "skills/agnostic/quality/make-tsuite",
|
|
776
|
+
"tier": "agnostic"
|
|
777
|
+
},
|
|
762
778
|
{
|
|
763
779
|
"framework": null,
|
|
764
780
|
"id": "simplify",
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: make-tsuite
|
|
3
|
+
description: Audit an automated software test portfolio for signal, overlap, ownership, and placement, or implement test-only suite cleanup and coverage. Use for suite evaluation, redundant-test removal, test reorganization, or adding automated tests without changing production behavior; use tdd for production behavior changes.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Make TSuite
|
|
7
|
+
|
|
8
|
+
Build a risk-driven automated software test portfolio. `TSuite` means test suite, not TypeScript; apply this skill across languages, frameworks, toolchains, and repository layouts.
|
|
9
|
+
|
|
10
|
+
## Boundary
|
|
11
|
+
|
|
12
|
+
Production-reachable content is immutable. Writable scope is limited to automated tests and test-scoped fixtures, harnesses, seeds, artifacts, configuration, and dependencies. Inline tests or shared manifests are writable only where changed regions are mechanically isolated to test compilation or execution. Ambiguous isolation is a blocker requiring handback.
|
|
13
|
+
|
|
14
|
+
Before editing, classify every allowed path or hunk as test-scoped. After editing, inspect the complete source-control diff; completion requires every changed region and dependency to remain unreachable from production behavior, artifacts, and deployable wiring.
|
|
15
|
+
|
|
16
|
+
Keep a product defect visible as a failing test with observed failure evidence, then hand back a separate production requirement. A test-only task reaches GREEN only through test-scoped changes.
|
|
17
|
+
|
|
18
|
+
## Modes
|
|
19
|
+
|
|
20
|
+
- **Audit:** inspect and report; make no changes. Match the output to the request: a cleanup audit returns removable groups, while a portfolio evaluation includes all dispositions.
|
|
21
|
+
- **Implement:** create, strengthen, move, merge, or remove tests only when the user authorized changes.
|
|
22
|
+
|
|
23
|
+
Mode selection is complete when one mode is named and writable scope is explicit.
|
|
24
|
+
|
|
25
|
+
## Establish authority
|
|
26
|
+
|
|
27
|
+
Read repository and scoped instructions, then inspect relevant tests, fixtures, owned public seams, and their execution mechanism. Where present, inspect discovery or selection configuration and required delivery gates. Consult history or design records only when current files do not explain an important convention.
|
|
28
|
+
|
|
29
|
+
Authority discovery is complete when every test package in scope has an identified behavior owner, public or owned seam, execution and selection path, applicable repository rule, and required delivery gate when one exists.
|
|
30
|
+
|
|
31
|
+
## Semantic lock
|
|
32
|
+
|
|
33
|
+
Before changing an existing test, record its semantic fingerprint:
|
|
34
|
+
|
|
35
|
+
- capability and current behavior;
|
|
36
|
+
- public or owned seam;
|
|
37
|
+
- actor, authority, and isolation boundary;
|
|
38
|
+
- material setup, input, and fixture state;
|
|
39
|
+
- observable result or typed failure;
|
|
40
|
+
- side effect, absence of side effect, or recovery invariant.
|
|
41
|
+
|
|
42
|
+
A test transformation is equivalent only when the same behavior still passes and the same regression still fails. A changed actor, authority, input class, seam, outcome, or side effect is a new test decision.
|
|
43
|
+
|
|
44
|
+
Semantic lock is complete when every changed case maps its before-and-after fingerprint with no unexplained material difference.
|
|
45
|
+
|
|
46
|
+
## Route by work
|
|
47
|
+
|
|
48
|
+
- For inventory, signal classification, overlap, or removal, read [audit-portfolio.md](references/audit-portfolio.md).
|
|
49
|
+
- For authorized test changes, read [implement-suite.md](references/implement-suite.md).
|
|
50
|
+
- For routes, APIs, messages, commands, or protocol scenarios, also read [route-api-design.md](references/route-api-design.md).
|
|
51
|
+
- For browser, mobile, desktop, or other user journeys, also read [user-journey-design.md](references/user-journey-design.md).
|
|
52
|
+
|
|
53
|
+
## Report
|
|
54
|
+
|
|
55
|
+
Separate observed facts from recommendations. Report execution failures as blockers, never passes.
|
|
56
|
+
|
|
57
|
+
An audit report is complete when each requested finding names the cohesive test group, disposition, protected or absent invariant, and evidence. An implementation report is complete when it includes changed and retained proof, semantic-lock results, execution invocation when available and observed results, unresolved product defects, and production-immutability proof for every changed region.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Audit the portfolio
|
|
2
|
+
|
|
3
|
+
## Inventory test packages
|
|
4
|
+
|
|
5
|
+
A **test package** is the smallest cohesive cluster of cases that provides one body of evidence for a protected capability or invariant. It may be one case, one file, or several files. Group by cohesive evidence rather than directory names; record its seam, fixtures, selection path, and delivery gate where each exists.
|
|
6
|
+
|
|
7
|
+
For every package in scope, map:
|
|
8
|
+
|
|
9
|
+
- member cases and claimed behavior or invariant;
|
|
10
|
+
- public or owned seam;
|
|
11
|
+
- execution tier and boundary crossed;
|
|
12
|
+
- purpose or technique where material, such as example-based, property/fuzz, performance, security, resilience, visual, mutation, or hardware-in-loop;
|
|
13
|
+
- behavior owner and current location;
|
|
14
|
+
- execution mechanism, discovery or selection path, focused invocation when available, and required delivery gate when present;
|
|
15
|
+
- overlapping proof at the same or stricter tier;
|
|
16
|
+
- runtime cost, nondeterministic dependencies, and fixture ownership.
|
|
17
|
+
|
|
18
|
+
Read assertions and fixtures. Use listing or discovery output when static inspection cannot establish selection. Skipped cases, setup success, and importability are not executable product proof.
|
|
19
|
+
|
|
20
|
+
Inventory is complete when every package names its members and at least one claimed invariant, and every material invariant in scope has its strongest existing proof path identified.
|
|
21
|
+
|
|
22
|
+
## Judge signal
|
|
23
|
+
|
|
24
|
+
Give each package one disposition: `retain`, `strengthen`, `move`, `merge`, or `remove`.
|
|
25
|
+
|
|
26
|
+
Judge:
|
|
27
|
+
|
|
28
|
+
1. **Sensitivity:** a plausible regression fails for the intended reason.
|
|
29
|
+
2. **Observability:** assertions reach a durable result, failure, authority boundary, side effect, or compatibility contract.
|
|
30
|
+
3. **Uniqueness:** the required gate lacks cheaper equivalent proof.
|
|
31
|
+
4. **Fidelity:** owned behavior remains real across the seam under test.
|
|
32
|
+
5. **Durability:** implementation details can change without invalidating the protected behavior.
|
|
33
|
+
6. **Cost:** runtime and maintenance are proportionate to unique risk covered.
|
|
34
|
+
|
|
35
|
+
Static or indirect tests remain useful when they own an architecture boundary, source parity rule, migration invariant, or public compatibility contract. Name that ownership directly.
|
|
36
|
+
|
|
37
|
+
Classification is complete when every package has one disposition supported by observed evidence across all six criteria.
|
|
38
|
+
|
|
39
|
+
Valid sensitivity evidence leaves production unchanged: an observed historical or pre-fix failure; a mutation in a disposable copy; or a controlled perturbation of external input, fixture, or test double that preserves owned behavior as real. Label static sensitivity reasoning `unverified`.
|
|
40
|
+
|
|
41
|
+
## Removal proof
|
|
42
|
+
|
|
43
|
+
Choose `remove` only when the package has no observable invariant, or retained proof covers every material element in its semantic fingerprint. A failing test that exposes a product regression is repair or production-fix evidence.
|
|
44
|
+
|
|
45
|
+
For an authorized deletion, map each removed fingerprint element to retained proof selected by the same or stricter required gate when gates exist. A higher tier replaces lower-tier proof only when actor, authority, capability, outcome, side effect, and isolation remain covered.
|
|
46
|
+
|
|
47
|
+
Removal proof is complete when every deleted invariant maps to retained proof, or is explicitly classified `no observable invariant`, and the relevant execution mechanism selects the retained proof.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Implement the suite
|
|
2
|
+
|
|
3
|
+
Read [the TDD skill](../../tdd/SKILL.md) and its high-signal test guidance before changing tests. Apply its public-seam, vertical-slice, and honest-evidence rules. This skill's immutable-production boundary replaces TDD's production GREEN step.
|
|
4
|
+
|
|
5
|
+
## Place proof
|
|
6
|
+
|
|
7
|
+
Choose the lowest execution tier that observes the invariant without simulating its boundary:
|
|
8
|
+
|
|
9
|
+
- **Unit:** deterministic behavior owned by one module or component.
|
|
10
|
+
- **Integration:** collaboration across real adapters, persistence, filesystem, transport, configuration, or lifecycle seams.
|
|
11
|
+
- **Static/contract:** compatibility at an exported, generated, schema, or compile boundary; label whether proof is runtime or static.
|
|
12
|
+
- **Support:** test infrastructure behavior whose owner is the harness or fixture system.
|
|
13
|
+
- **System end-to-end:** distinct public intent crossing real applications, processes, devices, command interfaces, or network boundaries.
|
|
14
|
+
|
|
15
|
+
Purpose and technique are separate from tier. Apply property/fuzz, performance, security, resilience, visual, mutation, or hardware-in-loop testing at the honest tier when the protected risk requires it. Use repository-owned placement and naming conventions. Fixture setup may establish prerequisites; it must preserve the behavior under test as real.
|
|
16
|
+
|
|
17
|
+
Placement is complete when every changed test names its owner, invariant, tier, and why a lower tier cannot observe the boundary honestly.
|
|
18
|
+
|
|
19
|
+
## Execute one vertical slice
|
|
20
|
+
|
|
21
|
+
For each accepted invariant:
|
|
22
|
+
|
|
23
|
+
1. Confirm the target is selected by the intended execution mechanism and required delivery gate when one exists.
|
|
24
|
+
2. Capture the semantic fingerprint of every existing case affected.
|
|
25
|
+
3. Add or transform one slice through the owned public seam.
|
|
26
|
+
4. Choose the honest evidence state:
|
|
27
|
+
- already-correct behavior: capture a passing characterization and demonstrate sensitivity through an observed historical or pre-fix failure, a mutation in a disposable copy, or controlled perturbation of external input, fixture, or test double that keeps owned behavior real; label static reasoning `unverified`;
|
|
28
|
+
- established regression: capture genuine RED for the expected product reason and hand back production work;
|
|
29
|
+
- broken test infrastructure: reach GREEN using only test-scoped changes.
|
|
30
|
+
5. Run the focused test through its execution mechanism when available, then broader owning gates proportional to the boundary changed.
|
|
31
|
+
|
|
32
|
+
A product RED preserves an existing failure. A newly captured RED selected by a required delivery gate remains blocked and cannot be landed as completed work. Landing it requires explicit authorization plus an established non-required quarantine or disabled-test convention; otherwise hand back the production requirement.
|
|
33
|
+
|
|
34
|
+
A slice is complete when selection, observed result, sensitivity evidence, semantic equivalence, product-RED disposition, and production-boundary status are recorded before the next slice begins.
|
|
35
|
+
|
|
36
|
+
## Finish
|
|
37
|
+
|
|
38
|
+
Inspect the complete diff. Validate that every changed region and dependency is mechanically isolated to test compilation or execution and every changed case preserves or explicitly replaces its fingerprint. Record the execution invocation or mechanism, exact command when available, and observed result; distinguish absent gates, unrun gates, and environmental blockers.
|
|
39
|
+
|
|
40
|
+
Implementation is complete when all authorized dispositions are applied, affected required gates have observed outcomes when present, every changed case passes semantic lock, product RED has a valid disposition, and the diff contains no production-reachable changes.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Route and API test design
|
|
2
|
+
|
|
3
|
+
Use this reference only when the suite exercises routes, APIs, messages, commands, protocols, or comparable public transport boundaries.
|
|
4
|
+
|
|
5
|
+
## Discover the seam
|
|
6
|
+
|
|
7
|
+
Inspect the public entrypoint, routing or dispatch composition, authentication and authorization, input/output contracts, owned services, persistence, execution configuration, fixtures, and existing harness.
|
|
8
|
+
|
|
9
|
+
Discovery is complete when every distinct response, authority branch, and durable side effect in scope has an owner and an executable public seam.
|
|
10
|
+
|
|
11
|
+
## Select scenarios
|
|
12
|
+
|
|
13
|
+
Select behavior by distinct risk: success, ownership or isolation, invalid input, missing resource, conflict, external-boundary failure, partial failure, and recovery. Include only branches that carry different public meaning. Use representative actors and minimal fixtures that prove both inclusion and exclusion.
|
|
14
|
+
|
|
15
|
+
Scenario selection is complete when each selected case names a unique public outcome, authority boundary, or side-effect invariant; equivalent permutations are mapped to one representative case.
|
|
16
|
+
|
|
17
|
+
## Assert meaning
|
|
18
|
+
|
|
19
|
+
Exercise the established transport harness and real owned behavior. Replace only external systems outside the product boundary. Assert the protocol result plus its strongest stable meaning: returned value, typed failure, durable effect, no-op on failure, isolation, or absence of sensitive data.
|
|
20
|
+
|
|
21
|
+
Validation is complete when each changed scenario records the public operation, setup actor, expected protocol result, meaningful outcome or side effect, semantic-lock result, execution invocation or mechanism, and observed result.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# User journey test design
|
|
2
|
+
|
|
3
|
+
Use this reference only when the suite drives a real browser, mobile app, desktop client, terminal, or other interactive production entrypoint.
|
|
4
|
+
|
|
5
|
+
## Define the journey
|
|
6
|
+
|
|
7
|
+
Describe one plausible intent with its actor, systems crossed, visible result, persisted effect, and isolation rule. Prioritize authentication lifecycle, authority-specific states, meaningful domain transitions, persistence across reload or session changes, representative recovery, and exclusion of inaccessible data.
|
|
8
|
+
|
|
9
|
+
Journey selection is complete when each journey protects a distinct user intent or security boundary; every extra permutation has a separately named invariant.
|
|
10
|
+
|
|
11
|
+
## Preserve the real system
|
|
12
|
+
|
|
13
|
+
Reuse the repository's executable harness. Test-scoped orchestration may build artifacts, start isolated dependencies, wait for readiness, seed deterministic prerequisites through supported external seams, capture diagnostics, and clean up. Keep business rules and deployable wiring inside the real system.
|
|
14
|
+
|
|
15
|
+
Harness preparation is complete when startup, readiness, data setup, identities, diagnostic capture, and cleanup are deterministic and remain test-scoped.
|
|
16
|
+
|
|
17
|
+
## Drive public interaction
|
|
18
|
+
|
|
19
|
+
Use stable user-visible or accessibility-facing controls and states. Synchronize on specific visible state or public responses. Assert visible outcomes, authority controls, forbidden navigation, persistence, cross-session effects, and absence of inaccessible data as the protected invariant requires.
|
|
20
|
+
|
|
21
|
+
Validation is complete when each journey records actor, visible workflow, invariant, real runtime boundary, execution invocation or mechanism, observed result, artifacts, cleanup result, semantic-lock result, and production-immutability proof for every changed region.
|
package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/DURABLE-REPORT.md
CHANGED
|
@@ -6,9 +6,7 @@ written to the project wiki before the run can complete.
|
|
|
6
6
|
|
|
7
7
|
## Contract
|
|
8
8
|
|
|
9
|
-
1.
|
|
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
|
-
|
|
20
|
-
|
|
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
|
-
|
|
26
|
-
|
|
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.
|
|
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
|
|
20
|
-
project
|
|
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
|
|
23
|
-
|
|
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
|
|
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.
|