@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,212 @@
|
|
|
1
|
+
# HTML wireframe quality — single source of truth
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
The canonical quality bar for HTML wireframe content. Read it in full before
|
|
6
|
+
authoring ANY wireframe; do not author wireframes from memory or paraphrase these
|
|
7
|
+
rules per mode.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
**A wireframe is an HTML mockup. The renderer owns the look; you write the
|
|
12
|
+
content.** Set `data.html` to a self-contained, semantic HTML fragment of the
|
|
13
|
+
screen and set `data.surface`. The renderer owns the surface footprint/aspect, the
|
|
14
|
+
dark/light theme, the hand-drawn font, and the sketch overlay — you never write
|
|
15
|
+
`<style>` / `<link>` / `<font>` tags or any width/height/coordinates. You write
|
|
16
|
+
real HTML layout and real product content; the renderer styles and roughens it.
|
|
17
|
+
|
|
18
|
+
**A wireframe block's data is an HTML screen plus a surface:**
|
|
19
|
+
|
|
20
|
+
```json
|
|
21
|
+
{
|
|
22
|
+
"surface": "browser",
|
|
23
|
+
"html": "<div style=\"display:flex;flex-direction:column;gap:10px;padding:16px;height:100%\"><h1>Sign in</h1><p class=\"wf-muted\">Use your work email to continue.</p><div class=\"wf-card\" style=\"display:flex;flex-direction:column;gap:10px\"><label>Email<input value=\"jane@acme.co\" /></label><label>Password<input value=\"********\" /></label><label style=\"display:flex;align-items:center;gap:8px\"><input type=\"checkbox\" checked /> Remember me</label><button class=\"primary\">Sign in</button></div><a href=\"#\">Forgot password?</a></div>"
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**Write PLAIN semantic HTML and let the renderer style it.** Bare elements
|
|
28
|
+
(`h1`/`h2`/`h3`, `p`, `button`, `input`, `label`, `a`, `hr`) are auto-themed — no
|
|
29
|
+
classes needed. Helper classes carry the rest:
|
|
30
|
+
|
|
31
|
+
- `.wf-card` / `.wf-box` — a bordered, padded container (a panel, a list item).
|
|
32
|
+
- `.wf-pill` / `.wf-chip` — a rounded tag or filter; add `.accent` for the
|
|
33
|
+
accent-filled variant.
|
|
34
|
+
- `.wf-muted` — secondary/muted text.
|
|
35
|
+
- `button.primary` or any element with `[data-primary]` — the accent-filled
|
|
36
|
+
primary button.
|
|
37
|
+
|
|
38
|
+
**No decorative shadows around mockups.** Do not put `box-shadow`,
|
|
39
|
+
`filter: drop-shadow(...)`, Tailwind `shadow-*` classes, or other fake depth on a
|
|
40
|
+
wireframe frame, root container, `.wf-card` / `.wf-box`, or canvas artboard.
|
|
41
|
+
Mockups should read as flat, bordered surfaces; use spacing, borders, labels, and
|
|
42
|
+
annotations for separation. Only show a shadow when the real product UI already
|
|
43
|
+
has it and it is essential to the change being reviewed.
|
|
44
|
+
|
|
45
|
+
**Use renderer icons, not visible icon words.** For icon-only buttons or leading
|
|
46
|
+
icons inside fields, chips, menu items, and toolbars, write an empty marker with
|
|
47
|
+
`[data-icon]` (e.g. `<span data-icon="search"></span>`). The renderer replaces it
|
|
48
|
+
with a Tabler-style SVG and the `.wf-icon` class sizes it to the surrounding text.
|
|
49
|
+
Supported names and aliases include: `mail`/`email`, `lock`/`password`, `search`,
|
|
50
|
+
`plus`/`add`, `x`/`close`, `check`, `chevronDown`, `chevronUp`, `chevronLeft`,
|
|
51
|
+
`chevronRight`, `dots`/`more`, `chevron`/`caret`/`dropdown` (down chevron), `user`,
|
|
52
|
+
`settings`, `calendar`, `bell`, `send`, `edit`, `arrowLeft`, and `arrowRight`. Do
|
|
53
|
+
not put visible words like "email", "lock", "search", "chevron", or "more" where
|
|
54
|
+
the product UI would show an icon; use text only when it is a real label a user
|
|
55
|
+
would read.
|
|
56
|
+
|
|
57
|
+
**Use the `--wf-*` tokens for any custom color, never hex.** The renderer flips
|
|
58
|
+
these on light/dark, so referencing tokens is what keeps a mockup correct in both
|
|
59
|
+
themes. For any inline border, background, or text color, reference a token:
|
|
60
|
+
`style="border:1.4px solid var(--wf-line)"`. The tokens are `--wf-ink` (text),
|
|
61
|
+
`--wf-muted` (secondary text), `--wf-line` (borders/dividers), `--wf-paper` (page
|
|
62
|
+
background), `--wf-card` (container surface), `--wf-accent` / `--wf-accent-fg` /
|
|
63
|
+
`--wf-accent-soft` (brand action), `--wf-warn`, `--wf-ok`, and `--wf-radius`.
|
|
64
|
+
**Never hard-code a hex (or rgb/hsl) color and never set `font-family`** — the
|
|
65
|
+
renderer owns the sketch/clean font.
|
|
66
|
+
|
|
67
|
+
**Lay out with inline `style` flex/grid.** You write the real layout —
|
|
68
|
+
`display:flex; flex-direction:column; gap:10px; padding:16px` — and the renderer
|
|
69
|
+
never repositions anything. Compose the actual product: reproduce the current
|
|
70
|
+
screen, then show the modification. Real labels, real counts, real dates, real
|
|
71
|
+
button text grounded in the screen you read; not lorem or gray bars.
|
|
72
|
+
|
|
73
|
+
**Surface presets — match the real footprint, never default to desktop+mobile.**
|
|
74
|
+
Pick the `surface` that matches what the user will actually see:
|
|
75
|
+
|
|
76
|
+
- `browser`: a web page that needs a browser chrome frame around it.
|
|
77
|
+
- `desktop`: a full desktop app page or app shell.
|
|
78
|
+
- `mobile`: a phone screen, only when the work is genuinely mobile.
|
|
79
|
+
- `popover`: a small floating menu, dropdown, or inline popover.
|
|
80
|
+
- `panel`: a side panel, inspector, or sidebar widget.
|
|
81
|
+
|
|
82
|
+
A sidebar popover renders as a small surface, not a desktop page and a phone
|
|
83
|
+
frame. Do not emit `desktop` + `mobile` variants unless responsive behavior
|
|
84
|
+
actually changes the layout.
|
|
85
|
+
|
|
86
|
+
**Model the actual component shell for small surfaces.** A rendered UI change
|
|
87
|
+
belongs in a wireframe; reserve `diagram` for architecture, dependency, state, or
|
|
88
|
+
data-flow relationships. Popovers, dropdown menus, command palettes, and context
|
|
89
|
+
menus use `surface: "popover"` unless the surrounding page placement is the point
|
|
90
|
+
of the change. Dialogs, sheets, inspectors, sidebars, and long property panels use
|
|
91
|
+
the matching `panel` / `desktop` surface. Show the real chrome: trigger/anchor
|
|
92
|
+
when it matters, title/header row, top-right actions, separators, fields, options,
|
|
93
|
+
selected states, body content, and visible footer actions.
|
|
94
|
+
|
|
95
|
+
**Modify, don't redesign.** When the task changes an existing screen, reproduce
|
|
96
|
+
the current screen's real layout and footprint FIRST, then change only the delta
|
|
97
|
+
and call it out with a single annotation. Do not restack the page into a new
|
|
98
|
+
layout. For net-new surfaces, compose from the real app shell.
|
|
99
|
+
|
|
100
|
+
**Keep product screens pure.** A product wireframe shows the app state a user
|
|
101
|
+
would actually see. Do not embed file contracts, architecture arrows, repo pills,
|
|
102
|
+
mode explanations, or implementation callouts inside the screen just to explain
|
|
103
|
+
the plan. Put those in canvas annotations, a separate diagram, or the document
|
|
104
|
+
body.
|
|
105
|
+
|
|
106
|
+
**Zoom in on sub-surfaces, don't redraw the page.** For a small sub-surface (a
|
|
107
|
+
popover, menu, dialog, toast), show the full screen once, then add a small
|
|
108
|
+
separate artboard whose `html` contains ONLY that sub-surface — do not re-draw the
|
|
109
|
+
whole page around it, and do not scale a duplicate up. Pick the matching `surface`
|
|
110
|
+
(e.g. `popover`) so the footprint is right; never widen a popover to page width.
|
|
111
|
+
|
|
112
|
+
**Loading / skeleton states.** Set `data.skeleton: true` on the wireframe and fill
|
|
113
|
+
the `html` with neutral, textless placeholder geometry — boxes and bars built as
|
|
114
|
+
`<div>`s with `background:var(--wf-line)` and explicit heights/widths, no labels
|
|
115
|
+
or copy. The renderer drops borders, sketch, and color into the skeleton register
|
|
116
|
+
automatically. Never escape to a `custom-html` document block to fake a loader.
|
|
117
|
+
|
|
118
|
+
**Editing an existing mockup.** To change one element, text, or color, call
|
|
119
|
+
`update-visual-plan` with
|
|
120
|
+
`contentPatches: [{ op: "patch-wireframe-html", blockId, edits: [{ find, replace }] }]`.
|
|
121
|
+
Each `find` is a unique snippet of the current html (read it first); set
|
|
122
|
+
`all: true` on an edit to replace every occurrence. The result is re-sanitized.
|
|
123
|
+
|
|
124
|
+
**Treat the wireframe border as part of the visible design.** Always wrap HTML
|
|
125
|
+
wireframe content in a root container with real inner padding before drawing
|
|
126
|
+
cards, fields, pills, labels, or controls. Use at least 14-16px of padding,
|
|
127
|
+
`box-sizing: border-box`, `height: 100%`, and `gap` between child rows so the
|
|
128
|
+
first row never sits flush against the screen border.
|
|
129
|
+
|
|
130
|
+
**Lay out children safely so they never collide.** Use HTML flex/grid with `gap`,
|
|
131
|
+
`min-width: 0`, and sensible overflow. Avoid negative margins, absolute
|
|
132
|
+
positioning, or fixed child widths that can collide across light/dark, sketch/clean,
|
|
133
|
+
or zoom levels.
|
|
134
|
+
|
|
135
|
+
**Do not wrap intentionally single-line labels.** For toolbars, tab rails,
|
|
136
|
+
breadcrumbs, chip/filter rows, branch and file names, and code filenames — any
|
|
137
|
+
deliberately single-line row — put `white-space: nowrap` on the row (and
|
|
138
|
+
`overflow: hidden; text-overflow: ellipsis` on labels that can grow). Use
|
|
139
|
+
horizontally scrollable or clipped rails for overflow.
|
|
140
|
+
|
|
141
|
+
**Fill the frame; keep labels short.** Each artboard is a fixed-size surface —
|
|
142
|
+
compose enough realistic HTML to fill it top to bottom with even vertical rhythm;
|
|
143
|
+
never leave a large empty band. On desktop/app-shell sidebars, let the nav stack
|
|
144
|
+
flex to fill (`flex:1`) and add any persistent bottom action/status after it. On
|
|
145
|
+
mobile, flow real rows down the whole screen rather than a header floating above a
|
|
146
|
+
gap. Keep every label short enough to sit on one line within its column.
|
|
147
|
+
|
|
148
|
+
**Persistent chrome bars span the full frame width.** Top bars, app headers,
|
|
149
|
+
toolbars, and bottom tab/nav bars are full-width chrome, not centered content. Lay
|
|
150
|
+
each one out as a single flex row that fills the frame
|
|
151
|
+
(`style="display:flex;align-items:center;width:100%"`) and push trailing actions to
|
|
152
|
+
the right edge with a flex spacer (`<div style="flex:1"></div>`) between the
|
|
153
|
+
leading and trailing groups — never center a bar inside a narrow block, and never
|
|
154
|
+
let it collapse to the width of its contents.
|
|
155
|
+
|
|
156
|
+
**Pin bottom bars to the bottom of the frame.** For mobile tab bars, footers, and
|
|
157
|
+
any persistent bottom action row, make the frame itself a flex column at
|
|
158
|
+
`height:100%` (`style="display:flex;flex-direction:column;height:100%"`), give the
|
|
159
|
+
scrolling body `flex:1`, and place the bar as the LAST child (or set
|
|
160
|
+
`margin-top:auto`). The bar then sits flush at the bottom instead of floating with
|
|
161
|
+
an empty band beneath it.
|
|
162
|
+
|
|
163
|
+
**Before / after must be comparable.** When showing a state change, preserve the
|
|
164
|
+
unchanged controls in both states so the reviewer can see exactly what moved or
|
|
165
|
+
appeared; do not show an added control as a generic box floating elsewhere. Place
|
|
166
|
+
the new/changed affordance where the implementation puts it. Use the same frame
|
|
167
|
+
size, scale, outer padding, border radius, and visual density on both sides unless
|
|
168
|
+
the change itself alters those properties.
|
|
169
|
+
|
|
170
|
+
**Name the states with the column header, never inside the frame.** For
|
|
171
|
+
document-body wireframes, put the two states in a `columns` block and set each
|
|
172
|
+
column's `label` to `Before` and `After` — the renderer draws that label as a
|
|
173
|
+
heading above each frame. Do NOT bake a `Before`/`After` pill, title, or heading
|
|
174
|
+
into the wireframe `html`. On a canvas, place the two state artboards as neighbors
|
|
175
|
+
with frame labels — never encode Before/After inside the html.
|
|
176
|
+
|
|
177
|
+
**Let the surface choose side-by-side vs. stacked.** For document-body wireframes,
|
|
178
|
+
the `columns` renderer lays narrow surfaces (`mobile`, `popover`, `panel`) out
|
|
179
|
+
side by side, and automatically stacks wide surfaces (`desktop`, `browser`)
|
|
180
|
+
vertically at full document width so a large frame is never crushed into a
|
|
181
|
+
half-width column. Author both wireframes with the real `surface` and matching
|
|
182
|
+
`Before`/`After` column labels.
|
|
183
|
+
|
|
184
|
+
**Good example — a contacts list, surface `browser`.** A small, real screen
|
|
185
|
+
composed from the helper classes and tokens, layout in inline flex, no fonts or
|
|
186
|
+
hex colors:
|
|
187
|
+
|
|
188
|
+
```html
|
|
189
|
+
<div style="display:flex;flex-direction:column;gap:12px;padding:16px;height:100%">
|
|
190
|
+
<div style="display:flex;align-items:center;justify-content:space-between">
|
|
191
|
+
<h1>Contacts</h1>
|
|
192
|
+
<button class="primary">New contact</button>
|
|
193
|
+
</div>
|
|
194
|
+
<div style="display:flex;gap:6px">
|
|
195
|
+
<span class="wf-pill accent">All 128</span>
|
|
196
|
+
<span class="wf-pill">Favorites</span>
|
|
197
|
+
<span class="wf-pill">Archived</span>
|
|
198
|
+
</div>
|
|
199
|
+
<div class="wf-card" style="display:flex;flex-direction:column;gap:0;padding:0">
|
|
200
|
+
<div style="display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1.4px solid var(--wf-line)">
|
|
201
|
+
<div style="width:32px;height:32px;border-radius:999px;background:var(--wf-accent-soft)"></div>
|
|
202
|
+
<div style="flex:1"><strong>Jane Cooper</strong><br /><small>jane@acme.co</small></div>
|
|
203
|
+
<span class="wf-pill">Lead</span>
|
|
204
|
+
</div>
|
|
205
|
+
<div style="display:flex;align-items:center;gap:10px;padding:10px 12px">
|
|
206
|
+
<div style="width:32px;height:32px;border-radius:999px;background:var(--wf-accent-soft)"></div>
|
|
207
|
+
<div style="flex:1"><strong>Marcus Lee</strong><br /><small>marcus@globex.io</small></div>
|
|
208
|
+
<span class="wf-pill">Customer</span>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
```
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
#
|
|
3
|
+
# derive-visual-dir.sh — compute the visual/ output directory for a plan path.
|
|
4
|
+
#
|
|
5
|
+
# The visual-plan contract (skills/_shared/references/visual-mode.md) requires
|
|
6
|
+
# the output to live in a `visual/` sibling of the input plan file, derived from
|
|
7
|
+
# the path handed in — never hardcoded. This thin wrapper performs that single
|
|
8
|
+
# derivation so the skill never improvises the path.
|
|
9
|
+
#
|
|
10
|
+
# Usage:
|
|
11
|
+
# derive-visual-dir.sh <path/to/plan.md> [--mkdir]
|
|
12
|
+
#
|
|
13
|
+
# Arguments:
|
|
14
|
+
# <path/to/plan.md> Source plan path (absolute or relative). Must exist.
|
|
15
|
+
# --mkdir Create the derived directory if it does not exist.
|
|
16
|
+
#
|
|
17
|
+
# Output:
|
|
18
|
+
# The derived visual/ directory path on stdout.
|
|
19
|
+
#
|
|
20
|
+
# Exit codes:
|
|
21
|
+
# 0 - Derived (and created, if --mkdir) successfully
|
|
22
|
+
# 1 - Usage error or plan path missing
|
|
23
|
+
#
|
|
24
|
+
set -euo pipefail
|
|
25
|
+
|
|
26
|
+
_error() {
|
|
27
|
+
echo "derive-visual-dir.sh: error: $*" >&2
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
PLAN_PATH=""
|
|
31
|
+
DO_MKDIR=0
|
|
32
|
+
|
|
33
|
+
while [[ $# -gt 0 ]]; do
|
|
34
|
+
case "$1" in
|
|
35
|
+
--mkdir)
|
|
36
|
+
DO_MKDIR=1
|
|
37
|
+
shift
|
|
38
|
+
;;
|
|
39
|
+
-h|--help)
|
|
40
|
+
echo "Usage: derive-visual-dir.sh <path/to/plan.md> [--mkdir]" >&2
|
|
41
|
+
exit 0
|
|
42
|
+
;;
|
|
43
|
+
-*)
|
|
44
|
+
_error "unknown flag: $1"
|
|
45
|
+
exit 1
|
|
46
|
+
;;
|
|
47
|
+
*)
|
|
48
|
+
if [[ -n "$PLAN_PATH" ]]; then
|
|
49
|
+
_error "unexpected extra argument: $1"
|
|
50
|
+
exit 1
|
|
51
|
+
fi
|
|
52
|
+
PLAN_PATH="$1"
|
|
53
|
+
shift
|
|
54
|
+
;;
|
|
55
|
+
esac
|
|
56
|
+
done
|
|
57
|
+
|
|
58
|
+
if [[ -z "$PLAN_PATH" ]]; then
|
|
59
|
+
_error "a plan path is required"
|
|
60
|
+
echo "Usage: derive-visual-dir.sh <path/to/plan.md> [--mkdir]" >&2
|
|
61
|
+
exit 1
|
|
62
|
+
fi
|
|
63
|
+
|
|
64
|
+
if [[ ! -f "$PLAN_PATH" ]]; then
|
|
65
|
+
_error "plan file not found: $PLAN_PATH"
|
|
66
|
+
exit 1
|
|
67
|
+
fi
|
|
68
|
+
|
|
69
|
+
PLAN_DIR="$(cd "$(dirname "$PLAN_PATH")" && pwd)"
|
|
70
|
+
OUT_DIR="${PLAN_DIR}/visual"
|
|
71
|
+
|
|
72
|
+
if [[ "$DO_MKDIR" -eq 1 ]]; then
|
|
73
|
+
mkdir -p "$OUT_DIR"
|
|
74
|
+
fi
|
|
75
|
+
|
|
76
|
+
echo "$OUT_DIR"
|
|
77
|
+
exit 0
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: visual-recap
|
|
3
|
+
description: Builds local-only visual recaps from Git diffs. Use when recapping a
|
|
4
|
+
finished branch, visualizing a commit range, or reviewing working-tree changes visually.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Visual Recap (LOCAL-ONLY)
|
|
8
|
+
|
|
9
|
+
`/ycc:visual-recap` builds a visual plan **from** a diff, not toward one. It is the reverse of
|
|
10
|
+
forward planning: instead of describing the change you are about to make, you describe the
|
|
11
|
+
change that was just made, at a higher altitude than line-by-line review. Schema, API,
|
|
12
|
+
file, and architecture changes become the same `data-model`, `api-endpoint`, `file-tree`,
|
|
13
|
+
and `diagram` blocks a forward plan would use, only now they summarize work that exists. A
|
|
14
|
+
reviewer scans the shape of the change before spending attention on the literal lines.
|
|
15
|
+
|
|
16
|
+
**Operational context:** Keep recap content local-only: write docs/prps/reviews/visual/ and preview through the localhost bridge; never upload code to hosted services. Accept a Git range, branch, or tracked working-tree diff; behavior is remote-agnostic.
|
|
17
|
+
|
|
18
|
+
## LOCAL-ONLY mandate — read this first
|
|
19
|
+
|
|
20
|
+
> This ycc port **inverts** the upstream BuilderIO `visual-recap` skill. Upstream
|
|
21
|
+
> ALWAYS publishes the recap to the hosted Agent-Native Plan database and FORBIDS
|
|
22
|
+
> inline output ("a recap's entire value is the hosted plan"). **This skill does the
|
|
23
|
+
> opposite.** It is permanently pinned to local-files mode and MUST NOT regress to
|
|
24
|
+
> any hosted Plan create tool.
|
|
25
|
+
|
|
26
|
+
Hard rules for this skill:
|
|
27
|
+
|
|
28
|
+
- **`AGENT_NATIVE_PLANS_MODE=local-files` prefixes every Agent-Native runtime
|
|
29
|
+
command.** Do not rely on a process-wide export. The recap never writes to the
|
|
30
|
+
hosted Plan database.
|
|
31
|
+
- **NEVER call a hosted Plan create/publish tool.** The hosted recap-create tool,
|
|
32
|
+
`create-visual-plan`, `import-visual-plan-source`, `update-visual-plan`,
|
|
33
|
+
`patch-visual-plan-source`, `get-plan-feedback`, `export-visual-plan`, and
|
|
34
|
+
`set-resource-visibility` are all **disabled** in this skill. They are listed only
|
|
35
|
+
to be explicitly excluded — do not invoke them.
|
|
36
|
+
- **The ONLY permitted Plan application request is the pinned block-catalog CLI command**
|
|
37
|
+
(`env AGENT_NATIVE_PLANS_MODE=local-files npx -y @agent-native/core@0.59.1 plan blocks --out <path>`).
|
|
38
|
+
It carries no recap content. Do not call the `get-plan-blocks` MCP tool; local-files
|
|
39
|
+
mode does not register an MCP server. `npx` may contact the npm registry to resolve
|
|
40
|
+
that exact package version, but it must never send plan or recap content.
|
|
41
|
+
- **The deliverable is local MDX** under `docs/prps/reviews/visual/<slug>/`, served via
|
|
42
|
+
the localhost bridge
|
|
43
|
+
(`env AGENT_NATIVE_PLANS_MODE=local-files npx -y @agent-native/core@0.59.1 plan local serve --open`,
|
|
44
|
+
127.0.0.1, ephemeral port). There is no hosted link and no shareable URL.
|
|
45
|
+
- **Diffs are sourced through the shared collector**
|
|
46
|
+
`{{package-root}}/shared/scripts/visual-recap-collect.sh`, which uses
|
|
47
|
+
local git refs only — so it behaves identically against the public `github` remote and
|
|
48
|
+
the private Forgejo `origin` (no vendor PR API, no hardcoded host or trunk branch).
|
|
49
|
+
|
|
50
|
+
For the pinned `@agent-native/*` install, the localhost-bridge command surface,
|
|
51
|
+
the hosted-only MCP connector, and the hosted-egress policy, read — do not duplicate —
|
|
52
|
+
`{{package-root}}/shared/references/agent-native-setup.md`.
|
|
53
|
+
|
|
54
|
+
## When to use
|
|
55
|
+
|
|
56
|
+
Build a recap when a change is large, multi-file, or touches schema, API contracts,
|
|
57
|
+
or architecture, and a reviewer would benefit from seeing the change mapped to
|
|
58
|
+
structured blocks before reading the raw diff. Skip it for small, single-file, or
|
|
59
|
+
obvious diffs when choosing proactively — a recap is review overhead, and a tiny
|
|
60
|
+
change reviews faster as plain diff. An explicit `visual-recap` or
|
|
61
|
+
`/ycc:visual-recap` invocation overrides this heuristic; honor the request.
|
|
62
|
+
|
|
63
|
+
## Phase 0 — Collect the diff (remote-agnostic, local refs only)
|
|
64
|
+
|
|
65
|
+
Drive the shared collector with `$ARGUMENTS`. Invoke it directly, then retain the
|
|
66
|
+
absolute path printed on stdout as the resolved bundle path:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
# (none) → tracked working-tree diff vs HEAD
|
|
70
|
+
# <base>..<head> → explicit range
|
|
71
|
+
# <branch> → branch as head; base = merge-base against tracked upstream
|
|
72
|
+
{{package-root}}/shared/scripts/visual-recap-collect.sh $ARGUMENTS
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
The collector writes a bundle under `docs/prps/reviews/visual/<slug>/`:
|
|
76
|
+
|
|
77
|
+
- `diff.patch` — full unified diff (local refs only)
|
|
78
|
+
- `files.txt` — changed-file name list
|
|
79
|
+
- `metadata.txt` — range / base / head / remote provenance (every remote URL via
|
|
80
|
+
`git remote get-url`, never a hardcoded host)
|
|
81
|
+
|
|
82
|
+
The printed path is the slug directory the recap MDX is written into.
|
|
83
|
+
Read `diff.patch` and `files.txt` to ground every block. **Print the resolved
|
|
84
|
+
range and remote provenance from `metadata.txt` before authoring** so it is obvious
|
|
85
|
+
which refs the recap covers. If both `diff.patch` and `files.txt` are empty, stop
|
|
86
|
+
and report that there are no tracked changes to recap; do not author an empty
|
|
87
|
+
artifact.
|
|
88
|
+
|
|
89
|
+
## Phase 1 — Scope the work unit
|
|
90
|
+
|
|
91
|
+
Default scope is the whole change in the collected range, not only the most recent
|
|
92
|
+
edit. Separate the changes that belong to this work unit from unrelated pre-existing
|
|
93
|
+
dirty work. If the scope is genuinely ambiguous, state the assumption or ask a concise
|
|
94
|
+
question before authoring.
|
|
95
|
+
|
|
96
|
+
Make a short surface/state inventory from the diff before writing any block: changed
|
|
97
|
+
routes, components, popovers/dialogs, role/access states, empty/error/loading states,
|
|
98
|
+
and shared abstractions. The final recap must either represent each meaningful item
|
|
99
|
+
with a block or intentionally omit it as tiny/redundant/not-user-visible.
|
|
100
|
+
|
|
101
|
+
## Phase 2 — Fetch the block catalog (the one permitted network call)
|
|
102
|
+
|
|
103
|
+
> GOTCHA: The MDX block vocabulary drifts upstream between releases. Do NOT author
|
|
104
|
+
> from memorized JSX tags — they silently produce wrong tags that error on import.
|
|
105
|
+
|
|
106
|
+
Before writing any structured MDX, invoke `mktemp` and retain the absolute path
|
|
107
|
+
printed on stdout. Substitute that resolved temp path in the catalog command;
|
|
108
|
+
do not rely on shell-variable persistence across tool calls:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
env AGENT_NATIVE_PLANS_MODE=local-files npx -y @agent-native/core@0.59.1 plan blocks --out <resolved-temp-path>
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Read that file first. The command calls the public no-auth block-catalog route and
|
|
115
|
+
sends no recap content. If the pinned package is unavailable from cache or the
|
|
116
|
+
registry, stop with the setup error; do not guess tags or register a fallback MCP.
|
|
117
|
+
|
|
118
|
+
Author every block against the tags and schemas that call returns. The catalog is
|
|
119
|
+
temporary runtime data, not part of the recap bundle; do not commit it.
|
|
120
|
+
|
|
121
|
+
## Phase 3 — Map the diff to blocks
|
|
122
|
+
|
|
123
|
+
Derive every structured block mechanically from the real diff (real paths, real fields,
|
|
124
|
+
real method/path, real before/after text). The names below are CONCEPTUAL block types;
|
|
125
|
+
resolve each to its exact tag + props via the fetched temporary catalog.
|
|
126
|
+
|
|
127
|
+
- **Schema / migration change** → `data-model` for the resulting entities, fields, and
|
|
128
|
+
relations. Flag each field/entity with `change: "added" | "modified" | "removed" |
|
|
129
|
+
"renamed"`; for a changed type set `was` to the prior value. The diff-aware
|
|
130
|
+
`data-model` is the headline; add a split `diff` of literal SQL only when the exact
|
|
131
|
+
statement still matters.
|
|
132
|
+
- **API / action / route change** → `api-endpoint` with the post-change method, path,
|
|
133
|
+
params, request, and responses. Flag each changed param/response with `change` (and
|
|
134
|
+
`was` when a type/shape changed); set `change` on the endpoint root for a wholly added
|
|
135
|
+
or removed route; mark removed routes `deprecated: true`. Author each request/response
|
|
136
|
+
example as a single valid JSON value.
|
|
137
|
+
- **Files added / removed / renamed** → `file-tree` with each entry's `change` flag
|
|
138
|
+
(`added`, `removed`, `modified`, `renamed`) and a short `note`.
|
|
139
|
+
- **Any meaningful code hunk** → `diff` with **split view as the default** (`mode:
|
|
140
|
+
"split"`), carrying the real `before`/`after` text plus `filename`/`language`. Give
|
|
141
|
+
every `diff` a one-line `summary`; attach a few high-signal `annotations` to the key
|
|
142
|
+
files. Reserve `mode: "unified"` for a genuinely narrow standalone hunk. Group the key
|
|
143
|
+
files under a `## Key changes` heading in a single horizontal `tabs` block (one file
|
|
144
|
+
per tab) so the selected split diff gets full document width.
|
|
145
|
+
- **Brand-new file with no meaningful "before"** → `annotated-code` rather than a
|
|
146
|
+
one-sided split `diff`.
|
|
147
|
+
- **Rendered UI / interaction change** → `wireframe` blocks (see below) showing the
|
|
148
|
+
visible delta before any code.
|
|
149
|
+
- **Architecture or data-flow shift** → `diagram` (`data.html`/`data.css` two-panel
|
|
150
|
+
before/after, layered, or swimlane; or `mermaid` for a quick graph). Use `--wf-*`
|
|
151
|
+
theme tokens and `.diagram-*` primitives — never hex, rgb/hsl, or `font-family`. Do
|
|
152
|
+
not use `diagram` as a stand-in for rendered UI; UI changes need `wireframe`.
|
|
153
|
+
- **Outcome-first narrative** → `rich-text` for the "what changed and why": the
|
|
154
|
+
objective, key decisions visible in the diff, and risks. This is the only place the
|
|
155
|
+
model writes freely.
|
|
156
|
+
|
|
157
|
+
### Canonical shape
|
|
158
|
+
|
|
159
|
+
A strong recap follows one skeleton, top to bottom:
|
|
160
|
+
|
|
161
|
+
1. UI-impact headline — wireframes first, when the diff changed rendered UI.
|
|
162
|
+
2. Short outcome narrative (`rich-text`): what changed and why, 1–3 paragraphs.
|
|
163
|
+
3. `data-model` / `api-endpoint` blocks for schema and contract changes.
|
|
164
|
+
4. `file-tree` of the changed files with `change` flags.
|
|
165
|
+
5. `## Key changes` — one horizontal `tabs` block of `diff` / `annotated-code`
|
|
166
|
+
(3–8 focused tabs; prefer under ~150 lines per tab).
|
|
167
|
+
|
|
168
|
+
Keep the body lean: no boilerplate intro/disclaimer/provenance prose. Add prose only
|
|
169
|
+
when it tells the reviewer something the structured blocks do not.
|
|
170
|
+
|
|
171
|
+
## UI impact requires wireframes (MANDATORY)
|
|
172
|
+
|
|
173
|
+
When the diff changes rendered UI, layout, density, visual state, interaction
|
|
174
|
+
affordances, navigation, controls, menus, dialogs, or design tokens, the recap **MUST**
|
|
175
|
+
include one or more `wireframe` blocks. Prose and file diffs are not a substitute for
|
|
176
|
+
showing what changed visually.
|
|
177
|
+
|
|
178
|
+
Before authoring ANY wireframe, **read
|
|
179
|
+
`{{package-root}}/skills/visual-recap/references/wireframe.md` in full** — it is the
|
|
180
|
+
single source of truth for HTML wireframe quality (`.wf-*` classes, `[data-icon]` Tabler
|
|
181
|
+
set, `surface` presets, `--wf-*` tokens, before/after comparability, skeleton states).
|
|
182
|
+
Do not author wireframes from memory. Show the changed entry point, the main changed
|
|
183
|
+
interaction surface, and the resulting/destination state; for UI-heavy changes a single
|
|
184
|
+
before/after of the entry surface is not enough.
|
|
185
|
+
|
|
186
|
+
## Phase 4 — Write and serve the local recap
|
|
187
|
+
|
|
188
|
+
Write the recap as a local MDX folder inside the collected bundle directory:
|
|
189
|
+
|
|
190
|
+
- `docs/prps/reviews/visual/<slug>/plan.mdx` (required), optional `canvas.mdx`, and
|
|
191
|
+
optional `.plan-state.json`. Set `kind: "recap"` and `localOnly: true` in the source
|
|
192
|
+
frontmatter/state.
|
|
193
|
+
|
|
194
|
+
Validate, then serve via the localhost bridge:
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
env AGENT_NATIVE_PLANS_MODE=local-files npx -y @agent-native/core@0.59.1 plan local check --dir <resolved-bundle-path>
|
|
198
|
+
env AGENT_NATIVE_PLANS_MODE=local-files npx -y @agent-native/core@0.59.1 plan local serve --dir <resolved-bundle-path> --kind recap --open
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Run `serve` with the host's long-running-process support, capture its first localhost
|
|
202
|
+
URL, and keep the bridge process alive without relaying incidental CLI logs as result
|
|
203
|
+
output. It binds **127.0.0.1** on an ephemeral CLI-chosen port, performs **no DB writes
|
|
204
|
+
and sends no recap content to any server**, and renders the on-disk MDX through the
|
|
205
|
+
localhost bridge. Report the URL from stdout (or `<slug>/.plan-url`, a local token file —
|
|
206
|
+
do not commit it). The URL is not shareable across machines.
|
|
207
|
+
|
|
208
|
+
Treat review feedback as file/chat feedback: edit the MDX directly, rerun
|
|
209
|
+
the pinned local check and serve commands above, and report the new local bridge URL.
|
|
210
|
+
Hosted comments, sharing, screenshots, and PR sticky-comment publishing are
|
|
211
|
+
intentionally unavailable.
|
|
212
|
+
|
|
213
|
+
## Grounding & security
|
|
214
|
+
|
|
215
|
+
- **Grounding rule.** `diff`, `data-model`, `api-endpoint`, and `file-tree` blocks must
|
|
216
|
+
be built mechanically from the real changed lines — never inferred, rounded, or
|
|
217
|
+
invented. Mark anything the model inferred (not extracted) as inferred in prose. When
|
|
218
|
+
the diff does not contain a fact, leave it out.
|
|
219
|
+
- **Never transcribe secrets.** A diff can contain API keys, tokens, webhook URLs,
|
|
220
|
+
signing secrets, or `.env` values. Never copy these into any block, snippet, caption,
|
|
221
|
+
or note — redact them (`sk-•••`). This mirrors the repo's hardcoded-secret rule.
|
|
222
|
+
- **No egress.** This skill performs no hosted upload. The shared
|
|
223
|
+
`{{package-root}}/shared/scripts/visual-egress-guard.sh` exists for the
|
|
224
|
+
consent-gated hosted path used by `visual-plan`; it is NOT invoked here because
|
|
225
|
+
this recap never leaves the machine.
|
|
226
|
+
|
|
227
|
+
## Output
|
|
228
|
+
|
|
229
|
+
- Local MDX recap under `docs/prps/reviews/visual/<slug>/` (`plan.mdx` + bundle).
|
|
230
|
+
- A `127.0.0.1` localhost-bridge preview URL printed to stdout.
|
|
231
|
+
- **No hosted link, no shareable URL, no PR comment, no GitHub/Forgejo Action.**
|
|
232
|
+
|
|
233
|
+
## Related
|
|
234
|
+
|
|
235
|
+
- `visual-plan` — forward planning; faithful hosted+local MDX workflow with
|
|
236
|
+
consent-gated egress. Shares the wireframe quality bar word-for-word.
|
|
237
|
+
- `{{package-root}}/shared/references/agent-native-setup.md` — runtime
|
|
238
|
+
contract (install pin, connector, bridge, egress policy).
|