@1aboveio/skills 1.0.30 → 1.0.32

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 (78) hide show
  1. package/.codex-plugin/plugin.json +1 -1
  2. package/.codex-plugin/resources.json +140 -138
  3. package/package.json +4 -4
  4. package/skills/app-dev/airflow/SKILL.md +1 -1
  5. package/skills/app-dev/android-development/SKILL.md +1 -1
  6. package/skills/app-dev/app-debug/SKILL.md +1 -1
  7. package/skills/app-dev/better-auth/SKILL.md +1 -1
  8. package/skills/app-dev/data-catalog/SKILL.md +1 -1
  9. package/skills/app-dev/data-quality/SKILL.md +1 -1
  10. package/skills/app-dev/ios-foundation/SKILL.md +1 -1
  11. package/skills/app-dev/maestro/SKILL.md +1 -1
  12. package/skills/app-dev/monorepo/SKILL.md +1 -1
  13. package/skills/app-dev/nextjs-fullstack/SKILL.md +1 -1
  14. package/skills/app-dev/prisma-setup/SKILL.md +1 -1
  15. package/skills/app-dev/pyspark/SKILL.md +1 -1
  16. package/skills/app-dev/python-backend/SKILL.md +1 -1
  17. package/skills/app-dev/shadcn/SKILL.md +1 -1
  18. package/skills/app-dev/zod-v4/SKILL.md +1 -1
  19. package/skills/cicd/cloud-build/SKILL.md +1 -1
  20. package/skills/cicd/cloud-debug/SKILL.md +1 -1
  21. package/skills/cicd/cloud-deploy/SKILL.md +1 -1
  22. package/skills/cicd/docker/SKILL.md +1 -1
  23. package/skills/cicd/github-actions/SKILL.md +41 -127
  24. package/skills/cicd/github-actions/references/audit-and-cleanup.md +148 -116
  25. package/skills/cicd/github-actions/references/audit-profile-optimize.md +3 -151
  26. package/skills/cicd/github-actions/references/ci-case-studies.md +3 -10
  27. package/skills/cicd/github-actions/references/pipeline.md +5 -6
  28. package/skills/cicd/github-actions/references/runners.md +5 -9
  29. package/skills/cicd/github-actions/references/speed-and-audit.md +31 -116
  30. package/skills/cicd/github-flow/SKILL.md +1 -1
  31. package/skills/cicd/google-cloud/SKILL.md +1 -1
  32. package/skills/cicd/mergify/SKILL.md +4 -1
  33. package/skills/cicd/mergify/references/watch-contract.md +73 -16
  34. package/skills/cicd/mergify/scripts/batch-health.mjs +98 -0
  35. package/skills/cicd/mergify/scripts/read-delivery-attention.mjs +17 -0
  36. package/skills/cicd/mergify/scripts/watch-pr-delivery-core.mjs +58 -22
  37. package/skills/cicd/podman/SKILL.md +1 -1
  38. package/skills/content/article-review/SKILL.md +1 -1
  39. package/skills/content/article-to-image/SKILL.md +1 -1
  40. package/skills/content/flowchart-svg/SKILL.md +1 -1
  41. package/skills/content/image-gen/SKILL.md +1 -1
  42. package/skills/content/mermaid/SKILL.md +1 -1
  43. package/skills/content/wechat-article-writer/SKILL.md +1 -1
  44. package/skills/content/wechat-publisher/SKILL.md +1 -1
  45. package/skills/content/wechat-search/SKILL.md +1 -1
  46. package/skills/content/xai-search/SKILL.md +1 -1
  47. package/skills/core/distill-writing/SKILL.md +1 -1
  48. package/skills/core/doc-to-md/SKILL.md +1 -1
  49. package/skills/core/editorial-review/SKILL.md +1 -1
  50. package/skills/core/house-style/SKILL.md +1 -1
  51. package/skills/core/plain-language/SKILL.md +1 -1
  52. package/skills/core/polish-cn/SKILL.md +1 -1
  53. package/skills/core/reg-parser/SKILL.md +1 -1
  54. package/skills/core/terminology/SKILL.md +1 -1
  55. package/skills/core/write-doc/SKILL.md +1 -1
  56. package/skills/core/write-report/SKILL.md +1 -1
  57. package/skills/engineering/better-review/SKILL.md +1 -1
  58. package/skills/engineering/e2e-test/SKILL.md +1 -1
  59. package/skills/engineering/engineering/SKILL.md +1 -1
  60. package/skills/engineering/engineering-runtime/SKILL.md +1 -1
  61. package/skills/engineering/engineering-runtime/coherence/workflow.json +13 -13
  62. package/skills/engineering/ensure-coverage/SKILL.md +1 -1
  63. package/skills/engineering/golden-path/SKILL.md +1 -1
  64. package/skills/engineering/harness-runtime/SKILL.md +1 -1
  65. package/skills/engineering/resolve-issues/SKILL.md +1 -1
  66. package/skills/engineering/resolve-release/SKILL.md +1 -1
  67. package/skills/engineering/rush-issues/SKILL.md +1 -1
  68. package/skills/engineering/rush-release/SKILL.md +1 -1
  69. package/skills/engineering/test-quality/SKILL.md +1 -1
  70. package/skills/risk-compliance/compliance-audit/SKILL.md +1 -1
  71. package/skills/risk-compliance/contract-compare/SKILL.md +1 -1
  72. package/skills/risk-compliance/contract-review/SKILL.md +1 -1
  73. package/skills/risk-compliance/doc-authenticity/SKILL.md +1 -1
  74. package/skills/risk-compliance/fraud-detection/SKILL.md +1 -1
  75. package/skills/risk-compliance/payment-analysis/SKILL.md +1 -1
  76. package/skills/risk-compliance/portfolio-payment-analysis/SKILL.md +1 -1
  77. package/skills/risk-compliance/similar-domain/SKILL.md +1 -1
  78. package/skills/risk-compliance/tld-detection/SKILL.md +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1aboveio/skills",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "Every 1aboveio skill package in one: install once, then choose which packages Pi loads with npx @1aboveio/skills select.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,8 +28,8 @@
28
28
  "nativeCodex": {
29
29
  "schemaVersion": 1,
30
30
  "metadataPath": ".codex-plugin/resources.json",
31
- "metadataDigest": "eb9fcc88b308abd6e1b65985bb5b7ce5396bfeb158c3510f466c2f8155f28694",
32
- "releaseIdentity": "729bf44fc5e0395a4eaa368fb356c764990532eacac13a06a5966ae8a80d274a"
31
+ "metadataDigest": "88f94bf72e1dbf1edd7a81411937e2d049ef8747e41c7cd0b40263bffb436a2b",
32
+ "releaseIdentity": "fa8cb32c8ac1102aed1fab33d5a29d76f224237c7156367a95d46fe81920758c"
33
33
  },
34
34
  "pi": {
35
35
  "skills": [
@@ -261,7 +261,7 @@
261
261
  ]
262
262
  }
263
263
  ],
264
- "digest": "a28bc0bbd3c9ff367387a0e968cdbe31b79a7e3854793f2d9c1287bc0751ec58"
264
+ "digest": "30583917c4aec87afd66ede4ff37e37060b588fcadf5323f646d981644ac6eee"
265
265
  },
266
266
  "publishConfig": {
267
267
  "registry": "https://registry.npmjs.org/",
@@ -2,7 +2,7 @@
2
2
  name: airflow
3
3
  description: Airflow DAG architecture and conventions. Use when designing, writing, reviewing, testing, or debugging Airflow DAGs and tasks, including TaskGroups, data intervals, timezone-aware date parameters, CLI validation, environment-based scheduling, and pytest integrity tests.
4
4
  user-invocable: true
5
- release-version: 0.50.10
5
+ release-version: 0.50.12
6
6
  ---
7
7
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
8
8
  # Airflow DAG Development Patterns
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: android-development
3
3
  description: "Prove and debug Expo / React Native apps on an owned Android emulator. Use for Android startup/rendering failures, Metro or ADB problems, native harness failures, APK builds, SDK/NDK/JDK workspace setup, native journey validation, and choosing Kotlin/Compose versus React Native for Android flows. Reproduce failed Android CI checkpoints off CI before fixing and redispatching. Standalone invocation offers Project or Session; init persists repo conventions. Maestro journey authoring, UI-driver migration and flow diagnosis belong to maestro. NOT for workflow YAML, CI speed or runners (github-actions), browser tests (e2e-test), iOS (ios-foundation), plain Jest tests, or signing/store release."
4
- release-version: 0.50.10
4
+ release-version: 0.50.12
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Android development
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: app-debug
3
3
  description: "Diagnose runtime failures in deployed Cloud Run services — 5xx/422 errors, tracebacks, Next.js SSR/hydration or Server Action failures, DB/Secret Manager connection errors, cold-start timeouts, container OOM. NOT for build or deploy failures (cloud-debug)."
4
- release-version: 0.50.10
4
+ release-version: 0.50.12
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # App Debug
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: better-auth
3
3
  description: "Add or debug Better Auth for Next.js App Router: login, sessions, protected routes, middleware, OAuth (including Feishu/Lark), cookies, Prisma, and Auth.js migration."
4
- release-version: 0.50.10
4
+ release-version: 0.50.12
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Better Auth for Next.js
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: data-catalog
3
3
  description: "Column definitions for warehouse tables, written inside the Spark/PySpark or SQL script that builds each table (CATALOG_TABLE / CATALOG_FIELDS, or a `-- @field` comment block), with a generated markdown catalog in docs/catalog/ and a CI check that fails a PR whose catalog is stale. Use when writing or changing a table script that adds, renames, removes, or changes the meaning of an output column or feature; when asked what a warehouse column or feature means; to set a repo up ('init the data catalog', 'generate the data dictionary', '字段字典', 'add catalog CI'); or to audit existing SQL or Spark scripts for undocumented columns. NOT for implementing or tuning the Spark job itself (pyspark), DAG wiring (airflow), or general workflow YAML (github-actions)."
4
- release-version: 0.50.10
4
+ release-version: 0.50.12
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Data catalog
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: data-quality
3
3
  description: "Check a published warehouse table's data against its data-catalog definitions with read-only SELECTs: columns never filled or stuck at one value, counts below zero, ratios outside 0–1, declared values that never appear and undeclared values that do. Then classify each finding as a wrong definition, wrong code, or wrong data. Use when asked whether a table's data is right, to profile or sanity-check a dwd/ads table, to find dead or constant columns, to check a column's values against its documented list, after a pipeline change ships, or when a data-catalog definition and the data might disagree. NOT for validating a Spark change before it ships (pyspark canary and reconciliation), writing definitions (data-catalog), or monitoring dashboards."
4
- release-version: 0.50.10
4
+ release-version: 0.50.12
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Data quality
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: ios-foundation
3
3
  description: "Set up and prove an Expo / React Native native iOS workspace from an assigned or fresh isolated workspace to a manual Login smoke on an owned iOS Simulator: isolated workspace and private caches, Xcode/runtime/CocoaPods preflight, frozen install with `pod install --deployment`, platform-scoped prebuild, an ad-hoc-signed Debug simulator build, a private simulator by exact UDID, Metro on a free port, a disposable PostgreSQL backend with owned cleanup, and the evidence record (setup proof only; feature work reports the smoke result). Use for 'set up iOS', 'build the iOS app', 'run the app on the iOS simulator', 'add iOS to the React Native app', 'prove the iOS build', or when a pod install, xcodebuild, simulator boot, Metro connection or Keychain session fails. NOT for Android (android-development), signing, TestFlight or App Store release, or general workflow YAML (github-actions)."
4
- release-version: 0.50.10
4
+ release-version: 0.50.12
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # iOS foundation
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro
3
3
  description: "Design, run, debug and migrate mobile E2E journeys with Maestro: complete flows and subflows, selectors, parameters, exclusive UI-driver ownership, non-UI authentication/backend helpers and failure evidence. Use for Maestro YAML/CLI/MCP work, slow fragmented mobile journeys, UiAutomation driver collisions, or replacing a hybrid Python/uiautomator2 UI harness. Android-first; use platform-neutral flow guidance for iOS only with its verified device/runtime contract. NOT for Android provisioning/builds (android-development), iOS setup (ios-foundation), browser Playwright tests (e2e-test), or CI workflow YAML (github-actions)."
4
- release-version: 0.50.10
4
+ release-version: 0.50.12
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Maestro
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: monorepo
3
3
  description: Turborepo architecture for shared packages, pnpm workspaces, DAL boundaries, and pipelines.
4
- release-version: 0.50.10
4
+ release-version: 0.50.12
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Turborepo Monorepo Architecture
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: nextjs-fullstack
3
3
  description: "Build or debug Next.js App Router features with React 19 — pages/layouts/route handlers, Server/Client Components, Server Actions, forms, middleware, DAL, strict TypeScript, Zod — plus our conventions: nuqs URL state, SWR cache, Skeleton/Progress + Sonner feedback, drag-and-drop upload, the portal app shell, list pages as filter/sort/paginate tables. shadcn component mechanics: see the shadcn skill."
4
- release-version: 0.50.10
4
+ release-version: 0.50.12
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Next.js 16 Fullstack Development
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: prisma-setup
3
3
  description: Use when adding or debugging Prisma with PostgreSQL, Next.js, or Turborepo, including schema.prisma, prisma.config.ts, client generation, migrations, seeds, relations, adapters, and DAL/database-layer setup. Triggers on phrases like "Prisma schema", "prisma migrate", "schema.prisma", "seed the database", "PrismaClient error", "relation issue", or "database layer".
4
- release-version: 0.50.10
4
+ release-version: 0.50.12
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Prisma v7 Setup Guide
@@ -12,7 +12,7 @@ description: >
12
12
  Connect, spark-submit, Hudi commits, backfills, validate-only canaries,
13
13
  cluster reconciliation, or Spark event-log profiling — including warehouse
14
14
  job timeouts, empty Hudi writes, or EMR/Dataproc performance regressions.
15
- release-version: 0.50.10
15
+ release-version: 0.50.12
16
16
  ---
17
17
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
18
18
  # PySpark
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: python-backend
3
3
  description: "Python backend architecture for FastAPI, Tortoise ORM, Pydantic Settings, loguru, and uv. Also: uv.lock installs in CI/Docker via a proxy or mirror (`uv sync --frozen` bypasses it), slow uv installs on runners, relocking"
4
- release-version: 0.50.10
4
+ release-version: 0.50.12
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Python Backend Conventions
@@ -2,7 +2,7 @@
2
2
  name: shadcn
3
3
  description: "Add or debug shadcn/ui in a React/Next.js project: components.json, shadcn init/add, presets, registries, Tailwind styling, base/radix/aria composition, component fixes, and list-index pages — where the default is the DiceUI data table with filter/sort/pagination in the URL via nuqs, not a bare shadcn Table."
4
4
  allowed-tools: Bash(npx shadcn@latest *), Bash(pnpm dlx shadcn@latest *), Bash(bunx --bun shadcn@latest *)
5
- release-version: 0.50.10
5
+ release-version: 0.50.12
6
6
  ---
7
7
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
8
8
  # shadcn/ui
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: zod-v4
3
3
  description: Zod v4 schema conventions and v3 migration for errors, validators, objects, enums, records, and async parsing.
4
- release-version: 0.50.10
4
+ release-version: 0.50.12
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Zod v3 to v4 Migration
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: cloud-build
3
3
  description: "Build or debug Cloud Build pipelines for Cloud Run: cloudbuild.yaml, triggers, Artifact Registry, builds, migrations, deploys, secrets, VPC, notifications. Use cloud-deploy for staged promotion. NOT for GitHub Actions PR checks (github-actions)."
4
- release-version: 0.50.10
4
+ release-version: 0.50.12
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Cloud Build Direct Deploy to Cloud Run
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: cloud-debug
3
3
  description: "Debug Cloud Build or Deploy failures: builds, deployments, health checks, and pipeline errors. Inputs: service, build ID, region. NOT for GitHub Actions runs (github-actions) or runtime errors in a running service (app-debug)"
4
- release-version: 0.50.10
4
+ release-version: 0.50.12
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Cloud Build & Cloud Deploy Debug Skill
@@ -5,7 +5,7 @@ description: >
5
5
  CI/CD pipelines with staged promotion, verification gates, or GitFlow branching.
6
6
  Also use when debugging Cloud Deploy pipeline failures. NOT for simple single-container
7
7
  deploys — use cloud-build instead.
8
- release-version: 0.50.10
8
+ release-version: 0.50.12
9
9
  ---
10
10
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
11
11
  # Cloud Deploy + Skaffold + Kustomize for Cloud Run
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: docker
3
3
  description: Docker/Podman container architecture and build patterns. Read when designing or reviewing containerization, Dockerfile structure, multi-stage builds, PyPI mirror support, or docker-compose setup for Python/uv projects, and when a Dockerfile's dependency install misses the layer cache on every build (build args such as a commit SHA or version declared too early) or an image build is slow in CI.
4
- release-version: 0.50.10
4
+ release-version: 0.50.12
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Docker Build Patterns
@@ -1,136 +1,50 @@
1
1
  ---
2
2
  name: github-actions
3
3
  description: "Author, review, audit, profile, optimize, or debug GitHub Actions workflows (.github/workflows/*.yml): run-history audits, CI cleanup to get each job below five minutes, job and step timing, resource bottlenecks, before/after comparisons, conditional CI by changed path, the one required gate check, PR and merge-queue lanes, sharding, workers, caching, self-hosted runners, timeouts, concurrency, permissions and action pinning, post-deploy verification, npm publishing. Use for 'set up CI', 'CI is slow', 'profile CI', 'optimize our pipeline', 'audit CI for redundant or wasted jobs', 'why is this check stuck expected or never started', 'harden this workflow', or 'browser not found on the runner'. NOT for pushing, opening, or merging a PR, or writing CI conventions into CONTRIBUTING.md (github-flow), queue rules or a check unmet inside Mergify (mergify), Playwright config and specs (e2e-test), cloudbuild.yaml or Cloud Run deploys (cloud-build), or which gates a repo must prove (ensure-coverage)."
4
- release-version: 0.50.10
4
+ release-version: 0.50.12
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # GitHub Actions
8
8
 
9
9
  GitHub Actions verifies; Cloud Build builds and deploys. No workflow deploys to GCP.
10
10
 
11
- ## Workflow
12
-
13
- For pipeline audits and cleanup, read [audit checklist and cleanup method](references/audit-and-cleanup.md).
14
- It covers the whole skill, cgroup awareness, and the `test-quality` handoff for test cleanup.
15
- The target is every job under five minutes, including setup and teardown; report exceptions.
16
-
17
- For an existing pipeline, use **inspect -> fix -> verify**:
18
- [inspect-fix-verify guidance](references/audit-profile-optimize.md). Inspect only enough
19
- source and representative runs to choose an optimization, implement it for fix/optimize
20
- requests, and verify proportionately. For optimization, start with successful-run timing,
21
- not the first red job. Keep required checks unchanged. Audit-only requests stay
22
- read-only; the CLI itself never edits workflows. No report files, evidence tables, run
23
- archives, or full-history audit are required unless requested or useful to the task.
24
- Close out with changes, verification, and remaining blockers. Optional examples:
25
- [ci-case-studies.md](references/ci-case-studies.md).
26
- Steps 2-7 below describe new workflows or an authorized redesign, not mandatory
27
- replacement of an established pipeline during an audit or performance-only change.
28
-
29
- 1. **Profile first.** Use `scripts/ci-run-audit.mjs --profile-run <id>` on a representative
30
- successful run. First inspect job/step timings and a compact job graph (names, `needs`,
31
- conditions, runners); then read the bottleneck job and its invoked scripts. Locate
32
- relevant policy sections instead of loading every CI document. Expand for parallelism,
33
- repeated setup, placement, or unnecessary work; use failures when they explain latency
34
- or block valid measurement. No justified optimization is a valid outcome, not a reason
35
- to invent one.
36
- -> [audit-profile-optimize.md](references/audit-profile-optimize.md)
37
- Command template -> [two-pass-reading.md](references/two-pass-reading.md)
38
- 2. **Write one `ci.yml`** from the template: `changes` → area jobs → `gate`.
39
- → [conditional-ci.md](references/conditional-ci.md)
40
- 3. **Pick the queue** (none, Mergify, GitHub native) and wire its trigger.
41
- → [pipeline.md](references/pipeline.md#merge-queue-optional-pick-one)
42
- 4. **Require only `gate`** in branch protection and the queue.
43
- → [pipeline.md](references/pipeline.md#the-one-required-check)
44
- 5. **Place jobs on runners**: canonical labels, fork guard, slot-sized parallelism.
45
- → [runners.md](references/runners.md)
46
- 6. **Harden**: permissions, pins, inputs through `env:`. → [security.md](references/security.md)
47
- 7. **Add post-deploy and scheduled lanes** if the repo deploys or publishes.
48
- → [post-deploy-and-publishing.md](references/post-deploy-and-publishing.md)
49
- 8. **Verify**: `actionlint`; one PR per area runs only that area's jobs; timings meet the SLA.
50
- Failures → [debugging.md](references/debugging.md). Waiting on a live run, or on a publish
51
- run → [debugging.md#watching-a-run](references/debugging.md#watching-a-run): `scripts/watch-run.mjs`
52
- reports job/step transitions and slow steps, which `gh run watch`'s 30-second repaint hides.
53
-
54
- ## Principles
55
-
56
- **Conditional CI**
57
- - Make CI conditional by default. Trigger backend and frontend jobs by path; skip docs and
58
- non-runtime configs.
59
- - Put no `paths:` on the workflow. Filter inside a `changes` job.
60
- - For a new design require one `gate` with `if: always()`. During optimization,
61
- preserve existing required names unless changing that contract is authorized.
62
- - Keep live external-service canaries off PRs; bound unavoidable dependency downloads.
63
-
64
- **Speed**
65
- - Run each check once per tree: with a merge queue, no `push: main` or scheduled gate
66
- rerun, and each heavy check in one lane. Never skip validation of a changed queue
67
- tree. Build once, fan out.
68
- - Cache downloads: runner-local stores on self-hosted, `actions/cache` on GitHub-hosted.
69
- Once downloads are local, the remaining time is repeated work: profile before caching.
70
- - Keep one type-check gate and one lint gate; turn off the type check and lint inside
71
- framework builds in other jobs.
72
- - Shard E2E.
73
- - **Cgroup awareness:** derive test/build workers, within-job parallelism and Node heap
74
- limits from effective CPU and memory ceilings. Share the budget across concurrent
75
- processes and reserve non-heap memory. Read [resource sizing](references/audit-and-cleanup.md#cgroup-awareness).
76
- - For expensive test cleanup, load `test-quality` and follow its audit → fix → verify
77
- method; CI owns worker counts and sharding.
78
- - Configure self-hosted PostgreSQL jobs with infra's slot-pod helper: start, verify,
79
- run consumers, then always-cleanup. Use the [PostgreSQL workflow templates](references/postgres-workflows.md).
80
- Infra owns pod, network and cgroup setup; workflows consume its provided interface.
81
- - Prefer size-bounded tmpfs within the supported storage contract. Disable durability
82
- only when measured and the tests do not require persistence/recovery semantics.
83
- - Screenshot and trace only failed tests.
84
- - Give every job `timeout-minutes`; it is the only hang limit, since the queue sets none.
85
-
86
- **Merge queue (Mergify)**
87
- - Open one PR per issue. Enqueue ready PRs together, in one batch.
88
- - Load the pnpm lockfile once, at admission. Skip the re-load in the queue only with a repo
89
- command for it, and never when the batch changed `pnpm-lock.yaml`.
90
-
91
- **Performance target**
92
- - Every job, including E2E and builds: < 5 min from job start through teardown.
93
- - Full workflow run: ≤ 20 min; for merge-queue workflows, admission ≤ 5 min and
94
- queue validation ≤ 15 min. Include E2E, builds, scheduling and dependency waits,
95
- setup and teardown. These limits are inclusive; the per-job target stays < 5 min.
96
- - Measure from run creation to completion, not by summing parallel job durations.
97
- Break out scheduling wait and execution to locate the cause of a breach.
98
- - Use the [cleanup method](references/audit-and-cleanup.md#cleanup-method) for over-budget jobs;
99
- preserve validation and report any unmet target.
100
-
101
- **Security**
102
- - Set `permissions: contents: read` at the top.
103
- - SHA-pin third-party actions.
104
- - Pass `${{ }}` to shell through `env:`.
105
- - Fail on a missing secret.
106
-
107
- **Lanes**
108
- - When issues include Acceptance Criteria, wire their automated tests into the
109
- appropriate candidate lane and expose their results through the existing gate.
110
- See [acceptance execution](references/pipeline.md#acceptance-execution); preserve
111
- required check names and obtain authorization for changes to merge requirements.
112
- - Test the deployed revision after deploy, never a local build.
113
- - Alert on every scheduled or non-PR failure.
114
- - Never let an AI review be the only gate, or auto-pass it on timeout.
115
-
116
- ## References
117
-
118
- | Read | When |
119
- |---|---|
120
- | [audit-and-cleanup.md](references/audit-and-cleanup.md) | Overall audit checklist, sub-five-minute jobs, cgroup sizing, test cleanup handoff |
121
- | [audit-profile-optimize.md](references/audit-profile-optimize.md) | Profile the bottleneck, optimize its execution path, verify; expand only as needed |
122
- | [ci-case-studies.md](references/ci-case-studies.md) | Anonymized CI improvements, measured results, failed experiments and evidence caveats |
123
- | [conditional-ci.md](references/conditional-ci.md) | Template; path, event, or queue conditions |
124
- | [pipeline.md](references/pipeline.md) | Lanes, merge queue options, the required check, workflow layout |
125
- | [speed-and-audit.md](references/speed-and-audit.md) | CI audit, caching, timeouts, concurrency, workers, Postgres |
126
- | [runners.md](references/runners.md) | Self-hosted job placement and integration constraints |
127
- | [postgres-workflows.md](references/postgres-workflows.md) | PostgreSQL workflow configuration and templates for self-hosted and GitHub-hosted jobs |
128
- | [security.md](references/security.md) | Hardening a workflow |
129
- | [post-deploy-and-publishing.md](references/post-deploy-and-publishing.md) | Post-deploy verification, npm publishing |
130
- | [debugging.md](references/debugging.md) | Failed run, missing check, stuck job |
131
-
132
- **Hand-offs:** test cleanup → `test-quality` (optional integration; load it before changing
133
- tests; if unavailable, report that part blocked and continue independent CI cleanup);
134
- what to prove → `ensure-coverage`; Playwright → `e2e-test`; build and deploy →
135
- `cloud-build` / `cloud-deploy`; queue config and a stuck queued PR → `mergify`; push, PR,
136
- merge, and CI conventions in `CONTRIBUTING.md` → `github-flow`.
11
+ ## Route the task
12
+
13
+ | Task | Read and apply |
14
+ | --- | --- |
15
+ | Audit, profile, cleanup or optimize an existing pipeline | [Audit route](references/audit-and-cleanup.md): objective, four performance questions, evidence, priorities, verification |
16
+ | New workflow or authorized redesign | [Pipeline and gates](references/pipeline.md), then [conditional CI template](references/conditional-ci.md) |
17
+ | Add or move self-hosted work; investigate slot, container or browser failures | [Runner interface](references/runners.md); for PostgreSQL, [workflow templates](references/postgres-workflows.md) |
18
+ | Harden a workflow | [Security](references/security.md) |
19
+ | Post-deploy checks or publishing | [Post-deploy and publishing](references/post-deploy-and-publishing.md) |
20
+ | Failed, missing, stuck or live run | [Debugging and run watcher](references/debugging.md) |
21
+
22
+ Read only the references needed for the task. Templates describe new designs, not
23
+ mandatory replacements during an audit or performance-only change.
24
+
25
+ ## Team defaults and boundaries
26
+
27
+ - Use conditional CI and the single required gate for new designs, as defined in
28
+ [pipeline.md](references/pipeline.md). Preserve existing required names and validation
29
+ meaning during optimization; changes to merge requirements need authorization.
30
+ - Audit/review requests stay read-only. Fix/optimize requests implement justified changes
31
+ within scope. The run-history CLI only inspects; it never edits workflows.
32
+ - Apply the [timing targets](references/audit-and-cleanup.md#timing-targets), including
33
+ setup and teardown. Meeting time targets does not end the efficiency audit.
34
+ - Keep runner infrastructure changes with the fleet owner. Workflows consume its
35
+ interfaces; PostgreSQL on self-hosted runners uses its slot-pod helper.
36
+ - Push, PR, merge and saved CI conventions belong to `github-flow`; queue configuration,
37
+ membership and evidence-reuse rules belong to `mergify`. Open one PR per issue and
38
+ enqueue ready PRs together in one batch when delivery is authorized.
39
+ - What to prove belongs to `ensure-coverage` / `golden-path`; test-content cleanup to
40
+ `test-quality`; Playwright specs/fixtures to `e2e-test`; build/deploy to
41
+ `cloud-build` / `cloud-deploy`. Load `test-quality` before test edits; if unavailable,
42
+ report that part blocked and continue independent CI work.
43
+
44
+ ## Completion
45
+
46
+ Close with findings or changes, what was verified, unmet targets and remaining blockers.
47
+ For workflow edits run affected script checks and `actionlint`; verify selection and
48
+ failure propagation when changed. Report unavailable live measurement as unverified.
49
+ No justified change is a valid outcome. Report files, evidence tables and run archives
50
+ are optional unless requested or useful for replay.