@yandy-r/ycc-opencode 0.0.0-stage → 6.1.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/AGENTS.md +39 -0
- package/LICENSE +21 -0
- package/README.md +50 -2
- package/agents/ansible-automation-expert.md +115 -0
- package/agents/api-docs-expert.md +146 -0
- package/agents/api-documenter.md +105 -0
- package/agents/architect.md +264 -0
- package/agents/architecture-analyst.md +99 -0
- package/agents/backport-conflict-resolver.md +476 -0
- package/agents/cloudflare-architect.md +85 -0
- package/agents/cloudflare-developer.md +196 -0
- package/agents/code-architect.md +101 -0
- package/agents/code-documenter.md +114 -0
- package/agents/code-explorer.md +99 -0
- package/agents/code-finder.md +83 -0
- package/agents/code-researcher.md +102 -0
- package/agents/code-reviewer.md +268 -0
- package/agents/code-simplifier.md +77 -0
- package/agents/codebase-advisor.md +130 -0
- package/agents/db-modifier.md +577 -0
- package/agents/docs-git-committer.md +220 -0
- package/agents/documentation-writer.md +92 -0
- package/agents/feature-researcher.md +121 -0
- package/agents/feature-writer.md +89 -0
- package/agents/frontend-ui-developer.md +98 -0
- package/agents/git-cleanup.md +174 -0
- package/agents/go-api-architect.md +172 -0
- package/agents/go-expert-architect.md +147 -0
- package/agents/implementor.md +167 -0
- package/agents/library-docs-writer.md +128 -0
- package/agents/nextjs-ux-ui-expert.md +127 -0
- package/agents/nodejs-backend-architect.md +112 -0
- package/agents/nodejs-backend-developer.md +184 -0
- package/agents/planner.md +257 -0
- package/agents/pr-comment-fixer.md +626 -0
- package/agents/practices-researcher.md +80 -0
- package/agents/project-file-cleaner.md +140 -0
- package/agents/prp-researcher.md +231 -0
- package/agents/python-developer.md +171 -0
- package/agents/python-expert-architect.md +188 -0
- package/agents/readme-generator.md +100 -0
- package/agents/release-fix-applier.md +558 -0
- package/agents/releaser.md +147 -0
- package/agents/research-specialist.md +106 -0
- package/agents/reverse-proxy-architect.md +131 -0
- package/agents/review-fixer.md +609 -0
- package/agents/root-cause-analyzer.md +105 -0
- package/agents/rust-build-resolver.md +183 -0
- package/agents/rust-expert-architect.md +149 -0
- package/agents/rust-reviewer.md +126 -0
- package/agents/sql-database-developer.md +195 -0
- package/agents/systems-engineering-expert.md +203 -0
- package/agents/terraform-architect.md +109 -0
- package/agents/terraform-developer.md +229 -0
- package/agents/test-strategy-planner.md +126 -0
- package/agents/turso-database-architect.md +139 -0
- package/agents/typescript-developer.md +170 -0
- package/agents/typescript-expert-architect.md +167 -0
- package/index.js +523 -0
- package/package.json +36 -4
- package/registration.json +7259 -0
- package/shared/references/agent-native-setup.md +121 -0
- package/shared/references/branch-prep.md +31 -0
- package/shared/references/branching-model.md +162 -0
- package/shared/references/ci-monitoring.md +455 -0
- package/shared/references/forge-detection.md +162 -0
- package/shared/references/goal-pairing.md +55 -0
- package/shared/references/pr-base-and-backport.md +143 -0
- package/shared/references/question-policy.md +99 -0
- package/shared/references/review-artifact-format.md +141 -0
- package/shared/references/review-checklist.md +161 -0
- package/shared/references/review-dispatch.md +73 -0
- package/shared/references/session-state.md +159 -0
- package/shared/references/standalone-dispatch.md +300 -0
- package/shared/references/target-capability-matrix.md +516 -0
- package/shared/references/visual-mode.md +155 -0
- package/shared/references/worktree-strategy.md +326 -0
- package/shared/scripts/backport-audit.sh +283 -0
- package/shared/scripts/ci-monitor.sh +637 -0
- package/shared/scripts/lib/backport-lib.sh +47 -0
- package/shared/scripts/lib/ci-classify.sh +103 -0
- package/shared/scripts/lib/forge.sh +264 -0
- package/shared/scripts/lib/release-state-lib.sh +300 -0
- package/shared/scripts/list-worktrees.sh +178 -0
- package/shared/scripts/merge-children.sh +82 -0
- package/shared/scripts/move-plan-to-worktree.sh +231 -0
- package/shared/scripts/pr-guard.sh +283 -0
- package/shared/scripts/prepare-feature-branch.sh +326 -0
- package/shared/scripts/release-ci-monitor.sh +671 -0
- package/shared/scripts/release-state-update.sh +216 -0
- package/shared/scripts/release-state.sh +178 -0
- package/shared/scripts/report-bundle-drift.sh +343 -0
- package/shared/scripts/require-python.sh +17 -0
- package/shared/scripts/resolve-plans-dir.sh +262 -0
- package/shared/scripts/rules-pointer.sh +20 -0
- package/shared/scripts/rules_pointer.py +267 -0
- package/shared/scripts/setup-worktree.sh +288 -0
- package/shared/scripts/validate-file-paths.sh +249 -0
- package/shared/scripts/visual-egress-guard.sh +303 -0
- package/shared/scripts/visual-recap-collect.sh +247 -0
- package/shared/scripts/worktree-paths.sh +91 -0
- package/skills/backport/SKILL.md +293 -0
- package/skills/backport/scripts/cherry-pick-pr.sh +232 -0
- package/skills/backport/scripts/find-pending.sh +199 -0
- package/skills/blueprint/SKILL.md +412 -0
- package/skills/blueprint/references/bootstrap-mapping.md +87 -0
- package/skills/bundle-author/SKILL.md +121 -0
- package/skills/bundle-author/references/surface-map.md +128 -0
- package/skills/bundle-author/references/templates/agent-template.md +21 -0
- package/skills/bundle-author/references/templates/skill-template.md +36 -0
- package/skills/bundle-author/references/when-not-to-scaffold.md +85 -0
- package/skills/bundle-author/scripts/scaffold-skill.sh +156 -0
- package/skills/bundle-release/SKILL.md +192 -0
- package/skills/bundle-release/references/release-checklist.md +196 -0
- package/skills/bundle-release/references/release-notes-template.md +48 -0
- package/skills/bundle-release/references/version-policy.md +156 -0
- package/skills/bundle-release/scripts/bump-version.sh +99 -0
- package/skills/bundle-release/scripts/draft-notes.sh +222 -0
- package/skills/bundle-release/scripts/preflight.sh +165 -0
- package/skills/bundle-release/scripts/release_versions.py +375 -0
- package/skills/clean/SKILL.md +109 -0
- package/skills/clean/references/agent-prompts.md +199 -0
- package/skills/clean/references/safety-config.md +125 -0
- package/skills/clean/scripts/detect-project-type.sh +423 -0
- package/skills/clean/scripts/generate-report.sh +245 -0
- package/skills/clean/scripts/validate-safety.sh +401 -0
- package/skills/code-report/SKILL.md +377 -0
- package/skills/code-report/scripts/check-prerequisites.sh +65 -0
- package/skills/code-report/templates/report-structure.md +202 -0
- package/skills/code-review/SKILL.md +155 -0
- package/skills/code-review/references/pr-procedure.md +311 -0
- package/skills/compatibility-audit/SKILL.md +229 -0
- package/skills/compatibility-audit/references/reading-the-report.md +162 -0
- package/skills/compatibility-audit/scripts/audit-install-assumptions.sh +431 -0
- package/skills/compatibility-audit/scripts/audit-target-features.sh +596 -0
- package/skills/deep-research/SKILL.md +251 -0
- package/skills/deep-research/references/analysis-prompts.md +702 -0
- package/skills/deep-research/references/completion-summary-template.md +66 -0
- package/skills/deep-research/references/persona-analogical.md +159 -0
- package/skills/deep-research/references/persona-archaeological.md +69 -0
- package/skills/deep-research/references/persona-contrarian.md +155 -0
- package/skills/deep-research/references/persona-futurist.md +70 -0
- package/skills/deep-research/references/persona-historical.md +142 -0
- package/skills/deep-research/references/persona-journalistic.md +69 -0
- package/skills/deep-research/references/persona-negative-space.md +70 -0
- package/skills/deep-research/references/persona-systems.md +69 -0
- package/skills/deep-research/references/synthesis-template.md +569 -0
- package/skills/deep-research/references/verification-log-template.md +32 -0
- package/skills/deep-research/scripts/check-prerequisites.sh +153 -0
- package/skills/deep-research/scripts/validate-research.sh +244 -0
- package/skills/feature-research/SKILL.md +294 -0
- package/skills/feature-research/scripts/validate-research.sh +159 -0
- package/skills/feature-research/scripts/validate-spec.sh +270 -0
- package/skills/feature-research/templates/research-agents.md +569 -0
- package/skills/feature-research/templates/spec-structure.md +437 -0
- package/skills/formatters/SKILL.md +209 -0
- package/skills/formatters/references/best-practices.md +78 -0
- package/skills/formatters/references/flag-reference.md +178 -0
- package/skills/formatters/references/stack-detection.md +119 -0
- package/skills/formatters/references/templates/husky-pre-commit.tmpl +13 -0
- package/skills/formatters/references/templates/justfile-snippet.just.tmpl +31 -0
- package/skills/formatters/references/templates/lefthook.yml.tmpl +22 -0
- package/skills/formatters/references/templates/lint-autofix.yml.tmpl +94 -0
- package/skills/formatters/references/templates/lint.yml.tmpl +85 -0
- package/skills/formatters/references/templates/makefile-snippet.mk.tmpl +34 -0
- package/skills/formatters/references/templates/package-json-scripts.json.tmpl +14 -0
- package/skills/formatters/references/templates/readme-section.md.tmpl +118 -0
- package/skills/formatters/scripts/apply-aliases.sh +245 -0
- package/skills/formatters/scripts/apply-ci.sh +136 -0
- package/skills/formatters/scripts/apply-docs.sh +187 -0
- package/skills/formatters/scripts/apply-hooks.sh +261 -0
- package/skills/formatters/scripts/bundle/format.sh +15 -0
- package/skills/formatters/scripts/bundle/go-tools.sh +119 -0
- package/skills/formatters/scripts/bundle/init-formatters.sh +517 -0
- package/skills/formatters/scripts/bundle/install-shellcheck.sh +85 -0
- package/skills/formatters/scripts/bundle/lib/excludes.sh +179 -0
- package/skills/formatters/scripts/bundle/lib/modified-files.sh +222 -0
- package/skills/formatters/scripts/bundle/lib/shellcheck-resolve.sh +81 -0
- package/skills/formatters/scripts/bundle/lib/shellcheck-version.sh +5 -0
- package/skills/formatters/scripts/bundle/lint.sh +15 -0
- package/skills/formatters/scripts/bundle/style.sh +1410 -0
- package/skills/formatters/scripts/bundle/templates/biome.json +81 -0
- package/skills/formatters/scripts/bundle/templates/clippy.toml +2 -0
- package/skills/formatters/scripts/bundle/templates/markdownlint.json +14 -0
- package/skills/formatters/scripts/bundle/templates/markdownlintignore +38 -0
- package/skills/formatters/scripts/bundle/templates/prettierignore +45 -0
- package/skills/formatters/scripts/bundle/templates/prettierrc.json +11 -0
- package/skills/formatters/scripts/bundle/templates/python-pyproject.toml +80 -0
- package/skills/formatters/scripts/bundle/templates/rustfmt.toml +41 -0
- package/skills/formatters/scripts/bundle/templates/tsconfig.json +21 -0
- package/skills/formatters/scripts/profile-style.sh +264 -0
- package/skills/frontend-design/SKILL.md +151 -0
- package/skills/frontend-patterns/SKILL.md +66 -0
- package/skills/frontend-patterns/references/animation.md +21 -0
- package/skills/frontend-patterns/references/components-and-state.md +40 -0
- package/skills/frontend-patterns/references/data-and-performance.md +34 -0
- package/skills/frontend-patterns/references/forms-errors-a11y.md +35 -0
- package/skills/git-cleanup/SKILL.md +300 -0
- package/skills/git-cleanup/references/active-code-rules.md +323 -0
- package/skills/git-cleanup/references/host-detection.md +217 -0
- package/skills/git-workflow/SKILL.md +132 -0
- package/skills/git-workflow/references/ci-monitoring-phase.md +130 -0
- package/skills/git-workflow/references/commit-phases.md +247 -0
- package/skills/git-workflow/references/examples-and-troubleshooting.md +47 -0
- package/skills/git-workflow/references/goal-pairing.md +23 -0
- package/skills/git-workflow/references/pr-creation.md +269 -0
- package/skills/git-workflow/scripts/analyze-changes.sh +266 -0
- package/skills/git-workflow/scripts/create-pr.sh +464 -0
- package/skills/git-workflow/scripts/validate-commit.sh +235 -0
- package/skills/git-workflow/templates/agent-prompts.md +518 -0
- package/skills/git-workflow/templates/commit-types.md +504 -0
- package/skills/git-workflow/templates/documentation-decision.md +509 -0
- package/skills/git-workflow/templates/pr-template.md +772 -0
- package/skills/go-patterns/SKILL.md +89 -0
- package/skills/go-patterns/references/design-and-tooling.md +336 -0
- package/skills/go-patterns/references/errors-and-concurrency.md +292 -0
- package/skills/go-testing/SKILL.md +133 -0
- package/skills/go-testing/references/advanced-testing.md +349 -0
- package/skills/go-testing/references/test-structure.md +277 -0
- package/skills/hooks-workflow/SKILL.md +232 -0
- package/skills/hooks-workflow/references/support-notes.md +134 -0
- package/skills/hooks-workflow/references/templates/claude-settings.json.tmpl +13 -0
- package/skills/hooks-workflow/references/templates/codex-config-fragment.toml.tmpl +9 -0
- package/skills/hooks-workflow/references/templates/cursor-rule-fragment.mdc.tmpl +16 -0
- package/skills/hooks-workflow/scripts/build-hook-config.sh +487 -0
- package/skills/hooks-workflow/scripts/verify-hooks.sh +257 -0
- package/skills/implement-plan/SKILL.md +223 -0
- package/skills/implement-plan/references/agent-task-prompt.md +214 -0
- package/skills/implement-plan/references/output-formats.md +150 -0
- package/skills/implement-plan/references/plan-inputs.md +126 -0
- package/skills/implement-plan/scripts/check-prerequisites.sh +78 -0
- package/skills/implement-plan/scripts/parse-dependencies.sh +206 -0
- package/skills/init/SKILL.md +274 -0
- package/skills/init/references/conventional-commits.md +114 -0
- package/skills/init/references/flag-reference.md +236 -0
- package/skills/init/references/label-taxonomy.md +115 -0
- package/skills/init/references/project-profile-heuristics.md +156 -0
- package/skills/init/references/template-library.md +129 -0
- package/skills/init/scripts/count-source-files.sh +60 -0
- package/skills/init/scripts/generate-agent-catalog.sh +193 -0
- package/skills/init/scripts/generate-mcp-catalog.sh +214 -0
- package/skills/init/scripts/migrate-rules.py +459 -0
- package/skills/init/scripts/migrate-rules.sh +26 -0
- package/skills/init/scripts/profile-project.sh +453 -0
- package/skills/init/scripts/render-template.py +226 -0
- package/skills/init/scripts/render-template.sh +25 -0
- package/skills/init/scripts/rules-report.sh +31 -0
- package/skills/init/scripts/rules_file_lib.py +41 -0
- package/skills/init/templates/AGENTS.md.tmpl +38 -0
- package/skills/init/templates/CLAUDE.md.tmpl +7 -0
- package/skills/init/templates/ai-rule.md.tmpl +3 -0
- package/skills/init/templates/cursor-rule.mdc.tmpl +7 -0
- package/skills/init/templates/git/commitlint.config.cjs.tmpl +40 -0
- package/skills/init/templates/git/gitignore.tmpl +121 -0
- package/skills/init/templates/git/gitmessage.tmpl +27 -0
- package/skills/init/templates/git/install-lefthook.sh.tmpl +131 -0
- package/skills/init/templates/git/lefthook-usage.md.tmpl +101 -0
- package/skills/init/templates/git/lefthook.yml.tmpl +64 -0
- package/skills/init/templates/github/bug_report.yml.tmpl +78 -0
- package/skills/init/templates/github/config.yml.tmpl +5 -0
- package/skills/init/templates/github/copilot-instructions.md.tmpl +24 -0
- package/skills/init/templates/github/docs_request.yml.tmpl +41 -0
- package/skills/init/templates/github/feature_request.yml.tmpl +59 -0
- package/skills/init/templates/github/labels.md.tmpl +75 -0
- package/skills/init/templates/github/pull_request_template.md.tmpl +66 -0
- package/skills/init/templates/github/workflows/pr-title-autofix.yml.tmpl +101 -0
- package/skills/init/templates/github/workflows/pr-title.yml.tmpl +55 -0
- package/skills/init/templates/workspace-report.md +83 -0
- package/skills/orchestrate/SKILL.md +165 -0
- package/skills/orchestrate/references/agent-catalog.md +601 -0
- package/skills/orchestrate/references/agent-prompts.md +495 -0
- package/skills/orchestrate/references/dispatch-playbook.md +333 -0
- package/skills/orchestrate/references/task-breakdown.md +410 -0
- package/skills/orchestrate/scripts/analyze-task.sh +139 -0
- package/skills/orchestrate/scripts/summarize-results.sh +160 -0
- package/skills/orchestrate/scripts/validate-agents.sh +92 -0
- package/skills/parallel-plan/SKILL.md +124 -0
- package/skills/plan/SKILL.md +136 -0
- package/skills/plan/references/enhanced-personas.md +131 -0
- package/skills/plan/references/personas-and-merge.md +77 -0
- package/skills/plan/references/plan-validation.md +65 -0
- package/skills/plan/references/planner-prompts.md +68 -0
- package/skills/plan/references/planning-tracks.md +73 -0
- package/skills/plan-workflow/SKILL.md +409 -0
- package/skills/plan-workflow/references/checkpoint-messages.md +370 -0
- package/skills/plan-workflow/references/plan-structure.md +238 -0
- package/skills/plan-workflow/references/planning-agents.md +511 -0
- package/skills/plan-workflow/references/research-agents-optimized.md +348 -0
- package/skills/plan-workflow/references/research-agents.md +436 -0
- package/skills/plan-workflow/references/shared-structure.md +152 -0
- package/skills/plan-workflow/references/validation-agents.md +363 -0
- package/skills/plan-workflow/scripts/check-prerequisites.sh +65 -0
- package/skills/plan-workflow/scripts/check-state.sh +190 -0
- package/skills/plan-workflow/scripts/persist-or-fail.sh +135 -0
- package/skills/plan-workflow/scripts/validate-analysis-artifacts.sh +216 -0
- package/skills/plan-workflow/scripts/validate-research-artifacts.sh +225 -0
- package/skills/plan-workflow/scripts/validate-shared.sh +229 -0
- package/skills/plan-workflow/scripts/validate-workflow-plan.sh +256 -0
- package/skills/pr-autofix/SKILL.md +309 -0
- package/skills/pr-autofix/references/ci-loop.md +64 -0
- package/skills/pr-autofix/references/comment-sources.md +197 -0
- package/skills/pr-autofix/references/data-shapes.md +87 -0
- package/skills/pr-autofix/references/goal-example.md +30 -0
- package/skills/pr-autofix/references/output-templates.md +162 -0
- package/skills/pr-autofix/references/prompt-injection-safety.md +165 -0
- package/skills/pr-autofix/references/related-skills.md +11 -0
- package/skills/pr-autofix/references/severity-mapping.md +146 -0
- package/skills/pr-autofix/scripts/fetch-pr-comments.sh +364 -0
- package/skills/pr-autofix/scripts/post-summary.sh +226 -0
- package/skills/pr-autofix/scripts/resolve-thread.sh +251 -0
- package/skills/prp-commit/SKILL.md +128 -0
- package/skills/prp-implement/SKILL.md +179 -0
- package/skills/prp-implement/references/agent-task-prompt.md +36 -0
- package/skills/prp-implement/references/detection.md +49 -0
- package/skills/prp-implement/references/dry-run.md +0 -0
- package/skills/prp-implement/references/report-output.md +204 -0
- package/skills/prp-implement/references/validation-and-failures.md +118 -0
- package/skills/prp-plan/SKILL.md +323 -0
- package/skills/prp-plan/references/enhanced-researchers.md +425 -0
- package/skills/prp-plan/references/parallel-additions.md +56 -0
- package/skills/prp-plan/references/plan-template.md +264 -0
- package/skills/prp-plan/references/synthesis-map.md +25 -0
- package/skills/prp-plan/scripts/validate-prp-plan.sh +368 -0
- package/skills/prp-pr/SKILL.md +404 -0
- package/skills/prp-prd/SKILL.md +444 -0
- package/skills/prp-spec/SKILL.md +276 -0
- package/skills/python-patterns/SKILL.md +103 -0
- package/skills/python-patterns/references/core-idioms.md +304 -0
- package/skills/python-patterns/references/design-and-tooling.md +407 -0
- package/skills/python-testing/SKILL.md +114 -0
- package/skills/python-testing/references/mocking-and-integration.md +395 -0
- package/skills/python-testing/references/pytest-core.md +366 -0
- package/skills/quick-fix/SKILL.md +246 -0
- package/skills/quick-review/SKILL.md +306 -0
- package/skills/release-model/SKILL.md +233 -0
- package/skills/release-model/references/pointer-and-labels.md +83 -0
- package/skills/release-model/references/signals-and-proposal.md +68 -0
- package/skills/release-model/references/template-placeholders.md +42 -0
- package/skills/release-model/references/upgrade-and-audit.md +131 -0
- package/skills/release-model/scripts/collect-signals.sh +459 -0
- package/skills/release-model/scripts/pointer-targets.sh +29 -0
- package/skills/release-model/templates/RELEASING.md.tmpl +151 -0
- package/skills/releaser/SKILL.md +253 -0
- package/skills/releaser/references/ci-optimization-checklist.md +149 -0
- package/skills/releaser/references/ci-templates/docker-release.yml +88 -0
- package/skills/releaser/references/ci-templates/generic-release.yml +69 -0
- package/skills/releaser/references/ci-templates/go-release.yml +50 -0
- package/skills/releaser/references/ci-templates/node-release.yml +126 -0
- package/skills/releaser/references/ci-templates/python-release.yml +95 -0
- package/skills/releaser/references/ci-templates/rust-release.yml +128 -0
- package/skills/releaser/references/ci-workflow-modes.md +42 -0
- package/skills/releaser/references/goal-pairing.md +37 -0
- package/skills/releaser/references/output-templates.md +143 -0
- package/skills/releaser/references/project-type-matrix.md +144 -0
- package/skills/releaser/references/release-branches.md +138 -0
- package/skills/releaser/references/release-ci-loop.md +249 -0
- package/skills/releaser/references/release-notes-template.md +42 -0
- package/skills/releaser/references/release-preparation.md +210 -0
- package/skills/releaser/scripts/check-release-branch.sh +235 -0
- package/skills/releaser/scripts/detect-project.sh +234 -0
- package/skills/releaser/scripts/draft-changelog.sh +387 -0
- package/skills/releaser/scripts/publish-release.sh +302 -0
- package/skills/research-to-issues/SKILL.md +287 -0
- package/skills/research-to-issues/references/label-taxonomy.md +48 -0
- package/skills/research-to-issues/references/parse-deep-research.md +86 -0
- package/skills/research-to-issues/references/parse-feature-spec.md +143 -0
- package/skills/research-to-issues/references/parse-parallel-plan.md +124 -0
- package/skills/research-to-issues/references/parse-prd.md +184 -0
- package/skills/research-to-issues/references/parse-prp-plan.md +237 -0
- package/skills/research-to-issues/references/plan-display-format.md +136 -0
- package/skills/research-to-issues/scripts/validate-prerequisites.sh +312 -0
- package/skills/research-to-issues/templates/feature-issue.md +131 -0
- package/skills/research-to-issues/templates/task-issue.md +104 -0
- package/skills/research-to-issues/templates/tracking-issue.md +126 -0
- package/skills/resume-session/SKILL.md +154 -0
- package/skills/review-fix/SKILL.md +231 -0
- package/skills/review-fix/references/fix-report.md +121 -0
- package/skills/review-fix/references/fixer-dispatch.md +79 -0
- package/skills/review-fix/references/plan.md +119 -0
- package/skills/rust-patterns/SKILL.md +85 -0
- package/skills/rust-patterns/references/concurrency-unsafe-modules.md +243 -0
- package/skills/rust-patterns/references/ownership-errors-types.md +262 -0
- package/skills/rust-testing/SKILL.md +99 -0
- package/skills/rust-testing/references/advanced-testing.md +247 -0
- package/skills/rust-testing/references/unit-and-integration.md +193 -0
- package/skills/save-session/SKILL.md +161 -0
- package/skills/shared-context/SKILL.md +101 -0
- package/skills/ts-patterns/SKILL.md +159 -0
- package/skills/ts-patterns/references/async-runtimes-tooling.md +375 -0
- package/skills/ts-patterns/references/types-errors-modules.md +336 -0
- package/skills/ts-testing/SKILL.md +151 -0
- package/skills/ts-testing/references/advanced-testing.md +350 -0
- package/skills/ts-testing/references/vitest-core.md +318 -0
- package/skills/visual-plan/SKILL.md +221 -0
- package/skills/visual-plan/references/canvas.md +132 -0
- package/skills/visual-plan/references/document-quality.md +178 -0
- package/skills/visual-plan/references/exemplar.md +120 -0
- package/skills/visual-plan/references/wireframe.md +212 -0
- package/skills/visual-plan/scripts/derive-visual-dir.sh +77 -0
- package/skills/visual-recap/SKILL.md +238 -0
- package/skills/visual-recap/references/wireframe.md +237 -0
- package/skills/write-docs/SKILL.md +354 -0
- package/skills/write-docs/scripts/audit-documentation.sh +190 -0
- package/skills/write-docs/scripts/generate-doc-index.sh +125 -0
- package/skills/write-docs/scripts/verify-links.sh +81 -0
- package/skills/write-docs/templates/docs-readme.md +34 -0
- package/skills/write-docs/templates/documentation-strategy.md +91 -0
- package/ycc-sensitive-guard/index.js +621 -0
- package/ycc-sensitive-guard/package.json +7 -0
- package/ycc-sensitive-guard/policy.json +40 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# Project Type Matrix
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Node / TypeScript
|
|
6
|
+
- Python
|
|
7
|
+
- Go
|
|
8
|
+
- Rust
|
|
9
|
+
- Docker / Container Images
|
|
10
|
+
- Mixed / Monorepo
|
|
11
|
+
- Generic (fallback)
|
|
12
|
+
|
|
13
|
+
Reference for `detect-project.sh` output and for Phase 5 manifest edits. Each row
|
|
14
|
+
lists the detection signals, the manifest file(s) that carry the version string, the
|
|
15
|
+
default OS/arch matrix for release artifacts, and the recommended CI generator template.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Node / TypeScript
|
|
20
|
+
|
|
21
|
+
| Field | Value |
|
|
22
|
+
| -------------- | --------------------------------------------------------------------------------------------------------------- |
|
|
23
|
+
| Detect signals | `package.json` at repo root |
|
|
24
|
+
| Build systems | `npm` (default), `pnpm` (if `pnpm-lock.yaml`), `yarn` (if `yarn.lock`), `bun` (if `bun.lockb`) |
|
|
25
|
+
| Version file | `package.json` → `version` |
|
|
26
|
+
| Default OS | `linux,darwin,windows` (when packaging binaries via `pkg`/`nexe`); else `linux` only for pure library publishes |
|
|
27
|
+
| Default arch | `amd64,arm64` |
|
|
28
|
+
| CI template | `ci-templates/node-release.yml` |
|
|
29
|
+
| Publish target | npm registry (`npm publish`) and/or GitHub Release assets |
|
|
30
|
+
|
|
31
|
+
Notes:
|
|
32
|
+
|
|
33
|
+
- For **library** publishes, the matrix is irrelevant — release from one runner.
|
|
34
|
+
- For **CLI tool** publishes with native binaries, cross-compile with `pkg` or
|
|
35
|
+
`@vercel/ncc` and upload per-platform archives.
|
|
36
|
+
- Respect `publishConfig.registry` when present; do not swap to the default registry.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Python
|
|
41
|
+
|
|
42
|
+
| Field | Value |
|
|
43
|
+
| -------------- | -------------------------------------------------------------------------------------------------------------------- |
|
|
44
|
+
| Detect signals | `pyproject.toml` or `setup.py` or `setup.cfg` |
|
|
45
|
+
| Build systems | `uv` (if `uv.lock`), `poetry` (if `[tool.poetry]`), `hatch` (if `[tool.hatch]`), `setuptools` (fallback) |
|
|
46
|
+
| Version file | `pyproject.toml` → `[project].version` (PEP 621) or `[tool.poetry].version`; `setup.py` / `setup.cfg` as last resort |
|
|
47
|
+
| Default OS | `linux` (sdist + wheels) — `darwin`, `windows` only when building extensions |
|
|
48
|
+
| Default arch | `amd64` — add `arm64` for macOS if `cibuildwheel` is configured |
|
|
49
|
+
| CI template | `ci-templates/python-release.yml` |
|
|
50
|
+
| Publish target | PyPI (`twine upload`) or TestPyPI — prefer Trusted Publishing (OIDC) over API tokens |
|
|
51
|
+
|
|
52
|
+
Notes:
|
|
53
|
+
|
|
54
|
+
- For packages with compiled extensions, the template pulls in `cibuildwheel`.
|
|
55
|
+
- If the repo uses a dynamic version source (`hatch-vcs`, `setuptools-scm`), skip the
|
|
56
|
+
manifest edit in Phase 5 — the tag IS the version.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Go
|
|
61
|
+
|
|
62
|
+
| Field | Value |
|
|
63
|
+
| -------------- | ---------------------------------------------------------- |
|
|
64
|
+
| Detect signals | `go.mod` at repo root |
|
|
65
|
+
| Build systems | Go modules; `goreleaser` (if `.goreleaser.yml` exists) |
|
|
66
|
+
| Version file | None — tag is the version. Phase 5 is skipped. |
|
|
67
|
+
| Default OS | `linux,darwin,windows` |
|
|
68
|
+
| Default arch | `amd64,arm64` |
|
|
69
|
+
| CI template | `ci-templates/go-release.yml` (uses goreleaser by default) |
|
|
70
|
+
| Publish target | GitHub Release assets; pkg.go.dev picks up the tag |
|
|
71
|
+
|
|
72
|
+
Notes:
|
|
73
|
+
|
|
74
|
+
- `goreleaser` is the idiomatic choice. If the repo already has `.goreleaser.yml`, the
|
|
75
|
+
template references it; otherwise the template seeds a starter config.
|
|
76
|
+
- For libraries, the release IS the tag — no artifacts required.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Rust
|
|
81
|
+
|
|
82
|
+
| Field | Value |
|
|
83
|
+
| -------------- | ------------------------------------------------------------------------------------ |
|
|
84
|
+
| Detect signals | `Cargo.toml` at repo root |
|
|
85
|
+
| Build systems | `cargo`; `cargo-dist` (if `[workspace.metadata.dist]` or `dist-workspace.toml`) |
|
|
86
|
+
| Version file | `Cargo.toml` → `[package].version` (or `[workspace.package].version` for workspaces) |
|
|
87
|
+
| Default OS | `linux,darwin,windows` |
|
|
88
|
+
| Default arch | `amd64,arm64` |
|
|
89
|
+
| CI template | `ci-templates/rust-release.yml` |
|
|
90
|
+
| Publish target | crates.io (`cargo publish`) and/or GitHub Release assets |
|
|
91
|
+
|
|
92
|
+
Notes:
|
|
93
|
+
|
|
94
|
+
- Prefer `cargo-dist` when available — it handles the matrix, installers, and
|
|
95
|
+
homebrew/scoop formulae.
|
|
96
|
+
- For workspace crates, bump each published crate and tag `<crate>-v<version>`
|
|
97
|
+
individually unless the repo uses a workspace-wide version.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Docker / Container Images
|
|
102
|
+
|
|
103
|
+
| Field | Value |
|
|
104
|
+
| -------------- | ---------------------------------------------------------------- |
|
|
105
|
+
| Detect signals | `Dockerfile` at repo root AND no other language manifests |
|
|
106
|
+
| Build systems | `docker buildx` |
|
|
107
|
+
| Version file | Dockerfile label `org.opencontainers.image.version` (if present) |
|
|
108
|
+
| Default OS | `linux` only |
|
|
109
|
+
| Default arch | `amd64,arm64` (multi-arch manifest) |
|
|
110
|
+
| CI template | `ci-templates/docker-release.yml` (ghcr.io by default) |
|
|
111
|
+
| Publish target | GitHub Container Registry (`ghcr.io/<owner>/<repo>`) |
|
|
112
|
+
|
|
113
|
+
Notes:
|
|
114
|
+
|
|
115
|
+
- Always build with `--provenance=true` and `--sbom=true`.
|
|
116
|
+
- Tag the image with both `v<semver>` and `latest` unless the project opts out.
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## Mixed / Monorepo
|
|
121
|
+
|
|
122
|
+
If multiple manifests are present (e.g. `package.json` + `pyproject.toml`), the
|
|
123
|
+
detector reports `language: "mixed"` and lists all manifests. The skill requires
|
|
124
|
+
`--platform=<name>` to disambiguate, or operates in a per-package mode when given an
|
|
125
|
+
explicit subdirectory via `--platform=generic` plus a pre-selected manifest list.
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Generic (fallback)
|
|
130
|
+
|
|
131
|
+
| Field | Value |
|
|
132
|
+
| -------------- | ----------------------------------------------------------- |
|
|
133
|
+
| Detect signals | None of the above match |
|
|
134
|
+
| Build systems | User-provided or none |
|
|
135
|
+
| Version file | `VERSION` file if present, else tag-only |
|
|
136
|
+
| Default OS | `linux` only |
|
|
137
|
+
| Default arch | `amd64` |
|
|
138
|
+
| CI template | `ci-templates/generic-release.yml` (tag-triggered uploader) |
|
|
139
|
+
| Publish target | GitHub Release assets |
|
|
140
|
+
|
|
141
|
+
Notes:
|
|
142
|
+
|
|
143
|
+
- The generic template triggers on `push: tags: ['v*']` and expects the user to wire in
|
|
144
|
+
their own build steps. The template calls out the TODO regions clearly.
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# Releasing Under a RELEASING.md Model
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Branch check output
|
|
6
|
+
- Backport gate
|
|
7
|
+
- Previous tag and changelog range
|
|
8
|
+
- Recording the new maintenance branch
|
|
9
|
+
- Forward-porting a patch's CHANGELOG entry
|
|
10
|
+
- Release CI fixes on a release branch
|
|
11
|
+
|
|
12
|
+
How `releaser` applies a project's release model. The rules themselves (trunk-only
|
|
13
|
+
vs. release-branches, maintenance and frozen branches, backport labels) live in
|
|
14
|
+
`{{package-root}}/shared/references/branching-model.md`; this file only
|
|
15
|
+
covers what the releaser does with them. Without a `RELEASING.md`, none of this applies
|
|
16
|
+
and the releaser behaves as it always has.
|
|
17
|
+
|
|
18
|
+
## Branch check output
|
|
19
|
+
|
|
20
|
+
`{{package-root}}/skills/releaser/scripts/check-release-branch.sh <version>` prints
|
|
21
|
+
`key=value` lines on success (exit 0). Keep them for later phases.
|
|
22
|
+
|
|
23
|
+
| Key | Meaning |
|
|
24
|
+
| --------------------- | ---------------------------------------------------------------------------------------- |
|
|
25
|
+
| `present` | `1` when `RELEASING.md` exists, `0` otherwise (no check was made) |
|
|
26
|
+
| `model` | `trunk-only` or `release-branches` (empty when `present=0`) |
|
|
27
|
+
| `version` | The version without a leading `v` |
|
|
28
|
+
| `kind` | `major` (`X.0.0`), `minor` (`X.Y.0`) or `patch` (`X.Y.Z`, Z > 0); pre-releases included |
|
|
29
|
+
| `branch` | The branch being released; Phase 8 pushes to it |
|
|
30
|
+
| `trunk` | The trunk named in the state |
|
|
31
|
+
| `creates_maintenance` | `release/X.Y` for a final `X.Y.0` under release-branches, else empty |
|
|
32
|
+
| `backport_label` | The resolved label for `X.Y` (e.g. `backport:0.6`) under release-branches, else empty |
|
|
33
|
+
| `forward_port` | `1` for a patch under release-branches: the CHANGELOG entry must be carried to the trunk |
|
|
34
|
+
|
|
35
|
+
Exit 1 means the version does not belong on this branch; stderr has the reason and the
|
|
36
|
+
exact fix commands. Exit 2 means the state block is malformed. Both stop the release.
|
|
37
|
+
|
|
38
|
+
A pre-release of a new line (`0.7.0-beta.1`) is cut from the trunk but does **not**
|
|
39
|
+
create `release/0.7`; the branch is created by the final `0.7.0`.
|
|
40
|
+
|
|
41
|
+
## Backport gate
|
|
42
|
+
|
|
43
|
+
A patch is tagged only when `release/X.Y` has every fix meant for it
|
|
44
|
+
(`branching-model.md#before-tagging-a-patch`). After a branch check with
|
|
45
|
+
`model=release-branches` and `kind=patch`, run:
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
{{package-root}}/shared/scripts/backport-audit.sh release/X.Y
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Stdout is one `<status>\t<pr>\t<merge_sha>\t<title>\t<detail>` row per PR checked, then
|
|
52
|
+
`since=<ref>`. Show the non-`ok` rows as a table (status, PR, title, detail) and count the
|
|
53
|
+
`ok` rows.
|
|
54
|
+
|
|
55
|
+
| Result | Action |
|
|
56
|
+
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
57
|
+
| exit 0 | Print `Backport gate: clean (<n> backported PRs verified, fixes since <ref> reviewed)` and continue. |
|
|
58
|
+
| exit 3, `missing` rows | STOP. The fix is labelled for this line but not on `release/X.Y`. Next step: `/ycc:backport --pending --to release/X.Y`, merge, re-run the releaser. |
|
|
59
|
+
| exit 3, `in-review` rows | STOP. The backport PR is open. Next step: review and merge it, then re-run the releaser. |
|
|
60
|
+
| exit 3, `unlabelled` | Ask (below). Handle them after any `missing`/`in-review` rows are resolved. |
|
|
61
|
+
| exit 1 | STOP with its stderr. When `gh` is missing or not authenticated, also show step 0 of the project's patch steps in `RELEASING.md` (below). |
|
|
62
|
+
| exit 2 | STOP, as for a malformed state in Phase 0. |
|
|
63
|
+
|
|
64
|
+
`--pending` skips a `missing` row whose detail is `backport #M closed unmerged`; retry
|
|
65
|
+
that one with `/ycc:backport <PR#> --to release/X.Y`.
|
|
66
|
+
|
|
67
|
+
For `unlabelled` rows, ask once (ask the user), listing every row:
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
These fixes merged into <trunk> since <ref> without the <label> label:
|
|
71
|
+
#<pr> <title>
|
|
72
|
+
Do any of them affect vX.Y?
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
- **None; they only fix trunk code** → continue. Record the answer in the Phase 9 summary.
|
|
76
|
+
- **Some do; stop** → STOP and print, per PR the user names:
|
|
77
|
+
`gh pr edit <pr> --add-label <label>`, then `/ycc:backport --pending --to release/X.Y`.
|
|
78
|
+
|
|
79
|
+
A STOP can be overridden only by an explicit user instruction to ship without specific
|
|
80
|
+
PRs. Ask again with those PR numbers listed, and name them under "Deferred backports" in
|
|
81
|
+
the Phase 9 summary. Never infer the override, and never apply it under `/goal`.
|
|
82
|
+
|
|
83
|
+
When the gate cannot run (exit 1 because `gh` is missing or not authenticated), the tag
|
|
84
|
+
still waits. The user either fixes `gh` and re-runs the releaser, or runs the manual
|
|
85
|
+
commands in step 0 of their `RELEASING.md` patch steps and confirms the result explicitly.
|
|
86
|
+
|
|
87
|
+
`--dry-run` runs the audit, which is read-only, and puts its table in the plan without
|
|
88
|
+
asking. The first gate on a line that was patched before this check existed should sweep
|
|
89
|
+
the whole line: re-run with `--since vX.Y.0` when the user asks for it or when
|
|
90
|
+
`RELEASING.md` has no step 0 (see `/ycc:release-model --audit`, check 13).
|
|
91
|
+
|
|
92
|
+
## Previous tag and changelog range
|
|
93
|
+
|
|
94
|
+
`detect-project.sh` reports `latest_tag` and `draft-changelog.sh` defaults its range to
|
|
95
|
+
`git describe --tags --abbrev=0`: the nearest tag reachable from `HEAD`. What that
|
|
96
|
+
returns depends on the branch:
|
|
97
|
+
|
|
98
|
+
| Releasing | `git describe` returns | Pass a from-ref? |
|
|
99
|
+
| -------------------------------------- | ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
|
|
100
|
+
| trunk-only, any version | The previous release tag | No |
|
|
101
|
+
| Patch on `release/X.Y` | The latest `vX.Y.*` tag: the branch starts at `vX.Y.0`, and newer trunk tags are not reachable from it | Recommended, to pin the line: `git describe --tags --abbrev=0 --match 'vX.Y.*'` |
|
|
102
|
+
| Minor/major on the trunk | The previous minor's `.0` tag: patch tags sit on `release/*` branches and are not reachable from trunk | No. Fixes that were also backported into `X.Y.Z` patches appear again; they did land on the trunk too |
|
|
103
|
+
| Final `X.Y.0` after trunk pre-releases | The latest pre-release tag (`vX.Y.0-beta.N`), so the notes would cover only the commits since that beta | Yes, the previous final release: `git describe --tags --abbrev=0 --exclude '*-*'` (e.g. `v0.6.0`) |
|
|
104
|
+
|
|
105
|
+
Use the same from-ref for the Phase 2 commit scan (`git log <from-ref>..HEAD`) and for
|
|
106
|
+
`draft-changelog.sh <new-version> <from-ref>`.
|
|
107
|
+
|
|
108
|
+
## Recording the new maintenance branch
|
|
109
|
+
|
|
110
|
+
When `creates_maintenance` is set, Phase 5 also runs:
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
{{package-root}}/shared/scripts/release-state-update.sh --add-maintenance release/X.Y
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
It adds `release/X.Y` as the newest maintenance branch, moves branches outside the
|
|
117
|
+
support window to `frozen`, and re-renders the Current state table. It never commits.
|
|
118
|
+
Add `RELEASING.md` to the Phase 8 `git add` list so the state change ships in the
|
|
119
|
+
release commit. In `--dry-run`, run it with `--dry-run` instead and show the diff.
|
|
120
|
+
|
|
121
|
+
The branch itself does not exist until the Phase 8 command pushes it from the tag. Other
|
|
122
|
+
skills read the state, so `release-state.sh check` reports it missing on origin until
|
|
123
|
+
then.
|
|
124
|
+
|
|
125
|
+
## Forward-porting a patch's CHANGELOG entry
|
|
126
|
+
|
|
127
|
+
Fixes reach `release/X.Y` by cherry-pick from the trunk, so the trunk already has the
|
|
128
|
+
code. What it lacks is the `vX.Y.Z` CHANGELOG entry and the version bump. Carry the
|
|
129
|
+
entry only; the trunk's manifests stay on the trunk's line. Insert the entry in version
|
|
130
|
+
order: directly above the `X.Y.(Z-1)` entry and below any later minor the trunk has
|
|
131
|
+
already released. Title the PR `chore(release): record vX.Y.Z in changelog`.
|
|
132
|
+
|
|
133
|
+
## Release CI fixes on a release branch
|
|
134
|
+
|
|
135
|
+
Phase 8.5 pushes a CI fix to the branch that was released. For a patch that is
|
|
136
|
+
`release/X.Y`, so the same fix usually also belongs on the trunk: open a trunk PR for it
|
|
137
|
+
after the loop finishes, following `branching-model.md` (fixes land on the trunk first;
|
|
138
|
+
here the order is reversed only because the release was already cut).
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
# Post-Publish Release CI Protocol
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Phase 8.5: Release CI auto-fix loop (--ci)
|
|
6
|
+
- 8.5.0 Detect retry strategy
|
|
7
|
+
- 8.5.1 Authorization gate (skipped if --ci-yes)
|
|
8
|
+
- 8.5.2 Loop protocol
|
|
9
|
+
- 8.5.3 Fix and retry on handoff
|
|
10
|
+
- 8.5.4 Bail diagnosis block
|
|
11
|
+
|
|
12
|
+
## Phase 8.5: Release CI auto-fix loop (--ci)
|
|
13
|
+
|
|
14
|
+
Runs **only** when ALL of the following hold:
|
|
15
|
+
|
|
16
|
+
- `--ci` was passed.
|
|
17
|
+
- `--publish` was passed.
|
|
18
|
+
- `--confirm` was passed AND `publish-release.sh --confirm` exited 0 (the release
|
|
19
|
+
exists on GitHub and the release-event workflow has been triggered).
|
|
20
|
+
|
|
21
|
+
Otherwise, print a one-line warning — `--ci ignored: no successful publish in this
|
|
22
|
+
run` — and skip to Phase 9. Never enter the loop without a live release to watch.
|
|
23
|
+
|
|
24
|
+
The contract (exit codes, `RESULT=` signaling, JSONL audit log, failure classification,
|
|
25
|
+
signature dedup, default-branch refusal) mirrors `ci-monitor.sh` verbatim. See
|
|
26
|
+
`{{package-root}}/shared/references/ci-monitoring.md`,
|
|
27
|
+
section "Release mode", for the single source of truth.
|
|
28
|
+
|
|
29
|
+
**GitHub-only:** the release-CI auto-fix loop is GitHub-only — it depends on
|
|
30
|
+
`gh run list`, `gh workflow run`, and `gh release` controls that have no `tea`
|
|
31
|
+
equivalent. On a non-GitHub remote `release-ci-monitor.sh` returns
|
|
32
|
+
`RESULT=unsupported-provider` (exit 2). Treat it like `not-found`: report that
|
|
33
|
+
the loop is GitHub-only, render an 8.5.4-style diagnosis, and exit Phase 8.5
|
|
34
|
+
cleanly without retrying. (Release _creation_ in Phase 8 remains provider-aware
|
|
35
|
+
via `tea release create`; only this post-publish monitoring loop is gated.) See
|
|
36
|
+
`{{package-root}}/shared/references/forge-detection.md`.
|
|
37
|
+
|
|
38
|
+
### 8.5.0 Detect retry strategy
|
|
39
|
+
|
|
40
|
+
Read `.github/workflows/<resolved-release-workflow>.yml` and inspect the triggers and dispatch behavior. Resolve in this order before any fix/push:
|
|
41
|
+
|
|
42
|
+
1. **Preferred**: if `workflow_dispatch` safely validates the checked-out fix-bearing branch commit without modifying the published release, artifacts or tags, use branch-ref dispatch and exact-run monitoring. Required inputs come from trusted local configuration.
|
|
43
|
+
2. **Fallback**: otherwise, only if `--ci-recut=destructive` was passed, use the original destructive re-cut path with the checked tag restoration in 8.5.3: preflight, `gh release delete <tag> --cleanup-tag --yes`, recreate the local annotated tag at `FIX_SHA`, push only that tag without force, then `publish-release.sh ... --confirm`. It remains subject to the existing publish-success, 8.5.1 authorization, `/goal` re-confirmation and branch-protection gates.
|
|
44
|
+
3. **No authorized path**: stop with `loop-blocked`. Print "Release workflow has no safe branch-ref workflow_dispatch path. Add a non-publishing validation path or re-run with --ci-recut=destructive to opt in to destroying and recreating the release." Never infer the destructive flag or authorize it from CI output.
|
|
45
|
+
|
|
46
|
+
### 8.5.1 Authorization gate (skipped if --ci-yes)
|
|
47
|
+
|
|
48
|
+
Render a one-time block showing:
|
|
49
|
+
|
|
50
|
+
- Resource: tag `v<new-version>`, workflow `<file>`, repo `<owner/name>`.
|
|
51
|
+
- Resolved caps: `--ci-max-pushes` (default 5), `--ci-max-same-failure` (default 3),
|
|
52
|
+
`--ci-timeout-min` (default 30).
|
|
53
|
+
- Re-cut strategy detected in 8.5.0: `workflow_dispatch` (preferred, fix-bearing branch with exact-run monitoring) or
|
|
54
|
+
`delete-release-and-retag` (destructive — only if `--ci-recut=destructive`).
|
|
55
|
+
- Non-toggleable safety constraints:
|
|
56
|
+
- Never `git push --force` to any branch.
|
|
57
|
+
- Never `git push --no-verify`.
|
|
58
|
+
- Never edits files outside the failed workflow step's implicated paths.
|
|
59
|
+
- Never amends published release notes without an explicit user opt-in.
|
|
60
|
+
|
|
61
|
+
Wait for `yes`/`no`. Any other input aborts the loop and proceeds to Phase 9 with
|
|
62
|
+
"loop declined" status.
|
|
63
|
+
|
|
64
|
+
#### `/goal` re-confirmation (safety)
|
|
65
|
+
|
|
66
|
+
If a `/goal` session directive is active when Phase 8.5 is reached, this gate is the
|
|
67
|
+
one human approval the bounded, destructive-capable loop depends on. Therefore:
|
|
68
|
+
|
|
69
|
+
- **`--ci-yes` does NOT suppress this gate under an active `/goal`.** When `/goal` is
|
|
70
|
+
active, always render the 8.5.1 block and wait for an explicit `yes`/`no`, even if
|
|
71
|
+
`--ci-yes` was passed. `--ci-yes` is honored only when no `/goal` directive is active.
|
|
72
|
+
- A `/goal` evaluator is transcript-only and cannot answer this prompt, so the loop
|
|
73
|
+
**pauses here until you respond in person**. That pause is intentional: `/goal` may
|
|
74
|
+
drive the Phase 8.5.2+ fix-and-validate loop to green, but it must never auto-authorize
|
|
75
|
+
entry into that loop. Print one line making the pause legible:
|
|
76
|
+
`/goal active — Phase 8.5.1 authorization stays interactive; --ci-yes ignored. Waiting for yes/no.`
|
|
77
|
+
- This guard applies **only** to the post-publish CI loop. The Phase 2 version confirm
|
|
78
|
+
and the Phase 5 manifest diff review are likewise never auto-approved under `/goal`;
|
|
79
|
+
see `references/goal-pairing.md` for the full out-of-scope list.
|
|
80
|
+
|
|
81
|
+
### 8.5.2 Loop protocol
|
|
82
|
+
|
|
83
|
+
1. Initialize audit log:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
mkdir -p ~/.config/opencode/session-data/release-ci-watch/
|
|
87
|
+
AUDIT_LOG=~/.config/opencode/session-data/release-ci-watch/<tag>-<utc-iso>.log
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
2. Invoke the monitor:
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
{{package-root}}/shared/scripts/release-ci-monitor.sh \
|
|
94
|
+
--tag v<new-version> \
|
|
95
|
+
--workflow <detected-or-passed> \
|
|
96
|
+
--repo <owner/name> \
|
|
97
|
+
--max-pushes <N> \
|
|
98
|
+
--max-same-failure <N> \
|
|
99
|
+
--timeout-min <N> \
|
|
100
|
+
--log-file "$AUDIT_LOG"
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Initial invocation uses tag selection. After any retry — branch-ref dispatch or authorized re-cut — add `--run-id "$RETRY_RUN_ID" --expected-sha "$RETRY_SHA"` and an explicit `--workflow <file>` to the same monitor invocation (same tag, repo, audit log and caps). Exact-run mode verifies run ID, commit SHA, event (`workflow_dispatch` for dispatch, `release` for the post-re-cut run) and workflow path before watching; `RESULT=not-found` with `REASON=retry-correlation-mismatch` is terminal. Keep the same selectors for `rerun-pending`; replace them only after the next successful fix-and-dispatch and run resolution. Tag-only monitoring must not resume after a retry, and a correlation failure never licenses a strategy switch.
|
|
104
|
+
|
|
105
|
+
3. Branch on the exit code (identical contract to `ci-monitor.sh`):
|
|
106
|
+
|
|
107
|
+
| Exit | `RESULT=` | Action |
|
|
108
|
+
| ---- | ---------------------- | -------------------------------------------------------------------------- |
|
|
109
|
+
| 0 | `green` | Success. Exit Phase 8.5, continue to Phase 9. |
|
|
110
|
+
| 20 | `handoff` | Step **8.5.3** (fix and retry), then loop to step 2. |
|
|
111
|
+
| 21 | `rerun-pending` | `sleep 30`, then loop to step 2 (no fix applied). |
|
|
112
|
+
| 10 | `bail-recurrence` | Step **8.5.4** (diagnosis), exit Phase 8.5. |
|
|
113
|
+
| 11 | `bail-nonfixable` | Step **8.5.4**, exit Phase 8.5. |
|
|
114
|
+
| 12 | `bail-pushes` | Step **8.5.4**, exit Phase 8.5. |
|
|
115
|
+
| 13 | `bail-timeout` | Step **8.5.4**, exit Phase 8.5. |
|
|
116
|
+
| 2 | `not-found` | Step **8.5.4**, exit Phase 8.5. |
|
|
117
|
+
| 2 | `unsupported-provider` | Remote is not GitHub; loop is GitHub-only. Step **8.5.4**, exit Phase 8.5. |
|
|
118
|
+
|
|
119
|
+
### 8.5.3 Fix and retry on handoff
|
|
120
|
+
|
|
121
|
+
The monitor wrote one JSONL line to the audit log with the failed run's metadata:
|
|
122
|
+
`run_id`, `workflow_name`, `job_name`, `step_name`, `category`, `signature`,
|
|
123
|
+
`log_excerpt_path`, `implicated_files`.
|
|
124
|
+
|
|
125
|
+
1. **Dispatch the fix agent** via the native `subagent` tool with
|
|
126
|
+
`@release-fix-applier`. Pass the JSONL line verbatim. The
|
|
127
|
+
agent edits ONLY the implicated files, returns the proposed commit message
|
|
128
|
+
(conventional-commit prefix matching the category — `fix`, `ci`, `build`, etc.)
|
|
129
|
+
and the diff summary.
|
|
130
|
+
|
|
131
|
+
2. **Validate the commit message**:
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
{{package-root}}/skills/git-workflow/scripts/validate-commit.sh "<message>"
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
3. **Pre-push branch-protection check** on the branch that was released — the trunk,
|
|
138
|
+
or `release/X.Y` for a patch under release-branches — not a hard-coded `main`:
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
RELEASE_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
|
142
|
+
gh api "repos/<owner>/<name>/branches/${RELEASE_BRANCH}/protection" 2>/dev/null
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
`RELEASE_BRANCH` must equal the Phase 2 `branch=`; if it does not (or is `HEAD`),
|
|
146
|
+
exit Phase 8.5 with `loop-blocked`. If the branch has
|
|
147
|
+
`required_pull_request_reviews`, the loop cannot push directly. Surface: "Direct
|
|
148
|
+
push to `<RELEASE_BRANCH>` blocked by branch protection — open a PR with the fix
|
|
149
|
+
into `<RELEASE_BRANCH>`, merge it, and re-run with `--ci`." Exit Phase 8.5 with
|
|
150
|
+
`loop-blocked` status (renders an 8.5.4-style block without retrying).
|
|
151
|
+
|
|
152
|
+
4. **Commit and push** to the release branch:
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
git add <implicated-files>
|
|
156
|
+
git commit -m "<validated-message>"
|
|
157
|
+
git push origin "HEAD:${RELEASE_BRANCH}"
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
NEVER `--force`. NEVER `--no-verify`. When `RELEASE_BRANCH` is `release/X.Y`, the fix
|
|
161
|
+
also needs a trunk PR after the loop ends (see `references/release-branches.md`).
|
|
162
|
+
|
|
163
|
+
5. **Retry per the strategy resolved in 8.5.0 and authorized in 8.5.1**.
|
|
164
|
+
|
|
165
|
+
**Preferred — dispatch validation on the fix-bearing branch**, using the verified non-publishing path. Never dispatch on the unchanged release tag.
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
FIX_SHA="$(git rev-parse HEAD)"
|
|
169
|
+
REMOTE_SHA="$(git ls-remote origin "refs/heads/${RELEASE_BRANCH}" | cut -f1)"
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Require `REMOTE_SHA == FIX_SHA` or exit `loop-blocked`. Record UTC `DISPATCH_STARTED` immediately before dispatch and supply any locally verified inputs:
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
gh workflow run <file> --repo <owner/name> --ref "$RELEASE_BRANCH"
|
|
176
|
+
gh run list --repo <owner/name> --workflow <file> \
|
|
177
|
+
--event workflow_dispatch --branch "$RELEASE_BRANCH" \
|
|
178
|
+
--json databaseId,headSha,createdAt
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Dispatch failure is terminal `loop-blocked`; do not select a prior run or retry publishing. Poll for at most the remaining wall-clock budget. Select only a new run with `headSha == FIX_SHA` and `createdAt >= DISPATCH_STARTED`; never select a tag run or reuse an earlier run. Zero matches at timeout: `bail-timeout`; multiple matches: `loop-blocked` (human must identify the run). Remember its `databaseId` as `RETRY_RUN_ID` and `FIX_SHA` as `RETRY_SHA`. The branch may race with another push: exact SHA verification in the monitor fails closed. Record these selectors in the audit log; the release and tag remain unchanged.
|
|
182
|
+
|
|
183
|
+
**Fallback** (only if `--ci-recut=destructive` was set and the original gates passed):
|
|
184
|
+
|
|
185
|
+
Ordered destructive transaction. `--cleanup-tag` deletes the remote tag; `publish-release.sh` runs `gh release create --verify-tag`, which needs that tag to exist again. Deleting without recreating and pushing the tag first guarantees the publish fails — or publishes the pre-fix SHA if an old tag is left around. Before deleting, preflight: local tag points to the recorded released commit (anything else stops `loop-blocked`, nothing deleted), remote tag target is the released commit, permissions to delete the release and write the tag are confirmed, checkout is clean on `RELEASE_BRANCH` at `FIX_SHA`, and notes plus publisher are readable. Save release body/title/assets/prerelease/draft metadata, local/remote tag object IDs and peeled commit IDs in the audit directory for manual recovery; verify metadata retrieval succeeded. Check tag signing rules and signing credentials before deletion; do not override project signing configuration. Run this transaction only when 8.5.0 selected the explicit destructive fallback, never after a dispatch failure. Every failed step in the checked sequence below stops; never `--force`, never a blind retry:
|
|
186
|
+
|
|
187
|
+
<!-- recut-transaction -->
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
TAG="${TAG:-}"
|
|
191
|
+
FIX_SHA="${FIX_SHA:-}"
|
|
192
|
+
RELEASED_SHA="${RELEASED_SHA:-}"
|
|
193
|
+
NOTES_PATH="${NOTES_PATH:-}"
|
|
194
|
+
RELEASE_BRANCH="${RELEASE_BRANCH:-}"
|
|
195
|
+
PUBLISHER="${PUBLISHER:-}"
|
|
196
|
+
recovery() {
|
|
197
|
+
printf 'RESULT=loop-blocked\nRECOVERY_STEP=%s\nTAG=%s\nFIX_SHA=%s\n' "$1" "$TAG" "$FIX_SHA"
|
|
198
|
+
git show-ref --verify "refs/tags/$TAG" || true
|
|
199
|
+
git ls-remote origin "refs/tags/$TAG" "refs/tags/$TAG^{}" || true
|
|
200
|
+
printf 'Recovery: inspect release state manually; do not restart deletion or infer success.\n'
|
|
201
|
+
exit 1
|
|
202
|
+
}
|
|
203
|
+
[[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9.-]+)?$ ]] || recovery preflight-tag
|
|
204
|
+
[[ "$FIX_SHA" =~ ^[0-9a-f]{40}$ ]] || recovery preflight-sha
|
|
205
|
+
test -n "$RELEASED_SHA" || recovery preflight-released-sha
|
|
206
|
+
test -n "$RELEASE_BRANCH" || recovery preflight-branch
|
|
207
|
+
test -r "$NOTES_PATH" && test -x "$PUBLISHER" || recovery preflight-files
|
|
208
|
+
test "$(git rev-parse HEAD)" = "$FIX_SHA" || recovery preflight-head
|
|
209
|
+
test "$(git ls-remote origin "refs/heads/$RELEASE_BRANCH" | cut -f1)" = "$FIX_SHA" || recovery preflight-remote-head
|
|
210
|
+
LOCAL_SHA="$(git rev-parse "refs/tags/$TAG^{commit}")" || recovery preflight-local-tag
|
|
211
|
+
test "$LOCAL_SHA" = "$RELEASED_SHA" || recovery preflight-local-mismatch
|
|
212
|
+
REMOTE_REFS="$(git ls-remote origin "refs/tags/$TAG" "refs/tags/$TAG^{}")" || recovery preflight-remote-tag
|
|
213
|
+
test -n "$REMOTE_REFS" || recovery preflight-remote-missing
|
|
214
|
+
test "$(printf '%s\n' "$REMOTE_REFS" | awk -v ref="refs/tags/$TAG" '$2 == ref {print $1}')" = "$(git rev-parse "refs/tags/$TAG")" || recovery preflight-remote-mismatch
|
|
215
|
+
gh release delete "$TAG" --cleanup-tag --yes || recovery delete
|
|
216
|
+
REMOTE_REFS="$(git ls-remote origin "refs/tags/$TAG")" || recovery verify-deletion
|
|
217
|
+
test -z "$REMOTE_REFS" || recovery remote-tag-still-present
|
|
218
|
+
git tag -d "$TAG" || recovery local-tag-delete
|
|
219
|
+
git tag -a "$TAG" -m "$TAG" "$FIX_SHA" || recovery local-tag-create
|
|
220
|
+
git push origin "refs/tags/$TAG:refs/tags/$TAG" || recovery tag-push
|
|
221
|
+
REMOTE_REFS="$(git ls-remote origin "refs/tags/$TAG^{}")" || recovery verify-tag-push
|
|
222
|
+
test "$(printf '%s\n' "$REMOTE_REFS" | cut -f1)" = "$FIX_SHA" || recovery remote-fix-mismatch
|
|
223
|
+
REPUBLISH_STARTED="$(date -u +%FT%TZ)"
|
|
224
|
+
"$PUBLISHER" "$TAG" "$NOTES_PATH" --mode=create --confirm || recovery publish
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
Set `TAG=v<new-version>`, `FIX_SHA`, `RELEASED_SHA` (released commit), `NOTES_PATH`, `RELEASE_BRANCH` and `PUBLISHER={{package-root}}/skills/releaser/scripts/publish-release.sh` from trusted state. Preflight failure mutates nothing. Delete failure: inspect actual release/tag state for partial deletion, no retries. Tag restore failure: release absent, local tag may be missing or old. Tag push failure: release absent, local tag kept at `FIX_SHA`, remote tag may be absent — manual recovery is finishing the tag push then publishing once; do not restart the transaction. Publish failure: remote tag already at `FIX_SHA`, release may be absent — retry the publisher manually, not another delete-and-recreate. Always print `RECOVERY_STEP` plus observed refs.
|
|
228
|
+
|
|
229
|
+
After publication succeeds, correlate the fresh release event: poll within the remaining wall-clock budget for a NEW `release`-event run of `<file>` whose `headSha == FIX_SHA` and `createdAt >= REPUBLISH_STARTED` (`gh run list --repo <owner/name> --workflow <file> --event release --json databaseId,headSha,createdAt`). Zero matches: `bail-timeout`; multiple: `loop-blocked`. The pre-re-cut run cannot match: its head SHA predates the fix. Set `RETRY_RUN_ID`/`RETRY_SHA` from that run.
|
|
230
|
+
|
|
231
|
+
6. Loop back to 8.5.2 step 2 with exact-run selectors on the resolved run — for the preferred dispatch path and after a re-cut. Plain tag-only monitoring is reserved for the loop's initial pre-retry invocation. The monitor counts handoffs against the existing push cap; do not reset the audit log or caps.
|
|
232
|
+
|
|
233
|
+
### 8.5.4 Bail diagnosis block
|
|
234
|
+
|
|
235
|
+
Render to the user:
|
|
236
|
+
|
|
237
|
+
- **Reason** — one of `recurrence` / `nonfixable` / `pushes` / `timeout` /
|
|
238
|
+
`not-found` / `loop-blocked`.
|
|
239
|
+
- **Cap that fired** and its resolved value.
|
|
240
|
+
- **Last failure** — `run_id`, `workflow_name`, `job_name`, `step_name`,
|
|
241
|
+
`category`, `signature`.
|
|
242
|
+
- **Log excerpt path** (from the monitor's `--log-file`).
|
|
243
|
+
- **Audit log path**.
|
|
244
|
+
- **Next steps** — concrete guidance keyed off the bail reason (e.g., for
|
|
245
|
+
`recurrence`: "The same failure (`<signature>`) recurred. Inspect
|
|
246
|
+
`<log-excerpt-path>` and apply a manual fix before retrying.").
|
|
247
|
+
|
|
248
|
+
Always print this block — even on `not-found` — so the user has a single
|
|
249
|
+
post-mortem surface.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# v{{VERSION}} — {{DATE}}
|
|
2
|
+
|
|
3
|
+
## Summary
|
|
4
|
+
|
|
5
|
+
<!-- TODO: 1–2 sentence user-facing summary -->
|
|
6
|
+
|
|
7
|
+
## Highlights
|
|
8
|
+
|
|
9
|
+
{{HIGHLIGHTS}}
|
|
10
|
+
|
|
11
|
+
## Breaking Changes
|
|
12
|
+
|
|
13
|
+
{{BREAKING}}
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
{{FEATURES}}
|
|
18
|
+
|
|
19
|
+
## Fixes
|
|
20
|
+
|
|
21
|
+
{{FIXES}}
|
|
22
|
+
|
|
23
|
+
## Upgrade Notes
|
|
24
|
+
|
|
25
|
+
<!-- TODO: migration steps or "No action required." -->
|
|
26
|
+
|
|
27
|
+
{{INTERNAL}}
|
|
28
|
+
|
|
29
|
+
<details><summary>Commit Log</summary>
|
|
30
|
+
<!-- Intentionally unnumbered: this is the raw `git log --oneline` output and may
|
|
31
|
+
be very long. The Maintenance block uses "(N commits)" because it is a curated
|
|
32
|
+
list; the full commit log is not. -->
|
|
33
|
+
|
|
34
|
+
{{COMMITS}}
|
|
35
|
+
|
|
36
|
+
</details>
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
<!-- COMPARE_URL_LINE -->**Full Changelog**: {{COMPARE_URL}}<!-- /COMPARE_URL_LINE -->
|
|
41
|
+
|
|
42
|
+
Previous release: {{PREVIOUS_TAG}}
|