@yandy-r/ycc-opencode 0.0.0-bootstrap.0 → 6.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/AGENTS.md +38 -0
- package/LICENSE +21 -0
- package/README.md +42 -0
- 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 +134 -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 +235 -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 +173 -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 +284 -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 +194 -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 +264 -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 +260 -0
- package/package.json +33 -7
- package/registration.json +4384 -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 +445 -0
- package/shared/references/forge-detection.md +162 -0
- package/shared/references/goal-pairing.md +53 -0
- package/shared/references/pr-base-and-backport.md +143 -0
- package/shared/references/review-artifact-format.md +141 -0
- package/shared/references/review-checklist.md +161 -0
- package/shared/references/review-dispatch.md +71 -0
- package/shared/references/session-state.md +159 -0
- package/shared/references/standalone-dispatch.md +298 -0
- package/shared/references/target-capability-matrix.md +325 -0
- package/shared/references/visual-mode.md +155 -0
- package/shared/references/worktree-strategy.md +310 -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 +86 -0
- package/skills/backport/SKILL.md +291 -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 +410 -0
- package/skills/blueprint/references/bootstrap-mapping.md +87 -0
- package/skills/bundle-author/SKILL.md +119 -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 +188 -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 +150 -0
- package/skills/bundle-release/scripts/bump-version.sh +97 -0
- package/skills/bundle-release/scripts/draft-notes.sh +222 -0
- package/skills/bundle-release/scripts/preflight.sh +164 -0
- package/skills/bundle-release/scripts/release_versions.py +361 -0
- package/skills/clean/SKILL.md +107 -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 +375 -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 +153 -0
- package/skills/code-review/references/pr-procedure.md +311 -0
- package/skills/compatibility-audit/SKILL.md +226 -0
- package/skills/compatibility-audit/references/reading-the-report.md +159 -0
- package/skills/compatibility-audit/scripts/audit-install-assumptions.sh +372 -0
- package/skills/compatibility-audit/scripts/audit-target-features.sh +558 -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 +292 -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 +207 -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 +286 -0
- package/skills/git-cleanup/references/active-code-rules.md +318 -0
- package/skills/git-cleanup/references/host-detection.md +217 -0
- package/skills/git-workflow/SKILL.md +130 -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 +221 -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 +272 -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 +120 -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 +134 -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 +406 -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 +307 -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 +177 -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/preflight-enhanced-agents.sh +111 -0
- package/skills/prp-plan/scripts/validate-prp-plan.sh +368 -0
- package/skills/prp-pr/SKILL.md +402 -0
- package/skills/prp-prd/SKILL.md +442 -0
- package/skills/prp-spec/SKILL.md +274 -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 +304 -0
- package/skills/release-model/SKILL.md +231 -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 +251 -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 +285 -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 +152 -0
- package/skills/review-fix/SKILL.md +229 -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 +159 -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
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Generated by releaser — edit TODO regions before first run.
|
|
2
|
+
#
|
|
3
|
+
# Trigger: push a tag matching v*. Publishes to npm and attaches artifacts to the
|
|
4
|
+
# GitHub Release. Requires the NPM_TOKEN secret (or switch to npm Trusted Publishing
|
|
5
|
+
# via OIDC — see the commented-out block below).
|
|
6
|
+
|
|
7
|
+
name: release
|
|
8
|
+
|
|
9
|
+
on:
|
|
10
|
+
push:
|
|
11
|
+
tags:
|
|
12
|
+
- 'v*'
|
|
13
|
+
workflow_dispatch:
|
|
14
|
+
|
|
15
|
+
permissions: {}
|
|
16
|
+
|
|
17
|
+
concurrency:
|
|
18
|
+
group: release-${{ github.ref }}
|
|
19
|
+
cancel-in-progress: false
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
build:
|
|
23
|
+
name: build (${{ matrix.os }} / ${{ matrix.arch }})
|
|
24
|
+
runs-on: ${{ matrix.runner }}
|
|
25
|
+
timeout-minutes: 20
|
|
26
|
+
permissions:
|
|
27
|
+
contents: read
|
|
28
|
+
strategy:
|
|
29
|
+
fail-fast: false
|
|
30
|
+
matrix:
|
|
31
|
+
include:
|
|
32
|
+
# TODO(releaser): trim the matrix to the {os x arch} combos declared in
|
|
33
|
+
# the skill invocation. Remove rows you do not intend to ship.
|
|
34
|
+
- os: linux
|
|
35
|
+
arch: amd64
|
|
36
|
+
runner: ubuntu-latest
|
|
37
|
+
- os: linux
|
|
38
|
+
arch: arm64
|
|
39
|
+
runner: ubuntu-24.04-arm
|
|
40
|
+
- os: darwin
|
|
41
|
+
arch: amd64
|
|
42
|
+
runner: macos-13
|
|
43
|
+
- os: darwin
|
|
44
|
+
arch: arm64
|
|
45
|
+
runner: macos-14
|
|
46
|
+
- os: windows
|
|
47
|
+
arch: amd64
|
|
48
|
+
runner: windows-latest
|
|
49
|
+
steps:
|
|
50
|
+
- uses: actions/checkout@v4
|
|
51
|
+
|
|
52
|
+
- uses: actions/setup-node@v4
|
|
53
|
+
with:
|
|
54
|
+
node-version-file: '.nvmrc' # TODO(releaser): or replace with `node-version: '20'`
|
|
55
|
+
cache: 'npm' # TODO(releaser): switch to 'pnpm' or 'yarn' as appropriate
|
|
56
|
+
|
|
57
|
+
- run: npm ci
|
|
58
|
+
|
|
59
|
+
- name: Build
|
|
60
|
+
run: npm run build --if-present
|
|
61
|
+
|
|
62
|
+
- name: Package
|
|
63
|
+
# TODO(releaser): replace with your actual packaging step. For a CLI:
|
|
64
|
+
# npx pkg . --targets node20-${{ matrix.os }}-${{ matrix.arch }} --output dist/${{ github.event.repository.name }}-${{ github.ref_name }}-${{ matrix.os }}-${{ matrix.arch }}
|
|
65
|
+
run: npm pack
|
|
66
|
+
|
|
67
|
+
- name: Checksum
|
|
68
|
+
shell: bash
|
|
69
|
+
run: |
|
|
70
|
+
cd dist || cd .
|
|
71
|
+
find . -maxdepth 1 -type f \( -name '*.tgz' -o -name "${{ github.event.repository.name }}-*" \) -print0 \
|
|
72
|
+
| xargs -0 sha256sum > SHA256SUMS-${{ matrix.os }}-${{ matrix.arch }}.txt
|
|
73
|
+
|
|
74
|
+
- uses: actions/upload-artifact@v4
|
|
75
|
+
with:
|
|
76
|
+
name: release-${{ matrix.os }}-${{ matrix.arch }}
|
|
77
|
+
path: |
|
|
78
|
+
dist/*
|
|
79
|
+
SHA256SUMS-*.txt
|
|
80
|
+
if-no-files-found: error
|
|
81
|
+
retention-days: 7
|
|
82
|
+
|
|
83
|
+
publish-npm:
|
|
84
|
+
name: publish (npm)
|
|
85
|
+
needs: build
|
|
86
|
+
runs-on: ubuntu-latest
|
|
87
|
+
timeout-minutes: 10
|
|
88
|
+
permissions:
|
|
89
|
+
contents: read
|
|
90
|
+
id-token: write # Required for npm Trusted Publishing (OIDC)
|
|
91
|
+
environment: release
|
|
92
|
+
steps:
|
|
93
|
+
- uses: actions/checkout@v4
|
|
94
|
+
- uses: actions/setup-node@v4
|
|
95
|
+
with:
|
|
96
|
+
node-version-file: '.nvmrc'
|
|
97
|
+
registry-url: 'https://registry.npmjs.org'
|
|
98
|
+
- run: npm ci
|
|
99
|
+
- run: npm run build --if-present
|
|
100
|
+
# Option A — API token (legacy):
|
|
101
|
+
- run: npm publish --provenance --access public
|
|
102
|
+
env:
|
|
103
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
104
|
+
# Option B — Trusted Publishing (preferred, no token):
|
|
105
|
+
# - run: npm publish --provenance --access public
|
|
106
|
+
|
|
107
|
+
github-release:
|
|
108
|
+
name: github release
|
|
109
|
+
needs: build
|
|
110
|
+
runs-on: ubuntu-latest
|
|
111
|
+
timeout-minutes: 10
|
|
112
|
+
permissions:
|
|
113
|
+
contents: write # needed to upload release assets
|
|
114
|
+
steps:
|
|
115
|
+
- uses: actions/checkout@v4
|
|
116
|
+
- uses: actions/download-artifact@v4
|
|
117
|
+
with:
|
|
118
|
+
path: artifacts
|
|
119
|
+
merge-multiple: true
|
|
120
|
+
- name: Create release
|
|
121
|
+
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2 — TODO(releaser): verify latest SHA
|
|
122
|
+
with:
|
|
123
|
+
files: artifacts/*
|
|
124
|
+
body_path: docs/releases/${{ github.ref_name }}.md # TODO(releaser): adjust if notes live elsewhere
|
|
125
|
+
prerelease: ${{ contains(github.ref_name, '-') }}
|
|
126
|
+
fail_on_unmatched_files: true
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# Generated by releaser — edit TODO regions before first run.
|
|
2
|
+
#
|
|
3
|
+
# Trigger: push a tag matching v*. Builds sdist + wheels and publishes to PyPI via
|
|
4
|
+
# Trusted Publishing (OIDC). To use Trusted Publishing, configure the project on
|
|
5
|
+
# https://pypi.org/manage/account/publishing/ — no API token required.
|
|
6
|
+
|
|
7
|
+
name: release
|
|
8
|
+
|
|
9
|
+
on:
|
|
10
|
+
push:
|
|
11
|
+
tags:
|
|
12
|
+
- 'v*'
|
|
13
|
+
workflow_dispatch:
|
|
14
|
+
|
|
15
|
+
permissions: {}
|
|
16
|
+
|
|
17
|
+
concurrency:
|
|
18
|
+
group: release-${{ github.ref }}
|
|
19
|
+
cancel-in-progress: false
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
build:
|
|
23
|
+
name: build sdist + wheels
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
timeout-minutes: 15
|
|
26
|
+
permissions:
|
|
27
|
+
contents: read
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v4
|
|
30
|
+
|
|
31
|
+
- uses: actions/setup-python@v5
|
|
32
|
+
with:
|
|
33
|
+
python-version: '3.12'
|
|
34
|
+
cache: 'pip'
|
|
35
|
+
|
|
36
|
+
- name: Install build tooling
|
|
37
|
+
run: python -m pip install --upgrade pip build
|
|
38
|
+
|
|
39
|
+
- name: Build sdist + wheel
|
|
40
|
+
run: python -m build
|
|
41
|
+
# TODO(releaser): for packages with compiled extensions, replace this with
|
|
42
|
+
# cibuildwheel — see https://cibuildwheel.pypa.io/en/stable/.
|
|
43
|
+
|
|
44
|
+
- name: Checksum
|
|
45
|
+
run: |
|
|
46
|
+
cd dist
|
|
47
|
+
sha256sum * > SHA256SUMS.txt
|
|
48
|
+
|
|
49
|
+
- uses: actions/upload-artifact@v4
|
|
50
|
+
with:
|
|
51
|
+
name: dist
|
|
52
|
+
path: dist/
|
|
53
|
+
if-no-files-found: error
|
|
54
|
+
retention-days: 7
|
|
55
|
+
|
|
56
|
+
publish-pypi:
|
|
57
|
+
name: publish (PyPI)
|
|
58
|
+
needs: build
|
|
59
|
+
runs-on: ubuntu-latest
|
|
60
|
+
timeout-minutes: 10
|
|
61
|
+
permissions:
|
|
62
|
+
id-token: write # Required for Trusted Publishing
|
|
63
|
+
environment:
|
|
64
|
+
name: pypi
|
|
65
|
+
url: https://pypi.org/p/${{ github.event.repository.name }} # TODO(releaser): set to the real package name if it differs
|
|
66
|
+
steps:
|
|
67
|
+
- uses: actions/download-artifact@v4
|
|
68
|
+
with:
|
|
69
|
+
name: dist
|
|
70
|
+
path: dist/
|
|
71
|
+
- name: Publish
|
|
72
|
+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4 — TODO(releaser): verify latest SHA
|
|
73
|
+
with:
|
|
74
|
+
skip-existing: false
|
|
75
|
+
|
|
76
|
+
github-release:
|
|
77
|
+
name: github release
|
|
78
|
+
needs: build
|
|
79
|
+
runs-on: ubuntu-latest
|
|
80
|
+
timeout-minutes: 10
|
|
81
|
+
permissions:
|
|
82
|
+
contents: write
|
|
83
|
+
steps:
|
|
84
|
+
- uses: actions/checkout@v4
|
|
85
|
+
- uses: actions/download-artifact@v4
|
|
86
|
+
with:
|
|
87
|
+
name: dist
|
|
88
|
+
path: dist/
|
|
89
|
+
- name: Create release
|
|
90
|
+
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2 — TODO(releaser): verify latest SHA
|
|
91
|
+
with:
|
|
92
|
+
files: dist/*
|
|
93
|
+
body_path: docs/releases/${{ github.ref_name }}.md # TODO(releaser): adjust path if needed
|
|
94
|
+
prerelease: ${{ contains(github.ref_name, '-') }}
|
|
95
|
+
fail_on_unmatched_files: true
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Generated by releaser — edit TODO regions before first run.
|
|
2
|
+
#
|
|
3
|
+
# Trigger: push a tag matching v*. Builds per-platform binaries and optionally
|
|
4
|
+
# publishes to crates.io. If the repo already uses cargo-dist, delete this file and
|
|
5
|
+
# keep the cargo-dist-generated workflow instead.
|
|
6
|
+
|
|
7
|
+
name: release
|
|
8
|
+
|
|
9
|
+
on:
|
|
10
|
+
push:
|
|
11
|
+
tags:
|
|
12
|
+
- 'v*'
|
|
13
|
+
workflow_dispatch:
|
|
14
|
+
|
|
15
|
+
permissions: {}
|
|
16
|
+
|
|
17
|
+
concurrency:
|
|
18
|
+
group: release-${{ github.ref }}
|
|
19
|
+
cancel-in-progress: false
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
build:
|
|
23
|
+
name: build (${{ matrix.target }})
|
|
24
|
+
runs-on: ${{ matrix.runner }}
|
|
25
|
+
timeout-minutes: 30
|
|
26
|
+
permissions:
|
|
27
|
+
contents: read
|
|
28
|
+
strategy:
|
|
29
|
+
fail-fast: false
|
|
30
|
+
matrix:
|
|
31
|
+
include:
|
|
32
|
+
# TODO(releaser): trim to the {os x arch} combos declared in the skill.
|
|
33
|
+
- target: x86_64-unknown-linux-gnu
|
|
34
|
+
runner: ubuntu-latest
|
|
35
|
+
- target: aarch64-unknown-linux-gnu
|
|
36
|
+
runner: ubuntu-24.04-arm
|
|
37
|
+
- target: x86_64-apple-darwin
|
|
38
|
+
runner: macos-13
|
|
39
|
+
- target: aarch64-apple-darwin
|
|
40
|
+
runner: macos-14
|
|
41
|
+
- target: x86_64-pc-windows-msvc
|
|
42
|
+
runner: windows-latest
|
|
43
|
+
steps:
|
|
44
|
+
- uses: actions/checkout@v4
|
|
45
|
+
|
|
46
|
+
- name: Install Rust toolchain
|
|
47
|
+
uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b # stable — TODO(releaser): verify latest SHA
|
|
48
|
+
with:
|
|
49
|
+
toolchain: stable
|
|
50
|
+
targets: ${{ matrix.target }}
|
|
51
|
+
|
|
52
|
+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0 — TODO(releaser): verify latest SHA
|
|
53
|
+
with:
|
|
54
|
+
key: ${{ matrix.target }}
|
|
55
|
+
|
|
56
|
+
- name: Build
|
|
57
|
+
run: cargo build --release --target ${{ matrix.target }}
|
|
58
|
+
|
|
59
|
+
- name: Package
|
|
60
|
+
shell: bash
|
|
61
|
+
run: |
|
|
62
|
+
name="${{ github.event.repository.name }}"
|
|
63
|
+
tag="${{ github.ref_name }}"
|
|
64
|
+
target="${{ matrix.target }}"
|
|
65
|
+
staging="${name}-${tag}-${target}"
|
|
66
|
+
mkdir -p "${staging}"
|
|
67
|
+
if [[ "${target}" == *windows* ]]; then
|
|
68
|
+
cp "target/${target}/release/${name}.exe" "${staging}/"
|
|
69
|
+
7z a "${staging}.zip" "${staging}"
|
|
70
|
+
else
|
|
71
|
+
cp "target/${target}/release/${name}" "${staging}/"
|
|
72
|
+
tar -czf "${staging}.tar.gz" "${staging}"
|
|
73
|
+
fi
|
|
74
|
+
|
|
75
|
+
- name: Checksum
|
|
76
|
+
shell: bash
|
|
77
|
+
run: |
|
|
78
|
+
for f in ${{ github.event.repository.name }}-${{ github.ref_name }}-${{ matrix.target }}.*; do
|
|
79
|
+
sha256sum "$f" > "${f}.sha256"
|
|
80
|
+
done
|
|
81
|
+
|
|
82
|
+
- uses: actions/upload-artifact@v4
|
|
83
|
+
with:
|
|
84
|
+
name: release-${{ matrix.target }}
|
|
85
|
+
path: |
|
|
86
|
+
${{ github.event.repository.name }}-${{ github.ref_name }}-${{ matrix.target }}.*
|
|
87
|
+
if-no-files-found: error
|
|
88
|
+
retention-days: 7
|
|
89
|
+
|
|
90
|
+
publish-crates-io:
|
|
91
|
+
name: publish (crates.io)
|
|
92
|
+
needs: build
|
|
93
|
+
runs-on: ubuntu-latest
|
|
94
|
+
timeout-minutes: 15
|
|
95
|
+
# TODO(releaser): remove this job if the project is not a library publish.
|
|
96
|
+
permissions:
|
|
97
|
+
contents: read
|
|
98
|
+
environment: release
|
|
99
|
+
steps:
|
|
100
|
+
- uses: actions/checkout@v4
|
|
101
|
+
- uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b
|
|
102
|
+
with:
|
|
103
|
+
toolchain: stable
|
|
104
|
+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0
|
|
105
|
+
- run: cargo publish
|
|
106
|
+
env:
|
|
107
|
+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
|
108
|
+
|
|
109
|
+
github-release:
|
|
110
|
+
name: github release
|
|
111
|
+
needs: build
|
|
112
|
+
runs-on: ubuntu-latest
|
|
113
|
+
timeout-minutes: 10
|
|
114
|
+
permissions:
|
|
115
|
+
contents: write
|
|
116
|
+
steps:
|
|
117
|
+
- uses: actions/checkout@v4
|
|
118
|
+
- uses: actions/download-artifact@v4
|
|
119
|
+
with:
|
|
120
|
+
path: artifacts
|
|
121
|
+
merge-multiple: true
|
|
122
|
+
- name: Create release
|
|
123
|
+
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2 — TODO(releaser): verify latest SHA
|
|
124
|
+
with:
|
|
125
|
+
files: artifacts/*
|
|
126
|
+
body_path: docs/releases/${{ github.ref_name }}.md # TODO(releaser): adjust path if needed
|
|
127
|
+
prerelease: ${{ contains(github.ref_name, '-') }}
|
|
128
|
+
fail_on_unmatched_files: true
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Release Workflow Generation and Audit
|
|
2
|
+
|
|
3
|
+
## Phase 6: CI workflow file (optional)
|
|
4
|
+
|
|
5
|
+
This phase generates or audits the **release.yml** file itself. It is separate from
|
|
6
|
+
the **Phase 8.5 release-CI auto-fix loop** (which watches a live workflow run after
|
|
7
|
+
publish). Three modes:
|
|
8
|
+
|
|
9
|
+
### --ci-config=generate
|
|
10
|
+
|
|
11
|
+
Fails if any file in `existing_ci` looks release-related (matches
|
|
12
|
+
`release|publish|deploy`). Otherwise, write a new `.github/workflows/release.yml` by
|
|
13
|
+
copying the matching template:
|
|
14
|
+
|
|
15
|
+
- Node → `references/ci-templates/node-release.yml`
|
|
16
|
+
- Python → `references/ci-templates/python-release.yml`
|
|
17
|
+
- Go → `references/ci-templates/go-release.yml` (uses goreleaser)
|
|
18
|
+
- Rust → `references/ci-templates/rust-release.yml` (uses cargo-dist if configured,
|
|
19
|
+
else actions-rs matrix)
|
|
20
|
+
- Docker → `references/ci-templates/docker-release.yml`
|
|
21
|
+
- Generic → `references/ci-templates/generic-release.yml` (tag-triggered, uploads
|
|
22
|
+
artifacts via `softprops/action-gh-release`)
|
|
23
|
+
|
|
24
|
+
Substitute the Phase 3 matrix and project name into the template. Also emit a short
|
|
25
|
+
`.github/workflows/README.md` entry documenting the new workflow — required (see
|
|
26
|
+
`references/ci-optimization-checklist.md`, "Documentation" section).
|
|
27
|
+
|
|
28
|
+
### --ci-config=audit
|
|
29
|
+
|
|
30
|
+
Delegate to the `releaser` agent. Pass the list of existing workflow files, the
|
|
31
|
+
detected language and build system, the expected `{os × arch}` matrix, and the full
|
|
32
|
+
contents of `references/ci-optimization-checklist.md` inline in the dispatch prompt
|
|
33
|
+
(including every numbered section and severity table, not a path or summary).
|
|
34
|
+
The agent returns a structured report (Findings → Severity → Fix). The skill
|
|
35
|
+
summarizes the top items and writes the full report to
|
|
36
|
+
`docs/prps/reviews/ci-release-audit.md` for later consumption by `review-fix`.
|
|
37
|
+
|
|
38
|
+
### No --ci-config flag
|
|
39
|
+
|
|
40
|
+
Skip Phase 6 entirely. Print a one-line reminder: "Skipped CI workflow generation.
|
|
41
|
+
Run with `--ci-config=generate` or `--ci-config=audit` to include it. (This is
|
|
42
|
+
separate from `--ci`, which monitors a live release workflow after publish.)"
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Bounded Release CI Goal Pairing
|
|
2
|
+
|
|
3
|
+
## /goal pairing
|
|
4
|
+
|
|
5
|
+
Pair this skill with the `/goal` session directive **only for the bounded Phase 8.5 release-CI auto-fix loop** — never for the skill as a whole. The full `releaser` flow has four human approval gates that exist specifically to prevent unattended publishing and looping; `/goal` must never auto-satisfy them:
|
|
6
|
+
|
|
7
|
+
- **Phase 2 — version confirm.** The user must approve the proposed version bump.
|
|
8
|
+
- **Phase 2 — backport gate (patches).** The user decides each unlabelled fix and any shipping without a missing backport.
|
|
9
|
+
- **Phase 5 — manifest diff review.** The user must approve what changed before any commit.
|
|
10
|
+
- **Phase 8.5.1 — CI authorization gate.** The user must approve before the bounded, destructive-capable loop starts. `--ci-yes` does **not** bypass this gate under an active `/goal` (see the 8.5.1 `/goal` re-confirmation guard).
|
|
11
|
+
|
|
12
|
+
Because the `/goal` evaluator is transcript-only it cannot answer these prompts, so a `/goal` loop will **pause** at each gate until you respond in person. That is the intended behavior: only after you have published (`--publish --confirm`) and authorized the loop does `/goal` add value — driving Phase 8.5.2+ through every `handoff` fix-and-validate and `rerun-pending` retry to green without returning control between iterations. The `GATES_INTERACTIVE` Goal Signal records that none of these gates was auto-approved.
|
|
13
|
+
|
|
14
|
+
The Phase 8.5 loop's `RESULT=` markers (from `release-ci-monitor.sh`, sharing the `ci-monitor.sh` contract with `pr-autofix` and `prp-pr`) tell the evaluator when to keep looping versus when to stop:
|
|
15
|
+
|
|
16
|
+
- **Keep looping** — `handoff` (8.5.3 fix-and-validate) and `rerun-pending` (8.5.2 wait-and-retry). Recoverable progress markers, not endpoints.
|
|
17
|
+
- **Done** — `RESULT=green`, with the Phase 9 summary showing "Release CI loop outcome: `green`" and the audit-log path (`CI_GREEN: PASS`, `AUDIT_LOG_PRINTED: PASS`).
|
|
18
|
+
- **Stop** — any terminal `bail-*` (`bail-recurrence`, `bail-nonfixable`, `bail-pushes`, `bail-timeout`, `not-found`) or `loop-blocked`. `release-ci-monitor.sh` exhausts recoverable retries internally before emitting a bail, so a printed terminal marker means no further automatic progress is possible. The evaluator distinguishes "loop again" from "stop" by `green` vs `bail-*`/`loop-blocked` in the Phase 9 summary — never by re-classifying bail codes. See `{{package-root}}/shared/references/ci-monitoring.md` ("Release mode") for the authoritative bail taxonomy.
|
|
19
|
+
|
|
20
|
+
Recommended condition template (set this **after** you have approved Phases 2 and 5, published with `--publish --confirm`, and authorized the loop at 8.5.1):
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
/goal Drive the releaser Phase 8.5 release-CI loop to green, continuing through every
|
|
24
|
+
handoff and rerun-pending iteration without returning control to me. Done when the Phase 9
|
|
25
|
+
summary shows "Release CI loop outcome: green", the audit-log path is printed, and the Goal
|
|
26
|
+
Signals print verbatim — GATES_INTERACTIVE: PASS, CI_GREEN: PASS, and AUDIT_LOG_PRINTED:
|
|
27
|
+
PASS. If CI_GREEN prints FAIL alongside CI_BAIL_VISIBLE: PASS (a terminal bail-*, loop-blocked,
|
|
28
|
+
or declined), stop and report it — do not re-run. Never auto-approve the Phase 2 version
|
|
29
|
+
confirm, the Phase 5 manifest review, or the Phase 8.5.1 authorization. Stop after 25 turns
|
|
30
|
+
if not achieved.
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The transcript-output contract and shared caveats (worktree cwd, interactive failure prompts, platform availability) live in the shared reference — read it before relying on a `/goal` loop:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
{{package-root}}/shared/references/goal-pairing.md
|
|
37
|
+
```
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# Release Commands, Publish Modes and Final Output
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Phase 8: Emit next-step commands
|
|
6
|
+
- Phase 9: Final summary
|
|
7
|
+
- Success Criteria
|
|
8
|
+
|
|
9
|
+
## Phase 8: Emit next-step commands
|
|
10
|
+
|
|
11
|
+
Always emit the following block. Substitute `<new-version>`, `<changed-files>`,
|
|
12
|
+
`<notes-path>`, and `<branch>` (the `branch=` from the Phase 2 branch check — the
|
|
13
|
+
branch being released) with real values. NEVER run these commands automatically.
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
Release prepared. No commits or tags have been created — review the diff, then run:
|
|
17
|
+
|
|
18
|
+
git add <changed-files>
|
|
19
|
+
git commit -m "chore(release): v<new-version>"
|
|
20
|
+
git tag -a v<new-version> -m "v<new-version>"
|
|
21
|
+
git push origin HEAD:<branch> --follow-tags
|
|
22
|
+
|
|
23
|
+
# Create the GitHub release from the drafted notes:
|
|
24
|
+
gh release create v<new-version> \
|
|
25
|
+
--notes-file <notes-path> \
|
|
26
|
+
--title "v<new-version>"
|
|
27
|
+
|
|
28
|
+
# If artifacts were produced locally and need uploading:
|
|
29
|
+
gh release upload v<new-version> <path-to-artifact> [...]
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Under release-branches, append the steps the branch check asked for (see
|
|
33
|
+
`{{package-root}}/shared/references/branching-model.md`, "Models").
|
|
34
|
+
When `creates_maintenance=release/X.Y` (a final minor or major cut from the trunk):
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
# Create the maintenance branch from the tag, and its backport label (skip the
|
|
38
|
+
# label if it already exists):
|
|
39
|
+
git push origin vX.Y.0^{commit}:refs/heads/release/X.Y
|
|
40
|
+
gh label create "<backport_label>" --description "Cherry-pick to release/X.Y"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
When `forward_port=1` (a patch cut from `release/X.Y`), carry the CHANGELOG entry — not
|
|
44
|
+
the version bump — to the trunk in its own PR:
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
# Forward-port the vX.Y.Z CHANGELOG entry to <trunk>:
|
|
48
|
+
git fetch origin
|
|
49
|
+
git switch -c chore/changelog-vX.Y.Z origin/<trunk>
|
|
50
|
+
# Copy the X.Y.Z section from `git show vX.Y.Z:CHANGELOG.md` into CHANGELOG.md,
|
|
51
|
+
# in version order. Leave the version manifests alone.
|
|
52
|
+
git commit -am "chore(release): record vX.Y.Z in changelog"
|
|
53
|
+
git push -u origin HEAD
|
|
54
|
+
gh pr create --base <trunk> --title "chore(release): record vX.Y.Z in changelog" \
|
|
55
|
+
--body "Forward-port of the vX.Y.Z CHANGELOG entry from release/X.Y. No version bump."
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
See "Forward-porting a patch's CHANGELOG entry" in `references/release-branches.md`.
|
|
59
|
+
|
|
60
|
+
If `--ci-config=generate` ran, append:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
# Verify the new workflow in CI by pushing the tag — the release workflow will
|
|
64
|
+
# build the matrix and attach artifacts to the GitHub release.
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**Forge provider detection**: release creation is provider-aware.
|
|
68
|
+
`publish-release.sh` detects the forge provider on `origin` first and routes
|
|
69
|
+
through the matching CLI — `gh release create` for `github`, `tea release
|
|
70
|
+
create --tag <tag> [--note-file]` for `forgejo`/`gitea` (per the
|
|
71
|
+
operation-equivalence map). The `gh release create`/`gh release upload` commands
|
|
72
|
+
emitted in the Phase 8 block above are the `github` path; on a `forgejo`/`gitea`
|
|
73
|
+
remote the helper drives `tea release create` instead. Log the resolved provider
|
|
74
|
+
and CLI. See `{{package-root}}/shared/references/forge-detection.md`.
|
|
75
|
+
|
|
76
|
+
When the user passed `--publish[=create|edit|auto]`, after they review the rendered
|
|
77
|
+
notes, run:
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
{{package-root}}/skills/releaser/scripts/publish-release.sh v<new-version> <notes-path> --mode=<mode>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**Examples:**
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
# Preview only — prints the resolved gh command without executing it:
|
|
87
|
+
{{package-root}}/skills/releaser/scripts/publish-release.sh v1.4.0 docs/releases/v1.4.0.md --mode=auto
|
|
88
|
+
|
|
89
|
+
# Apply — executes the resolved gh command:
|
|
90
|
+
{{package-root}}/skills/releaser/scripts/publish-release.sh v1.4.0 docs/releases/v1.4.0.md --mode=auto --confirm
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
This prints the resolved `gh` command without executing it. Re-run with `--confirm` to
|
|
94
|
+
apply. Use `--mode=edit` only when intentionally replacing an existing release body —
|
|
95
|
+
this is destructive.
|
|
96
|
+
|
|
97
|
+
## Phase 9: Final summary
|
|
98
|
+
|
|
99
|
+
Report to the user:
|
|
100
|
+
|
|
101
|
+
- Detected language / build system / manifest files.
|
|
102
|
+
- Proposed vs. requested version.
|
|
103
|
+
- Release model and branch: `model` and `branch` from the Phase 2 check (or "no
|
|
104
|
+
`RELEASING.md`"), plus the follow-ups it requires — the new `release/X.Y` branch and
|
|
105
|
+
label, or the CHANGELOG forward-port PR.
|
|
106
|
+
- Backport gate (patches under release-branches): `clean` with the number of PRs verified
|
|
107
|
+
and the `since=` window, or the rows the user chose to ship without, listed as
|
|
108
|
+
"Deferred backports".
|
|
109
|
+
- Target `{os × arch}` matrix.
|
|
110
|
+
- Files modified (changelog, notes, manifests, workflow).
|
|
111
|
+
- CI workflow-file outcome (generate / audit / skipped) and report path if audit ran.
|
|
112
|
+
- Publish mode outcome: whether the release was published (applied with `--confirm`),
|
|
113
|
+
previewed only (print-only via `--publish` without `--confirm`), or emit-only
|
|
114
|
+
(no `--publish` flag).
|
|
115
|
+
- Release CI loop outcome (if `--ci` was set): `green` (final status), `bail-*`
|
|
116
|
+
(with reason and cap that fired), `loop-blocked`, `declined`, or `skipped` (no
|
|
117
|
+
successful publish). Include the audit log path so the user can inspect it.
|
|
118
|
+
- The exact command block from Phase 8.
|
|
119
|
+
|
|
120
|
+
Then, as the **last lines** of the summary, print the Goal Signals block verbatim:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
Goal Signals (machine-readable — printed verbatim for /goal)
|
|
124
|
+
RELEASE_PUBLISHED: <PASS|FAIL|n/a>
|
|
125
|
+
GATES_INTERACTIVE: <PASS|FAIL>
|
|
126
|
+
CI_GREEN: <PASS|FAIL|n/a>
|
|
127
|
+
CI_BAIL_VISIBLE: <PASS|n/a>
|
|
128
|
+
AUDIT_LOG_PRINTED: <PASS|FAIL|n/a>
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Print one `KEY: PASS|FAIL` per line. Use `PASS` only when the matching `## Success
|
|
132
|
+
Criteria` item holds; otherwise `FAIL`. See `## Success Criteria` for each key's exact
|
|
133
|
+
condition and `n/a` rules.
|
|
134
|
+
|
|
135
|
+
## Success Criteria
|
|
136
|
+
|
|
137
|
+
- **RELEASE_PUBLISHED**: `--publish --confirm` ran and `publish-release.sh --confirm` exited 0 (the release exists on GitHub). `n/a` when `--publish` was not set or ran in preview-only mode.
|
|
138
|
+
- **GATES_INTERACTIVE**: Every human gate that applied this run — Phase 2 version confirm, the Phase 2 backport gate decisions, Phase 5 manifest diff review, and the Phase 8.5.1 authorization — was satisfied by explicit user input and **none** was auto-approved or bypassed (including under an active `/goal`). `FAIL` if any applicable gate was skipped without a human `yes`. This is the safety invariant that keeps `/goal` from wrapping the whole skill.
|
|
139
|
+
- **CI_GREEN**: If `--ci` ran, the Phase 8.5 loop reached `RESULT=green` and the Phase 9 summary shows "Release CI loop outcome: `green`". `n/a` when `--ci` was not set or the loop was skipped (no successful publish).
|
|
140
|
+
- **CI_BAIL_VISIBLE**: If `--ci` ended without green, the summary states the terminal outcome (`bail-*`, `loop-blocked`, or `declined`) and the cap/constraint that fired. `n/a` when `--ci` reached green or was not set.
|
|
141
|
+
- **AUDIT_LOG_PRINTED**: If `--ci` ran, the Phase 9 summary printed the audit-log path. `n/a` when `--ci` was not set or the loop was skipped.
|
|
142
|
+
|
|
143
|
+
These keys are emitted verbatim in the Phase 9 Goal Signals block so a `/goal` evaluator can observe completion from the transcript alone.
|