@1aboveio/skills 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -2
- package/bin/cli.mjs +14 -0
- package/bin/select-core.mjs +172 -0
- package/package.json +146 -4
- package/skills/app-dev/airflow/LICENSE +3 -0
- package/skills/app-dev/airflow/SKILL.md +199 -0
- package/skills/app-dev/airflow/release-check.mjs +93 -0
- package/skills/app-dev/android-foundation/LICENSE +3 -0
- package/skills/app-dev/android-foundation/SKILL.md +192 -0
- package/skills/app-dev/android-foundation/assets/android-ci-job.yml +217 -0
- package/skills/app-dev/android-foundation/references/ci.md +87 -0
- package/skills/app-dev/android-foundation/references/gotchas.md +221 -0
- package/skills/app-dev/android-foundation/references/setup.md +164 -0
- package/skills/app-dev/android-foundation/release-check.mjs +93 -0
- package/skills/app-dev/android-foundation/scripts/device-run.sh +176 -0
- package/skills/app-dev/android-foundation/scripts/device-run.test.mjs +172 -0
- package/skills/app-dev/app-debug/LICENSE +3 -0
- package/skills/app-dev/app-debug/SKILL.md +110 -0
- package/skills/app-dev/app-debug/references/common-errors.md +128 -0
- package/skills/app-dev/app-debug/release-check.mjs +93 -0
- package/skills/app-dev/better-auth/LICENSE +3 -0
- package/skills/app-dev/better-auth/SKILL.md +598 -0
- package/skills/app-dev/better-auth/references/feishu-api.md +270 -0
- package/skills/app-dev/better-auth/release-check.mjs +93 -0
- package/skills/app-dev/data-catalog/LICENSE +3 -0
- package/skills/app-dev/data-catalog/SKILL.md +204 -0
- package/skills/app-dev/data-catalog/agents/openai.yaml +3 -0
- package/skills/app-dev/data-catalog/references/data-catalog-conventions.md +75 -0
- package/skills/app-dev/data-catalog/references/field-definitions.md +116 -0
- package/skills/app-dev/data-catalog/references/format.md +121 -0
- package/skills/app-dev/data-catalog/release-check.mjs +93 -0
- package/skills/app-dev/data-catalog/scripts/data-catalog.test.mjs +36 -0
- package/skills/app-dev/data-catalog/scripts/data_catalog.py +1392 -0
- package/skills/app-dev/data-catalog/scripts/persist-conventions-core.mjs +117 -0
- package/skills/app-dev/data-catalog/scripts/persist-conventions.mjs +17 -0
- package/skills/app-dev/data-catalog/scripts/test_data_catalog.py +571 -0
- package/skills/app-dev/ios-foundation/LICENSE +3 -0
- package/skills/app-dev/ios-foundation/SKILL.md +184 -0
- package/skills/app-dev/ios-foundation/references/setup.md +243 -0
- package/skills/app-dev/ios-foundation/release-check.mjs +93 -0
- package/skills/app-dev/monorepo/LICENSE +3 -0
- package/skills/app-dev/monorepo/SKILL.md +462 -0
- package/skills/app-dev/monorepo/release-check.mjs +93 -0
- package/skills/app-dev/nextjs-fullstack/LICENSE +3 -0
- package/skills/app-dev/nextjs-fullstack/SKILL.md +211 -0
- package/skills/app-dev/nextjs-fullstack/conventions.md +318 -0
- package/skills/app-dev/nextjs-fullstack/frontend-conventions.md +61 -0
- package/skills/app-dev/nextjs-fullstack/nextjs16.md +287 -0
- package/skills/app-dev/nextjs-fullstack/release-check.mjs +93 -0
- package/skills/app-dev/nextjs-fullstack/server-actions.md +409 -0
- package/skills/app-dev/prisma-setup/LICENSE +3 -0
- package/skills/app-dev/prisma-setup/SKILL.md +181 -0
- package/skills/app-dev/prisma-setup/nextjs.md +258 -0
- package/skills/app-dev/prisma-setup/release-check.mjs +93 -0
- package/skills/app-dev/prisma-setup/turborepo.md +301 -0
- package/skills/app-dev/pyspark/LICENSE +3 -0
- package/skills/app-dev/pyspark/SKILL.md +127 -0
- package/skills/app-dev/pyspark/assets/templates/etl.py +748 -0
- package/skills/app-dev/pyspark/assets/templates/utils/__init__.py +1 -0
- package/skills/app-dev/pyspark/assets/templates/utils/hudi_metadata.py +14 -0
- package/skills/app-dev/pyspark/references/diagnosis-and-profiling.md +169 -0
- package/skills/app-dev/pyspark/references/etl-contract.md +129 -0
- package/skills/app-dev/pyspark/references/production-validation.md +131 -0
- package/skills/app-dev/pyspark/references/reconciliation.md +38 -0
- package/skills/app-dev/pyspark/references/transformation-design.md +190 -0
- package/skills/app-dev/pyspark/references/velocity-feature-calculation.md +193 -0
- package/skills/app-dev/pyspark/release-check.mjs +93 -0
- package/skills/app-dev/pyspark/scripts/spark_eventlog_summary.py +223 -0
- package/skills/app-dev/python-backend/LICENSE +3 -0
- package/skills/app-dev/python-backend/SKILL.md +325 -0
- package/skills/app-dev/python-backend/assets/uv-install.sh +48 -0
- package/skills/app-dev/python-backend/references/uv-installs.md +83 -0
- package/skills/app-dev/python-backend/release-check.mjs +93 -0
- package/skills/app-dev/shadcn/LICENSE +3 -0
- package/skills/app-dev/shadcn/SKILL.md +120 -0
- package/skills/app-dev/shadcn/assets/shadcn-small.png +0 -0
- package/skills/app-dev/shadcn/assets/shadcn.png +0 -0
- package/skills/app-dev/shadcn/cli.md +411 -0
- package/skills/app-dev/shadcn/customization.md +224 -0
- package/skills/app-dev/shadcn/mcp.md +101 -0
- package/skills/app-dev/shadcn/release-check.mjs +93 -0
- package/skills/app-dev/shadcn/rules/base-vs-radix.md +323 -0
- package/skills/app-dev/shadcn/rules/component-selection.md +67 -0
- package/skills/app-dev/shadcn/rules/composition.md +195 -0
- package/skills/app-dev/shadcn/rules/data-table.md +201 -0
- package/skills/app-dev/shadcn/rules/forms.md +255 -0
- package/skills/app-dev/shadcn/rules/icons.md +103 -0
- package/skills/app-dev/shadcn/rules/styling.md +167 -0
- package/skills/app-dev/zod-v4/LICENSE +3 -0
- package/skills/app-dev/zod-v4/SKILL.md +286 -0
- package/skills/app-dev/zod-v4/release-check.mjs +93 -0
- package/skills/cicd/cloud-build/LICENSE +3 -0
- package/skills/cicd/cloud-build/SKILL.md +707 -0
- package/skills/cicd/cloud-build/release-check.mjs +93 -0
- package/skills/cicd/cloud-debug/LICENSE +3 -0
- package/skills/cicd/cloud-debug/SKILL.md +315 -0
- package/skills/cicd/cloud-debug/references/build-failures.md +238 -0
- package/skills/cicd/cloud-debug/references/deploy-failures.md +376 -0
- package/skills/cicd/cloud-debug/references/pipeline-failures.md +378 -0
- package/skills/cicd/cloud-debug/release-check.mjs +93 -0
- package/skills/cicd/cloud-deploy/LICENSE +3 -0
- package/skills/cicd/cloud-deploy/SKILL.md +230 -0
- package/skills/cicd/cloud-deploy/references/config-templates.md +257 -0
- package/skills/cicd/cloud-deploy/release-check.mjs +93 -0
- package/skills/cicd/docker/LICENSE +3 -0
- package/skills/cicd/docker/SKILL.md +151 -0
- package/skills/cicd/docker/release-check.mjs +93 -0
- package/skills/cicd/github-actions/LICENSE +3 -0
- package/skills/cicd/github-actions/SKILL.md +111 -0
- package/skills/cicd/github-actions/references/audit-profile-optimize.md +150 -0
- package/skills/cicd/github-actions/references/ci-case-studies.md +141 -0
- package/skills/cicd/github-actions/references/conditional-ci.md +214 -0
- package/skills/cicd/github-actions/references/debugging.md +13 -0
- package/skills/cicd/github-actions/references/pipeline.md +87 -0
- package/skills/cicd/github-actions/references/post-deploy-and-publishing.md +33 -0
- package/skills/cicd/github-actions/references/runners.md +253 -0
- package/skills/cicd/github-actions/references/security.md +29 -0
- package/skills/cicd/github-actions/references/speed-and-audit.md +115 -0
- package/skills/cicd/github-actions/references/two-pass-reading.md +92 -0
- package/skills/cicd/github-actions/release-check.mjs +93 -0
- package/skills/cicd/github-actions/scripts/ci-run-audit-core.mjs +612 -0
- package/skills/cicd/github-actions/scripts/ci-run-audit.mjs +4 -0
- package/skills/cicd/github-actions/scripts/ci-run-audit.test.mjs +637 -0
- package/skills/cicd/github-flow/LICENSE +3 -0
- package/skills/cicd/github-flow/SKILL.md +123 -0
- package/skills/cicd/github-flow/references/ci-conventions.md +14 -0
- package/skills/cicd/github-flow/release-check.mjs +93 -0
- package/skills/cicd/github-flow/scripts/flow-core.mjs +105 -0
- package/skills/cicd/github-flow/scripts/flow.mjs +81 -0
- package/skills/cicd/github-flow/scripts/flow.test.mjs +114 -0
- package/skills/cicd/github-flow/scripts/persist-conventions-core.mjs +117 -0
- package/skills/cicd/github-flow/scripts/persist-conventions.mjs +49 -0
- package/skills/cicd/github-flow/scripts/persist-conventions.test.mjs +108 -0
- package/skills/cicd/google-cloud/LICENSE +3 -0
- package/skills/cicd/google-cloud/SKILL.md +119 -0
- package/skills/cicd/google-cloud/references/gcs.md +469 -0
- package/skills/cicd/google-cloud/references/iam.md +451 -0
- package/skills/cicd/google-cloud/references/project.md +349 -0
- package/skills/cicd/google-cloud/references/secrets.md +336 -0
- package/skills/cicd/google-cloud/references/vpc.md +312 -0
- package/skills/cicd/google-cloud/release-check.mjs +93 -0
- package/skills/cicd/google-cloud/scripts/create-sa.sh +36 -0
- package/skills/cicd/google-cloud/scripts/gcp-config.sh +31 -0
- package/skills/cicd/google-cloud/scripts/grant-iap.sh +41 -0
- package/skills/cicd/google-cloud/scripts/setup-secrets.sh +48 -0
- package/skills/cicd/mergify/LICENSE +3 -0
- package/skills/cicd/mergify/SKILL.md +102 -0
- package/skills/cicd/mergify/assets/templates/mergify.yml +215 -0
- package/skills/cicd/mergify/assets/templates/ruleset.json +46 -0
- package/skills/cicd/mergify/references/branch-protection.md +282 -0
- package/skills/cicd/mergify/references/configuration.md +274 -0
- package/skills/cicd/mergify/references/diagnosis.md +109 -0
- package/skills/cicd/mergify/references/stacks.md +84 -0
- package/skills/cicd/mergify/references/traps.md +119 -0
- package/skills/cicd/mergify/references/watch-contract.md +274 -0
- package/skills/cicd/mergify/release-check.mjs +93 -0
- package/skills/cicd/mergify/scripts/audit-core.mjs +208 -0
- package/skills/cicd/mergify/scripts/audit.mjs +4 -0
- package/skills/cicd/mergify/scripts/audit.test.mjs +201 -0
- package/skills/cicd/mergify/scripts/entrypoints.test.mjs +106 -0
- package/skills/cicd/mergify/scripts/pr-620-mergify-comments.fixture.json +30 -0
- package/skills/cicd/mergify/scripts/stack-push-core.mjs +258 -0
- package/skills/cicd/mergify/scripts/stack-push.mjs +4 -0
- package/skills/cicd/mergify/scripts/stack-push.test.mjs +233 -0
- package/skills/cicd/mergify/scripts/watch-pr-delivery-core.mjs +1065 -0
- package/skills/cicd/mergify/scripts/watch-pr-delivery.mjs +4 -0
- package/skills/cicd/mergify/scripts/watch-pr-delivery.test.mjs +1826 -0
- package/skills/cicd/podman/LICENSE +3 -0
- package/skills/cicd/podman/SKILL.md +71 -0
- package/skills/cicd/podman/agents/openai.yaml +4 -0
- package/skills/cicd/podman/assets/templates/podman-compose-socket-directory.yml +6 -0
- package/skills/cicd/podman/assets/templates/podman-service-override.conf +3 -0
- package/skills/cicd/podman/references/compose-compatibility.md +70 -0
- package/skills/cicd/podman/references/networking-and-ports.md +74 -0
- package/skills/cicd/podman/references/rootless-services-and-sockets.md +156 -0
- package/skills/cicd/podman/references/troubleshooting.md +98 -0
- package/skills/cicd/podman/release-check.mjs +93 -0
- package/skills/content/article-review/LICENSE +3 -0
- package/skills/content/article-review/SKILL.md +66 -0
- package/skills/content/article-review/references/report-format.md +68 -0
- package/skills/content/article-review/references/template-guide.md +79 -0
- package/skills/content/article-review/references/template-wechat-payments.md +125 -0
- package/skills/content/article-review/release-check.mjs +93 -0
- package/skills/content/article-to-image/LICENSE +3 -0
- package/skills/content/article-to-image/SKILL.md +91 -0
- package/skills/content/article-to-image/references/formats.md +53 -0
- package/skills/content/article-to-image/release-check.mjs +93 -0
- package/skills/content/flowchart-svg/LICENSE +3 -0
- package/skills/content/flowchart-svg/SKILL.md +43 -0
- package/skills/content/flowchart-svg/release-check.mjs +93 -0
- package/skills/content/flowchart-svg/scripts/export_png.sh +8 -0
- package/skills/content/image-gen/LICENSE +3 -0
- package/skills/content/image-gen/SKILL.md +192 -0
- package/skills/content/image-gen/release-check.mjs +93 -0
- package/skills/content/image-gen/scripts/credentials.mjs +217 -0
- package/skills/content/image-gen/scripts/credentials.test.mjs +212 -0
- package/skills/content/image-gen/scripts/generate.mjs +240 -0
- package/skills/content/image-gen/scripts/options.mjs +293 -0
- package/skills/content/image-gen/scripts/options.test.mjs +245 -0
- package/skills/content/mermaid/LICENSE +3 -0
- package/skills/content/mermaid/SKILL.md +635 -0
- package/skills/content/mermaid/release-check.mjs +93 -0
- package/skills/content/wechat-article-writer/LICENSE +3 -0
- package/skills/content/wechat-article-writer/SKILL.md +92 -0
- package/skills/content/wechat-article-writer/references/style-selector.md +133 -0
- package/skills/content/wechat-article-writer/references/writing-rules.md +152 -0
- package/skills/content/wechat-article-writer/release-check.mjs +93 -0
- package/skills/content/wechat-article-writer/templates/wechat-comparison.md +52 -0
- package/skills/content/wechat-article-writer/templates/wechat-howto.md +51 -0
- package/skills/content/wechat-article-writer/templates/wechat-insight.md +50 -0
- package/skills/content/wechat-article-writer/templates/wechat-pitfall.md +52 -0
- package/skills/content/wechat-publisher/LICENSE +3 -0
- package/skills/content/wechat-publisher/SKILL.md +171 -0
- package/skills/content/wechat-publisher/references/api.md +105 -0
- package/skills/content/wechat-publisher/references/layout-rules.md +57 -0
- package/skills/content/wechat-publisher/references/wechat-safe-template.html +86 -0
- package/skills/content/wechat-publisher/release-check.mjs +93 -0
- package/skills/content/wechat-publisher/scripts/md_to_wechat_html.py +194 -0
- package/skills/content/wechat-publisher/scripts/publish.py +239 -0
- package/skills/content/wechat-search/LICENSE +3 -0
- package/skills/content/wechat-search/SKILL.md +211 -0
- package/skills/content/wechat-search/release-check.mjs +93 -0
- package/skills/content/wechat-search/scripts/start-chrome.sh +83 -0
- package/skills/content/xai-search/LICENSE +3 -0
- package/skills/content/xai-search/SKILL.md +79 -0
- package/skills/content/xai-search/release-check.mjs +93 -0
- package/skills/content/xai-search/scripts/xai_search.sh +187 -0
- package/skills/content/xai-search/tests/smoke_test.sh +36 -0
- package/skills/core/distill-writing/LICENSE +3 -0
- package/skills/core/distill-writing/SKILL.md +74 -0
- package/skills/core/distill-writing/references/extraction.md +95 -0
- package/skills/core/distill-writing/references/updating.md +46 -0
- package/skills/core/distill-writing/release-check.mjs +93 -0
- package/skills/core/doc-to-md/LICENSE +3 -0
- package/skills/core/doc-to-md/SKILL.md +78 -0
- package/skills/core/doc-to-md/release-check.mjs +93 -0
- package/skills/core/doc-to-md/scripts/convert.py +157 -0
- package/skills/core/editorial-review/LICENSE +3 -0
- package/skills/core/editorial-review/SKILL.md +79 -0
- package/skills/core/editorial-review/references/checklist.md +94 -0
- package/skills/core/editorial-review/release-check.mjs +93 -0
- package/skills/core/house-style/LICENSE +3 -0
- package/skills/core/house-style/SKILL.md +33 -0
- package/skills/core/house-style/references/defaults.md +66 -0
- package/skills/core/house-style/references/rules.md +267 -0
- package/skills/core/house-style/references/sources.md +27 -0
- package/skills/core/house-style/references/style-en.md +131 -0
- package/skills/core/house-style/references/style-zh.md +141 -0
- package/skills/core/house-style/references/terminology-zh.md +223 -0
- package/skills/core/house-style/release-check.mjs +93 -0
- package/skills/core/house-style/templates/brd.md +103 -0
- package/skills/core/house-style/templates/commercial-proposal.md +93 -0
- package/skills/core/house-style/templates/compliance-policy.md +109 -0
- package/skills/core/house-style/templates/gap-analysis.md +105 -0
- package/skills/core/house-style/templates/general.md +63 -0
- package/skills/core/house-style/templates/integration-guide.md +98 -0
- package/skills/core/house-style/templates/prd.md +81 -0
- package/skills/core/house-style/templates/risk-operations-procedure.md +94 -0
- package/skills/core/house-style/templates/technical-spec.md +96 -0
- package/skills/core/polish-cn/LICENSE +3 -0
- package/skills/core/polish-cn/SKILL.md +102 -0
- package/skills/core/polish-cn/references/brief.md +93 -0
- package/skills/core/polish-cn/references/models.md +76 -0
- package/skills/core/polish-cn/release-check.mjs +93 -0
- package/skills/core/polish-cn/scripts/polish-cn.test.mjs +244 -0
- package/skills/core/polish-cn/scripts/polish_blocks.py +489 -0
- package/skills/core/reg-parser/LICENSE +3 -0
- package/skills/core/reg-parser/SKILL.md +212 -0
- package/skills/core/reg-parser/references/checklist-schema.md +223 -0
- package/skills/core/reg-parser/references/checklists/hk-amlo-checklist.json +1306 -0
- package/skills/core/reg-parser/references/checklists/hk-amlo-checklist.md +469 -0
- package/skills/core/reg-parser/references/checklists/hk-fi-corporate-onboarding-cdd-checklist.json +634 -0
- package/skills/core/reg-parser/references/checklists/hk-fi-corporate-onboarding-cdd-checklist.md +233 -0
- package/skills/core/reg-parser/references/checklists/hk-mso-guideline-checklist.json +2194 -0
- package/skills/core/reg-parser/references/checklists/hk-mso-guideline-checklist.md +771 -0
- package/skills/core/reg-parser/references/checklists/kyc-aml-checklist.md +258 -0
- package/skills/core/reg-parser/references/checklists/visa-vars-checklist.md +1058 -0
- package/skills/core/reg-parser/references/mandates/hk-amlo-cap615.md +389 -0
- package/skills/core/reg-parser/references/mandates/visa-vars.md +205 -0
- package/skills/core/reg-parser/release-check.mjs +93 -0
- package/skills/core/reg-parser/scripts/compare_checklist.py +230 -0
- package/skills/core/reg-parser/scripts/dump_checklist.py +361 -0
- package/skills/core/reg-parser/scripts/preprocess-mandate.sh +187 -0
- package/skills/core/reg-parser/scripts/reg-parser.test.mjs +165 -0
- package/skills/core/reg-parser/scripts/test_quarantine.sh +105 -0
- package/skills/core/reg-parser/scripts/validate_checklist.py +563 -0
- package/skills/core/reg-parser/scripts/validate_mandate.py +273 -0
- package/skills/core/terminology/LICENSE +3 -0
- package/skills/core/terminology/SKILL.md +62 -0
- package/skills/core/terminology/references/format.md +50 -0
- package/skills/core/terminology/references/init.md +32 -0
- package/skills/core/terminology/release-check.mjs +93 -0
- package/skills/core/write-doc/LICENSE +3 -0
- package/skills/core/write-doc/SKILL.md +141 -0
- package/skills/core/write-doc/references/bilingual.md +60 -0
- package/skills/core/write-doc/release-check.mjs +93 -0
- package/skills/engineering/better-review/LICENSE +3 -0
- package/skills/engineering/better-review/SKILL.md +249 -0
- package/skills/engineering/better-review/agents/openai.yaml +9 -0
- package/skills/engineering/better-review/references/domain-hazards.md +53 -0
- package/skills/engineering/better-review/references/passes.md +147 -0
- package/skills/engineering/better-review/references/result.md +151 -0
- package/skills/engineering/better-review/release-check.mjs +93 -0
- package/skills/engineering/better-review/scripts/pr-context.mjs +212 -0
- package/skills/engineering/better-review/scripts/pr-context.test.mjs +168 -0
- package/skills/engineering/better-review/scripts/rereview-scope.mjs +503 -0
- package/skills/engineering/better-review/scripts/rereview-scope.test.mjs +587 -0
- package/skills/engineering/better-review/scripts/scan-diff.mjs +365 -0
- package/skills/engineering/better-review/scripts/scan-diff.test.mjs +414 -0
- package/skills/engineering/better-review/scripts/vendor-sync.test.mjs +96 -0
- package/skills/engineering/e2e-test/LICENSE +3 -0
- package/skills/engineering/e2e-test/SKILL.md +98 -0
- package/skills/engineering/e2e-test/assets/ci-gates.cloudbuild.yaml +24 -0
- package/skills/engineering/e2e-test/references/authoring/auth-flows.md +159 -0
- package/skills/engineering/e2e-test/references/authoring/playwright-config.md +73 -0
- package/skills/engineering/e2e-test/references/authoring/playwright-patterns.md +144 -0
- package/skills/engineering/e2e-test/references/ci-integration.md +25 -0
- package/skills/engineering/e2e-test/references/ci-playwright-container.md +290 -0
- package/skills/engineering/e2e-test/references/presentation-sweep.md +104 -0
- package/skills/engineering/e2e-test/references/reviewing.md +41 -0
- package/skills/engineering/e2e-test/references/route-manifest.md +51 -0
- package/skills/engineering/e2e-test/release-check.mjs +93 -0
- package/skills/engineering/e2e-test/scripts/detect-routes-nextjs.mjs +200 -0
- package/skills/engineering/e2e-test/scripts/presentation-checks.mjs +171 -0
- package/skills/engineering/e2e-test/scripts/presentation-checks.test.mjs +106 -0
- package/skills/engineering/e2e-test/scripts/presentation-perceivability.mjs +179 -0
- package/skills/engineering/e2e-test/scripts/presentation-perceivability.test.mjs +117 -0
- package/skills/engineering/e2e-test/scripts/presentation-reachability.mjs +154 -0
- package/skills/engineering/e2e-test/scripts/presentation-reachability.test.mjs +69 -0
- package/skills/engineering/e2e-test/scripts/presentation-render-health.mjs +141 -0
- package/skills/engineering/e2e-test/scripts/presentation-render-health.test.mjs +98 -0
- package/skills/engineering/e2e-test/scripts/presentation-sweep.mjs +147 -0
- package/skills/engineering/e2e-test/scripts/presentation-sweep.test.mjs +71 -0
- package/skills/engineering/e2e-test/scripts/presentation-temporal.mjs +127 -0
- package/skills/engineering/e2e-test/scripts/presentation-temporal.test.mjs +59 -0
- package/skills/engineering/e2e-test/scripts/project-route-manifest.mjs +82 -0
- package/skills/engineering/e2e-test/scripts/project-route-manifest.test.mjs +76 -0
- package/skills/engineering/e2e-test/scripts/validate-manifest.mjs +106 -0
- package/skills/engineering/engineering-runtime/LICENSE +3 -0
- package/skills/engineering/engineering-runtime/SKILL.md +11 -0
- package/skills/engineering/engineering-runtime/agents/openai.yaml +6 -0
- package/skills/engineering/engineering-runtime/coherence/workflow.json +597 -0
- package/skills/engineering/engineering-runtime/engineering-runtime.test.mjs +68 -0
- package/skills/engineering/engineering-runtime/release-check.mjs +93 -0
- package/skills/engineering/engineering-runtime/scripts/exact-head-artifact.mjs +131 -0
- package/skills/engineering/engineering-runtime/scripts/head-check-set.mjs +398 -0
- package/skills/engineering/engineering-runtime/scripts/invocation-policy.mjs +187 -0
- package/skills/engineering/engineering-runtime/scripts/invocation-policy.test.mjs +95 -0
- package/skills/engineering/engineering-runtime/scripts/main-module.mjs +79 -0
- package/skills/engineering/engineering-runtime/scripts/main-module.test.mjs +288 -0
- package/skills/engineering/engineering-runtime/scripts/mergify-yaml.mjs +11 -0
- package/skills/engineering/engineering-runtime/scripts/package-lock.json +43 -0
- package/skills/engineering/engineering-runtime/scripts/package.json +10 -0
- package/skills/engineering/engineering-runtime/scripts/required-check-plan.mjs +223 -0
- package/skills/engineering/engineering-runtime/scripts/required-check-plan.test.mjs +96 -0
- package/skills/engineering/engineering-runtime/scripts/review-completion.mjs +56 -0
- package/skills/engineering/engineering-runtime/scripts/workflow-coherence.mjs +595 -0
- package/skills/engineering/engineering-runtime/scripts/workflow-policy.mjs +189 -0
- package/skills/engineering/engineering-runtime/scripts/yaml-mapping.mjs +18 -0
- package/skills/engineering/ensure-coverage/LICENSE +3 -0
- package/skills/engineering/ensure-coverage/SKILL.md +129 -0
- package/skills/engineering/ensure-coverage/references/breadth/coverage-ledger.md +92 -0
- package/skills/engineering/ensure-coverage/references/breadth/inventory-contract.md +85 -0
- package/skills/engineering/ensure-coverage/references/breadth/surface-baseline.md +44 -0
- package/skills/engineering/ensure-coverage/references/breadth/surface-discovery.md +16 -0
- package/skills/engineering/ensure-coverage/references/depth/characterization.md +68 -0
- package/skills/engineering/ensure-coverage/references/depth/coverage.config.example.json +19 -0
- package/skills/engineering/ensure-coverage/references/depth/grading.md +35 -0
- package/skills/engineering/ensure-coverage/references/depth/mock-policy.md +57 -0
- package/skills/engineering/ensure-coverage/references/depth/test-smells.md +39 -0
- package/skills/engineering/ensure-coverage/references/enforcement/ci-contract.md +44 -0
- package/skills/engineering/ensure-coverage/references/examples/coverage-ledger.md +110 -0
- package/skills/engineering/ensure-coverage/references/examples/refund-flow.md +35 -0
- package/skills/engineering/ensure-coverage/references/presentation/axis.md +64 -0
- package/skills/engineering/ensure-coverage/references/process/audit-mode.md +27 -0
- package/skills/engineering/ensure-coverage/references/process/output-template.md +139 -0
- package/skills/engineering/ensure-coverage/references/process/test-strategy.md +56 -0
- package/skills/engineering/ensure-coverage/release-check.mjs +93 -0
- package/skills/engineering/ensure-coverage/schemas/coverage-config.schema.json +67 -0
- package/skills/engineering/ensure-coverage/schemas/coverage-file.schema.json +140 -0
- package/skills/engineering/ensure-coverage/scripts/README.md +99 -0
- package/skills/engineering/ensure-coverage/scripts/adapters/nextjs-inventory.mjs +182 -0
- package/skills/engineering/ensure-coverage/scripts/adapters/nextjs-inventory.test.mjs +96 -0
- package/skills/engineering/ensure-coverage/scripts/check-quarantine-expiry.mjs +105 -0
- package/skills/engineering/ensure-coverage/scripts/check-quarantine-expiry.test.mjs +47 -0
- package/skills/engineering/ensure-coverage/scripts/ci-audit.mjs +137 -0
- package/skills/engineering/ensure-coverage/scripts/ci-audit.test.mjs +86 -0
- package/skills/engineering/ensure-coverage/scripts/coverage-ledger.mjs +674 -0
- package/skills/engineering/ensure-coverage/scripts/coverage-ledger.test.mjs +447 -0
- package/skills/engineering/ensure-coverage/scripts/design-parity.mjs +591 -0
- package/skills/engineering/ensure-coverage/scripts/design-parity.test.mjs +552 -0
- package/skills/engineering/ensure-coverage/scripts/lint-tests.mjs +282 -0
- package/skills/engineering/ensure-coverage/scripts/lint-tests.test.mjs +289 -0
- package/skills/engineering/ensure-coverage/scripts/mock-policy-config.mjs +176 -0
- package/skills/engineering/ensure-coverage/scripts/mock-policy-config.test.mjs +119 -0
- package/skills/engineering/ensure-coverage/scripts/package.json +19 -0
- package/skills/engineering/golden-path/LICENSE +3 -0
- package/skills/engineering/golden-path/SKILL.md +230 -0
- package/skills/engineering/golden-path/agents/openai.yaml +3 -0
- package/skills/engineering/golden-path/assets/golden-paths.example.json +57 -0
- package/skills/engineering/golden-path/references/contract.md +239 -0
- package/skills/engineering/golden-path/references/migration.md +111 -0
- package/skills/engineering/golden-path/release-check.mjs +93 -0
- package/skills/engineering/golden-path/scripts/golden-path-core.mjs +1779 -0
- package/skills/engineering/golden-path/scripts/golden-path.mjs +6 -0
- package/skills/engineering/golden-path/scripts/golden-path.test.mjs +1457 -0
- package/skills/engineering/harness-runtime/LICENSE +3 -0
- package/skills/engineering/harness-runtime/SKILL.md +19 -0
- package/skills/engineering/harness-runtime/agents/openai.yaml +6 -0
- package/skills/engineering/harness-runtime/bin/discover-models.mjs +4 -0
- package/skills/engineering/harness-runtime/bin/model-catalog.mjs +4 -0
- package/skills/engineering/harness-runtime/contracts.md +15 -0
- package/skills/engineering/harness-runtime/discover-models.mjs +392 -0
- package/skills/engineering/harness-runtime/discover-models.test.mjs +363 -0
- package/skills/engineering/harness-runtime/fixtures/native-question-schemas.json +33 -0
- package/skills/engineering/harness-runtime/fixtures/question-responses.json +54 -0
- package/skills/engineering/harness-runtime/harness-runtime.test.mjs +967 -0
- package/skills/engineering/harness-runtime/index.mjs +767 -0
- package/skills/engineering/harness-runtime/model-catalog-seed.test.mjs +829 -0
- package/skills/engineering/harness-runtime/model-catalog.mjs +787 -0
- package/skills/engineering/harness-runtime/model-catalog.test.mjs +366 -0
- package/skills/engineering/harness-runtime/native-question-contracts.md +37 -0
- package/skills/engineering/harness-runtime/references/model-catalog-seed.json +408 -0
- package/skills/engineering/harness-runtime/references/model-catalog.md +57 -0
- package/skills/engineering/harness-runtime/release-check.mjs +93 -0
- package/skills/engineering/resolve-issues/LICENSE +3 -0
- package/skills/engineering/resolve-issues/SKILL.md +250 -0
- package/skills/engineering/resolve-issues/agents/openai.yaml +9 -0
- package/skills/engineering/resolve-issues/plugin-hooks.json +17 -0
- package/skills/engineering/resolve-issues/references/canary.md +28 -0
- package/skills/engineering/resolve-issues/references/ci.md +105 -0
- package/skills/engineering/resolve-issues/references/done.md +25 -0
- package/skills/engineering/resolve-issues/references/dropbox.md +90 -0
- package/skills/engineering/resolve-issues/references/expire.md +318 -0
- package/skills/engineering/resolve-issues/references/exploration.md +202 -0
- package/skills/engineering/resolve-issues/references/implementation.md +303 -0
- package/skills/engineering/resolve-issues/references/preflight.md +445 -0
- package/skills/engineering/resolve-issues/references/review.md +228 -0
- package/skills/engineering/resolve-issues/references/shared-modules.md +44 -0
- package/skills/engineering/resolve-issues/references/task-plan.md +264 -0
- package/skills/engineering/resolve-issues/release-check.mjs +93 -0
- package/skills/engineering/resolve-issues/scripts/cleanup-runs.mjs +364 -0
- package/skills/engineering/resolve-issues/scripts/cleanup-runs.test.mjs +280 -0
- package/skills/engineering/resolve-issues/scripts/discover-models.mjs +9 -0
- package/skills/engineering/resolve-issues/scripts/dropbox.mjs +473 -0
- package/skills/engineering/resolve-issues/scripts/dropbox.test.mjs +346 -0
- package/skills/engineering/resolve-issues/scripts/findings-reuse.mjs +98 -0
- package/skills/engineering/resolve-issues/scripts/findings-reuse.test.mjs +88 -0
- package/skills/engineering/resolve-issues/scripts/github-reviews.mjs +384 -0
- package/skills/engineering/resolve-issues/scripts/github-reviews.test.mjs +264 -0
- package/skills/engineering/resolve-issues/scripts/install-hooks.mjs +135 -0
- package/skills/engineering/resolve-issues/scripts/install-hooks.test.mjs +79 -0
- package/skills/engineering/resolve-issues/scripts/issue-tree.mjs +162 -0
- package/skills/engineering/resolve-issues/scripts/issue-tree.test.mjs +107 -0
- package/skills/engineering/resolve-issues/scripts/manual-invocation.test.mjs +14 -0
- package/skills/engineering/resolve-issues/scripts/model-catalog.mjs +9 -0
- package/skills/engineering/resolve-issues/scripts/next-actions-capacity.test.mjs +149 -0
- package/skills/engineering/resolve-issues/scripts/next-actions.mjs +856 -0
- package/skills/engineering/resolve-issues/scripts/next-actions.test.mjs +915 -0
- package/skills/engineering/resolve-issues/scripts/plan-sync.mjs +269 -0
- package/skills/engineering/resolve-issues/scripts/plan-sync.test.mjs +156 -0
- package/skills/engineering/resolve-issues/scripts/preflight-models.mjs +736 -0
- package/skills/engineering/resolve-issues/scripts/preflight-models.test.mjs +448 -0
- package/skills/engineering/resolve-issues/scripts/ready-check.mjs +185 -0
- package/skills/engineering/resolve-issues/scripts/ready-check.test.mjs +217 -0
- package/skills/engineering/resolve-issues/scripts/rehydrate.mjs +98 -0
- package/skills/engineering/resolve-issues/scripts/rehydrate.test.mjs +91 -0
- package/skills/engineering/resolve-issues/scripts/review-verdict.mjs +509 -0
- package/skills/engineering/resolve-issues/scripts/review-verdict.test.mjs +1060 -0
- package/skills/engineering/resolve-issues/scripts/size-check.mjs +492 -0
- package/skills/engineering/resolve-issues/scripts/size-check.test.mjs +458 -0
- package/skills/engineering/resolve-release/LICENSE +3 -0
- package/skills/engineering/resolve-release/SKILL.md +215 -0
- package/skills/engineering/resolve-release/agents/openai.yaml +8 -0
- package/skills/engineering/resolve-release/flows/cloud-run-canary.md +13 -0
- package/skills/engineering/resolve-release/flows/cloud-run.md +7 -0
- package/skills/engineering/resolve-release/flows/root-tag-npm.md +13 -0
- package/skills/engineering/resolve-release/flows/workspace-npm.md +22 -0
- package/skills/engineering/resolve-release/references/canary.md +51 -0
- package/skills/engineering/resolve-release/references/candidate.md +41 -0
- package/skills/engineering/resolve-release/references/cut.md +131 -0
- package/skills/engineering/resolve-release/references/dark-launch.md +66 -0
- package/skills/engineering/resolve-release/references/flows.md +150 -0
- package/skills/engineering/resolve-release/references/preflight.md +154 -0
- package/skills/engineering/resolve-release/references/prepared-metadata.md +260 -0
- package/skills/engineering/resolve-release/references/promotion.md +82 -0
- package/skills/engineering/resolve-release/references/publish.md +232 -0
- package/skills/engineering/resolve-release/references/workspace-npm.md +103 -0
- package/skills/engineering/resolve-release/release-check.mjs +93 -0
- package/skills/engineering/resolve-release/scripts/apply.mjs +212 -0
- package/skills/engineering/resolve-release/scripts/apply.test.mjs +99 -0
- package/skills/engineering/resolve-release/scripts/dark-flags.mjs +134 -0
- package/skills/engineering/resolve-release/scripts/dark-flags.test.mjs +100 -0
- package/skills/engineering/resolve-release/scripts/flow.mjs +500 -0
- package/skills/engineering/resolve-release/scripts/flow.test.mjs +340 -0
- package/skills/engineering/resolve-release/scripts/green-head.mjs +231 -0
- package/skills/engineering/resolve-release/scripts/green-head.test.mjs +101 -0
- package/skills/engineering/resolve-release/scripts/npm-version-absence.mjs +138 -0
- package/skills/engineering/resolve-release/scripts/npm-version-absence.test.mjs +426 -0
- package/skills/engineering/resolve-release/scripts/plan-npm.test.mjs +659 -0
- package/skills/engineering/resolve-release/scripts/plan-toml-boundary.test.mjs +317 -0
- package/skills/engineering/resolve-release/scripts/plan-uv.test.mjs +291 -0
- package/skills/engineering/resolve-release/scripts/plan.mjs +806 -0
- package/skills/engineering/resolve-release/scripts/plan.test.mjs +428 -0
- package/skills/engineering/rush-issues/LICENSE +3 -0
- package/skills/engineering/rush-issues/SKILL.md +58 -0
- package/skills/engineering/rush-issues/agents/openai.yaml +8 -0
- package/skills/engineering/rush-issues/rehydrate.mjs +10 -0
- package/skills/engineering/rush-issues/release-check.mjs +93 -0
- package/skills/engineering/rush-release/LICENSE +3 -0
- package/skills/engineering/rush-release/SKILL.md +35 -0
- package/skills/engineering/rush-release/agents/openai.yaml +8 -0
- package/skills/engineering/rush-release/release-check.mjs +93 -0
- package/skills/engineering/test-quality/LICENSE +3 -0
- package/skills/engineering/test-quality/SKILL.md +79 -0
- package/skills/engineering/test-quality/references/audit.md +80 -0
- package/skills/engineering/test-quality/references/lint.md +24 -0
- package/skills/engineering/test-quality/references/principles.md +143 -0
- package/skills/engineering/test-quality/references/testing-conventions.md +9 -0
- package/skills/engineering/test-quality/release-check.mjs +93 -0
- package/skills/engineering/test-quality/scripts/lint-tests.mjs +574 -0
- package/skills/engineering/test-quality/scripts/lint-tests.test.mjs +591 -0
- package/skills/engineering/test-quality/scripts/mock-policy-config.mjs +176 -0
- package/skills/engineering/test-quality/scripts/mock-policy-config.test.mjs +119 -0
- package/skills/engineering/test-quality/scripts/persist-conventions-core.mjs +117 -0
- package/skills/engineering/test-quality/scripts/persist-conventions.mjs +17 -0
- package/skills/engineering/test-quality/scripts/persist-conventions.test.mjs +104 -0
- package/skills/risk-compliance/compliance-audit/LICENSE +3 -0
- package/skills/risk-compliance/compliance-audit/SKILL.md +439 -0
- package/skills/risk-compliance/compliance-audit/references/findings-schema.md +293 -0
- package/skills/risk-compliance/compliance-audit/references/normalization-rules.md +45 -0
- package/skills/risk-compliance/compliance-audit/references/vars-checklist.md +1068 -0
- package/skills/risk-compliance/compliance-audit/references/vars-findings-schema.md +398 -0
- package/skills/risk-compliance/compliance-audit/release-check.mjs +93 -0
- package/skills/risk-compliance/compliance-audit/scripts/compliance-audit.test.mjs +14 -0
- package/skills/risk-compliance/compliance-audit/scripts/export_tracker_xlsx.py +221 -0
- package/skills/risk-compliance/compliance-audit/scripts/reconcile_tracker.py +458 -0
- package/skills/risk-compliance/compliance-audit/scripts/test_export_tracker_xlsx.py +97 -0
- package/skills/risk-compliance/compliance-audit/scripts/test_validate_tracker.py +157 -0
- package/skills/risk-compliance/compliance-audit/scripts/validate_tracker.py +829 -0
- package/skills/risk-compliance/contract-compare/LICENSE +3 -0
- package/skills/risk-compliance/contract-compare/SKILL.md +199 -0
- package/skills/risk-compliance/contract-compare/references/comparison-dimensions.md +209 -0
- package/skills/risk-compliance/contract-compare/release-check.mjs +93 -0
- package/skills/risk-compliance/contract-review/LICENSE +3 -0
- package/skills/risk-compliance/contract-review/SKILL.md +240 -0
- package/skills/risk-compliance/contract-review/references/review-criteria.md +223 -0
- package/skills/risk-compliance/contract-review/release-check.mjs +93 -0
- package/skills/risk-compliance/doc-authenticity/LICENSE +3 -0
- package/skills/risk-compliance/doc-authenticity/SKILL.md +160 -0
- package/skills/risk-compliance/doc-authenticity/agents/openai.yaml +8 -0
- package/skills/risk-compliance/doc-authenticity/manual-invocation.test.mjs +12 -0
- package/skills/risk-compliance/doc-authenticity/references/agreement.md +66 -0
- package/skills/risk-compliance/doc-authenticity/references/bank-statement.md +150 -0
- package/skills/risk-compliance/doc-authenticity/references/forensic-signals.md +157 -0
- package/skills/risk-compliance/doc-authenticity/references/image-signals.md +114 -0
- package/skills/risk-compliance/doc-authenticity/references/invoice.md +66 -0
- package/skills/risk-compliance/doc-authenticity/references/issuer-profiles.md +86 -0
- package/skills/risk-compliance/doc-authenticity/references/verdict-and-report.md +95 -0
- package/skills/risk-compliance/doc-authenticity/references/verdict.schema.json +81 -0
- package/skills/risk-compliance/doc-authenticity/release-check.mjs +93 -0
- package/skills/risk-compliance/doc-authenticity/scripts/image_forensics.py +294 -0
- package/skills/risk-compliance/doc-authenticity/scripts/pdf_forensics.py +401 -0
- package/skills/risk-compliance/doc-authenticity/scripts/validate_codes.py +224 -0
- package/skills/risk-compliance/doc-authenticity/scripts/validate_verdict.py +308 -0
- package/skills/risk-compliance/doc-authenticity/scripts/validate_verdict.test.mjs +212 -0
- package/skills/risk-compliance/fraud-analysis/LICENSE +3 -0
- package/skills/risk-compliance/fraud-analysis/SKILL.md +114 -0
- package/skills/risk-compliance/fraud-analysis/references/archetypes/authorized-payment-scam.md +41 -0
- package/skills/risk-compliance/fraud-analysis/references/archetypes/first-party-fraud.md +44 -0
- package/skills/risk-compliance/fraud-analysis/references/archetypes/third-party-fraud.md +27 -0
- package/skills/risk-compliance/fraud-analysis/references/contexts/bank-transfer.md +24 -0
- package/skills/risk-compliance/fraud-analysis/references/contexts/card-payment.md +30 -0
- package/skills/risk-compliance/fraud-analysis/references/contexts/payment-collection.md +20 -0
- package/skills/risk-compliance/fraud-analysis/references/contexts/payout.md +20 -0
- package/skills/risk-compliance/fraud-analysis/references/feature-engineering.md +158 -0
- package/skills/risk-compliance/fraud-analysis/references/mechanisms/account-takeover.md +36 -0
- package/skills/risk-compliance/fraud-analysis/references/report-rationale.md +45 -0
- package/skills/risk-compliance/fraud-analysis/references/report-template.md +190 -0
- package/skills/risk-compliance/fraud-analysis/references/review-checklist.md +175 -0
- package/skills/risk-compliance/fraud-analysis/references/taxonomy.md +79 -0
- package/skills/risk-compliance/fraud-analysis/references/terminology.md +108 -0
- package/skills/risk-compliance/fraud-analysis/references/workflow.md +175 -0
- package/skills/risk-compliance/fraud-analysis/release-check.mjs +93 -0
- package/skills/risk-compliance/payment-analysis/LICENSE +3 -0
- package/skills/risk-compliance/payment-analysis/SKILL.md +180 -0
- package/skills/risk-compliance/payment-analysis/references/auth-rate-actions.md +30 -0
- package/skills/risk-compliance/payment-analysis/references/chargebacks.md +208 -0
- package/skills/risk-compliance/payment-analysis/references/chinese-polish.md +51 -0
- package/skills/risk-compliance/payment-analysis/references/event-layers.md +127 -0
- package/skills/risk-compliance/payment-analysis/references/fx.md +59 -0
- package/skills/risk-compliance/payment-analysis/references/journey.md +79 -0
- package/skills/risk-compliance/payment-analysis/references/metrics.md +67 -0
- package/skills/risk-compliance/payment-analysis/references/report-template.md +119 -0
- package/skills/risk-compliance/payment-analysis/references/terminology.md +95 -0
- package/skills/risk-compliance/payment-analysis/references/visualization.md +56 -0
- package/skills/risk-compliance/payment-analysis/release-check.mjs +93 -0
- package/skills/risk-compliance/report-writing/LICENSE +3 -0
- package/skills/risk-compliance/report-writing/SKILL.md +220 -0
- package/skills/risk-compliance/report-writing/references/audit-report-template.md +121 -0
- package/skills/risk-compliance/report-writing/references/external-assessment-template.md +167 -0
- package/skills/risk-compliance/report-writing/references/management-report-template.md +145 -0
- package/skills/risk-compliance/report-writing/references/vars-report-template.md +224 -0
- package/skills/risk-compliance/report-writing/release-check.mjs +93 -0
- package/skills/risk-compliance/similar-domain/LICENSE +3 -0
- package/skills/risk-compliance/similar-domain/SKILL.md +203 -0
- package/skills/risk-compliance/similar-domain/references/entities.md +67 -0
- package/skills/risk-compliance/similar-domain/references/fingerprints.md +134 -0
- package/skills/risk-compliance/similar-domain/references/pivots.md +82 -0
- package/skills/risk-compliance/similar-domain/references/report-template.md +93 -0
- package/skills/risk-compliance/similar-domain/references/scoring.md +130 -0
- package/skills/risk-compliance/similar-domain/references/terminology.md +41 -0
- package/skills/risk-compliance/similar-domain/references/workflow.md +85 -0
- package/skills/risk-compliance/similar-domain/release-check.mjs +93 -0
- package/skills/risk-compliance/tld-detection/LICENSE +3 -0
- package/skills/risk-compliance/tld-detection/SKILL.md +245 -0
- package/skills/risk-compliance/tld-detection/agents/openai.yaml +9 -0
- package/skills/risk-compliance/tld-detection/references/chinese-polish.md +55 -0
- package/skills/risk-compliance/tld-detection/references/clean.md +51 -0
- package/skills/risk-compliance/tld-detection/references/clustering.md +235 -0
- package/skills/risk-compliance/tld-detection/references/decision.md +189 -0
- package/skills/risk-compliance/tld-detection/references/fx-conversion.md +232 -0
- package/skills/risk-compliance/tld-detection/references/report-template.md +272 -0
- package/skills/risk-compliance/tld-detection/references/streams.md +141 -0
- package/skills/risk-compliance/tld-detection/references/terminology.md +95 -0
- package/skills/risk-compliance/tld-detection/references/workflow.md +95 -0
- package/skills/risk-compliance/tld-detection/release-check.mjs +93 -0
- package/skills/risk-compliance/tld-detection/scripts/detect_ladders.py +390 -0
- package/skills/risk-compliance/tld-detection/scripts/detect_ladders.test.mjs +14 -0
- package/skills/risk-compliance/tld-detection/scripts/detect_streams.py +650 -0
- package/skills/risk-compliance/tld-detection/scripts/detect_streams.test.mjs +14 -0
- package/skills/risk-compliance/tld-detection/tests/test_detect_ladders.py +134 -0
- package/skills/risk-compliance/tld-detection/tests/test_detect_streams.py +520 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: contract-review
|
|
3
|
+
description: "Review contracts for legal, commercial, and compliance risks via convert → chunk review → merge → validate (+ optional mandate preprocessing). Use for reviewing, auditing, or checking any contract, agreement, NDA, MSA, or SLA; input a file path (PDF/DOCX/TXT) or pasted text."
|
|
4
|
+
release-version: 0.36.0
|
|
5
|
+
---
|
|
6
|
+
**Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
|
|
7
|
+
# Contract Review
|
|
8
|
+
|
|
9
|
+
Four-step workflow: **convert → chunk review → merge → validate** (+ optional mandate preprocessing in Step 0b).
|
|
10
|
+
|
|
11
|
+
Full criteria reference: [references/review-criteria.md](references/review-criteria.md) — load before reviewing any chunk.
|
|
12
|
+
|
|
13
|
+
**Before starting any payment contract review, identify the perspective:**
|
|
14
|
+
- 🏢 **Service Provider** — we provide payment services to merchants; we bear fraud/chargeback/compliance risk
|
|
15
|
+
- 🛒 **Purchaser** — we buy from an acquirer/channel/PSP; we depend on their uptime, pricing, settlement
|
|
16
|
+
|
|
17
|
+
Ask the user if unclear. The perspective determines which risk items to prioritize in each chunk.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Step 0b: Preprocess Mandate Documents (if provided)
|
|
22
|
+
|
|
23
|
+
Run this step **before Step 1** whenever the user provides a mandate/regulatory document alongside the contract. Skip if no mandate documents are provided.
|
|
24
|
+
|
|
25
|
+
**Use the `reg-parser` skill** — it handles conversion, structured extraction, and saving. Output goes into `{reg-parser baseDir}/references/mandates/` so all consuming skills can read it.
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# 0b-a: convert mandate to markdown (via doc-to-md)
|
|
29
|
+
python3 {doc-to-md baseDir}/scripts/convert.py /path/to/vars.pdf ./mandate-md/
|
|
30
|
+
|
|
31
|
+
# 0b-b: extract structured obligations (via reg-parser, Mode A)
|
|
32
|
+
bash {reg-parser baseDir}/scripts/preprocess-mandate.sh ./mandate-md/vars.md \
|
|
33
|
+
--source "Visa VARS" \
|
|
34
|
+
--out {reg-parser baseDir}/references/mandates/adhoc-visa-vars-<YYYYMMDD>.md
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Never overwrite a built-in mandate (`visa-vars.md`, `hk-amlo-cap615.md`); the script refuses to. Finish the extraction (remove the RAW dump) before Step 2, since chunk subagents read every `.md` in the folder.
|
|
38
|
+
|
|
39
|
+
Once complete, note the output paths. Chunk review subagents (Step 2) and the validation subagent (Step 4) will `read` all files in `{reg-parser baseDir}/references/mandates/` before performing P10 clause origin tracing.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Step 1: Convert to Markdown
|
|
44
|
+
|
|
45
|
+
**If input is a file path**, use the `doc-to-md` utility:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
python3 {doc-to-md baseDir}/scripts/convert.py /path/to/contract.pdf ./contract-md/
|
|
49
|
+
# Output: ./contract-md/contract.md
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Supported formats: PDF, DOCX, PPTX, XLSX, HTML, images. See the `doc-to-md` skill for setup and edge cases.
|
|
53
|
+
|
|
54
|
+
**If input is pasted text**, write it to a temp file:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
cat > /tmp/contract-review-input.md << 'EOF'
|
|
58
|
+
[pasted text]
|
|
59
|
+
EOF
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
After conversion, note the output `.md` path — used in Step 2.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Step 2: Chunk Review via Subagents
|
|
67
|
+
|
|
68
|
+
Read the markdown file, split into chunks of ~100 lines each (or at clause/section boundaries), then start one subagent per chunk with your harness's subagent tool (Claude Code: `Agent`). No subagent tool: review the chunks one at a time yourself, same task, and say so in the report.
|
|
69
|
+
|
|
70
|
+
### Chunk task
|
|
71
|
+
|
|
72
|
+
Substitute `{contract-review baseDir}` and `{reg-parser baseDir}` with their installed skill paths, then give each subagent this task:
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
You are reviewing a section of a contract. Review the following text and identify ALL issues.
|
|
76
|
+
|
|
77
|
+
Load the review criteria from: {contract-review baseDir}/references/review-criteria.md
|
|
78
|
+
Load any preprocessed mandate files from: {reg-parser baseDir}/references/mandates/ (read all .md files present)
|
|
79
|
+
Use mandate files for P10 clause origin tracing — annotate [Mandated: <source> section <ref>] where applicable. Write clause references as "section <ref>", never §; convert any §ref from an older or user-supplied mandate (§2(1)(a) → section 2(1)(a)).
|
|
80
|
+
|
|
81
|
+
CONTRACT SECTION (chunk N of TOTAL):
|
|
82
|
+
---
|
|
83
|
+
[chunk text here]
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
Output format (strict):
|
|
87
|
+
## Chunk N Review
|
|
88
|
+
|
|
89
|
+
### Issues Found
|
|
90
|
+
For each issue:
|
|
91
|
+
**[🔴/🟠/🟡/🟢] [Short title]**
|
|
92
|
+
- Clause/location: [quote the relevant text or section heading]
|
|
93
|
+
- Issue: [what is wrong or missing]
|
|
94
|
+
- Recommendation: [specific fix or negotiating position]
|
|
95
|
+
|
|
96
|
+
### Missing Clauses
|
|
97
|
+
List any standard clauses from the criteria that are absent in this chunk (may be in another section — note as 'not seen in this section').
|
|
98
|
+
|
|
99
|
+
### Summary
|
|
100
|
+
One sentence: key risk level of this chunk.
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Start all chunk subagents in parallel and wait for all to complete.
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Step 3: Merge Results
|
|
108
|
+
|
|
109
|
+
**House style.** Use the nearest `WRITING.md`: start in the contract file's folder (pasted text: the output
|
|
110
|
+
folder, else the working directory), then parents up to the repository root; never the home
|
|
111
|
+
directory or above. Rate every issue from the evidence first: the style changes wording, never a rating,
|
|
112
|
+
finding or issue list. Write the prose in its voice, language, terms, sentences and presentation;
|
|
113
|
+
keep structure, severity ratings, clause references and quoted text. The request beats WRITING.md,
|
|
114
|
+
which beats this skill's wording. Never edit it. Bilingual: `write-doc`'s mode. None: write as
|
|
115
|
+
below.
|
|
116
|
+
|
|
117
|
+
Collect all chunk reviews, then produce the final report:
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
# Contract Review Report
|
|
121
|
+
|
|
122
|
+
**Document:** [filename or "pasted text"]
|
|
123
|
+
**Review Date:** [YYYY-MM-DD]
|
|
124
|
+
**Total Chunks:** [N]
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Executive Summary
|
|
129
|
+
[3-5 sentences: contract type, parties, key purpose, overall risk assessment]
|
|
130
|
+
|
|
131
|
+
## Risk Summary
|
|
132
|
+
🔴 Critical issues: [N]
|
|
133
|
+
🟠 High issues: [N]
|
|
134
|
+
🟡 Medium issues: [N]
|
|
135
|
+
🟢 Low / Info: [N]
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Issues by Severity
|
|
140
|
+
|
|
141
|
+
### 🔴 Critical
|
|
142
|
+
[Consolidated from all chunks — no duplicates]
|
|
143
|
+
**[Title]**
|
|
144
|
+
- Location: [clause / page / section]
|
|
145
|
+
- Issue: [description]
|
|
146
|
+
- Recommendation: [fix]
|
|
147
|
+
|
|
148
|
+
### 🟠 High
|
|
149
|
+
[...]
|
|
150
|
+
|
|
151
|
+
### 🟡 Medium
|
|
152
|
+
[...]
|
|
153
|
+
|
|
154
|
+
### 🟢 Low / Informational
|
|
155
|
+
[...]
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## Missing Standard Clauses
|
|
160
|
+
[Clauses expected for this contract type that were not found anywhere]
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Recommended Actions Before Signing
|
|
165
|
+
1. [Ordered by priority — Critical items first]
|
|
166
|
+
2. [...]
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Step 4: Validation
|
|
172
|
+
|
|
173
|
+
After producing the merged report, start a fresh validation subagent to quality-check the review itself. Give it only the task below, not the chunk reviews' reasoning.
|
|
174
|
+
|
|
175
|
+
If the harness lets you choose the subagent's model, pick one different from Step 2's: a different model catches different gaps. Otherwise use the default model. No subagent tool: run the checks yourself and say so in the report.
|
|
176
|
+
|
|
177
|
+
### Validation task
|
|
178
|
+
|
|
179
|
+
Substitute `{contract-review baseDir}` and `{reg-parser baseDir}` as in Step 2:
|
|
180
|
+
|
|
181
|
+
```
|
|
182
|
+
You are validating a contract review report for completeness and consistency.
|
|
183
|
+
|
|
184
|
+
Load the review criteria from: {contract-review baseDir}/references/review-criteria.md
|
|
185
|
+
Load any preprocessed mandate files from: {reg-parser baseDir}/references/mandates/ (read all .md files present)
|
|
186
|
+
Use mandate files to verify P10 annotations ([Mandated]/[Permitted]/[Counterparty-Added]) are accurate.
|
|
187
|
+
|
|
188
|
+
THE MERGED REVIEW REPORT:
|
|
189
|
+
---
|
|
190
|
+
[full merged report from Step 3]
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
Run these checks and report findings:
|
|
194
|
+
|
|
195
|
+
### 4.1 Coverage Check
|
|
196
|
+
For each of the 12 criteria categories in review-criteria.md, confirm it was addressed.
|
|
197
|
+
Mark each as:
|
|
198
|
+
- ✅ Covered — at least one issue or explicit 'not applicable' noted
|
|
199
|
+
- ⚠️ Thin — mentioned but no substantive analysis
|
|
200
|
+
- ❌ Missing — not addressed at all
|
|
201
|
+
|
|
202
|
+
### 4.2 Chunk Gap Check
|
|
203
|
+
Were all [N] chunks reviewed? List any chunk numbers absent from the report.
|
|
204
|
+
|
|
205
|
+
### 4.3 Consistency Check
|
|
206
|
+
Flag any contradictions between chunks (e.g., two chunks say opposite things about the same clause).
|
|
207
|
+
|
|
208
|
+
### 4.4 Critical Clause Presence
|
|
209
|
+
Verify that the following high-risk items were explicitly checked (even if clean):
|
|
210
|
+
- Limitation of liability cap
|
|
211
|
+
- Governing law and jurisdiction
|
|
212
|
+
- Termination for convenience notice period
|
|
213
|
+
- IP ownership of work product
|
|
214
|
+
- Auto-renewal clause
|
|
215
|
+
|
|
216
|
+
Mark each ✅ checked or ❌ not found in report.
|
|
217
|
+
|
|
218
|
+
### 4.5 Validation Verdict
|
|
219
|
+
One of:
|
|
220
|
+
- ✅ **PASS** — Review is complete and consistent. Safe to deliver.
|
|
221
|
+
- ⚠️ **PASS WITH GAPS** — Minor gaps noted above; deliver with caveats.
|
|
222
|
+
- ❌ **FAIL** — Significant gaps or contradictions; re-review required.
|
|
223
|
+
|
|
224
|
+
If FAIL or PASS WITH GAPS, list the exact gaps that need to be addressed before delivery.
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### After validation
|
|
228
|
+
|
|
229
|
+
- **PASS** → deliver the Step 3 report as-is
|
|
230
|
+
- **PASS WITH GAPS** → fill the identified gaps inline and note corrections at the top of the report
|
|
231
|
+
- **FAIL** → rerun the chunk review for the missing sections, re-merge, re-validate
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Notes
|
|
236
|
+
|
|
237
|
+
- For very large contracts (>500 lines), limit to 8 subagents max; increase chunk size proportionally
|
|
238
|
+
- If a chunk subagent fails, rerun it with the same chunk before proceeding to merge
|
|
239
|
+
- Do not skip Step 1 even for pasted text — normalizing to a file keeps chunk indexing consistent
|
|
240
|
+
- Step 4 is mandatory — do not deliver the report without a PASS or PASS WITH GAPS verdict
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
# Contract Review Criteria
|
|
2
|
+
|
|
3
|
+
Each chunk review should cover applicable items from this list. Not every item applies to every contract type — use judgment.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Parties & Authority
|
|
8
|
+
- Correct legal names, registration numbers, jurisdiction
|
|
9
|
+
- Signatory has authority to bind the entity
|
|
10
|
+
- Proper execution block (signature, date, title)
|
|
11
|
+
|
|
12
|
+
## 2. Term & Termination
|
|
13
|
+
- Contract start and end dates clearly defined
|
|
14
|
+
- Renewal: automatic vs. manual, notice period required
|
|
15
|
+
- Termination for cause: trigger events, cure period
|
|
16
|
+
- Termination for convenience: notice period, any penalties
|
|
17
|
+
- Survival clause: which obligations survive termination
|
|
18
|
+
|
|
19
|
+
## 3. Payment & Pricing
|
|
20
|
+
- Payment amounts, currency, schedule
|
|
21
|
+
- Late payment penalties / interest
|
|
22
|
+
- Price adjustment mechanisms (CPI, milestones)
|
|
23
|
+
- Invoicing requirements and approval process
|
|
24
|
+
- Disputed invoice process
|
|
25
|
+
|
|
26
|
+
## 4. Scope of Work / Deliverables
|
|
27
|
+
- Deliverables clearly defined and measurable
|
|
28
|
+
- Acceptance criteria and process
|
|
29
|
+
- Change order / scope change mechanism
|
|
30
|
+
- Dependencies and assumptions stated
|
|
31
|
+
|
|
32
|
+
## 5. Liability & Indemnification
|
|
33
|
+
- Limitation of liability (cap, exclusions)
|
|
34
|
+
- Mutual vs. one-sided indemnification
|
|
35
|
+
- Consequential / indirect damages exclusion
|
|
36
|
+
- IP infringement indemnity
|
|
37
|
+
|
|
38
|
+
## 6. Intellectual Property
|
|
39
|
+
- Ownership of work product and derivatives
|
|
40
|
+
- License grants (scope, exclusivity, sublicensing)
|
|
41
|
+
- Pre-existing IP carve-out
|
|
42
|
+
- Open-source software restrictions
|
|
43
|
+
|
|
44
|
+
## 7. Confidentiality
|
|
45
|
+
- Definition of confidential information
|
|
46
|
+
- Permitted disclosures (employees, advisors, law)
|
|
47
|
+
- Duration of confidentiality obligation
|
|
48
|
+
- Return / destruction of materials on termination
|
|
49
|
+
|
|
50
|
+
## 8. Data & Privacy
|
|
51
|
+
- Data ownership and processing rights
|
|
52
|
+
- Compliance obligations (GDPR, PIPL, CCPA, PCI-DSS)
|
|
53
|
+
- Data breach notification obligations
|
|
54
|
+
- Cross-border data transfer restrictions
|
|
55
|
+
|
|
56
|
+
## 9. Representations & Warranties
|
|
57
|
+
- Accuracy of representations at signing
|
|
58
|
+
- Ongoing warranty obligations
|
|
59
|
+
- Warranty disclaimers (AS IS, limitation)
|
|
60
|
+
|
|
61
|
+
## 10. Dispute Resolution
|
|
62
|
+
- Governing law and jurisdiction
|
|
63
|
+
- Dispute resolution process (negotiation → mediation → arbitration/litigation)
|
|
64
|
+
- Arbitration seat, rules, language
|
|
65
|
+
- Injunctive relief carve-out
|
|
66
|
+
|
|
67
|
+
## 11. Force Majeure
|
|
68
|
+
- Triggering events (pandemic, war, natural disaster)
|
|
69
|
+
- Notice and mitigation obligations
|
|
70
|
+
- Right to terminate if prolonged
|
|
71
|
+
|
|
72
|
+
## 12. General / Boilerplate
|
|
73
|
+
- Entire agreement / merger clause
|
|
74
|
+
- Amendment process (written, signed)
|
|
75
|
+
- Waiver requirements
|
|
76
|
+
- Severability
|
|
77
|
+
- Assignment restrictions
|
|
78
|
+
- Notices (method, addresses)
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Payment Industry Specific Criteria
|
|
83
|
+
|
|
84
|
+
Apply these in addition to the 12 standard categories above when reviewing payment-related contracts.
|
|
85
|
+
|
|
86
|
+
**First, identify the perspective:**
|
|
87
|
+
|
|
88
|
+
> **As Service Provider** — We are providing payment services to merchants/clients. We bear operational risk (fraud, chargebacks, compliance). Counterparty is a merchant or sub-merchant.
|
|
89
|
+
>
|
|
90
|
+
> **As Purchaser** — We are buying payment infrastructure from an acquirer, channel partner, gateway, or payment network. We depend on their uptime, pricing, and settlement. Counterparty is a bank, acquirer, PSP, or channel partner.
|
|
91
|
+
|
|
92
|
+
Items marked 🏢 are higher-risk **as Service Provider**. Items marked 🛒 are higher-risk **as Purchaser**. Items marked ⚖️ are equally important from both sides.
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
### P1. Licensing & Regulatory Compliance ⚖️
|
|
97
|
+
- Counterparty holds required licenses in relevant jurisdictions (payment institution, money transmitter, acquiring bank, PSP)
|
|
98
|
+
- Contract references applicable regulations (PCI-DSS, PSD2, EMD2, local payment laws)
|
|
99
|
+
- Compliance obligation allocation — who bears cost if regulations change
|
|
100
|
+
- AML/KYC responsibility: 🏢 we own end-customer KYC; 🛒 counterparty must maintain their own KYC/AML program
|
|
101
|
+
- Sanctions screening obligations (OFAC, UN, EU lists) — which party screens, at what point in the flow
|
|
102
|
+
|
|
103
|
+
### P2. Settlement & Fund Flow ⚖️
|
|
104
|
+
- Settlement timeline clearly defined (T+0, T+1, T+2, etc.)
|
|
105
|
+
- 🛒 Settlement delay rights — can counterparty delay settlement unilaterally? Under what conditions?
|
|
106
|
+
- 🏢 Reserve requirements we impose on merchants; 🛒 reserve requirements imposed on us — percentage, hold period, release triggers
|
|
107
|
+
- Settlement currency and FX conversion terms; who bears FX risk
|
|
108
|
+
- Reconciliation process, dispute window, and escalation path
|
|
109
|
+
- Who holds funds in transit (escrow / trust / commingled) — insolvency protection if counterparty fails
|
|
110
|
+
|
|
111
|
+
### P3. Fees & Pricing ⚖️
|
|
112
|
+
- 🏢 MDR / service fee we charge merchants — clearly defined, no ambiguity on scope
|
|
113
|
+
- 🛒 Interchange, MDR, or service fee charged to us — pass-through vs. blended pricing, clearly defined
|
|
114
|
+
- Scheme fees (Visa/Mastercard/UnionPay): 🛒 who bears scheme fee increases — us or counterparty
|
|
115
|
+
- FX spread and markup: 🛒 disclosed and capped?
|
|
116
|
+
- 🛒 Fee change notice period — minimum 30–60 days recommended; right to terminate without penalty if fees increase beyond threshold
|
|
117
|
+
- Chargeback and refund processing fees — allocation between parties
|
|
118
|
+
|
|
119
|
+
### P4. Chargeback & Dispute Management 🏢
|
|
120
|
+
- Chargeback liability — who ultimately bears the loss
|
|
121
|
+
- 🏢 Chargeback ratio thresholds we enforce on merchants (typically <1% Visa/MC); consequences for breach
|
|
122
|
+
- 🛒 Chargeback ratio thresholds applied to us by acquirer — consequences (fines, monitoring program, termination)
|
|
123
|
+
- Right of offset: counterparty may deduct chargeback amounts from settlement — notice required?
|
|
124
|
+
- Representment rights and process; timeline for dispute evidence submission
|
|
125
|
+
- 🏢 Right to withhold settlement from merchants pending chargeback resolution
|
|
126
|
+
|
|
127
|
+
### P5. Risk & Fraud Controls ⚖️
|
|
128
|
+
- Fraud liability allocation — card-present vs. card-not-present; EMV liability shift
|
|
129
|
+
- 3DS / SCA obligations: who must implement, who bears liability if not implemented
|
|
130
|
+
- 🏢 Transaction monitoring obligations we impose; right to suspend a merchant for risk
|
|
131
|
+
- 🛒 Right of counterparty to suspend our processing — notice requirement, cure period, appeal process
|
|
132
|
+
- 🛒 Rolling reserve imposed on us — percentage, hold period, automatic release conditions, interest on held funds
|
|
133
|
+
|
|
134
|
+
### P6. Data Security & PCI-DSS ⚖️
|
|
135
|
+
- PCI-DSS compliance level required of each party
|
|
136
|
+
- Breach cost allocation: forensic investigation, card replacement, scheme fines, notification costs
|
|
137
|
+
- 🏢 Right to audit merchant PCI compliance; consequences of non-compliance
|
|
138
|
+
- 🛒 Our audit obligations to counterparty; scope and frequency of audits
|
|
139
|
+
- Prohibited data storage (full PAN, CVV, PIN) — applies to both parties
|
|
140
|
+
- Tokenization and encryption requirements
|
|
141
|
+
|
|
142
|
+
### P7. Network Rules & Scheme Compliance ⚖️
|
|
143
|
+
- Agreement to comply with card scheme rules (Visa, Mastercard, UnionPay, etc.)
|
|
144
|
+
- Scheme fine liability allocation — who bears fines if rules are violated
|
|
145
|
+
- 🏢 Prohibited merchant categories (MCC restrictions) we must enforce on merchants
|
|
146
|
+
- 🛒 MCC restrictions applied to our business — any prohibited categories affecting our clients
|
|
147
|
+
- Right of schemes to modify rules unilaterally — how does this flow through to the contract
|
|
148
|
+
|
|
149
|
+
### P8. Termination & Business Continuity ⚖️
|
|
150
|
+
- Immediate termination triggers: regulatory action, license revocation, insolvency, scheme termination
|
|
151
|
+
- 🛒 Wind-down period for in-flight transactions — minimum 30 days recommended to avoid stranded settlements
|
|
152
|
+
- 🏢 Right to terminate merchants immediately for fraud/risk; process for doing so
|
|
153
|
+
- 🛒 Data portability on termination — transaction history, merchant data, tokenized card data
|
|
154
|
+
- 🛒 Transition assistance obligations — counterparty must cooperate with migration to new provider
|
|
155
|
+
- Continuity of settlement obligations post-termination — held funds must still be released on schedule
|
|
156
|
+
|
|
157
|
+
### P9. Cross-Border & Multi-Currency ⚖️
|
|
158
|
+
- Supported currencies and geographies explicitly listed; changes require notice
|
|
159
|
+
- 🛒 Regulatory approval requirements for cross-border remittance — who obtains and maintains approvals
|
|
160
|
+
- Currency control restrictions: China SAFE, India RBI, others — who bears compliance cost
|
|
161
|
+
- 🛒 Local acquiring requirements (some markets require local entity) — counterparty's obligation to maintain
|
|
162
|
+
- Cross-border transaction fee disclosure and FX rate transparency
|
|
163
|
+
|
|
164
|
+
### P10. Regulatory & Scheme Mandate Origin Tracing 🛒
|
|
165
|
+
|
|
166
|
+
Apply when reviewing any payment channel/acquiring contract from the **Purchaser (🛒) perspective**.
|
|
167
|
+
|
|
168
|
+
**Core principle:** Payment contracts often contain clauses that appear one-sided or restrictive. Before flagging them as risks to negotiate, trace their origin. Clauses mandated by regulators or payment schemes are non-negotiable — they flow down the chain by legal/scheme obligation. Only clauses added by the counterparty beyond any mandate are truly negotiable.
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
#### Mandate sources — common in payment industry contracts
|
|
173
|
+
|
|
174
|
+
| Source | Applies To | Examples |
|
|
175
|
+
|--------|-----------|---------|
|
|
176
|
+
| **Visa VARS** (Acquirer Risk Standards) | Visa credit/debit card acquiring | Chargeback liability, MCC restrictions, PCI-DSS, reserve rights, fine pass-through, VAMP/VDMP thresholds |
|
|
177
|
+
| **Mastercard SDP / MDRP** | Mastercard acquiring | Similar to VARS; merchant monitoring, SDP compliance program |
|
|
178
|
+
| **UnionPay Agreement Rules** | UnionPay acquiring/acceptance | Acceptance obligations, refund rules, dispute handling |
|
|
179
|
+
| **HK AML Guide** (HKMA Guideline on AML/CFT) | Institutions licensed/registered in HK | KYC obligations, CDD, EDD for high-risk customers, transaction monitoring, STR filing, record retention |
|
|
180
|
+
| **HK MSO Ordinance** | Money Service Operators in HK | Licensing obligations, AML program requirements, reporting |
|
|
181
|
+
| **PCI-DSS** | Any entity storing/transmitting card data | Card data security controls, audit, breach notification |
|
|
182
|
+
| **PSD2 / EMD2** (EU) | EU payment institutions | SCA requirements, access to accounts, consumer protection |
|
|
183
|
+
| **China PBOC Rules** | Mainland China payment institutions | Merchant boarding standards, reserve requirements, clearing rules |
|
|
184
|
+
| **MAS Payment Services Act** | Singapore payment institutions | Safeguarding, AML/CFT, user protection obligations |
|
|
185
|
+
| **FATF Recommendations** | Global — AML/CFT | Risk-based approach, CDD, record keeping, STR reporting |
|
|
186
|
+
|
|
187
|
+
> This list is not exhaustive. Payment industry regulations vary by jurisdiction. When in doubt, identify the regulatory source before treating a clause as negotiable.
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
#### Tracing workflow for each flagged clause
|
|
192
|
+
|
|
193
|
+
For every clause that appears one-sided, restrictive, or unusual:
|
|
194
|
+
|
|
195
|
+
1. **Identify candidate mandate source** — which regulator or scheme is likely behind this clause?
|
|
196
|
+
2. **Confirm origin:**
|
|
197
|
+
- Mandated → mark `[Mandated: <source>]` → acceptable; note reason in review
|
|
198
|
+
- Permitted (allowed but not required) → mark `[Permitted: <source>]` → negotiable
|
|
199
|
+
- No mandate found → mark `[Counterparty-Added]` → scrutinize; flag for negotiation
|
|
200
|
+
3. **Check for scope creep** — even mandated clauses can be implemented beyond what the mandate requires. Flag the delta:
|
|
201
|
+
> *e.g., VARS requires chargeback notification; counterparty adds a 5-day response window with automatic forfeit — the forfeit is Counterparty-Added even though the notification obligation is VARS-Mandated*
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
#### Output annotation
|
|
206
|
+
|
|
207
|
+
Annotate every flagged payment clause in the review report:
|
|
208
|
+
|
|
209
|
+
- `[Mandated: VARS]` — Visa scheme requirement, acceptable
|
|
210
|
+
- `[Mandated: HK AML Guide]` — HKMA regulatory requirement, acceptable
|
|
211
|
+
- `[Mandated: PCI-DSS]` — security standard requirement, acceptable
|
|
212
|
+
- `[Permitted: VARS]` — VARS allows but does not require; counterparty chose to include; negotiable
|
|
213
|
+
- `[Counterparty-Added]` — beyond any identified mandate; flag for negotiation
|
|
214
|
+
- `[Unknown — verify]` — mandate unclear; recommend confirming with counterparty before accepting
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## Risk Flag Levels
|
|
219
|
+
|
|
220
|
+
- 🔴 **Critical** — Must fix before signing. Creates material legal/financial exposure.
|
|
221
|
+
- 🟠 **High** — Strongly recommend negotiating. Significant risk if unchanged.
|
|
222
|
+
- 🟡 **Medium** — Worth flagging. Negotiate if possible.
|
|
223
|
+
- 🟢 **Low / Informational** — Minor issue or standard clause, noted for awareness.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawnSync } from 'node:child_process';
|
|
3
|
+
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
4
|
+
import { homedir } from 'node:os';
|
|
5
|
+
import { dirname, join } from 'node:path';
|
|
6
|
+
import { fileURLToPath } from 'node:url';
|
|
7
|
+
|
|
8
|
+
const DAY_MS = 24 * 60 * 60 * 1000;
|
|
9
|
+
const WEEK_MS = 7 * DAY_MS;
|
|
10
|
+
const here = dirname(fileURLToPath(import.meta.url));
|
|
11
|
+
|
|
12
|
+
function readJson(path, fallback = {}) {
|
|
13
|
+
try { return JSON.parse(readFileSync(path, 'utf8')); } catch { return fallback; }
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function frontmatterValue(text, key) {
|
|
17
|
+
const frontmatter = /^---\n([\s\S]*?)\n---/.exec(text)?.[1] ?? '';
|
|
18
|
+
const match = new RegExp('^' + key + ':\\s*([^\\n]+)$', 'm').exec(frontmatter);
|
|
19
|
+
return match?.[1].trim().replace(/^['"]|['"]$/g, '') ?? null;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function repositoryOf(source) {
|
|
23
|
+
const value = String(source ?? '').trim();
|
|
24
|
+
const match = /^(?:git@github\.com:|https:\/\/github\.com\/)?([A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+?)(?:\.git)?$/.exec(value);
|
|
25
|
+
return match?.[1] ?? null;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function stableVersion(value) {
|
|
29
|
+
const match = /^v?(\d+)\.(\d+)\.(\d+)$/.exec(String(value ?? '').trim());
|
|
30
|
+
return match ? match.slice(1).map(Number) : null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function newer(left, right) {
|
|
34
|
+
for (let index = 0; index < 3; index += 1) {
|
|
35
|
+
if (left[index] !== right[index]) return left[index] > right[index];
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function writeCache(path, value) {
|
|
41
|
+
try {
|
|
42
|
+
mkdirSync(dirname(path), { recursive: true });
|
|
43
|
+
writeFileSync(path, JSON.stringify(value));
|
|
44
|
+
} catch { /* A read-only cache must not block skill use. */ }
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function main(now = Date.now()) {
|
|
48
|
+
if (process.env.ONEABOVEIO_NO_UPDATE_CHECK) return;
|
|
49
|
+
const skill = readFileSync(join(here, 'SKILL.md'), 'utf8');
|
|
50
|
+
const name = frontmatterValue(skill, 'name');
|
|
51
|
+
const localVersion = stableVersion(frontmatterValue(skill, 'release-version'));
|
|
52
|
+
if (!name || !localVersion) return;
|
|
53
|
+
|
|
54
|
+
const lock = readJson(join(process.env.HOME || homedir(), '.agents', '.skill-lock.json'));
|
|
55
|
+
const entry = lock.skills?.[name];
|
|
56
|
+
const repository = repositoryOf(entry?.sourceUrl || entry?.source);
|
|
57
|
+
if (!repository) return;
|
|
58
|
+
|
|
59
|
+
const cacheRoot = process.env.XDG_CACHE_HOME || join(process.env.HOME || homedir(), '.cache');
|
|
60
|
+
const cachePath = join(cacheRoot, '1aboveio-skills', 'release-check.json');
|
|
61
|
+
const all = readJson(cachePath);
|
|
62
|
+
const cache = all[repository] && typeof all[repository] === 'object' ? all[repository] : {};
|
|
63
|
+
|
|
64
|
+
if (!cache.lastCheck || now - cache.lastCheck >= DAY_MS) {
|
|
65
|
+
const result = spawnSync('gh', ['api', 'repos/' + repository + '/releases/latest', '--jq', '.tag_name'], {
|
|
66
|
+
encoding: 'utf8',
|
|
67
|
+
stdio: ['ignore', 'pipe', 'ignore'],
|
|
68
|
+
timeout: 1500,
|
|
69
|
+
});
|
|
70
|
+
cache.lastCheck = now;
|
|
71
|
+
if (result.status === 0 && stableVersion(result.stdout)) cache.latestTag = result.stdout.trim();
|
|
72
|
+
else delete cache.latestTag;
|
|
73
|
+
all[repository] = cache;
|
|
74
|
+
writeCache(cachePath, all);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const latestVersion = stableVersion(cache.latestTag);
|
|
78
|
+
if (!latestVersion || !newer(latestVersion, localVersion)) return;
|
|
79
|
+
if (cache.notifiedTag === cache.latestTag && cache.notifiedAt && now - cache.notifiedAt < WEEK_MS) return;
|
|
80
|
+
|
|
81
|
+
cache.notifiedTag = cache.latestTag;
|
|
82
|
+
cache.notifiedAt = now;
|
|
83
|
+
all[repository] = cache;
|
|
84
|
+
writeCache(cachePath, all);
|
|
85
|
+
const command = `npx skills@1.5.23 add '${repository}#${cache.latestTag}' --global --agent universal claude-code --skill ${name} --yes`;
|
|
86
|
+
process.stdout.write(
|
|
87
|
+
`UPDATE_AVAILABLE: A newer 1AboveIO skills release (${cache.latestTag}) is available; this skill is `
|
|
88
|
+
+ `v${localVersion.join('.')}. Ask once whether to refresh ${name}. On approval run \`${command}\`. `
|
|
89
|
+
+ 'The refreshed instructions apply next session. Either way, continue the current task and do not ask again this session.\n',
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
try { main(); } catch { /* Update checks are advisory and always fail silent. */ }
|