@rosetears/aili-pi 0.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/LICENSE +21 -0
- package/README.md +109 -0
- package/THIRD_PARTY_NOTICES.md +64 -0
- package/extensions/index.ts +6 -0
- package/install.sh +5 -0
- package/manifests/adapter-evidence.json +45 -0
- package/manifests/capabilities.json +124 -0
- package/manifests/live-verification.json +26 -0
- package/manifests/provenance.json +71 -0
- package/manifests/roles.json +474 -0
- package/manifests/sbom.json +7797 -0
- package/manifests/skill-compatibility.json +8100 -0
- package/manifests/subagent-provenance.json +37 -0
- package/package.json +91 -0
- package/prompts/build.md +8 -0
- package/prompts/define.md +8 -0
- package/prompts/ideate.md +8 -0
- package/prompts/local-review.md +8 -0
- package/prompts/ship.md +8 -0
- package/roles/agent-evaluator.md +47 -0
- package/roles/ai-regression-scout.md +47 -0
- package/roles/browser-qa-runner.md +47 -0
- package/roles/code-reviewer.md +47 -0
- package/roles/code-scout.md +47 -0
- package/roles/convergence-reviewer.md +55 -0
- package/roles/doc-researcher.md +47 -0
- package/roles/e2e-artifact-runner.md +47 -0
- package/roles/implementer.md +47 -0
- package/roles/opensource-sanitizer.md +47 -0
- package/roles/plan-auditor.md +47 -0
- package/roles/pr-test-analyzer.md +47 -0
- package/roles/security-auditor.md +47 -0
- package/roles/silent-failure-reviewer.md +47 -0
- package/roles/spec-miner.md +47 -0
- package/roles/test-coverage-reviewer.md +47 -0
- package/roles/test-engineer.md +48 -0
- package/roles/web-performance-auditor.md +47 -0
- package/roles/web-researcher.md +47 -0
- package/scripts/apply-adapter-evidence.ts +73 -0
- package/scripts/bootstrap.sh +180 -0
- package/scripts/generate-provenance.ts +143 -0
- package/scripts/local-package-e2e.ts +51 -0
- package/scripts/sync-roles.ts +213 -0
- package/scripts/sync-skills.ts +356 -0
- package/scripts/validate-runtime.ts +11 -0
- package/skills/academic-paper-review/SKILL.md +81 -0
- package/skills/agents-md-initialization/SKILL.md +121 -0
- package/skills/agents-md-initialization/references/agents-template.md +83 -0
- package/skills/agents-md-initialization/references/agents_md.py +215 -0
- package/skills/ai-regression-scout/SKILL.md +24 -0
- package/skills/aili-delivery-flow/SKILL.md +125 -0
- package/skills/aili-delivery-flow/references/artifact-contracts.md +138 -0
- package/skills/aili-delivery-flow/references/backend-routing.md +40 -0
- package/skills/aili-delivery-flow/references/build-execution-loop.md +113 -0
- package/skills/aili-delivery-flow/references/build-goal-mode.md +3 -0
- package/skills/aili-delivery-flow/references/direct-vs-delegated-work.md +38 -0
- package/skills/aili-delivery-flow/references/implementation-packages.md +54 -0
- package/skills/aili-delivery-flow/references/lifecycle.md +127 -0
- package/skills/aili-delivery-flow/references/protocols/acceptance-test-plan.md +18 -0
- package/skills/aili-delivery-flow/references/protocols/alignment-questionnaire.md +10 -0
- package/skills/aili-delivery-flow/references/protocols/closeout-report.md +101 -0
- package/skills/aili-delivery-flow/references/protocols/compact-evidence-pack.md +46 -0
- package/skills/aili-delivery-flow/references/protocols/idea-brief.md +10 -0
- package/skills/aili-delivery-flow/references/protocols/implementation-package.md +53 -0
- package/skills/aili-delivery-flow/references/protocols/research-evidence-pack.md +19 -0
- package/skills/aili-delivery-flow/references/protocols/review-report.md +7 -0
- package/skills/aili-delivery-flow/references/protocols/spec-draft.md +12 -0
- package/skills/aili-delivery-flow/references/protocols/subagent-result.md +60 -0
- package/skills/aili-delivery-flow/references/protocols/subagent-task-packet.md +29 -0
- package/skills/aili-delivery-flow/references/protocols/worktree-context.md +109 -0
- package/skills/aili-delivery-flow/references/questionnaire-policy.md +62 -0
- package/skills/aili-delivery-flow/references/review-repair-loop.md +16 -0
- package/skills/aili-delivery-flow/references/test-document-policy.md +35 -0
- package/skills/android-native-dev/SKILL.md +722 -0
- package/skills/android-native-dev/references/accessibility.md +209 -0
- package/skills/android-native-dev/references/adaptive-screens.md +231 -0
- package/skills/android-native-dev/references/design-style-guide.md +365 -0
- package/skills/android-native-dev/references/functional-requirements.md +229 -0
- package/skills/android-native-dev/references/motion-system.md +203 -0
- package/skills/android-native-dev/references/performance-stability.md +223 -0
- package/skills/android-native-dev/references/privacy-security.md +244 -0
- package/skills/android-native-dev/references/testing.md +554 -0
- package/skills/android-native-dev/references/visual-design.md +246 -0
- package/skills/api-and-interface-design/SKILL.md +318 -0
- package/skills/browser-qa/SKILL.md +32 -0
- package/skills/browser-testing-with-devtools/SKILL.md +323 -0
- package/skills/build-failure-repair/SKILL.md +49 -0
- package/skills/chart-visualization/SKILL.md +73 -0
- package/skills/ci-cd-and-automation/SKILL.md +353 -0
- package/skills/code-review-and-quality/SKILL.md +375 -0
- package/skills/code-review-quality-gates/SKILL.md +132 -0
- package/skills/code-simplification/SKILL.md +371 -0
- package/skills/comment-accuracy-review/SKILL.md +37 -0
- package/skills/consulting-analysis/SKILL.md +69 -0
- package/skills/context-engineering/SKILL.md +375 -0
- package/skills/coverage-review/SKILL.md +24 -0
- package/skills/data-analysis/SKILL.md +74 -0
- package/skills/deprecation-and-migration/SKILL.md +222 -0
- package/skills/documentation-and-adrs/SKILL.md +330 -0
- package/skills/e2e-artifact-handling/SKILL.md +30 -0
- package/skills/evidence-scoped-retrospective/SKILL.md +156 -0
- package/skills/explain-by-allegory/SKILL.md +99 -0
- package/skills/flutter-dev/SKILL.md +162 -0
- package/skills/flutter-dev/references/animations.md +497 -0
- package/skills/flutter-dev/references/bloc-state.md +281 -0
- package/skills/flutter-dev/references/forms.md +656 -0
- package/skills/flutter-dev/references/gorouter-navigation.md +257 -0
- package/skills/flutter-dev/references/localization.md +510 -0
- package/skills/flutter-dev/references/networking.md +566 -0
- package/skills/flutter-dev/references/performance.md +305 -0
- package/skills/flutter-dev/references/platform-specific.md +417 -0
- package/skills/flutter-dev/references/project-structure.md +273 -0
- package/skills/flutter-dev/references/riverpod-state.md +232 -0
- package/skills/flutter-dev/references/testing.md +364 -0
- package/skills/flutter-dev/references/widget-patterns.md +233 -0
- package/skills/frontend-dev/SKILL.md +468 -0
- package/skills/frontend-dev/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/DMMono-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/skills/frontend-dev/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Gloock-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Italiana-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Jura-Light.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Jura-Medium.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Jura-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Lora-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Lora-Italic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Lora-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/Lora-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Outfit-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Tektur-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/skills/frontend-dev/references/asset-prompt-guide.md +43 -0
- package/skills/frontend-dev/references/env-setup.md +33 -0
- package/skills/frontend-dev/references/minimax-cli-reference.md +133 -0
- package/skills/frontend-dev/references/minimax-image-guide.md +65 -0
- package/skills/frontend-dev/references/minimax-music-guide.md +216 -0
- package/skills/frontend-dev/references/minimax-tts-guide.md +78 -0
- package/skills/frontend-dev/references/minimax-video-guide.md +82 -0
- package/skills/frontend-dev/references/minimax-voice-catalog.md +685 -0
- package/skills/frontend-dev/references/motion-recipes.md +407 -0
- package/skills/frontend-dev/references/troubleshooting.md +85 -0
- package/skills/frontend-dev/scripts/minimax_image.py +137 -0
- package/skills/frontend-dev/scripts/minimax_music.py +157 -0
- package/skills/frontend-dev/scripts/minimax_tts.py +127 -0
- package/skills/frontend-dev/scripts/minimax_video.py +187 -0
- package/skills/frontend-dev/templates/generator_template.js +223 -0
- package/skills/frontend-dev/templates/viewer.html +599 -0
- package/skills/frontend-ui-engineering/SKILL.md +367 -0
- package/skills/fullstack-dev/SKILL.md +819 -0
- package/skills/fullstack-dev/references/api-design.md +444 -0
- package/skills/fullstack-dev/references/auth-flow.md +165 -0
- package/skills/fullstack-dev/references/db-schema.md +706 -0
- package/skills/fullstack-dev/references/django-best-practices.md +466 -0
- package/skills/fullstack-dev/references/environment-management.md +78 -0
- package/skills/fullstack-dev/references/release-checklist.md +278 -0
- package/skills/fullstack-dev/references/technology-selection.md +254 -0
- package/skills/fullstack-dev/references/testing-strategy.md +404 -0
- package/skills/git-workflow-and-versioning/SKILL.md +446 -0
- package/skills/github-evidence-triage/SKILL.md +115 -0
- package/skills/harness-evolution/SKILL.md +59 -0
- package/skills/harness-evolution/references/activation-matrix.md +13 -0
- package/skills/harness-evolution/references/approval-policy.md +20 -0
- package/skills/harness-evolution/references/change-report-template.md +33 -0
- package/skills/harness-evolution/references/component-taxonomy.md +19 -0
- package/skills/harness-evolution/references/verdict-policy.md +13 -0
- package/skills/harness-issue-triage/SKILL.md +72 -0
- package/skills/harness-issue-triage/references/component-diagnosis.md +25 -0
- package/skills/harness-issue-triage/references/triage-report-template.md +34 -0
- package/skills/harness-optimization-audit/SKILL.md +125 -0
- package/skills/idea-refine/SKILL.md +191 -0
- package/skills/idea-refine/references/upstream/addyosmani-agent-skills/6bcfeb9dae52b11eaad23511acc165109746dbc3/LICENSE +21 -0
- package/skills/idea-refine/references/upstream/addyosmani-agent-skills/6bcfeb9dae52b11eaad23511acc165109746dbc3/NOTICE.md +9 -0
- package/skills/idea-refine/references/upstream/addyosmani-agent-skills/6bcfeb9dae52b11eaad23511acc165109746dbc3/idea-refine/SKILL.upstream.md +178 -0
- package/skills/idea-refine/references/upstream/addyosmani-agent-skills/6bcfeb9dae52b11eaad23511acc165109746dbc3/idea-refine/examples.md +238 -0
- package/skills/idea-refine/references/upstream/addyosmani-agent-skills/6bcfeb9dae52b11eaad23511acc165109746dbc3/idea-refine/frameworks.md +99 -0
- package/skills/idea-refine/references/upstream/addyosmani-agent-skills/6bcfeb9dae52b11eaad23511acc165109746dbc3/idea-refine/refinement-criteria.md +113 -0
- package/skills/idea-refine/references/upstream/addyosmani-agent-skills/6bcfeb9dae52b11eaad23511acc165109746dbc3/idea-refine/scripts/idea-refine.upstream.sh +15 -0
- package/skills/incremental-implementation/SKILL.md +252 -0
- package/skills/ios-application-dev/SKILL.md +212 -0
- package/skills/ios-application-dev/references/accessibility.md +259 -0
- package/skills/ios-application-dev/references/graphics-animation.md +350 -0
- package/skills/ios-application-dev/references/layout-system.md +199 -0
- package/skills/ios-application-dev/references/metal-shader.md +178 -0
- package/skills/ios-application-dev/references/navigation-patterns.md +175 -0
- package/skills/ios-application-dev/references/swift-coding-standards.md +757 -0
- package/skills/ios-application-dev/references/swiftui-design-guidelines.md +1167 -0
- package/skills/ios-application-dev/references/system-integration.md +401 -0
- package/skills/ios-application-dev/references/uikit-components.md +297 -0
- package/skills/local-review-gate/SKILL.md +207 -0
- package/skills/local-review-gate/references/addyosmani-code-review-rubric.md +33 -0
- package/skills/local-review-gate/references/codex-github-compatibility.md +26 -0
- package/skills/local-review-gate/references/ecc-code-review-adaptation.md +40 -0
- package/skills/local-review-gate/references/graphify-local-review.md +33 -0
- package/skills/local-review-gate/references/orchestration-adaptation.md +51 -0
- package/skills/local-review-gate/references/review-repair-lane-adaptation.md +46 -0
- package/skills/local-review-gate/references/upstream-provenance.md +61 -0
- package/skills/mature-project-pattern-research/SKILL.md +155 -0
- package/skills/mature-project-pattern-research/references/research-rubric.md +45 -0
- package/skills/minimax-docx/LICENSE +21 -0
- package/skills/minimax-docx/SKILL.md +273 -0
- package/skills/minimax-docx/assets/styles/academic_styles.xml +250 -0
- package/skills/minimax-docx/assets/styles/corporate_styles.xml +284 -0
- package/skills/minimax-docx/assets/styles/default_styles.xml +449 -0
- package/skills/minimax-docx/assets/xsd/aesthetic-rules.xsd +470 -0
- package/skills/minimax-docx/assets/xsd/business-rules.xsd +130 -0
- package/skills/minimax-docx/assets/xsd/common-types.xsd +159 -0
- package/skills/minimax-docx/assets/xsd/wml-subset.xsd +589 -0
- package/skills/minimax-docx/references/cjk_typography.md +357 -0
- package/skills/minimax-docx/references/cjk_university_template_guide.md +184 -0
- package/skills/minimax-docx/references/comments_guide.md +191 -0
- package/skills/minimax-docx/references/design_good_bad_examples.md +829 -0
- package/skills/minimax-docx/references/design_principles.md +819 -0
- package/skills/minimax-docx/references/openxml_element_order.md +308 -0
- package/skills/minimax-docx/references/openxml_encyclopedia_part1.md +4061 -0
- package/skills/minimax-docx/references/openxml_encyclopedia_part2.md +2820 -0
- package/skills/minimax-docx/references/openxml_encyclopedia_part3.md +3381 -0
- package/skills/minimax-docx/references/openxml_namespaces.md +82 -0
- package/skills/minimax-docx/references/openxml_units.md +72 -0
- package/skills/minimax-docx/references/scenario_a_create.md +284 -0
- package/skills/minimax-docx/references/scenario_b_edit_content.md +295 -0
- package/skills/minimax-docx/references/scenario_c_apply_template.md +456 -0
- package/skills/minimax-docx/references/track_changes_guide.md +200 -0
- package/skills/minimax-docx/references/troubleshooting.md +506 -0
- package/skills/minimax-docx/references/typography_guide.md +294 -0
- package/skills/minimax-docx/references/xsd_validation_guide.md +158 -0
- package/skills/minimax-docx/scripts/doc_to_docx.sh +40 -0
- package/skills/minimax-docx/scripts/docx_preview.sh +37 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Cli/MiniMaxAIDocx.Cli.csproj +19 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Cli/Program.cs +18 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/AnalyzeCommand.cs +147 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/ApplyTemplateCommand.cs +322 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/CreateCommand.cs +324 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/DiffCommand.cs +155 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/EditContentCommand.cs +487 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/FixOrderCommand.cs +108 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/MergeRunsCommand.cs +122 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/ValidateCommand.cs +107 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/MiniMaxAIDocx.Core.csproj +15 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/CommentSynchronizer.cs +169 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/ElementOrder.cs +80 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/NamespaceConstants.cs +42 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/RunMerger.cs +81 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/StyleAnalyzer.cs +81 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/TrackChangesHelper.cs +99 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/UnitConverter.cs +23 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples.cs +1832 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch1.cs +910 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch2.cs +999 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch3.cs +1048 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch4.cs +1038 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/CharacterFormattingSamples.cs +1020 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/DocumentCreationSamples.cs +1121 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/FieldAndTocSamples.cs +624 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/FootnoteAndCommentSamples.cs +675 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/HeaderFooterSamples.cs +838 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/ImageSamples.cs +917 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/ListAndNumberingSamples.cs +826 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/ParagraphFormattingSamples.cs +1199 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/StyleSystemSamples.cs +1487 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/TableSamples.cs +1163 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/TrackChangesSamples.cs +595 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Typography/CjkHelper.cs +39 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Typography/FontDefaults.cs +24 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Typography/PageSizes.cs +20 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Validation/BusinessRuleValidator.cs +224 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Validation/GateCheckValidator.cs +148 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Validation/ValidationResult.cs +23 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Validation/XsdValidator.cs +69 -0
- package/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.slnx +4 -0
- package/skills/minimax-docx/scripts/env_check.sh +196 -0
- package/skills/minimax-docx/scripts/setup.ps1 +274 -0
- package/skills/minimax-docx/scripts/setup.sh +504 -0
- package/skills/minimax-pdf/README.md +222 -0
- package/skills/minimax-pdf/SKILL.md +218 -0
- package/skills/minimax-pdf/design/design.md +381 -0
- package/skills/minimax-pdf/scripts/cover.py +1579 -0
- package/skills/minimax-pdf/scripts/fill_inspect.py +200 -0
- package/skills/minimax-pdf/scripts/fill_write.py +242 -0
- package/skills/minimax-pdf/scripts/make.sh +491 -0
- package/skills/minimax-pdf/scripts/merge.py +112 -0
- package/skills/minimax-pdf/scripts/palette.py +521 -0
- package/skills/minimax-pdf/scripts/reformat_parse.py +374 -0
- package/skills/minimax-pdf/scripts/render_body.py +1052 -0
- package/skills/minimax-pdf/scripts/render_cover.js +111 -0
- package/skills/minimax-xlsx/SKILL.md +156 -0
- package/skills/minimax-xlsx/references/create.md +691 -0
- package/skills/minimax-xlsx/references/edit.md +684 -0
- package/skills/minimax-xlsx/references/fix.md +37 -0
- package/skills/minimax-xlsx/references/format.md +768 -0
- package/skills/minimax-xlsx/references/ooxml-cheatsheet.md +231 -0
- package/skills/minimax-xlsx/references/read-analyze.md +97 -0
- package/skills/minimax-xlsx/references/validate.md +772 -0
- package/skills/minimax-xlsx/scripts/formula_check.py +422 -0
- package/skills/minimax-xlsx/scripts/libreoffice_recalc.py +248 -0
- package/skills/minimax-xlsx/scripts/shared_strings_builder.py +163 -0
- package/skills/minimax-xlsx/scripts/style_audit.py +575 -0
- package/skills/minimax-xlsx/scripts/xlsx_add_column.py +395 -0
- package/skills/minimax-xlsx/scripts/xlsx_insert_row.py +274 -0
- package/skills/minimax-xlsx/scripts/xlsx_pack.py +87 -0
- package/skills/minimax-xlsx/scripts/xlsx_reader.py +362 -0
- package/skills/minimax-xlsx/scripts/xlsx_shift_rows.py +396 -0
- package/skills/minimax-xlsx/scripts/xlsx_unpack.py +130 -0
- package/skills/minimax-xlsx/templates/minimal_xlsx/[Content_Types].xml +9 -0
- package/skills/minimax-xlsx/templates/minimal_xlsx/_rels/.rels +6 -0
- package/skills/minimax-xlsx/templates/minimal_xlsx/xl/_rels/workbook.xml.rels +19 -0
- package/skills/minimax-xlsx/templates/minimal_xlsx/xl/sharedStrings.xml +33 -0
- package/skills/minimax-xlsx/templates/minimal_xlsx/xl/styles.xml +160 -0
- package/skills/minimax-xlsx/templates/minimal_xlsx/xl/workbook.xml +30 -0
- package/skills/minimax-xlsx/templates/minimal_xlsx/xl/worksheets/sheet1.xml +70 -0
- package/skills/newsletter-generation/SKILL.md +71 -0
- package/skills/oss-release-readiness/SKILL.md +47 -0
- package/skills/parallel-subagent-dispatch/SKILL.md +58 -0
- package/skills/performance-optimization/SKILL.md +364 -0
- package/skills/planning-and-task-breakdown/SKILL.md +290 -0
- package/skills/pptx-generator/SKILL.md +275 -0
- package/skills/pptx-generator/references/design-system.md +392 -0
- package/skills/pptx-generator/references/editing.md +162 -0
- package/skills/pptx-generator/references/pitfalls.md +112 -0
- package/skills/pptx-generator/references/pptxgenjs.md +420 -0
- package/skills/pptx-generator/references/slide-types.md +413 -0
- package/skills/pr-test-analysis/SKILL.md +24 -0
- package/skills/react-native-dev/SKILL.md +180 -0
- package/skills/react-native-dev/references/animations.md +254 -0
- package/skills/react-native-dev/references/components.md +124 -0
- package/skills/react-native-dev/references/engineering.md +527 -0
- package/skills/react-native-dev/references/forms.md +300 -0
- package/skills/react-native-dev/references/native-capabilities.md +163 -0
- package/skills/react-native-dev/references/navigation.md +271 -0
- package/skills/react-native-dev/references/networking.md +346 -0
- package/skills/react-native-dev/references/performance.md +215 -0
- package/skills/react-native-dev/references/state-management.md +230 -0
- package/skills/react-native-dev/references/styling.md +117 -0
- package/skills/react-native-dev/references/testing.md +341 -0
- package/skills/requirements-grilling/SKILL.md +447 -0
- package/skills/requirements-grilling/references/ADR-FORMAT.md +46 -0
- package/skills/requirements-grilling/references/CONTEXT-FORMAT.md +41 -0
- package/skills/requirements-grilling/references/INTERVIEW-PACKET-FORMAT.md +62 -0
- package/skills/requirements-grilling/references/MIT-LICENSE-MATT-POCOCK.md +25 -0
- package/skills/requirements-grilling/references/upstream/addyosmani-agent-skills/6bcfeb9dae52b11eaad23511acc165109746dbc3/LICENSE +21 -0
- package/skills/requirements-grilling/references/upstream/addyosmani-agent-skills/6bcfeb9dae52b11eaad23511acc165109746dbc3/NOTICE.md +9 -0
- package/skills/requirements-grilling/references/upstream/addyosmani-agent-skills/6bcfeb9dae52b11eaad23511acc165109746dbc3/interview-me/SKILL.upstream.md +225 -0
- package/skills/requirements-grilling/references/upstream/mattpocock-skills/9603c1cc8118d08bc1b3bf34cf714f62178dea3b/LICENSE +21 -0
- package/skills/requirements-grilling/references/upstream/mattpocock-skills/9603c1cc8118d08bc1b3bf34cf714f62178dea3b/NOTICE.md +12 -0
- package/skills/requirements-grilling/references/upstream/mattpocock-skills/9603c1cc8118d08bc1b3bf34cf714f62178dea3b/batch-grill-me/SKILL.upstream.md +15 -0
- package/skills/requirements-grilling/references/upstream/mattpocock-skills/9603c1cc8118d08bc1b3bf34cf714f62178dea3b/grill-me/SKILL.upstream.md +7 -0
- package/skills/requirements-grilling/references/upstream/mattpocock-skills/9603c1cc8118d08bc1b3bf34cf714f62178dea3b/grilling/SKILL.upstream.md +12 -0
- package/skills/review-pipeline/SKILL.md +38 -0
- package/skills/rose-memory/SKILL.md +210 -0
- package/skills/rose-memory/references/README.md +48 -0
- package/skills/rose-memory/references/memory_cli.py +2384 -0
- package/skills/rose-memory/references/schema.sql +315 -0
- package/skills/security-and-hardening/SKILL.md +369 -0
- package/skills/session-handoff/SKILL.md +88 -0
- package/skills/session-handoff/references/upstream/mattpocock-skills/391a2701dd948f94f56a39f7533f8eea9a859c87/LICENSE +21 -0
- package/skills/session-handoff/references/upstream/mattpocock-skills/391a2701dd948f94f56a39f7533f8eea9a859c87/NOTICE.md +9 -0
- package/skills/session-handoff/references/upstream/mattpocock-skills/391a2701dd948f94f56a39f7533f8eea9a859c87/productivity/handoff/SKILL.upstream.md +16 -0
- package/skills/session-handoff/scripts/session_handoff.py +764 -0
- package/skills/shader-dev/SKILL.md +316 -0
- package/skills/shader-dev/reference/ambient-occlusion.md +382 -0
- package/skills/shader-dev/reference/analytic-ray-tracing.md +651 -0
- package/skills/shader-dev/reference/anti-aliasing.md +71 -0
- package/skills/shader-dev/reference/atmospheric-scattering.md +571 -0
- package/skills/shader-dev/reference/camera-effects.md +80 -0
- package/skills/shader-dev/reference/cellular-automata.md +635 -0
- package/skills/shader-dev/reference/color-palette.md +481 -0
- package/skills/shader-dev/reference/csg-boolean-operations.md +466 -0
- package/skills/shader-dev/reference/domain-repetition.md +436 -0
- package/skills/shader-dev/reference/domain-warping.md +419 -0
- package/skills/shader-dev/reference/fluid-simulation.md +425 -0
- package/skills/shader-dev/reference/fractal-rendering.md +525 -0
- package/skills/shader-dev/reference/lighting-model.md +639 -0
- package/skills/shader-dev/reference/matrix-transform.md +535 -0
- package/skills/shader-dev/reference/multipass-buffer.md +571 -0
- package/skills/shader-dev/reference/normal-estimation.md +418 -0
- package/skills/shader-dev/reference/particle-system.md +589 -0
- package/skills/shader-dev/reference/path-tracing-gi.md +602 -0
- package/skills/shader-dev/reference/polar-uv-manipulation.md +521 -0
- package/skills/shader-dev/reference/post-processing.md +375 -0
- package/skills/shader-dev/reference/procedural-2d-pattern.md +439 -0
- package/skills/shader-dev/reference/procedural-noise.md +551 -0
- package/skills/shader-dev/reference/ray-marching.md +396 -0
- package/skills/shader-dev/reference/sdf-2d.md +724 -0
- package/skills/shader-dev/reference/sdf-3d.md +805 -0
- package/skills/shader-dev/reference/sdf-tricks.md +63 -0
- package/skills/shader-dev/reference/shadow-techniques.md +476 -0
- package/skills/shader-dev/reference/simulation-physics.md +644 -0
- package/skills/shader-dev/reference/sound-synthesis.md +578 -0
- package/skills/shader-dev/reference/terrain-rendering.md +839 -0
- package/skills/shader-dev/reference/texture-mapping-advanced.md +87 -0
- package/skills/shader-dev/reference/texture-sampling.md +553 -0
- package/skills/shader-dev/reference/volumetric-rendering.md +608 -0
- package/skills/shader-dev/reference/voronoi-cellular-noise.md +486 -0
- package/skills/shader-dev/reference/voxel-rendering.md +701 -0
- package/skills/shader-dev/reference/water-ocean.md +445 -0
- package/skills/shader-dev/reference/webgl-pitfalls.md +41 -0
- package/skills/shader-dev/techniques/ambient-occlusion.md +364 -0
- package/skills/shader-dev/techniques/analytic-ray-tracing.md +542 -0
- package/skills/shader-dev/techniques/anti-aliasing.md +124 -0
- package/skills/shader-dev/techniques/atmospheric-scattering.md +522 -0
- package/skills/shader-dev/techniques/camera-effects.md +115 -0
- package/skills/shader-dev/techniques/cellular-automata.md +531 -0
- package/skills/shader-dev/techniques/color-palette.md +380 -0
- package/skills/shader-dev/techniques/csg-boolean-operations.md +491 -0
- package/skills/shader-dev/techniques/domain-repetition.md +333 -0
- package/skills/shader-dev/techniques/domain-warping.md +414 -0
- package/skills/shader-dev/techniques/fluid-simulation.md +1175 -0
- package/skills/shader-dev/techniques/fractal-rendering.md +436 -0
- package/skills/shader-dev/techniques/lighting-model.md +527 -0
- package/skills/shader-dev/techniques/matrix-transform.md +455 -0
- package/skills/shader-dev/techniques/multipass-buffer.md +922 -0
- package/skills/shader-dev/techniques/normal-estimation.md +318 -0
- package/skills/shader-dev/techniques/particle-system.md +1203 -0
- package/skills/shader-dev/techniques/path-tracing-gi.md +623 -0
- package/skills/shader-dev/techniques/polar-uv-manipulation.md +373 -0
- package/skills/shader-dev/techniques/post-processing.md +788 -0
- package/skills/shader-dev/techniques/procedural-2d-pattern.md +346 -0
- package/skills/shader-dev/techniques/procedural-noise.md +554 -0
- package/skills/shader-dev/techniques/ray-marching.md +467 -0
- package/skills/shader-dev/techniques/sdf-2d.md +631 -0
- package/skills/shader-dev/techniques/sdf-3d.md +589 -0
- package/skills/shader-dev/techniques/sdf-tricks.md +100 -0
- package/skills/shader-dev/techniques/shadow-techniques.md +776 -0
- package/skills/shader-dev/techniques/simulation-physics.md +1542 -0
- package/skills/shader-dev/techniques/sound-synthesis.md +490 -0
- package/skills/shader-dev/techniques/terrain-rendering.md +408 -0
- package/skills/shader-dev/techniques/texture-mapping-advanced.md +121 -0
- package/skills/shader-dev/techniques/texture-sampling.md +382 -0
- package/skills/shader-dev/techniques/volumetric-rendering.md +375 -0
- package/skills/shader-dev/techniques/voronoi-cellular-noise.md +458 -0
- package/skills/shader-dev/techniques/voxel-rendering.md +985 -0
- package/skills/shader-dev/techniques/water-ocean.md +490 -0
- package/skills/shader-dev/techniques/webgl-pitfalls.md +170 -0
- package/skills/shipping-and-launch/SKILL.md +334 -0
- package/skills/silent-failure-hunting/SKILL.md +24 -0
- package/skills/source-driven-development/SKILL.md +223 -0
- package/skills/spec-driven-development/SKILL.md +235 -0
- package/skills/spec-driven-development/references/upstream/addyosmani-agent-skills/6bcfeb9dae52b11eaad23511acc165109746dbc3/LICENSE +21 -0
- package/skills/spec-driven-development/references/upstream/addyosmani-agent-skills/6bcfeb9dae52b11eaad23511acc165109746dbc3/NOTICE.md +9 -0
- package/skills/spec-driven-development/references/upstream/addyosmani-agent-skills/6bcfeb9dae52b11eaad23511acc165109746dbc3/spec-driven-development/SKILL.upstream.md +206 -0
- package/skills/strategy-stress-test/SKILL.md +185 -0
- package/skills/systematic-literature-review/SKILL.md +77 -0
- package/skills/test-document-generator/SKILL.md +152 -0
- package/skills/test-document-generator/references/test-document-template.md +45 -0
- package/skills/test-driven-development/SKILL.md +399 -0
- package/skills/write-skills/GLOSSARY.md +113 -0
- package/skills/write-skills/SKILL.md +133 -0
- package/skills/write-skills/references/upstream/mattpocock-skills/391a2701dd948f94f56a39f7533f8eea9a859c87/LICENSE +21 -0
- package/skills/write-skills/references/upstream/mattpocock-skills/391a2701dd948f94f56a39f7533f8eea9a859c87/NOTICE.md +9 -0
- package/skills/write-skills/references/upstream/mattpocock-skills/391a2701dd948f94f56a39f7533f8eea9a859c87/productivity/writing-great-skills/GLOSSARY.md +201 -0
- package/skills/write-skills/references/upstream/mattpocock-skills/391a2701dd948f94f56a39f7533f8eea9a859c87/productivity/writing-great-skills/SKILL.upstream.md +83 -0
- package/src/runtime/child-guard.ts +70 -0
- package/src/runtime/conflicts.ts +25 -0
- package/src/runtime/contracts.ts +9 -0
- package/src/runtime/doctor.ts +134 -0
- package/src/runtime/global-resources.ts +152 -0
- package/src/runtime/index.ts +23 -0
- package/src/runtime/lifecycle.ts +19 -0
- package/src/runtime/native-integrations.ts +44 -0
- package/src/runtime/path-boundaries.ts +69 -0
- package/src/runtime/registry.ts +213 -0
- package/src/runtime/roles.ts +64 -0
- package/src/runtime/rose-context.ts +24 -0
- package/src/runtime/subagents.ts +426 -0
- package/templates/APPEND_SYSTEM.md +12 -0
- package/upstream/aili-workflows.lock.json +3226 -0
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: git-workflow-and-versioning
|
|
3
|
+
description: Handle an explicit Git intent such as branch/worktree setup, commit organization, history archaeology, conflict resolution, PR preparation, or versioning; do not trigger as a process skill for every code or file change.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Git Workflow and Versioning
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Git is your safety net. Treat commits as save points, branches as sandboxes, and history as documentation. With AI agents generating code at high speed, disciplined version control is the mechanism that keeps changes manageable, reviewable, and reversible.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
Use when the user asks for a Git operation or artifact, or when a concrete branch/worktree/conflict/history decision is the current primary task. Ordinary implementation follows the canonical global Git safety rules directly without loading this workflow.
|
|
15
|
+
|
|
16
|
+
Near misses: checking status/diff as routine evidence, editing several files, making a savepoint note, or finishing implementation does not select this skill by itself.
|
|
17
|
+
|
|
18
|
+
ROSE/`aili-delivery-flow` owns lifecycle state, safe-local execution, approvals, and verification. This skill owns one bounded Git loop and returns `complete`, `need-user`, `need-evidence`, `material-delta`, `blocked`, or `Unverified`. It does not invoke planning, implementation, review, release, or another process skill. Exact commit/push/merge/rebase/history/worktree/A33 approvals and canonical claim-matched verification override generic advice below.
|
|
19
|
+
|
|
20
|
+
## Branch and Savepoint Policy
|
|
21
|
+
|
|
22
|
+
For any task that writes files, do not work directly on `main`, `master`, or `trunk`. Treat protected trunks as integration targets, not AI editing areas.
|
|
23
|
+
|
|
24
|
+
Before editing:
|
|
25
|
+
1. Run `git status --short --branch`.
|
|
26
|
+
2. Identify the current branch.
|
|
27
|
+
3. If the current branch is `main`, `master`, or `trunk`, create and switch to a task branch before editing.
|
|
28
|
+
4. If the current branch is a non-main branch but is unrelated to the current task, create and switch to a new task branch.
|
|
29
|
+
5. If the working tree contains unrelated uncommitted changes, stop and ask the user how to proceed before writing files. Offer: continue in the current working tree and accept mixing risk, create/use a separate worktree, or pause while the user commits/stashes/cleans the existing changes. Do not choose a separate worktree automatically unless the user already approved that workflow in the current task.
|
|
30
|
+
|
|
31
|
+
🛑 Hard gates:
|
|
32
|
+
|
|
33
|
+
| Situation | Required action |
|
|
34
|
+
|---|---|
|
|
35
|
+
| On `main`, `master`, or `trunk` for a write task | Do not edit until on an approved task branch/worktree. |
|
|
36
|
+
| User/task forbids commits | Do not create savepoint commits; still inspect diff and verify. |
|
|
37
|
+
| Push, merge, PR creation, branch deletion, or worktree removal requested | Require explicit user approval for that exact action. |
|
|
38
|
+
| Force-push, reset hard, clean, skipped hooks, or shared-history rewrite | Require explicit approval and report safer alternatives first. |
|
|
39
|
+
| Unrelated dirty workspace | Stop and ask; do not auto-stash, auto-clean, or auto-worktree. |
|
|
40
|
+
|
|
41
|
+
Branch naming:
|
|
42
|
+
- `feature/<short-slug>` for features
|
|
43
|
+
- `fix/<short-slug>` for bug fixes
|
|
44
|
+
- `refactor/<short-slug>` for refactors
|
|
45
|
+
- `docs/<short-slug>` for documentation
|
|
46
|
+
- `chore/<short-slug>` for tooling/configuration
|
|
47
|
+
|
|
48
|
+
Small changes:
|
|
49
|
+
- Use a task branch in the current working tree.
|
|
50
|
+
- Create the branch with `git switch -c <type>/<task-slug>` so the working tree actually moves to the new branch.
|
|
51
|
+
- Create task-scoped savepoint commits only when current task/project rules explicitly allow verified commits; otherwise keep a reviewed savepoint report.
|
|
52
|
+
|
|
53
|
+
Large or risky changes:
|
|
54
|
+
- Use a task branch in a separate git worktree.
|
|
55
|
+
- This includes multi-file refactors, migrations, experiments, parallel subagent work, multi-session work, or any request to avoid polluting the current branch. For dirty workspaces with unrelated changes, ask the user first and follow their choice.
|
|
56
|
+
- Prefer a sibling directory: `../<repo>-<task-slug>`.
|
|
57
|
+
- Use project-local `.worktrees/<task-slug>` only if `.worktrees/` is ignored in that downstream project; do not add `.worktrees/` to this workflow repository just because another project uses worktrees.
|
|
58
|
+
- Create the isolated branch and checkout together with `git worktree add -b <type>/<task-slug> ../<repo>-<task-slug> <base-branch>`.
|
|
59
|
+
|
|
60
|
+
Savepoint commits:
|
|
61
|
+
- After each complete, verified increment, create a task-scoped savepoint commit only when current task/project rules explicitly allow verified commits.
|
|
62
|
+
- A commit should represent one logical change.
|
|
63
|
+
- Run the most relevant focused verification before committing.
|
|
64
|
+
- Inspect `git diff` and `git diff --staged` before committing.
|
|
65
|
+
- Do not commit secrets, unrelated edits, generated output, or broken intermediate states.
|
|
66
|
+
- `wip:` checkpoints are allowed only when the current task explicitly approves a private unverified checkpoint on a private task branch; they must not be merged as-is.
|
|
67
|
+
|
|
68
|
+
Task-end branch/worktree hygiene for non-trivial changes:
|
|
69
|
+
1. Run `git status --short --branch` in the target repository and inspect the relevant diff.
|
|
70
|
+
2. Classify dirty paths as task-scoped, unrelated/pre-existing, generated/ignored, scratch, or unknown.
|
|
71
|
+
3. Remove only safe task-owned, non-user-visible scratch artifacts created by the current task.
|
|
72
|
+
4. Propose cleanup for remaining residue, and ask explicit approval before push, destructive clean/reset, branch deletion, worktree removal, OpenSpec archive, stashing unrelated changes, or deleting user-visible artifacts.
|
|
73
|
+
5. If savepoint commits are not explicitly allowed by current task/project rules, ask once with the cleanup package instead of committing proactively.
|
|
74
|
+
|
|
75
|
+
Never:
|
|
76
|
+
- commit on `main`, `master`, or `trunk`
|
|
77
|
+
- push without explicit user approval
|
|
78
|
+
- merge without explicit user approval
|
|
79
|
+
- rebase shared history without explicit user approval
|
|
80
|
+
- run destructive git commands without explicit user approval
|
|
81
|
+
- delete branches, remove worktrees, archive OpenSpec changes, stash unrelated changes, or delete user-visible artifacts without explicit approval
|
|
82
|
+
- stage unrelated files or unreviewed generated output
|
|
83
|
+
|
|
84
|
+
## Commit Architecture Mode
|
|
85
|
+
|
|
86
|
+
Use this mode when organizing unstaged or staged changes, planning commits, drafting commit messages, or preparing a PR.
|
|
87
|
+
|
|
88
|
+
Rules:
|
|
89
|
+
|
|
90
|
+
- Inspect `git status --short --branch`, `git diff`, and `git diff --staged` before proposing commits.
|
|
91
|
+
- Group commits by responsibility, not by file count alone.
|
|
92
|
+
- Keep these concerns separate when possible:
|
|
93
|
+
- agent prompt changes
|
|
94
|
+
- skill workflow changes
|
|
95
|
+
- script/install changes
|
|
96
|
+
- docs/readme changes
|
|
97
|
+
- generated artifacts
|
|
98
|
+
- test files
|
|
99
|
+
- Generated interview packets and generated test plans should not be mixed with unrelated prompt or script changes unless the user explicitly wants one combined commit.
|
|
100
|
+
- Propose commit groups first; only commit when the user explicitly asks or task rules explicitly allow savepoint commits.
|
|
101
|
+
- Match the repository's existing commit language and style after inspecting recent commits.
|
|
102
|
+
|
|
103
|
+
## History Archaeology Mode
|
|
104
|
+
|
|
105
|
+
Use this mode when the user asks:
|
|
106
|
+
|
|
107
|
+
- who changed this
|
|
108
|
+
- when this behavior was introduced
|
|
109
|
+
- which commit added or removed a file, symbol, command, route, or rule
|
|
110
|
+
- whether a bug is already fixed in history
|
|
111
|
+
|
|
112
|
+
Workflow:
|
|
113
|
+
|
|
114
|
+
1. Use `git log`, `git show`, `git blame`, and targeted path history.
|
|
115
|
+
2. Report commit SHA, date, author if available, files touched, and why the commit is relevant.
|
|
116
|
+
3. Do not infer intent from commit titles alone; inspect the diff.
|
|
117
|
+
4. Do not modify files.
|
|
118
|
+
|
|
119
|
+
## PR Preparation Mode
|
|
120
|
+
|
|
121
|
+
Use this mode when preparing a change for review or PR.
|
|
122
|
+
|
|
123
|
+
Rules:
|
|
124
|
+
|
|
125
|
+
- Prefer isolated worktree for risky or multi-file changes.
|
|
126
|
+
- Validate locally before recommending push.
|
|
127
|
+
- Draft PR title and body only after inspecting the final diff.
|
|
128
|
+
- Do not push, create PR, merge, delete branch, or clean up worktree without explicit user approval.
|
|
129
|
+
- Return any concrete unresolved review risk to ROSE; do not automatically invoke a review pipeline because a PR is being prepared.
|
|
130
|
+
|
|
131
|
+
Decision matrix:
|
|
132
|
+
|
|
133
|
+
| Task type | Branch | Worktree | Savepoint commit |
|
|
134
|
+
|---|---:|---:|---:|
|
|
135
|
+
| Read-only explanation or review | No | No | No |
|
|
136
|
+
| Small docs change | Required | Usually no | Only when current task/project rules allow |
|
|
137
|
+
| Small code fix | Required | Usually no | Only when current task/project rules allow |
|
|
138
|
+
| Multi-file feature | Required | Recommended | Per complete verified slice when allowed |
|
|
139
|
+
| Large refactor or migration | Required | Required | Per complete verified phase when allowed |
|
|
140
|
+
| Parallel subagent or multi-approach exploration | Required | Required | Independently per approach when allowed |
|
|
141
|
+
| Current workspace has unrelated changes | Required | Required | Avoid mixing existing edits; ask first |
|
|
142
|
+
| User says not to pollute the current branch | Required | Usually required | Only in isolated branch/worktree and when allowed |
|
|
143
|
+
|
|
144
|
+
## Core Principles
|
|
145
|
+
|
|
146
|
+
### Trunk-Based Development (Recommended)
|
|
147
|
+
|
|
148
|
+
Keep `main` always deployable. Work in short-lived feature branches that merge back within 1-3 days. Long-lived development branches are hidden costs — they diverge, create merge conflicts, and delay integration. DORA research consistently shows trunk-based development correlates with high-performing engineering teams.
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
main ──●──●──●──●──●──●──●──●──●── (always deployable)
|
|
152
|
+
╲ ╱ ╲ ╱
|
|
153
|
+
●──●─╱ ●──╱ ← short-lived feature branches (1-3 days)
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
This is the recommended default. Teams using gitflow or long-lived branches can adapt the principles (atomic commits, small changes, descriptive messages) to their branching model — the commit discipline matters more than the specific branching strategy.
|
|
157
|
+
|
|
158
|
+
- **Dev branches are costs.** Every day a branch lives, it accumulates merge risk.
|
|
159
|
+
- **Release branches are acceptable.** When you need to stabilize a release while main moves forward.
|
|
160
|
+
- **Feature flags > long branches.** Prefer deploying incomplete work behind flags rather than keeping it on a branch for weeks.
|
|
161
|
+
|
|
162
|
+
### 1. Use Savepoints When Allowed
|
|
163
|
+
|
|
164
|
+
When current task/project rules explicitly allow task-scoped verified commits, each successful increment can get its own savepoint commit. Otherwise, record the verified increment in the cleanup package and ask once instead of committing proactively. Don't accumulate large unreviewed changes.
|
|
165
|
+
|
|
166
|
+
```
|
|
167
|
+
Work pattern:
|
|
168
|
+
Implement slice → Test → Verify → Commit if allowed / report savepoint → Next slice
|
|
169
|
+
|
|
170
|
+
Not this:
|
|
171
|
+
Implement everything → Hope it works → Giant commit
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Allowed commits are save points. If the next change breaks something, use an approved recovery path to return to the last known-good state. When commits are not allowed, preserve the verified state in the cleanup package and ask for the next git action.
|
|
175
|
+
|
|
176
|
+
### 2. Atomic Commits
|
|
177
|
+
|
|
178
|
+
Each commit does one logical thing:
|
|
179
|
+
|
|
180
|
+
```
|
|
181
|
+
# Good: Each commit is self-contained
|
|
182
|
+
git log --oneline
|
|
183
|
+
a1b2c3d Add task creation endpoint with validation
|
|
184
|
+
d4e5f6g Add task creation form component
|
|
185
|
+
h7i8j9k Connect form to API and add loading state
|
|
186
|
+
m1n2o3p Add task creation tests (unit + integration)
|
|
187
|
+
|
|
188
|
+
# Bad: Everything mixed together
|
|
189
|
+
git log --oneline
|
|
190
|
+
x1y2z3a Add task feature, fix sidebar, update deps, refactor utils
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### 3. Descriptive Messages
|
|
194
|
+
|
|
195
|
+
Commit messages explain the *why*, not just the *what*:
|
|
196
|
+
|
|
197
|
+
```
|
|
198
|
+
# Good: Explains intent
|
|
199
|
+
feat: add email validation to registration endpoint
|
|
200
|
+
|
|
201
|
+
Prevents invalid email formats from reaching the database.
|
|
202
|
+
Uses Zod schema validation at the route handler level,
|
|
203
|
+
consistent with existing validation patterns in auth.ts.
|
|
204
|
+
|
|
205
|
+
# Bad: Describes what's obvious from the diff
|
|
206
|
+
update auth.ts
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
**Format:**
|
|
210
|
+
```
|
|
211
|
+
<type>: <short description>
|
|
212
|
+
|
|
213
|
+
<optional body explaining why, not what>
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
**Types:**
|
|
217
|
+
- `feat` — New feature
|
|
218
|
+
- `fix` — Bug fix
|
|
219
|
+
- `refactor` — Code change that neither fixes a bug nor adds a feature
|
|
220
|
+
- `test` — Adding or updating tests
|
|
221
|
+
- `docs` — Documentation only
|
|
222
|
+
- `chore` — Tooling, dependencies, config
|
|
223
|
+
|
|
224
|
+
### 4. Keep Concerns Separate
|
|
225
|
+
|
|
226
|
+
Don't combine formatting changes with behavior changes. Don't combine refactors with features. Each type of change should be a separate commit — and ideally a separate PR:
|
|
227
|
+
|
|
228
|
+
```
|
|
229
|
+
# Good: Separate concerns
|
|
230
|
+
git commit -m "refactor: extract validation logic to shared utility"
|
|
231
|
+
git commit -m "feat: add phone number validation to registration"
|
|
232
|
+
|
|
233
|
+
# Bad: Mixed concerns
|
|
234
|
+
git commit -m "refactor validation and add phone number field"
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
**Separate refactoring from feature work.** A refactoring change and a feature change are two different changes — submit them separately. This makes each change easier to review, revert, and understand in history. Small cleanups (renaming a variable) can be included in a feature commit at reviewer discretion.
|
|
238
|
+
|
|
239
|
+
### 5. Size Your Changes
|
|
240
|
+
|
|
241
|
+
Prefer coherent, reviewable commits over artificial line-count targets. Changes over ~1000 lines should be split by behavior, risk, or ownership. See the splitting strategies in `code-review-and-quality` for how to break down large changes.
|
|
242
|
+
|
|
243
|
+
```
|
|
244
|
+
Focused complete change → Easy to review, easy to revert
|
|
245
|
+
Single logical change → Acceptable when scoped and verified
|
|
246
|
+
Oversized mixed change → Split into smaller changes
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
## Branching Strategy
|
|
250
|
+
|
|
251
|
+
Branching is mandatory for write tasks. `git branch <name>` only creates a branch head; it does not switch the working tree. Use `git switch -c <branch>` for small changes, or `git worktree add -b <branch> <path> <base>` for isolated large work.
|
|
252
|
+
|
|
253
|
+
### Feature Branches
|
|
254
|
+
|
|
255
|
+
```
|
|
256
|
+
main (always deployable)
|
|
257
|
+
│
|
|
258
|
+
├── feature/task-creation ← One feature per branch
|
|
259
|
+
├── feature/user-settings ← Parallel work
|
|
260
|
+
└── fix/duplicate-tasks ← Bug fixes
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
- Branch from `main` (or the team's default branch) before editing
|
|
264
|
+
- Keep branches short-lived (merge within 1-3 days) — long-lived branches are hidden costs
|
|
265
|
+
- Delete branches after merge only with explicit user approval
|
|
266
|
+
- Prefer feature flags over long-lived branches for incomplete features
|
|
267
|
+
|
|
268
|
+
### Branch Naming
|
|
269
|
+
|
|
270
|
+
```
|
|
271
|
+
feature/<short-description> → feature/task-creation
|
|
272
|
+
fix/<short-description> → fix/duplicate-tasks
|
|
273
|
+
docs/<short-description> → docs/api-examples
|
|
274
|
+
chore/<short-description> → chore/update-deps
|
|
275
|
+
refactor/<short-description> → refactor/auth-module
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
## Working with Worktrees
|
|
279
|
+
|
|
280
|
+
### A33 session-root attached repositories
|
|
281
|
+
|
|
282
|
+
When the active contract selects `a33-attached-shared-trust-domain`, this section overrides the generic sibling-worktree examples below.
|
|
283
|
+
|
|
284
|
+
- The Git repository where the user started OpenCode is the host. Do not rank, move, broadly scan for, or auto-select another host.
|
|
285
|
+
- Every attachment destination is exactly `<session-root>/.worktrees/<repo_key>/<worktree_key>`. Both keys must match `^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$`; reserved/path-like/control values and all path, key, branch, or worktree collisions block without guessing, suffixing, forcing, `-B`, orphan creation, remote guessing, or implicit ref selection.
|
|
286
|
+
- Require the exact prospective destination ignored through root `/.worktrees/`, with no re-inclusion or tracked destination. Missing ignore admission blocks and requires an explicit user-owned host ignore change.
|
|
287
|
+
- Reject tracked `.gitmodules`, mode-160000 gitlinks, source/superproject relations, malformed submodule topology, and ambiguous symlink/junction/mount/path escape.
|
|
288
|
+
- PREPARE describes operations only. Every add binds exact source/destination/keys/branch/base-ref, `branch_mode:existing|create`, source `reflog_policy:enabled|disabled`, operation class, expiry, and accepted trusted-code risk under one fresh approval. Every later non-force remove requires a distinct fresh approval after complete deletion inventory.
|
|
289
|
+
- Existing branch mode creates no ref/reflog. Create mode creates the exact branch ref and creates the exact branch reflog only when the bound source policy is enabled. Remove preserves branch ref/reflog. Common-dir identity and every unrelated/prunable entry/ref/reflog/config/hook/worktree record remain unchanged.
|
|
290
|
+
- Only ROSE owns exact add/non-force-remove. Managed subagents remain external-denied and non-delegating. Prune, move, repair, lock/unlock, force removal, clean/reset, merge/rebase, commit/push, branch deletion, auto-integration, and real-repository cleanup are excluded unless separately authorized by another explicit contract.
|
|
291
|
+
- Host and attachments are one trusted same-owner/same-sensitivity mutually readable/writable domain. Path/cwd is coordination, not hard isolation. Trusted hooks/config/filters/tests can run with user privileges and ambient network; there is no sandbox, DLP, network isolation, universal TOCTOU, or arbitrary-process-containment guarantee. Different repositories need not share a common-dir.
|
|
292
|
+
|
|
293
|
+
Record exact no-digest `A33Identity` host/source/target objects and compare typed fields, sorted canonical repository-relative file arrays, and explicit before/after admin deltas directly. Re-read target rules at each operation/dispatch boundary; they may narrow but never broaden, and same-level conflicts block. One lane targets one declared repository and writes artifacts there. All declared result fields are present; JSON `null` represents absent/inapplicable data, except observed REMOVE approval `trusted_code_risk:not_applicable`.
|
|
294
|
+
|
|
295
|
+
For parallel AI agent work, use git worktrees to run multiple branches simultaneously:
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
# Create and checkout feature branches in separate worktrees
|
|
299
|
+
git worktree add -b feature/task-creation ../project-task-creation main
|
|
300
|
+
git worktree add -b feature/user-settings ../project-user-settings main
|
|
301
|
+
|
|
302
|
+
# Each worktree is a separate directory with its own branch
|
|
303
|
+
# Agents can work in parallel without interfering
|
|
304
|
+
ls ../
|
|
305
|
+
project/ ← main branch
|
|
306
|
+
project-task-creation/ ← task-creation branch
|
|
307
|
+
project-user-settings/ ← user-settings branch
|
|
308
|
+
|
|
309
|
+
# After approved merge, clean up the worktree only with user approval
|
|
310
|
+
git worktree remove ../project-task-creation
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
Benefits:
|
|
314
|
+
- Multiple agents can work on different features simultaneously
|
|
315
|
+
- No branch switching needed (each directory has its own branch)
|
|
316
|
+
- If one experiment fails, abandon it until cleanup is approved; do not remove worktrees without approval
|
|
317
|
+
- Working directories are separated until explicitly merged; this is not process, permission, or hard repository isolation
|
|
318
|
+
|
|
319
|
+
## The Save Point Pattern
|
|
320
|
+
|
|
321
|
+
```
|
|
322
|
+
Agent starts work
|
|
323
|
+
│
|
|
324
|
+
├── Makes a change
|
|
325
|
+
│ ├── Test passes? → Commit if allowed; otherwise note in cleanup package → Continue
|
|
326
|
+
│ └── Test fails? → Revert to last commit → Investigate
|
|
327
|
+
│
|
|
328
|
+
├── Makes another change
|
|
329
|
+
│ ├── Test passes? → Commit if allowed; otherwise note in cleanup package → Continue
|
|
330
|
+
│ └── Test fails? → Revert to last commit → Investigate
|
|
331
|
+
│
|
|
332
|
+
└── Feature complete → All commits form a clean history
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
This pattern means you never lose more than one increment of work. If an agent goes off the rails, return to the last verified save point using an approved recovery path; destructive commands such as `git reset --hard` still require explicit user approval.
|
|
336
|
+
|
|
337
|
+
## Change Summaries
|
|
338
|
+
|
|
339
|
+
After any modification, provide a structured summary. This makes review easier, documents scope discipline, and surfaces unintended changes:
|
|
340
|
+
|
|
341
|
+
```
|
|
342
|
+
CHANGES MADE:
|
|
343
|
+
- src/routes/tasks.ts: Added validation middleware to POST endpoint
|
|
344
|
+
- src/lib/validation.ts: Added TaskCreateSchema using Zod
|
|
345
|
+
|
|
346
|
+
THINGS I DIDN'T TOUCH (intentionally):
|
|
347
|
+
- src/routes/auth.ts: Has similar validation gap but out of scope
|
|
348
|
+
- src/middleware/error.ts: Error format could be improved (separate task)
|
|
349
|
+
|
|
350
|
+
POTENTIAL CONCERNS:
|
|
351
|
+
- The Zod schema is strict — rejects extra fields. Confirm this is desired.
|
|
352
|
+
- Added zod as a dependency (72KB gzipped) — already in package.json
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
This pattern catches wrong assumptions early and gives reviewers a clear map of the change. The "DIDN'T TOUCH" section is especially important — it shows you exercised scope discipline and didn't go on an unsolicited renovation.
|
|
356
|
+
|
|
357
|
+
## Pre-Commit Hygiene
|
|
358
|
+
|
|
359
|
+
Before every commit:
|
|
360
|
+
|
|
361
|
+
```bash
|
|
362
|
+
# 1. Check what you're about to commit
|
|
363
|
+
git diff --staged
|
|
364
|
+
|
|
365
|
+
# 2. Ensure no secrets
|
|
366
|
+
git diff --staged | grep -i "password\|secret\|api_key\|token"
|
|
367
|
+
|
|
368
|
+
# 3. Discover and run the most relevant focused project command
|
|
369
|
+
# Prefer AGENTS.md, README, Makefile, package scripts, pyproject, Cargo.toml,
|
|
370
|
+
# or CI config over generic npm examples.
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
If the project documents exact commands, use those commands. If no command is documented, state the discovery path and run the most relevant focused verification available before committing.
|
|
374
|
+
|
|
375
|
+
Automate checks with project-approved hooks only; do not add hook tooling or dependencies unless the task explicitly asks:
|
|
376
|
+
|
|
377
|
+
```json
|
|
378
|
+
// package.json (using lint-staged + husky)
|
|
379
|
+
{
|
|
380
|
+
"lint-staged": {
|
|
381
|
+
"*.{ts,tsx}": ["eslint --fix", "prettier --write"],
|
|
382
|
+
"*.{json,md}": ["prettier --write"]
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
## Handling Generated Files
|
|
388
|
+
|
|
389
|
+
- **Commit generated files** only if the project expects them (e.g., `package-lock.json`, Prisma migrations)
|
|
390
|
+
- **Don't commit** build output (`dist/`, `.next/`), environment files (`.env`), or IDE config (`.vscode/settings.json` unless shared)
|
|
391
|
+
- **Have a `.gitignore`** that covers: `node_modules/`, `dist/`, `.env`, `.env.local`, `*.pem`
|
|
392
|
+
|
|
393
|
+
## Using Git for Debugging
|
|
394
|
+
|
|
395
|
+
```bash
|
|
396
|
+
# Find which commit introduced a bug
|
|
397
|
+
git bisect start
|
|
398
|
+
git bisect bad HEAD
|
|
399
|
+
git bisect good <known-good-commit>
|
|
400
|
+
# Git checkouts midpoints; run your test at each to narrow down
|
|
401
|
+
|
|
402
|
+
# View what changed recently
|
|
403
|
+
git log --oneline -20
|
|
404
|
+
git diff HEAD~5..HEAD -- src/
|
|
405
|
+
|
|
406
|
+
# Find who last changed a specific line
|
|
407
|
+
git blame src/services/task.ts
|
|
408
|
+
|
|
409
|
+
# Search commit messages for a keyword
|
|
410
|
+
git log --grep="validation" --oneline
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
## Common Rationalizations
|
|
414
|
+
|
|
415
|
+
| Rationalization | Reality |
|
|
416
|
+
|---|---|
|
|
417
|
+
| "I'll commit when the feature is done" | One giant commit is impossible to review, debug, or revert. Create verified slice savepoints when allowed; otherwise ask once with the cleanup package. |
|
|
418
|
+
| "The message doesn't matter" | Messages are documentation. Future you (and future agents) will need to understand what changed and why. |
|
|
419
|
+
| "I'll squash it all later" | Squashing destroys the development narrative. Prefer clean incremental commits from the start. |
|
|
420
|
+
| "Branches add overhead" | Short-lived branches are free and prevent conflicting work from colliding. Long-lived branches are the problem — merge within 1-3 days. |
|
|
421
|
+
| "I'll split this change later" | Large changes are harder to review, riskier to deploy, and harder to revert. Split before submitting, not after. |
|
|
422
|
+
| "I don't need a .gitignore" | Until `.env` with production secrets gets committed. Set it up immediately. |
|
|
423
|
+
|
|
424
|
+
## Red Flags
|
|
425
|
+
|
|
426
|
+
- Large uncommitted changes accumulating
|
|
427
|
+
- Editing directly on `main`, `master`, or `trunk`
|
|
428
|
+
- Push, merge, PR, or branch cleanup without explicit approval
|
|
429
|
+
- Using `git branch <name>` and assuming the working tree switched branches
|
|
430
|
+
- Commit messages like "fix", "update", "misc"
|
|
431
|
+
- Formatting changes mixed with behavior changes
|
|
432
|
+
- No `.gitignore` in the project
|
|
433
|
+
- Committing `node_modules/`, `.env`, or build artifacts
|
|
434
|
+
- Long-lived branches that diverge significantly from main
|
|
435
|
+
- Force-pushing to shared branches
|
|
436
|
+
|
|
437
|
+
## Verification
|
|
438
|
+
|
|
439
|
+
For every commit:
|
|
440
|
+
|
|
441
|
+
- [ ] Commit does one logical thing
|
|
442
|
+
- [ ] Message explains the why, follows type conventions
|
|
443
|
+
- [ ] Tests pass before committing
|
|
444
|
+
- [ ] No secrets in the diff
|
|
445
|
+
- [ ] No formatting-only changes mixed with behavior changes
|
|
446
|
+
- [ ] `.gitignore` covers standard exclusions
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: github-evidence-triage
|
|
3
|
+
description: Performs read-only GitHub issue or PR triage with evidence links. Use when analyzing public or repository GitHub issues/PRs without mutating labels, comments, branches, reviews, merges, or issue state.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# GitHub Evidence Triage
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Use this skill to analyze a GitHub issue or pull request and produce a source-grounded triage report.
|
|
11
|
+
|
|
12
|
+
This skill is read-only. It does not comment, label, approve, reject, close, merge, push, or call write GitHub APIs.
|
|
13
|
+
|
|
14
|
+
## When to Use
|
|
15
|
+
|
|
16
|
+
Use when the user asks to:
|
|
17
|
+
|
|
18
|
+
- triage a GitHub issue or PR
|
|
19
|
+
- determine whether a bug report is reproducible or already fixed
|
|
20
|
+
- summarize PR risk before review
|
|
21
|
+
- connect an issue/PR to repository files, commits, tests, or docs
|
|
22
|
+
- produce evidence for a change package from GitHub context
|
|
23
|
+
|
|
24
|
+
## Zero-Action Policy
|
|
25
|
+
|
|
26
|
+
Never:
|
|
27
|
+
|
|
28
|
+
- comment on issues or PRs
|
|
29
|
+
- close or reopen issues
|
|
30
|
+
- edit labels, milestones, assignees, branches, or project boards
|
|
31
|
+
- approve, request changes, or submit PR reviews
|
|
32
|
+
- merge PRs
|
|
33
|
+
- push branches
|
|
34
|
+
- call write GitHub API methods
|
|
35
|
+
|
|
36
|
+
Allowed:
|
|
37
|
+
|
|
38
|
+
- read issue/PR metadata and comments
|
|
39
|
+
- inspect related code and tests
|
|
40
|
+
- inspect git history
|
|
41
|
+
- produce a triage report
|
|
42
|
+
|
|
43
|
+
## Evidence Rule
|
|
44
|
+
|
|
45
|
+
Every factual claim about repository code, commits, issues, or PRs should include a stable reference:
|
|
46
|
+
|
|
47
|
+
- issue or PR URL
|
|
48
|
+
- commit SHA
|
|
49
|
+
- file path and line range
|
|
50
|
+
- copied command output from a fresh read-only command
|
|
51
|
+
|
|
52
|
+
No evidence means no claim. Mark unsupported claims as `[UNVERIFIED]`.
|
|
53
|
+
|
|
54
|
+
🛑 Evidence availability fallbacks:
|
|
55
|
+
|
|
56
|
+
| Condition | Conservative fallback |
|
|
57
|
+
|---|---|
|
|
58
|
+
| Missing GitHub URL or repository/number | Ask for the URL or exact repo plus issue/PR number; do not infer from vague text. |
|
|
59
|
+
| Ambiguous issue vs PR reference | Resolve read-only if possible; otherwise ask before triage. |
|
|
60
|
+
| Private repo, permission denied, or auth unavailable | Report `BLOCKED` or `PARTIAL` with the inaccessible URL and continue only with user-provided/local evidence clearly marked. |
|
|
61
|
+
| Rate limit, network failure, deleted item, or unavailable API | Retry only if cheap and safe; otherwise report the failure and mark affected claims `[UNVERIFIED]`. |
|
|
62
|
+
| Evidence conflicts across comments, commits, or files | Separate claims by source and avoid a definitive conclusion until reconciled. |
|
|
63
|
+
|
|
64
|
+
## Output Placement
|
|
65
|
+
|
|
66
|
+
- If the triage belongs to an existing OpenSpec change, write inside that change directory only when the user or current workflow requests a file.
|
|
67
|
+
- For every non-OpenSpec source, including a single local source document, ask whether to write a source-adjacent file, create a sibling folder, append to an existing spec/design document, or keep the report chat-only.
|
|
68
|
+
- Chat-only output is allowed.
|
|
69
|
+
|
|
70
|
+
## Workflow
|
|
71
|
+
|
|
72
|
+
1. Identify the issue/PR URL, repository, and user question.
|
|
73
|
+
2. Fetch/read issue or PR metadata, description, comments, commits, and changed files as needed.
|
|
74
|
+
3. Inspect linked code, tests, docs, and git history only as needed for the claim.
|
|
75
|
+
4. Separate reporter claims, maintainer statements, observed repository facts, inferred risks, and unverified items.
|
|
76
|
+
5. Synthesize impact and next step from the evidence; do not paste a chronological comment list unless chronology is the finding.
|
|
77
|
+
6. Produce a triage report with no write actions.
|
|
78
|
+
|
|
79
|
+
Red flags: requests to comment, label, close, approve, request changes, merge, push, or mutate branch/issue state. Stop and confirm this skill is read-only instead of performing the action.
|
|
80
|
+
|
|
81
|
+
## Synthesis Over Listing
|
|
82
|
+
|
|
83
|
+
- Group evidence by claim: reproduction, scope, root-cause signal, affected files, test evidence, maintainer decision, and unresolved conflict.
|
|
84
|
+
- When comments disagree, identify the source/date/commit behind each side and avoid a single winner until evidence resolves it.
|
|
85
|
+
- Separate "what GitHub says" from "what local code shows" and from "what the triager infers".
|
|
86
|
+
- Keep recommendations read-only unless ROSE or the user explicitly opens an implementation package.
|
|
87
|
+
|
|
88
|
+
## Output Contract
|
|
89
|
+
|
|
90
|
+
```text
|
|
91
|
+
STATUS: TRIAGED | PARTIAL | BLOCKED
|
|
92
|
+
|
|
93
|
+
SUBJECT:
|
|
94
|
+
- URL:
|
|
95
|
+
- Type: issue | PR
|
|
96
|
+
- User question:
|
|
97
|
+
|
|
98
|
+
EVIDENCE:
|
|
99
|
+
- URL / commit / file:line - fact
|
|
100
|
+
|
|
101
|
+
FINDINGS:
|
|
102
|
+
- <finding with evidence>
|
|
103
|
+
|
|
104
|
+
RISK / IMPACT:
|
|
105
|
+
- <risk with evidence or [UNVERIFIED]>
|
|
106
|
+
|
|
107
|
+
RECOMMENDED NEXT STEP:
|
|
108
|
+
- <read-only recommendation or bounded implementation/review suggestion>
|
|
109
|
+
|
|
110
|
+
UNVERIFIED:
|
|
111
|
+
- <claim that lacks evidence or N/A>
|
|
112
|
+
|
|
113
|
+
NO-ACTION CONFIRMATION:
|
|
114
|
+
- No comments, labels, reviews, merges, pushes, or write API calls were performed.
|
|
115
|
+
```
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: harness-evolution
|
|
3
|
+
description: Produce or apply an approved report-first proposal for workflow, ROSE, skill, command, subagent, memory, install, or harness-doc changes; use after harness-issue-triage localizes a harness problem or when the user explicitly requests harness maintenance, and do not edit core harness files without explicit human approval.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Harness Evolution
|
|
7
|
+
|
|
8
|
+
Use this skill when the harness itself may need to change. The default output is a structured report or proposal, not file edits.
|
|
9
|
+
|
|
10
|
+
If the user only asks where incorrect behavior lives, return that diagnosis-only intent to ROSE so it can select `harness-issue-triage`; do not invoke another skill here.
|
|
11
|
+
|
|
12
|
+
## Triggers
|
|
13
|
+
|
|
14
|
+
- User asks to change workflow, ROSE, a skill, command, subagent, memory policy, install/setup path, or harness documentation.
|
|
15
|
+
- Repeated workflow failures or user corrections indicate process drift.
|
|
16
|
+
- Subagent dispatch/result boundaries fail.
|
|
17
|
+
- Verification claims lack fresh evidence or bypass required gates.
|
|
18
|
+
- Memory retrieval/writeback/provenance fails.
|
|
19
|
+
- Command lifecycle is bypassed or internal stages appear as top-level commands.
|
|
20
|
+
- Tool policy, middleware/hook, environment, or workflow-pattern defects appear.
|
|
21
|
+
|
|
22
|
+
## Workflow
|
|
23
|
+
|
|
24
|
+
1. Start from an existing `harness-issue-triage` report when available; otherwise classify the signal directly with `references/component-taxonomy.md`.
|
|
25
|
+
2. Decide required gates from `references/activation-matrix.md`.
|
|
26
|
+
3. Produce a report using `references/change-report-template.md`.
|
|
27
|
+
4. Ask for explicit approval before applying any core harness edit.
|
|
28
|
+
5. If approved, apply only the approved change and run the named verification trigger.
|
|
29
|
+
6. Record the verdict using `references/verdict-policy.md`.
|
|
30
|
+
|
|
31
|
+
🔴 CHECKPOINTS:
|
|
32
|
+
|
|
33
|
+
- Missing triage evidence: do not edit; produce a report that names the missing evidence and next read-only step.
|
|
34
|
+
- Approval denied or absent: do not edit protected harness files; return `BLOCKED_APPROVAL_REQUIRED` with the proposed change and verification plan.
|
|
35
|
+
- Verification fails after an approved edit: stop, report the failing command/output, and propose rollback or a smaller follow-up patch instead of widening scope.
|
|
36
|
+
|
|
37
|
+
Fallback table:
|
|
38
|
+
|
|
39
|
+
| Condition | Conservative fallback |
|
|
40
|
+
|---|---|
|
|
41
|
+
| No `harness-issue-triage` report and component is unclear | Classify with packaged references only; if still unclear, ask for triage first. |
|
|
42
|
+
| User asks for direct core harness edit without approval record | Convert to report-first proposal and request explicit approval. |
|
|
43
|
+
| Approved change requires extra files, new deps, schema changes, or broader refactor | Stop as out of approved scope and request a new approval. |
|
|
44
|
+
| Named verification cannot run | Mark `NEEDS_REVIEW`, explain why, and provide the strongest manual/static evidence. |
|
|
45
|
+
|
|
46
|
+
## Boundaries
|
|
47
|
+
|
|
48
|
+
- Report/proposal artifacts are allowed by default.
|
|
49
|
+
- Core harness edits require explicit human approval in conversation, PR review, or approved OpenSpec record.
|
|
50
|
+
- Core harness includes ROSE/runtime rules, commands, skill routing, subagent contracts, memory policy, install scripts, OpenCode hooks, and harness docs.
|
|
51
|
+
- Do not write SQLite manually, change memory schema, add dependencies, commit, push, or silently edit protected harness files.
|
|
52
|
+
- Do not modify `agents/rose.md` during normal tasks. Agent prompt edits require an explicit harness maintenance task and human approval.
|
|
53
|
+
- Do not treat an OpenSpec mention as edit approval unless it explicitly approves the exact harness files and change direction.
|
|
54
|
+
|
|
55
|
+
## Verification
|
|
56
|
+
|
|
57
|
+
- Every proposal names a verification trigger and rollback plan.
|
|
58
|
+
- Applied changes must record result, verdict, remaining risks, and evidence pointer.
|
|
59
|
+
- Missing approval returns a blocked report, not an edit.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Harness Evolution Activation Matrix
|
|
2
|
+
|
|
3
|
+
| Signal | Required gate | Optional gate | Approval-gated action |
|
|
4
|
+
|---|---|---|---|
|
|
5
|
+
| Explicit harness change request | report, component classification | OpenSpec proposal | editing core harness files |
|
|
6
|
+
| Repeated workflow failure | report, evidence anchors | strategy stress test | changing lifecycle rules |
|
|
7
|
+
| Subagent dispatch error | packet/result evidence review | parallel-dispatch guidance update | changing subagent contracts |
|
|
8
|
+
| Verification claim failure | fresh evidence requirement | review/test audit | weakening completion gates |
|
|
9
|
+
| Memory failure | rose-memory CLI evidence | memory retrieval pack | schema or policy change |
|
|
10
|
+
| Command lifecycle bypass | command map check | command fixture update | adding/removing command files |
|
|
11
|
+
| Install/setup drift | setup evidence | install smoke check | modifying install scripts |
|
|
12
|
+
|
|
13
|
+
Low-risk observation may stop at a report. Any core harness edit needs explicit human approval first.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Approval Policy
|
|
2
|
+
|
|
3
|
+
Explicit human approval is required before core harness edits.
|
|
4
|
+
|
|
5
|
+
## Valid Approval Sources
|
|
6
|
+
|
|
7
|
+
- Direct conversation approval for the specific edit scope.
|
|
8
|
+
- PR review approval that names the proposed harness change.
|
|
9
|
+
- Approved OpenSpec or task packet that authorizes the exact files and behavior.
|
|
10
|
+
|
|
11
|
+
## Missing Approval
|
|
12
|
+
|
|
13
|
+
When approval is missing, the agent may produce or update report/proposal/spec/test-plan artifacts only if those artifacts are in allowed scope. It must not silently edit ROSE rules, commands, skills, subagent contracts, memory policy, install scripts, hooks, or harness docs.
|
|
14
|
+
|
|
15
|
+
## Approval Must Name
|
|
16
|
+
|
|
17
|
+
- files or components allowed to change;
|
|
18
|
+
- behavior being changed;
|
|
19
|
+
- verification trigger;
|
|
20
|
+
- rollback or rejection path.
|