@1aboveio/skills 1.0.46 → 1.0.48

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 (90) hide show
  1. package/.codex-plugin/plugin.json +1 -1
  2. package/.codex-plugin/resources.json +155 -154
  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-catalog/scripts/persist-conventions-core.mjs +7 -3
  10. package/skills/app-dev/data-quality/SKILL.md +1 -1
  11. package/skills/app-dev/interaction-design/SKILL.md +1 -1
  12. package/skills/app-dev/ios-foundation/SKILL.md +1 -1
  13. package/skills/app-dev/maestro/SKILL.md +1 -1
  14. package/skills/app-dev/monorepo/SKILL.md +1 -1
  15. package/skills/app-dev/nextjs-fullstack/SKILL.md +1 -1
  16. package/skills/app-dev/prisma-setup/SKILL.md +1 -1
  17. package/skills/app-dev/pyspark/SKILL.md +1 -1
  18. package/skills/app-dev/python-backend/SKILL.md +1 -1
  19. package/skills/app-dev/shadcn/SKILL.md +1 -1
  20. package/skills/app-dev/zod-v4/SKILL.md +1 -1
  21. package/skills/cicd/cloud-build/SKILL.md +1 -1
  22. package/skills/cicd/cloud-debug/SKILL.md +1 -1
  23. package/skills/cicd/cloud-deploy/SKILL.md +1 -1
  24. package/skills/cicd/docker/SKILL.md +1 -1
  25. package/skills/cicd/github-actions/SKILL.md +67 -46
  26. package/skills/cicd/github-actions/references/audit-and-cleanup.md +80 -5
  27. package/skills/cicd/github-actions/references/conditional-ci.md +155 -178
  28. package/skills/cicd/github-actions/references/pipeline.md +63 -26
  29. package/skills/cicd/github-actions/references/two-pass-reading.md +50 -3
  30. package/skills/cicd/github-flow/SKILL.md +45 -19
  31. package/skills/cicd/github-flow/references/candidate-admission.md +51 -0
  32. package/skills/cicd/github-flow/references/ci-conventions.md +11 -12
  33. package/skills/cicd/github-flow/scripts/flow-core.mjs +10 -5
  34. package/skills/cicd/github-flow/scripts/persist-conventions-core.mjs +7 -3
  35. package/skills/cicd/github-flow/scripts/persist-conventions.mjs +55 -1
  36. package/skills/cicd/google-cloud/SKILL.md +1 -1
  37. package/skills/cicd/mergify/SKILL.md +1 -1
  38. package/skills/cicd/mergify/references/stacks.md +9 -2
  39. package/skills/cicd/mergify/scripts/stack-push-core.mjs +4 -1
  40. package/skills/cicd/podman/SKILL.md +1 -1
  41. package/skills/content/article-review/SKILL.md +1 -1
  42. package/skills/content/article-to-image/SKILL.md +1 -1
  43. package/skills/content/flowchart-svg/SKILL.md +1 -1
  44. package/skills/content/image-gen/SKILL.md +1 -1
  45. package/skills/content/mermaid/SKILL.md +1 -1
  46. package/skills/content/wechat-article-writer/SKILL.md +1 -1
  47. package/skills/content/wechat-publisher/SKILL.md +1 -1
  48. package/skills/content/wechat-search/SKILL.md +1 -1
  49. package/skills/content/xai-search/SKILL.md +1 -1
  50. package/skills/core/distill-writing/SKILL.md +1 -1
  51. package/skills/core/doc-to-md/SKILL.md +1 -1
  52. package/skills/core/editorial-review/SKILL.md +1 -1
  53. package/skills/core/house-style/SKILL.md +1 -1
  54. package/skills/core/plain-language/SKILL.md +1 -1
  55. package/skills/core/polish-cn/SKILL.md +1 -1
  56. package/skills/core/reg-parser/SKILL.md +1 -1
  57. package/skills/core/terminology/SKILL.md +1 -1
  58. package/skills/core/write-doc/SKILL.md +1 -1
  59. package/skills/core/write-report/SKILL.md +1 -1
  60. package/skills/engineering/acceptance-design/SKILL.md +1 -1
  61. package/skills/engineering/better-review/SKILL.md +1 -1
  62. package/skills/engineering/e2e-test/SKILL.md +1 -1
  63. package/skills/engineering/engineering/SKILL.md +1 -1
  64. package/skills/engineering/engineering/scripts/persist-conventions-core.mjs +7 -3
  65. package/skills/engineering/engineering-runtime/SKILL.md +1 -1
  66. package/skills/engineering/engineering-runtime/coherence/workflow.json +14 -14
  67. package/skills/engineering/ensure-coverage/SKILL.md +1 -1
  68. package/skills/engineering/golden-path/SKILL.md +1 -1
  69. package/skills/engineering/harness-runtime/SKILL.md +1 -1
  70. package/skills/engineering/resolve-issues/SKILL.md +2 -2
  71. package/skills/engineering/resolve-issues/references/ci.md +3 -0
  72. package/skills/engineering/resolve-issues/references/implementation.md +7 -2
  73. package/skills/engineering/resolve-issues/references/review.md +7 -2
  74. package/skills/engineering/resolve-issues/scripts/next-actions.mjs +5 -4
  75. package/skills/engineering/resolve-issues/scripts/review-verdict.mjs +19 -7
  76. package/skills/engineering/resolve-release/SKILL.md +1 -1
  77. package/skills/engineering/rush-issues/SKILL.md +1 -1
  78. package/skills/engineering/rush-release/SKILL.md +1 -1
  79. package/skills/engineering/test-quality/SKILL.md +1 -1
  80. package/skills/engineering/test-quality/scripts/persist-conventions-core.mjs +7 -3
  81. package/skills/risk-compliance/compliance-audit/SKILL.md +1 -1
  82. package/skills/risk-compliance/contract-compare/SKILL.md +1 -1
  83. package/skills/risk-compliance/contract-review/SKILL.md +1 -1
  84. package/skills/risk-compliance/doc-authenticity/SKILL.md +1 -1
  85. package/skills/risk-compliance/fraud-detection/SKILL.md +1 -1
  86. package/skills/risk-compliance/payment-analysis/SKILL.md +1 -1
  87. package/skills/risk-compliance/portfolio-payment-analysis/SKILL.md +1 -1
  88. package/skills/risk-compliance/rfi-writing/SKILL.md +1 -1
  89. package/skills/risk-compliance/similar-domain/SKILL.md +1 -1
  90. 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.46",
3
+ "version": "1.0.48",
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": "cee3c5473adfe161f926a2534cd75d072d6067456b8184017a64de5db9caed04",
32
- "releaseIdentity": "ab9ac148ebc4f5a801404b2912444eceeb766e49ab2e68860ca42e418a9c3267"
31
+ "metadataDigest": "cc3cb013058c2f39a17bb2fd2a3ee329079fc9a088128d37712968d37f4830fe",
32
+ "releaseIdentity": "50e048464218873d94f51f010bd07c5f8c1084bb2f9c6d29b0e33a177090150d"
33
33
  },
34
34
  "pi": {
35
35
  "skills": [
@@ -265,7 +265,7 @@
265
265
  ]
266
266
  }
267
267
  ],
268
- "digest": "0970b2e00a6c5fbcc335d06014dcb1649b9f042c3c1cc9a632af7762dc55f5c6"
268
+ "digest": "da111d022027d6c2480200150c18f120682c01dac47e2be1ea1d386a75d4edc8"
269
269
  },
270
270
  "publishConfig": {
271
271
  "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.27
5
+ release-version: 0.50.29
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, HTTPS routing and certificate trust for runner-local services and pilot devices, native harness failures, APK builds, SDK/NDK/JDK workspace setup, native journey validation, and choosing Kotlin/Compose versus React Native for Android flows. Start Android CI diagnosis locally when the failing checkpoint can run there. 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.27
4
+ release-version: 0.50.29
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.27
4
+ release-version: 0.50.29
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.27
4
+ release-version: 0.50.29
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.27
4
+ release-version: 0.50.29
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Data catalog
@@ -90,7 +90,7 @@ export function taskEntryBlock({ id, title, body }) {
90
90
  }
91
91
 
92
92
  const escape = (text) => text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
93
- function withoutExamples(text) {
93
+ export function withoutExamples(text, { showSectionMarkers = false } = {}) {
94
94
  let fence = null
95
95
  let comment = false
96
96
  const active = text.split('\n').map(line => {
@@ -100,6 +100,7 @@ function withoutExamples(text) {
100
100
  && line.slice(match[0].length).trim() === '') fence = null
101
101
  return ''
102
102
  }
103
+ const beganInComment = comment
103
104
  let masked = ''
104
105
  let cursor = 0
105
106
  while (cursor < line.length) {
@@ -114,7 +115,10 @@ function withoutExamples(text) {
114
115
  }
115
116
  const match = /^ {0,3}(`{3,}|~{3,})/.exec(masked)
116
117
  if (match) { fence = match[1]; return '' }
117
- return /^(?: {4}|\t|\s*>)/.test(line) ? '' : line
118
+ if (/^(?: {4}|\t|\s*>)/.test(line)) return ''
119
+ if (!showSectionMarkers) return line
120
+ if (!beganInComment && /^ {0,3}<!-- conventions:[\w-]+:(?:start|end) -->\s*$/.test(line)) return line.trim()
121
+ return masked
118
122
  }).join('\n')
119
123
  if (fence) throw new Error('unclosed Markdown code fence; repair guidance before setup')
120
124
  if (comment) {
@@ -279,7 +283,7 @@ function apply(repoRoot, entries, write) {
279
283
  export function persist(repoRoot, section, { write = false } = {}) {
280
284
  const block = sectionBlock(section)
281
285
  const entries = [
282
- { name: CONTRIBUTING_FILE, render: (text) => renderConventions(text, section.id, block), loaders: [] },
286
+ { name: CONTRIBUTING_FILE, render: (text) => (section.render ?? renderConventions)(text, section.id, block), loaders: [] },
283
287
  ...indexEntries(section),
284
288
  ]
285
289
  return apply(repoRoot, entries, write)
@@ -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.27
4
+ release-version: 0.50.29
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: interaction-design
3
3
  description: Design, review or simplify user flows in web and native apps. Use when deciding what people need to choose, what feedback or recovery an action needs, or how motion communicates a state change.
4
- release-version: 0.50.27
4
+ release-version: 0.50.29
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Interaction design
@@ -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.27
4
+ release-version: 0.50.29
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.27
4
+ release-version: 0.50.29
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.27
4
+ release-version: 0.50.29
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.27
4
+ release-version: 0.50.29
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.27
4
+ release-version: 0.50.29
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.27
15
+ release-version: 0.50.29
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.27
4
+ release-version: 0.50.29
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.27
5
+ release-version: 0.50.29
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.27
4
+ release-version: 0.50.29
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.27
4
+ release-version: 0.50.29
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.27
4
+ release-version: 0.50.29
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.27
8
+ release-version: 0.50.29
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.27
4
+ release-version: 0.50.29
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Docker Build Patterns
@@ -1,56 +1,77 @@
1
1
  ---
2
2
  name: github-actions
3
- description: "Author, audit, profile, optimize, or debug GitHub Actions workflows (.github/workflows/*.yml): CI timings (download, setup, execution), runner resource use, same-runner parallelism, caching, sharding, worker counts, transient failure retries, conditional CI with Nx or Turborepo, required gates, PR and merge-queue lanes, timeouts, permissions, action pinning, public HTTPS cutover verification, post-deploy checks and npm publishing. Use when CI is slow, a check is stuck or never starts, or a runner lacks a browser. NOT for PR delivery or saved CI conventions (github-flow), queue rules or CI Insights Auto-Retry (mergify), Playwright config and specs (e2e-test), Cloud Run build/deploy (cloud-build), or deciding what a gate must prove (ensure-coverage)."
4
- release-version: 0.50.27
3
+ description: "Design, audit, optimize, or debug GitHub Actions CI. Use /github-actions audit to trace PR and merge-queue candidates through triggers, job dependencies, and required checks. Also covers CI performance, runners, and verification after deployment or publication."
4
+ release-version: 0.50.29
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
- ## Route the task
11
+ ## Principle
12
12
 
13
- | Task | Read and apply |
13
+ Give each validation stage a specific claim and candidate. Source PRs prove changes,
14
+ the merge queue proves its assembled tree, and deployed checks prove the serving revision.
15
+ For new or redesigned CI, one automatic entry owns PR and queue validation. Before
16
+ allocating expensive workers, run the repository's selector **inside admission**
17
+ and validate its candidate-bound plan. Admission succeeds only with a valid plan.
18
+ Worker conditions consume that decision. Required checks compare the plan with
19
+ actual results. Preserve existing check names, their meaning and agreed exemptions.
20
+
21
+ In a pnpm workspace, expose admission through a stable root package script
22
+ (default `pnpm run ci:admit`). Local pre-push and CI Stage 0 call the same entry.
23
+
24
+ ## Workflow + Reference
25
+
26
+ | Task | Procedure |
27
+ | --- | --- |
28
+ | Design CI or implement an authorized redesign | Read the repository's CI policy and [pipeline and gates](references/pipeline.md). Identify the candidate, required checks and applicable events. Wire the [conditional CI template](references/conditional-ci.md) through admission, workers and final reporting. |
29
+ | `/github-actions audit` or “audit our CI” | Run the [read-only repository audit](references/audit-and-cleanup.md#inventory-the-candidates-workflows). Inventory all automatic entries and local calls, including path-filtered workers. Trace the jobs that can start and what their gates can accept. Use run data when the question involves observed behavior, cost, or latency. |
30
+ | Optimize an existing pipeline | Apply the [audit procedure](references/audit-and-cleanup.md) to the objective. Choose a measured change within scope. Use [in-job parallelism](references/speed-and-audit.md#in-job-parallelism) and [runner budgets](references/audit-and-cleanup.md#size-parallelism-to-the-runner) when concurrency is relevant. |
31
+ | Implement an environment-specific check | Read the [runner interface](references/runners.md), [self-hosted PostgreSQL templates](references/postgres-workflows.md) or [workflow security rules](references/security.md) as applicable. For runner-local HTTPS on an Android emulator use the device routing, trust and cleanup reference in `android-development`. |
32
+ | Verify a deployment, public HTTPS cutover, or package publication | Use the [post-deploy and publishing guide](references/post-deploy-and-publishing.md) and its [public HTTPS procedure](references/post-deploy-and-publishing.md#public-https-cutover). |
33
+
34
+ `ensure-coverage` and `golden-path` define what a gate must prove. Use `test-quality`
35
+ before editing tests and `e2e-test` for Playwright specs and fixtures. If `test-quality`
36
+ is unavailable, report test edits blocked and continue independent CI work. The
37
+ fleet owner manages runner infrastructure. Cloud Build builds and deploys to GCP.
38
+ `github-flow` owns pre-push/PR delivery and saved conventions. `mergify` owns queue
39
+ rules, membership and evidence reuse. When delivery is authorized, open one PR per
40
+ issue and enqueue ready PRs together.
41
+
42
+ ## Output
43
+
44
+ - **Design or implementation:** identify the candidate, stage, planned checks and
45
+ allowed skips, the job dependencies enforcing admission, and the required statuses.
46
+ For builds or deployments, show which artifact or revision the result qualifies.
47
+ Run affected script checks and `actionlint` for workflow edits. Report the observed
48
+ selection and failure propagation when those change.
49
+ - **Architecture audit:** show the actual order from each PR or queue entry through
50
+ candidate selection, plan validation, first expensive allocation and required
51
+ status. Say whether admission encloses the selector and whether every expensive
52
+ path depends on its success. For an intentional always-full policy, identify
53
+ its coverage obligation. Point out any missing coverage or independent entry.
54
+ - **Audit or optimization:** for each material finding, name the workflow and job,
55
+ evidence, consequence and smallest justified correction. Distinguish configured
56
+ behavior from observed runs. Include unmet [timing targets](references/audit-and-cleanup.md#timing-targets)
57
+ and mark unavailable measurements unknown. A clean audit may recommend no changes.
58
+ - **Diagnosis:** identify the first failing stage, what was observed, and the next
59
+ discriminating check or the verified fix.
60
+
61
+ ## Avoids
62
+
63
+ - Recomputing selection per worker, reusing a source PR's plan for a changed queue
64
+ tree, or accepting a missing result as an intentional skip.
65
+ - Adding a second runtime just to orchestrate checks, duplicating a workspace graph
66
+ in path lists, or caching device success as proof for a new candidate.
67
+ - Turning a read-only audit into a policy migration. Implement fixes within authorized
68
+ scope. Coordinate any change to required checks with branch protection and the queue.
69
+
70
+ ## Troubleshooting
71
+
72
+ | Symptom | Where to look |
14
73
  | --- | --- |
15
- | Audit, profile, cleanup or optimize an existing pipeline | [Audit route](references/audit-and-cleanup.md): download/setup/execution timings, core questions, priorities, verification |
16
- | New workflow or authorized redesign | [Pipeline and gates](references/pipeline.md), then [conditional CI template](references/conditional-ci.md) |
17
- | Run independent steps on the same runner or size worker pools | [In-job parallelism](references/speed-and-audit.md#in-job-parallelism) and [runner resource budgets](references/audit-and-cleanup.md#size-parallelism-to-the-runner) |
18
- | 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) |
19
- | Android emulator connecting to an HTTPS service in the same job | Follow the runner-local HTTPS reference in `android-development` for device routing, certificate trust and cleanup |
20
- | Harden a workflow | [Security](references/security.md) |
21
- | Verify a public HTTPS cutover | [Ingress, certificate and traffic checks](references/post-deploy-and-publishing.md#public-https-cutover) |
22
- | Verify a deployment or publish a package | [Post-deploy verification](references/post-deploy-and-publishing.md#post-deploy-verification) or [publishing](references/post-deploy-and-publishing.md#publishing) |
23
- | Retry transient failures in PR or merge-queue CI | [Conditional retries](references/conditional-retries.md) |
24
- | Failed, missing, stuck or live run | [Debugging and run watcher](references/debugging.md) |
25
-
26
- Read only the references needed for the task. Templates describe new designs, not
27
- mandatory replacements during an audit or performance-only change.
28
-
29
- ## Team defaults and boundaries
30
-
31
- - Use conditional CI and the single required gate for new designs, as defined in
32
- [pipeline.md](references/pipeline.md). Preserve existing required names and validation
33
- meaning during optimization; changes to merge requirements need authorization.
34
- - In monorepos, default to dependency-aware selection alongside conditional CI; use
35
- the existing Nx or Turborepo setup. See [selection principles](references/conditional-ci.md#dependency-aware-selection).
36
- - Audit/review requests stay read-only. Fix/optimize requests implement justified changes
37
- within scope. The run-history CLI only inspects; it never edits workflows.
38
- - Apply the [timing targets](references/audit-and-cleanup.md#timing-targets), including
39
- setup and teardown. Meeting time targets does not end the efficiency audit.
40
- - Keep runner infrastructure changes with the fleet owner. Workflows consume its
41
- interfaces; PostgreSQL on self-hosted runners uses its slot-pod helper.
42
- - Push, PR, merge and saved CI conventions belong to `github-flow`; queue configuration,
43
- membership and evidence-reuse rules belong to `mergify`. Open one PR per issue and
44
- enqueue ready PRs together in one batch when delivery is authorized.
45
- - What to prove belongs to `ensure-coverage` / `golden-path`; test-content cleanup to
46
- `test-quality`; Playwright specs/fixtures to `e2e-test`; build/deploy to
47
- `cloud-build` / `cloud-deploy`. Load `test-quality` before test edits; if unavailable,
48
- report that part blocked and continue independent CI work.
49
-
50
- ## Completion
51
-
52
- Close with findings or changes, what was verified, unmet targets and remaining blockers.
53
- For workflow edits run affected script checks and `actionlint`; verify selection and
54
- failure propagation when changed. Report unavailable live measurement as unverified.
55
- No justified change is a valid outcome. Report files, evidence tables and run archives
56
- are optional unless requested or useful for replay.
74
+ | Admission failed but a build or device job started | Follow every matching trigger through caller jobs, reusable workflows and `needs`. Look for a second PR entry or a guard inside a job already allocated. [Audit inventory](references/audit-and-cleanup.md#inventory-the-candidates-workflows) |
75
+ | A green gate missed a check | Compare the admitted obligations and exemptions with actual results and the reducer's skip decisions. Check the candidate and artifact identities. [Pipeline and gates](references/pipeline.md) |
76
+ | Local and queue selections differ | Compare the pinned base, candidate, stage and graph inputs. Replay identical inputs before diagnosing divergence. [Conditional CI](references/conditional-ci.md) |
77
+ | A run is missing, stuck or intermittently red | Use the [run watcher and debugging guide](references/debugging.md) to locate the first failure. Apply [bounded retries](references/conditional-retries.md) only to a classified transient failure. |
@@ -8,6 +8,70 @@ through verification. Honor mandatory repository/domain guidance; locate relevan
8
8
  policy and ADR sections rather than loading historical documents by default.
9
9
  Preserve required check names, validation meaning and changed queue-tree validation.
10
10
 
11
+ ### Inventory the candidate's workflows
12
+
13
+ Run this first for `/github-actions audit [repository or run]`. Default to the
14
+ current repository and its checked-out revision. For a run, resolve the workflow
15
+ revision used for that event and record the tested checkout separately. In an
16
+ audit inspect configuration and existing run evidence read-only. A focused
17
+ incident can follow its failing job directly.
18
+
19
+ 1. Read the repo's CI/Delivery conventions and required statuses in protection,
20
+ rulesets and queue configuration where available. Record unknown requirements
21
+ if provider settings cannot be read. Name the source PR, assembled queue
22
+ candidate, or other event under review, with pinned base and candidate where
23
+ available.
24
+ 2. [List every workflow and its triggers](two-pass-reading.md#inventory-every-entry)
25
+ at that revision. Include branch, event type and path filters, indirect
26
+ `workflow_run` triggers and local `workflow_call` edges. Follow reachable
27
+ callers to their workers. Group actual event matches by candidate and purpose.
28
+ Keep a scheduled live probe, release, deployment check or manual canary with its
29
+ own lifecycle. Identify independently triggered jobs that duplicate a candidate
30
+ check or can launch when the main workflow blocks. If a remote reusable workflow
31
+ is inaccessible, mark its internals unknown.
32
+ 3. Trace a source PR and an assembled queue candidate, where applicable, from event
33
+ to admission. Locate the actual diff, selector command, toolchain and working
34
+ directory. In a pnpm workspace follow the pre-push and CI invocations to the
35
+ same root package script and verify which base, candidate and lane each passes.
36
+ Look for repeated selection in callers, workers or gates, a second orchestration
37
+ runtime, or a parallel registry bypassing the
38
+ existing workspace graph. Check both sides of renamed/deleted edges and transitive
39
+ consumers. Distinguish known global inputs, explicit exemptions, intentional
40
+ legacy full fallback and a blocked or malformed plan.
41
+ 4. For each heavy stage (full install/build, service, device, E2E), ask what
42
+ permits its first allocation. Follow the caller's and callee's job conditions
43
+ and `needs`. A guard after runner or service allocation cannot prevent the cost.
44
+ With failed, skipped or malformed admission, trace every matching entry:
45
+ **zero expensive jobs should start** in strict designs. Then trace each required
46
+ status back to this plan and the actual selected results. A final gate can
47
+ fail correctly even when an expensive job has already started elsewhere.
48
+ 5. List work to omit, relocate or deduplicate without losing its coverage, and name
49
+ any known global suite that still needs to run. Only then evaluate the cost of the
50
+ remaining work. Report selection time, scheduling wait, and observed downstream
51
+ starts separately. Quantify runner work avoided only against comparable runs or
52
+ label it an estimate. A green main workflow alone establishes none of these.
53
+
54
+ For each candidate lane, report the actual order of **entry → base/candidate →
55
+ selector and plan validation → first expensive allocation → required status**.
56
+ Trace both the job dependency and its condition. A job named `admission` that
57
+ only runs lint while workers later choose suites leaves selection outside admission.
58
+ A selector that returns success on missing fields also breaks the barrier. For an
59
+ explicit full policy, report what always runs and why; a constant plan does not
60
+ require a separate selector process. Check that selected verification covers
61
+ the affected behavior and that failure of each obligation reaches a required result.
62
+
63
+ A finding should be reproducible from the named revision or run. For example,
64
+ `mobile.yml/device` matches an Android path directly on the same PR as
65
+ `ci.yml/admit`. Its job has no dependency on successful admission, so the
66
+ configuration permits an emulator allocation after a block. Recommend a guarded
67
+ reusable-workflow call from the CI entry. Describe an actual start only when run
68
+ evidence shows it; if the separate job serves a distinct lifecycle, explain it.
69
+
70
+ For a source-only architecture audit, finish once the trigger, dependency and
71
+ required-status paths answer the question. Name any provider setting or runtime
72
+ observation that could change a finding. Continue to profiling for a full CI
73
+ audit or a question about observed cost, reliability or latency.
74
+
11
75
  ### Timing targets
12
76
 
13
77
  - **PR admission: at most three minutes. Merge-queue validation: at most ten minutes.**
@@ -57,8 +121,8 @@ Configuration shows intent; measurements establish actual benefit.
57
121
 
58
122
  ## 3. Collect enough evidence
59
123
 
60
- Start with a representative successful run in the relevant lane, or the relevant failure
61
- for a bug fix. First combine job/step timing with a compact graph (names, `needs`,
124
+ After the entry inventory, inspect a representative successful run in the relevant
125
+ lane, or the relevant failure for a bug fix. Combine job/step timing with a compact graph (names, `needs`,
62
126
  conditions, runners); then read dominant jobs and invoked commands. Expand for the core
63
127
  questions and audit scope, not merely the longest job. Use the
64
128
  [two-pass commands](two-pass-reading.md) to filter large YAML/API payloads before printing.
@@ -66,6 +130,11 @@ Inspect current pinned source and record its SHA separately from historical run
66
130
  run ID, attempt and lane. Reconcile versions before attributing timings to current code;
67
131
  otherwise mark the correspondence unknown.
68
132
 
133
+ On partial reruns, distinguish the original run, the interval between attempts
134
+ and the jobs actually executed in each attempt. For runner wait use job creation
135
+ to job start. A run's original creation time includes earlier attempts; a
136
+ carried-forward success contributes no new runner time.
137
+
69
138
  ```bash
70
139
  gh run list --repo owner/repo --workflow ci.yml --limit 10 \
71
140
  --json databaseId,event,headSha,conclusion,createdAt,url
@@ -96,7 +165,8 @@ For an overall audit, also check these applicable surfaces; mark unsupported con
96
165
  unknown. Follow branch-specific references only when the surface applies:
97
166
 
98
167
  - **Selection and gates:** paths and dependency-aware selection cover affected consumers;
99
- shared/unknown inputs get sufficient coverage; intentional skips are visible; reducers
168
+ known global inputs have explicit coverage, strict admission blocks unresolved inputs,
169
+ and any legacy full fallback is documented; intentional skips are visible; reducers
100
170
  fail on producer failure, missing
101
171
  results and unexpected skips. Required names match protection and queue trees validate.
102
172
  See [pipeline](pipeline.md) and [conditional CI](conditional-ci.md).
@@ -193,8 +263,13 @@ assigned budget, then size workers inside them.
193
263
 
194
264
  Run affected script tests and `actionlint` for workflow edits; use `test-quality`
195
265
  verification for test changes. For selectors/reducers, exercise affected/shared paths,
196
- docs, rename preimages, deletions, unknown/malformed metadata and unexpected skips as
197
- relevant, including the motivating failure boundary rather than restating YAML.
266
+ mixed docs/runtime changes, graph edge changes, rename preimages, deletions and
267
+ unknown inputs. Compare full, subset, empty and blocked outcomes. Replay identical
268
+ local/CI inputs, then assemble another PR into the queue candidate and check the
269
+ new obligations. For admission changes exercise malformed, failed and skipped
270
+ plans across every matching workflow (including path-filtered workers). Check both
271
+ zero expensive starts and the required gate's failure. A parsed DAG contract can
272
+ support this check; use observed job starts when claiming live behavior.
198
273
  Compare the changed phase, full job and full run on comparable lane/runner/cache
199
274
  conditions when available; check moved bottlenecks and shared runner contention.
200
275
  Do not dispatch outside authorization. Distinguish static risk, reproduced failure,