@1aboveio/skills 1.0.33 → 1.0.34

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 (72) hide show
  1. package/.codex-plugin/plugin.json +1 -1
  2. package/.codex-plugin/resources.json +134 -134
  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 +4 -2
  24. package/skills/cicd/github-actions/references/audit-and-cleanup.md +16 -9
  25. package/skills/cicd/github-actions/references/conditional-ci.md +30 -6
  26. package/skills/cicd/github-actions/references/pipeline.md +38 -3
  27. package/skills/cicd/github-actions/references/runners.md +4 -3
  28. package/skills/cicd/github-flow/SKILL.md +1 -1
  29. package/skills/cicd/google-cloud/SKILL.md +1 -1
  30. package/skills/cicd/mergify/SKILL.md +1 -1
  31. package/skills/cicd/podman/SKILL.md +1 -1
  32. package/skills/content/article-review/SKILL.md +1 -1
  33. package/skills/content/article-to-image/SKILL.md +1 -1
  34. package/skills/content/flowchart-svg/SKILL.md +1 -1
  35. package/skills/content/image-gen/SKILL.md +1 -1
  36. package/skills/content/mermaid/SKILL.md +1 -1
  37. package/skills/content/wechat-article-writer/SKILL.md +1 -1
  38. package/skills/content/wechat-publisher/SKILL.md +1 -1
  39. package/skills/content/wechat-search/SKILL.md +1 -1
  40. package/skills/content/xai-search/SKILL.md +1 -1
  41. package/skills/core/distill-writing/SKILL.md +1 -1
  42. package/skills/core/doc-to-md/SKILL.md +1 -1
  43. package/skills/core/editorial-review/SKILL.md +1 -1
  44. package/skills/core/house-style/SKILL.md +1 -1
  45. package/skills/core/plain-language/SKILL.md +1 -1
  46. package/skills/core/polish-cn/SKILL.md +1 -1
  47. package/skills/core/reg-parser/SKILL.md +1 -1
  48. package/skills/core/terminology/SKILL.md +1 -1
  49. package/skills/core/write-doc/SKILL.md +1 -1
  50. package/skills/core/write-report/SKILL.md +1 -1
  51. package/skills/engineering/better-review/SKILL.md +1 -1
  52. package/skills/engineering/e2e-test/SKILL.md +1 -1
  53. package/skills/engineering/engineering/SKILL.md +1 -1
  54. package/skills/engineering/engineering-runtime/SKILL.md +1 -1
  55. package/skills/engineering/engineering-runtime/coherence/workflow.json +13 -13
  56. package/skills/engineering/ensure-coverage/SKILL.md +1 -1
  57. package/skills/engineering/golden-path/SKILL.md +1 -1
  58. package/skills/engineering/harness-runtime/SKILL.md +1 -1
  59. package/skills/engineering/resolve-issues/SKILL.md +1 -1
  60. package/skills/engineering/resolve-release/SKILL.md +1 -1
  61. package/skills/engineering/rush-issues/SKILL.md +1 -1
  62. package/skills/engineering/rush-release/SKILL.md +1 -1
  63. package/skills/engineering/test-quality/SKILL.md +1 -1
  64. package/skills/risk-compliance/compliance-audit/SKILL.md +1 -1
  65. package/skills/risk-compliance/contract-compare/SKILL.md +1 -1
  66. package/skills/risk-compliance/contract-review/SKILL.md +1 -1
  67. package/skills/risk-compliance/doc-authenticity/SKILL.md +1 -1
  68. package/skills/risk-compliance/fraud-detection/SKILL.md +1 -1
  69. package/skills/risk-compliance/payment-analysis/SKILL.md +1 -1
  70. package/skills/risk-compliance/portfolio-payment-analysis/SKILL.md +1 -1
  71. package/skills/risk-compliance/similar-domain/SKILL.md +1 -1
  72. 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.33",
3
+ "version": "1.0.34",
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": "7b4f3925808fa2ac96ab2df12b4fbbaca3e061a1cf440810c9d14c510acdd8de",
32
- "releaseIdentity": "6c2ecd36f39ba261e30b9886d6508dd95e0a43c2741c1d60dce9262b7b8839ee"
31
+ "metadataDigest": "4bc7c3b50358a6b96514c726ece947046e782d24770480dbbb48021cf0cf9aaf",
32
+ "releaseIdentity": "48a5262d11ec98f0f8e2f91547a83c3f81f9376e758c8fa2e8ccba62201181aa"
33
33
  },
34
34
  "pi": {
35
35
  "skills": [
@@ -261,7 +261,7 @@
261
261
  ]
262
262
  }
263
263
  ],
264
- "digest": "f71c98b7b9b16e7434b230a8d496703d4f0c0a57531d74251f7ebc20ebf24931"
264
+ "digest": "2cbb4ac164d2d313e31e737c6f46659cd32a78979c7515092cade78726412641"
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.13
5
+ release-version: 0.50.14
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.13
4
+ release-version: 0.50.14
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.13
4
+ release-version: 0.50.14
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.13
4
+ release-version: 0.50.14
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.13
4
+ release-version: 0.50.14
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.13
4
+ release-version: 0.50.14
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.13
4
+ release-version: 0.50.14
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.13
4
+ release-version: 0.50.14
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.13
4
+ release-version: 0.50.14
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.13
4
+ release-version: 0.50.14
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.13
4
+ release-version: 0.50.14
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.13
15
+ release-version: 0.50.14
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.13
4
+ release-version: 0.50.14
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.13
5
+ release-version: 0.50.14
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.13
4
+ release-version: 0.50.14
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.13
4
+ release-version: 0.50.14
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.13
4
+ release-version: 0.50.14
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.13
8
+ release-version: 0.50.14
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.13
4
+ release-version: 0.50.14
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Docker Build Patterns
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: github-actions
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.13
3
+ description: "Author, review, audit, profile, optimize, or debug GitHub Actions workflows (.github/workflows/*.yml): run-history audits, CI timing targets and warnings, job and step timing, resource bottlenecks, before/after comparisons, conditional and dependency-aware CI with Nx or Turborepo, 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.14
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # GitHub Actions
@@ -27,6 +27,8 @@ mandatory replacements during an audit or performance-only change.
27
27
  - Use conditional CI and the single required gate for new designs, as defined in
28
28
  [pipeline.md](references/pipeline.md). Preserve existing required names and validation
29
29
  meaning during optimization; changes to merge requirements need authorization.
30
+ - In monorepos, default to dependency-aware selection alongside conditional CI; use
31
+ the existing Nx or Turborepo setup. See [selection principles](references/conditional-ci.md#dependency-aware-selection).
30
32
  - Audit/review requests stay read-only. Fix/optimize requests implement justified changes
31
33
  within scope. The run-history CLI only inspects; it never edits workflows.
32
34
  - Apply the [timing targets](references/audit-and-cleanup.md#timing-targets), including
@@ -10,15 +10,18 @@ Preserve required check names, validation meaning and changed queue-tree validat
10
10
 
11
11
  ### Timing targets
12
12
 
13
- - Every job, including E2E/builds: **under five minutes**, start through finish,
14
- including setup, artifacts and teardown. Report scheduling wait separately.
15
- - Full workflow: **at most 20 minutes**; for merge-queue workflows, apply **at most
16
- five minutes** for admission or **at most 15 minutes** for queue validation.
17
- Measure creation through final completion, including dependencies, scheduling and
18
- trailing reporting jobs. Do not sum parallel durations or stop at an earlier gate.
13
+ - **PR admission: at most three minutes. Merge-queue validation: at most ten minutes.**
14
+ Measure workflow creation through final completion, including dependencies, scheduling
15
+ and trailing reporting jobs. Do not sum parallel durations or stop at an earlier gate.
16
+ - **Every job: at most five minutes**, including each matrix instance and E2E/build jobs.
17
+ Measure start through finish, including setup, artifacts and teardown; report scheduling
18
+ wait separately.
19
+ - Emit a warning for each exceeded target, independently; equality does not warn.
20
+ Include the lane or job, actual duration, target and run link. Timing warnings do not
21
+ fail validation or replace execution timeouts and cleanup headroom.
19
22
  - Keep required-gate latency and queue residence before workflow creation separate
20
23
  from full-run duration. Runner consumption is summed job execution, not elapsed run time.
21
- Identify every measured breach and mark missing timings unknown.
24
+ Mark missing timings unknown rather than within target.
22
25
 
23
26
  ## 2. Answer the performance questions
24
27
 
@@ -73,8 +76,9 @@ Keep private source/API captures outside published skill content.
73
76
  For an overall audit, also check these applicable surfaces; mark unsupported conclusions
74
77
  unknown. Follow branch-specific references only when the surface applies:
75
78
 
76
- - **Selection and gates:** paths select consumers; shared/unknown inputs get sufficient
77
- coverage; intentional skips are visible; reducers fail on producer failure, missing
79
+ - **Selection and gates:** paths and dependency-aware selection cover affected consumers;
80
+ shared/unknown inputs get sufficient coverage; intentional skips are visible; reducers
81
+ fail on producer failure, missing
78
82
  results and unexpected skips. Required names match protection and queue trees validate.
79
83
  See [pipeline](pipeline.md) and [conditional CI](conditional-ci.md).
80
84
  - **Runner ownership:** labels exist, fork guards precede allocation, workspace cleanup
@@ -86,6 +90,9 @@ unknown. Follow branch-specific references only when the surface applies:
86
90
  command limits leave outer headroom for diagnostics and cleanup. Cancellation removes
87
91
  owned children/containers; temporary resources expire. Retain useful failure artifacts,
88
92
  visible retries and scheduled/non-PR failure alerts. A queue supplies no hang timeout.
93
+ A cleanup or teardown step that cannot finish names what it left behind and where: a
94
+ teardown that fails silently reads as an unrelated red job and costs a full cycle to
95
+ diagnose. Read [pipeline](pipeline.md#a-reused-workspace) for the reused-workspace case.
89
96
  - **Security:** inspect minimal permissions, pinned actions, expression-to-`env:` inputs,
90
97
  missing-secret failures and secret exclusion from logs/artifacts. See [security](security.md).
91
98
  Post-deploy checks prove the deployed revision; AI review is never the only gate or
@@ -1,17 +1,37 @@
1
1
  # Conditional CI
2
2
 
3
- > Read when: running jobs only for some changed paths (backend / frontend), events, or the
3
+ > Read when: selecting checks by changed paths, affected dependencies, events, or the
4
4
  > merge queue.
5
5
 
6
+ ## Dependency-aware selection
7
+
8
+ Conditional CI selects the lane and check types; dependency-aware CI selects affected
9
+ projects and tasks, including downstream consumers. Default to both in monorepos.
10
+ Use the repository's existing Nx or Turborepo setup; choose one during new design or an
11
+ authorized redesign if neither exists. An audit does not authorize a tool migration.
12
+
13
+ - Let the dependency graph own project relationships; avoid duplicating them in path filters.
14
+ Keep path rules for inputs or checks outside the graph.
15
+ - Account for shared configuration, lockfiles, generated inputs and other task inputs.
16
+ Verify the installed tool's selection semantics; task ordering alone does not prove coverage.
17
+ - Set comparison revisions for each lane. Queue selection must cover the actual combined
18
+ candidate and all its changes, rather than reuse one PR's affected list.
19
+ - If history, inputs or dependency information cannot establish the affected scope, broaden
20
+ validation. Selection failures must not become empty successful runs. A verified empty
21
+ affected set may skip work explicitly; failures and unexpected skips still fail the gate.
22
+
23
+ Use the tool's version-matched documentation for commands and configuration. Verify selection
24
+ with a local change, a shared dependency change and an uncertain-scope case before relying on it.
25
+
6
26
  ## Workflow
7
27
 
8
28
  1. Run the workflow on every `pull_request` (Mergify's queue drafts arrive this way too) and
9
29
  on `workflow_dispatch`. Put no `paths:` on it. Add `push: main` only in a repo without a
10
30
  merge queue; with one, the queue run already tested the exact tree (`mergify` skill,
11
31
  "The Queue Run Is The Integration Run").
12
- 2. Add a `changes` job with `dorny/paths-filter`: one filter per area (`backend`,
13
- `frontend`), shared files (lockfile, root config, `ci.yml`) anchored into each area. Leave
14
- docs and non-runtime configs out of every filter.
32
+ 2. Add a `changes` job that selects affected work. In monorepos use dependency-aware
33
+ selection above; for simple areas, use path filters with shared inputs included in
34
+ every affected area. Exclude docs or configuration only when no checked task consumes them.
15
35
  3. Give each area job `needs: changes` and `if: needs.changes.outputs.<area> == 'true'`.
16
36
  4. Run network-dependent canaries only on demand: `if: github.event_name == 'workflow_dispatch'`.
17
37
  A recurring canary goes in its own scheduled workflow, never as a scheduled rerun of `gate`.
@@ -22,6 +42,9 @@
22
42
 
23
43
  ## Template
24
44
 
45
+ This path-filter example suits simple areas. In monorepos, replace its area selection
46
+ with dependency-aware selection while preserving lane conditions and gate behavior.
47
+
25
48
  Runners are GitHub-hosted for brevity; on the self-hosted fleet use the labels and fork guard
26
49
  in [runners.md](runners.md).
27
50
 
@@ -198,7 +221,8 @@ runs:
198
221
  - Add extra queue-only suites for work too slow for every PR push. Avoid redundant
199
222
  suites, but still prove a changed combined queue tree; a PR's earlier pass alone is
200
223
  not that proof. Preserve existing required checks when optimizing an established repo.
201
- - Discover tests by glob, never by hand list. Fail on an empty selection.
224
+ - Discover tests by glob, never by hand list. A selected test task must not pass with no
225
+ tests discovered; a verified empty affected set may skip that task.
202
226
  - Pass expressions to shell through `env:`. Never inline `${{ }}` in `run:`.
203
227
  - SHA-pin third-party actions.
204
228
 
@@ -207,7 +231,7 @@ runs:
207
231
  - [ ] No `paths:` / `paths-ignore:` on the workflow
208
232
  - [ ] `gate` is the only required check, with `if: always()`, and checks every job it needs
209
233
  - [ ] Each area job's `if:` names its filter output with `== 'true'`
210
- - [ ] Shared files are in every affected filter
234
+ - [ ] Selection covers shared inputs and downstream consumers; uncertain scope broadens validation
211
235
  - [ ] Network jobs skip PRs and alert on failure
212
236
  - [ ] With a merge queue: no `push: main` or `schedule:` rerun of the gate
213
237
  - [ ] Each queue-only job runs something PR jobs don't
@@ -42,8 +42,9 @@ assigned gate rather than treating automation as proof of those claims.
42
42
  For acceptance suites that consume a build, build once for that candidate and fan
43
43
  out independent suites against the same artifact. Bind results to the candidate SHA
44
44
  and artifact identity; post-deploy tests verify the serving revision. Rebuild only
45
- when a suite requires a different build configuration. Use isolated fixtures and
46
- slot-sized parallelism, and retain useful failure logs, traces or device artifacts.
45
+ when a suite requires a different build configuration. Use isolated fixtures, parallelize
46
+ only within the runner capacity you actually have, and retain useful failure logs, traces
47
+ or device artifacts.
47
48
 
48
49
  Aggregate each suite into its assigned gate: pre-merge acceptance into the PR/queue
49
50
  gate, deployed acceptance into the post-deploy or promotion gate. A later-stage suite
@@ -90,6 +91,37 @@ Require exactly one check, `gate`, in branch protection and the queue. Template:
90
91
  never `@main`, with named secrets, never `secrets: inherit`.
91
92
  - Add `workflow_dispatch` where a manual re-run may be needed; guard it ([security.md](security.md)).
92
93
 
94
+ ## A reused workspace
95
+
96
+ A hosted runner hands every job a fresh VM, so this section is about any runner that reuses
97
+ its workspace: self-hosted, containerized, or a long-lived agent. Assume the directory
98
+ arrives dirty, and that some of what is in it is not yours to delete.
99
+
100
+ - **Clear it first, before checkout**, when the job must not see a previous job's files.
101
+ Delete what this job's user owns; move the rest into a quarantine beside the workspace.
102
+ A rename needs write access to the parent, not to the tree inside it, so a tree the
103
+ current user cannot delete still leaves. Then age out old quarantine directories and
104
+ fail while naming any residue: a clear step that cannot say what it could not clear
105
+ surfaces as an unrelated red job and costs a full CI cycle.
106
+ - **It may use only what exists before checkout:** host binaries and the shell. No
107
+ container runtime, image pull, or package download — those are exactly what may be
108
+ missing on the job that most needs cleanup.
109
+ - **Guard the resolved path, not the string that produced it**, and do not let an input
110
+ name the root. `<dir>/..` and a symlinked `/tmp` both pass a check on the literal value
111
+ or on path depth and aim at a directory nobody named, so require the target to stay
112
+ inside the root the runner assigned. A root that is its own ancestor — `/`, or the
113
+ account's home — defeats containment and must be refused while it is still a name.
114
+ - **Fix the job that leaves the mess as well** — an `EXIT` trap that hands ownership
115
+ back, or running as the invoking uid. Clearing is the backstop, not the mechanism:
116
+ a cancelled job never reaches its trap.
117
+ - **Tell it apart from a failure the runner heals by itself.** A stale `index.lock` is
118
+ cleared by the runner at startup: report it, do not work around it. A workspace its own
119
+ user cannot empty blocks every later job on that runner, so it needs the backstop above
120
+ *and* a fix to whichever job leaves it. Draw the line by consequence, not by taste.
121
+
122
+ A worked implementation is in [runners](runners.md#workspace-reused-so-clean-it); its
123
+ self-hosted specifics are an example of this rule, not a requirement of it.
124
+
93
125
  ## AI review jobs
94
126
 
95
127
  - Use a review bot to inform a merge, never as the only gate.
@@ -106,7 +138,10 @@ Require exactly one check, `gate`, in branch protection and the queue. Template:
106
138
  - [ ] Area jobs gate on `changes` outputs; `gate` allows a skip only when that filter was false
107
139
  - [ ] Full jobs and runs meet the [timing targets](audit-and-cleanup.md#timing-targets)
108
140
  - [ ] Queue trigger handled (Mergify draft prefix or `merge_group`), if the repo uses a queue
109
- - [ ] Self-hosted: fork guard, canonical labels, `persist-credentials: false`, dynamic service ports
141
+ - [ ] Self-hosted: fork guard, the labels your runner fleet actually carries,
142
+ `persist-credentials: false`, dynamic service ports
143
+ - [ ] Reused workspace: cleared by a step that needs no privilege, no container runtime and no
144
+ download, and that fails naming its residue
110
145
  - [ ] Third-party actions SHA-pinned (at least in jobs with secrets or `id-token`)
111
146
  - [ ] No `${{ }}` inside `run:`/`script:`; inputs go through `env:`
112
147
  - [ ] Missing secrets fail; no `continue-on-error` on tests
@@ -46,9 +46,10 @@ Every slot carries `self-hosted, linux, x64, host, docker`; the fast host's slot
46
46
  - **Fork guard on every job**, before a runner is allocated. Fork code must never reach
47
47
  our hosts:
48
48
  `if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository`
49
- - **Wipe the workspace as the first step** when a job must not see a previous job's files
50
- (anything that builds, installs, or globs the tree):
51
- `ws="${GITHUB_WORKSPACE:?}"; find "$ws" -mindepth 1 -maxdepth 1 -exec rm -rf {} +`.
49
+ - **Clear the workspace as the first step.** [Pipeline](pipeline.md#a-reused-workspace) owns
50
+ the rule and its traps; this fleet is where it is not optional, because `_work` is a
51
+ bind-mounted host disk reused between jobs, so one job's leftovers are the next job's
52
+ failure. Where the recipe itself lives is the fleet contract's call, not a workflow's.
52
53
  - **Checkout with `persist-credentials: false`**; the token must not stay in `.git/config`
53
54
  on a disk the next job reads.
54
55
  - Never write secrets, `.env` files or credentials files into the workspace; if a tool
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: github-flow
3
3
  description: "Deliver a committed change to done: push, open a PR, wait for its checks, and merge through the repo's flow (direct push, pull request, or merge queue). Use whenever you commit or finish a change, when CONTRIBUTING.md has a Delivery section, and for asks like 'commit this', 'push it', 'open a PR', 'ship it', 'land it', 'get it merged', 'is my PR green', 'wait for CI', 'merge once the checks pass', 'confirm it really merged'. Every wait here runs the bundled scripts/watch-checks.mjs: never hand-roll a gh pr view or gh pr checks --watch polling loop, and never call a branch merged without the merge commit. Also: declare a repo's delivery flow, or write the CI conventions and Delivery section into CONTRIBUTING.md on request. NOT for writing workflow YAML (github-actions), Mergify config or a stuck queued PR (mergify), cutting a release (resolve-release), or PRs that resolve-issues or rush-issues deliver."
4
- release-version: 0.50.13
4
+ release-version: 0.50.14
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # GitHub Flow
@@ -5,7 +5,7 @@ description: >
5
5
  project management. Use when configuring GCP resources, managing service
6
6
  accounts, setting up IAP access, configuring VPC networks, managing secrets,
7
7
  or debugging cloud infrastructure.
8
- release-version: 0.50.13
8
+ release-version: 0.50.14
9
9
  ---
10
10
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
11
11
  # Google Cloud Platform (GCP) Skill
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: mergify
3
3
  description: "Mergify merge queue and stacked PRs (`mergify stack`): config, rules, queue status, delivery. Use whenever a merge queue or stack is involved, including plain asks ('watch #123 till it merges', 'where is #412', 'push this stack'): `gh pr view`/`gh pr checks` cannot see a dequeue; use `mergify queue show`, and `watch_delivery` (else the bundled watcher) to watch. Also: stack hooks ('use mergify stack push'), a missing Change-Id; authoring or debugging `.mergify.yml`, queue rules, merge protections, batch size, the queue-only ruleset; enqueue policy (`@mergifyio queue` vs `auto_merge_conditions`); a push dequeuing a queued PR; bypass actors; freezing a branch. Failures: a PR stuck, queued but never merging, or merged unqueued; CI green on GitHub but unmet in Mergify; a batch going red or bisecting; a queue check missing not failing. Outranks the vendor mergify-* skills. NOT for pushing a PR in a repo without stack hooks (github-flow), workflow YAML (github-actions), or GCP deploy pipelines (cloud-deploy)."
4
- release-version: 0.50.13
4
+ release-version: 0.50.14
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Mergify Merge Queue
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: podman
3
3
  description: "Debug, design, or fix Podman: rootless/rootful containers, pods, podman-compose, the socket and systemd services, Docker-compatible API (DOCKER_HOST/CONTAINER_HOST), networking, volumes, SELinux labels, Docker migration, and CI/SSH provisioning of rootless sockets (user lingering, XDG_RUNTIME_DIR). Covers FailedToOpenSocket and systemctl --user DBUS/XDG errors."
4
- release-version: 0.50.13
4
+ release-version: 0.50.14
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Podman Operations
@@ -6,7 +6,7 @@ description: >
6
6
  Use when a user shares an article, pastes article text, sends a URL, or asks to
7
7
  review, rate, critique, evaluate, 评价, 点评, 分析, or 看看 any article, post, or 文章.
8
8
  Default template is 公众号-支付行业.
9
- release-version: 0.50.13
9
+ release-version: 0.50.14
10
10
  ---
11
11
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
12
12
  # 文章评审引擎
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: article-to-image
3
3
  description: "Generate article cover images: WeChat banner/square (公众号封面), Xiaohongshu (小红书封面), LinkedIn banner, general wide. Brainstorms 4 visual directions from the article, then renders each format with correct aspect ratios and title-safe zones. Use when given an article and asked for covers, banners, or 出图."
4
- release-version: 0.50.13
4
+ release-version: 0.50.14
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Article-to-Image
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: flowchart-svg
3
3
  description: Create polished flowcharts directly as SVG and export PNG copies. Use when asked to draw, design, render, or deliver process diagrams, architecture diagrams, consulting workflows, decision flows, swimlanes, or other flowcharts as image files, especially when final outputs must include .svg and .png versions.
4
- release-version: 0.50.13
4
+ release-version: 0.50.14
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Flowchart SVG
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: image-gen
3
3
  description: Generate an image from a text prompt with OpenAI gpt-image-2 or Google Nano Banana (Gemini), saved to an image file. Use whenever the user asks to generate, create, make, draw, paint, render, or design an image, picture, illustration, photo, artwork, logo, icon, avatar, banner, hero image, thumbnail, poster, wallpaper, sticker, or concept art — including phrasings like "an image of X", "a picture of X", "show me what X would look like", or a request for a visual for a slide, blog post, README, or social post. Also triggers on Chinese phrasings such as 生成图片, 画一张图, 做一张海报, 设计一个 logo. NOT for charts or data visualizations (dataviz), flowcharts or architecture diagrams (flowchart-svg), or editing an existing image file.
4
- release-version: 0.50.13
4
+ release-version: 0.50.14
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Image Generation
@@ -2,7 +2,7 @@
2
2
  name: mermaid
3
3
  description: Create and edit Mermaid diagrams for architecture, API flows, database schemas, workflows, and data models.
4
4
  user-invocable: true
5
- release-version: 0.50.13
5
+ release-version: 0.50.14
6
6
  ---
7
7
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
8
8
  # Mermaid Diagram Creation
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: wechat-article-writer
3
3
  description: "Write WeChat 公众号 articles in Chinese content styles — 踩坑型 (pitfall-story), 实操型 (how-to), 对比型 (comparison), 观察型 (industry insight) — in the account's house style from the nearest WRITING.md. Use for drafting from scratch, rewriting a draft, adapting source material into a publishable article, or picking the right style. NOT for business or technical documents (write-doc)."
4
- release-version: 0.50.13
4
+ release-version: 0.50.14
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # WeChat Article Writer (公众号写作)
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: wechat-publisher
3
3
  description: "Publish articles to a WeChat Official Account (公众号) via API: push Markdown to the draft box (or auto-publish with --publish), convert Markdown to WeChat HTML, upload images to the media library. Requires AppID + AppSecret + whitelisted server IP on a 认证订阅号/服务号. Consumes wechat-article-writer's Markdown."
4
- release-version: 0.50.13
4
+ release-version: 0.50.14
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # WeChat Publisher (公众号发布)
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: wechat-search
3
3
  description: "Search WeChat 公众号 articles via Sogou Weixin, or read/summarize an article from a mp.weixin.qq.com URL (读/分析/总结) — suggest proactively when such a URL appears. Use for Chinese WeChat content, industry reports, competitor or trending topics. Requires Chrome Browser Relay. NOT general web search (web_search)."
4
- release-version: 0.50.13
4
+ release-version: 0.50.14
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # WeChat Article Search & Reader (搜狗微信搜索)
@@ -9,7 +9,7 @@ metadata:
9
9
  type: secret
10
10
  required: true
11
11
  description: API key for direct xAI or the explicitly configured Responses gateway
12
- release-version: 0.50.13
12
+ release-version: 0.50.14
13
13
  ---
14
14
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
15
15
  # xAI Search (X/Twitter + Web)
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: distill-writing
3
3
  description: "Learn a house writing style from approved sample documents, or save an explicitly stated project document preference, into WRITING.md and writing/templates/. Use for sample-based style learning, house-style setup or refresh, and requests such as 'remember this for future PRDs' or 'make this our report default', including handoffs from write-doc, write-report or plain-language. Preserve manual edits and separate document types. NOT for drafting a document (write-doc) or analytical report (write-report) or saving chat-only preferences (plain-language)."
4
- release-version: 0.50.13
4
+ release-version: 0.50.14
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # Distill a writing style
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: doc-to-md
3
3
  description: "Convert documents (PDF, DOCX, PPTX, XLSX, images) to Markdown so agents can read them. Use as the preprocessing step whenever binary files need to enter agent context — contract review, compliance audit, document analysis, evidence review."
4
- release-version: 0.50.13
4
+ release-version: 0.50.14
5
5
  ---
6
6
  **Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
7
7
  # doc-to-md