@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,221 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: visual-plan
|
|
3
|
+
description: Renders existing plans as interactive visual documents. Use when visualizing
|
|
4
|
+
a text plan, creating a plan wireframe, or reviewing planned architecture visually.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Visual Plan (Agent-Native Plans)
|
|
8
|
+
|
|
9
|
+
Turn an ordinary text plan into a structured, reviewable visual plan. Build the plan a reader would normally
|
|
10
|
+
skim in Markdown, but as a scannable document with editable blocks mixed in: inline diagrams, annotated code,
|
|
11
|
+
open questions, and an optional top visual review surface (wireframe canvas, live prototype, or both in tabs).
|
|
12
|
+
Architecture and backend plans stay document-only; UI and product plans start with the top canvas/prototype.
|
|
13
|
+
|
|
14
|
+
**Operational context:** Consume an existing plan without editing it, researching again, or dispatching planners. The shared --visual decorator hands off here; write only the derived visual/ output. Local-files mode is default; hosted sharing requires explicit --share consent.
|
|
15
|
+
|
|
16
|
+
`visual-plan` is the packaged entry point (slash command `/ycc:visual-plan`). It
|
|
17
|
+
**consumes an existing plan** handed to it — it does not research, dispatch, or
|
|
18
|
+
re-plan. Local-files mode uses the pinned Agent-Native Plans CLI and never
|
|
19
|
+
registers an MCP server; hosted sharing uses the Plan MCP connector only after
|
|
20
|
+
explicit consent. The install pin, auth/reconnect flow, connector names,
|
|
21
|
+
localhost bridge, block-catalog lookup, and egress policy are defined ONCE in
|
|
22
|
+
`{{package-root}}/shared/references/agent-native-setup.md`. Read
|
|
23
|
+
that file for any setup/auth/serve/egress detail rather than memorizing it here.
|
|
24
|
+
|
|
25
|
+
## Contract (read first)
|
|
26
|
+
|
|
27
|
+
This skill is the hand-off target of the shared `--visual` decorator. The full
|
|
28
|
+
contract lives in `{{package-root}}/shared/references/visual-mode.md`.
|
|
29
|
+
The non-negotiable invariants:
|
|
30
|
+
|
|
31
|
+
- **Accept ANY plan path.** Never assume `docs/prps/plans` or any fixed
|
|
32
|
+
location. The plan path is supplied by the caller and may live anywhere.
|
|
33
|
+
- **Derive `visual/` relative to the given plan path.** Output goes into a
|
|
34
|
+
`visual/` sibling of the plan file — `<dirname of plan>/visual/` — computed
|
|
35
|
+
from the path handed in, never hardcoded.
|
|
36
|
+
- **NEVER edit the plan file.** Read it; write only into the derived `visual/`
|
|
37
|
+
directory. The plan artifact stays byte-for-byte intact.
|
|
38
|
+
- **NEVER re-run research or dispatch.** Only consume the existing plan.
|
|
39
|
+
- **Print exactly one resulting link to stdout** — a hosted shareable URL, a
|
|
40
|
+
localhost preview `http://127.0.0.1:PORT/...`, or `local files only`.
|
|
41
|
+
|
|
42
|
+
## Arguments
|
|
43
|
+
|
|
44
|
+
Parse `$ARGUMENTS`:
|
|
45
|
+
|
|
46
|
+
- **`<path/to/plan.md>`** (required positional) — absolute or repo-relative path
|
|
47
|
+
to the source plan. Read it; derive `visual/` from its directory.
|
|
48
|
+
- **`--share`** (optional, **consent flag**) — the explicit, named opt-in to
|
|
49
|
+
hosted egress (destination `plan.agent-native.com`). Without it, the skill
|
|
50
|
+
runs in **local-files** mode and no plan content is uploaded to hosted storage.
|
|
51
|
+
See **Egress & consent** below.
|
|
52
|
+
|
|
53
|
+
## Mode selection (auto)
|
|
54
|
+
|
|
55
|
+
Choose the review surface from the source plan's content — do not add visual
|
|
56
|
+
chrome by default:
|
|
57
|
+
|
|
58
|
+
- **UI-first** — work is primarily product UI; review should start with screens.
|
|
59
|
+
Top canvas is the primary surface (`create-ui-plan`).
|
|
60
|
+
- **prototype-first** — review should start with a functional live prototype;
|
|
61
|
+
interaction is the main question (`create-prototype-plan`).
|
|
62
|
+
- **design-first** — review needs full-fidelity branded screens
|
|
63
|
+
(`create-plan-design`).
|
|
64
|
+
- **visual-intake** — only when the user explicitly asks for a questionnaire
|
|
65
|
+
before planning (`create-visual-questions`). Never run it as `/ycc:visual-plan`
|
|
66
|
+
preflight.
|
|
67
|
+
- **document-only** — architecture, backend, data, refactor, or API plans get NO
|
|
68
|
+
top canvas; inline `diagram` blocks sit next to the relevant prose
|
|
69
|
+
(`create-visual-plan`).
|
|
70
|
+
|
|
71
|
+
The create-tool names above apply only to the consent-gated `--share` branch.
|
|
72
|
+
Default local-files mode uses the same surface choice to author portable MDX
|
|
73
|
+
directly and MUST NOT call an MCP tool.
|
|
74
|
+
|
|
75
|
+
When the source plan is already a Codex / opencode / Markdown / pasted plan,
|
|
76
|
+
use it as `planText` and build the review surface from it instead of starting
|
|
77
|
+
over. Preserve its useful intent and codebase facts; publish a clean standalone
|
|
78
|
+
proposal (no "this revision changes…" framing).
|
|
79
|
+
|
|
80
|
+
## Block vocabulary — resolve at USE TIME
|
|
81
|
+
|
|
82
|
+
> The MDX block vocabulary drifts upstream between releases. Do NOT author from a
|
|
83
|
+
> memorized tag list — not from this skill, not from the references.
|
|
84
|
+
|
|
85
|
+
At author time (use time), fetch the live block catalog FIRST:
|
|
86
|
+
|
|
87
|
+
- Hosted / connected: call the **`get-plan-blocks`** MCP tool.
|
|
88
|
+
- `local-files`: run
|
|
89
|
+
`env AGENT_NATIVE_PLANS_MODE=local-files npx -y @agent-native/core@0.59.1 plan blocks --out <path>`
|
|
90
|
+
(per `agent-native-setup.md`) and read that file. Do not call the MCP tool in
|
|
91
|
+
this branch. If the pinned package is unavailable from cache or the registry,
|
|
92
|
+
stop with the setup error; do not guess tags or switch to hosted tools.
|
|
93
|
+
|
|
94
|
+
Render plan MDX against the freshly-fetched list. The references in this skill
|
|
95
|
+
describe block _families_ and quality bars; the catalog is the authority on
|
|
96
|
+
exact tag names, required fields, and prop shapes.
|
|
97
|
+
|
|
98
|
+
## Core workflow
|
|
99
|
+
|
|
100
|
+
1. **Read the source plan.** Read the file at the given path (read-only). Derive
|
|
101
|
+
the output dir with the thin helper (it computes the `visual/` sibling per the
|
|
102
|
+
contract and never hardcodes a location). Invoke it directly, then capture its
|
|
103
|
+
stdout as `OUT`:
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
{{package-root}}/skills/visual-plan/scripts/derive-visual-dir.sh <plan> --mkdir
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Gather the plan's exact text — do not invent source content.
|
|
110
|
+
|
|
111
|
+
2. **Resolve blocks by mode.** With `--share`, call `get-plan-blocks`. In the
|
|
112
|
+
default local-files branch, invoke `mktemp`, capture its stdout as `BLOCKS`,
|
|
113
|
+
then run
|
|
114
|
+
`env AGENT_NATIVE_PLANS_MODE=local-files npx -y @agent-native/core@0.59.1 plan blocks --out <BLOCKS>`
|
|
115
|
+
and read that temporary catalog. Never call an MCP tool in the local branch
|
|
116
|
+
or write the catalog into the portable plan directory.
|
|
117
|
+
3. **Author portable files locally.** Use the chosen surface to write `plan.mdx`
|
|
118
|
+
into the derived `visual/` dir, plus `canvas.mdx` for a canvas and
|
|
119
|
+
`prototype.mdx` for a prototype. For UI/product plans, compose the top canvas
|
|
120
|
+
first with the primary wireframes and annotated states. For non-visual plans,
|
|
121
|
+
skip the top surface and place native document blocks next to the relevant
|
|
122
|
+
prose.
|
|
123
|
+
4. **Validate locally.** Run
|
|
124
|
+
`env AGENT_NATIVE_PLANS_MODE=local-files npx -y @agent-native/core@0.59.1 plan local check --dir <OUT>`.
|
|
125
|
+
In default local-files mode, this direct MDX authoring path is the complete
|
|
126
|
+
creation flow; do not call a create, feedback, import, export, or update MCP
|
|
127
|
+
tool.
|
|
128
|
+
5. **Publish only with explicit consent.** When `--share` is present, run the
|
|
129
|
+
egress guard against `<OUT>` first. Only after it passes, call the
|
|
130
|
+
mode-matched hosted create tool from Mode selection, passing the source plan
|
|
131
|
+
and authored content in the shape that tool requires. Use its returned URL.
|
|
132
|
+
6. **Surface the link.** Without `--share`, run
|
|
133
|
+
`env AGENT_NATIVE_PLANS_MODE=local-files npx -y @agent-native/core@0.59.1 plan local serve --dir <OUT> --open`
|
|
134
|
+
using the host's long-running-process support. Capture the first localhost
|
|
135
|
+
URL and keep the bridge process alive; do not relay incidental CLI logs as
|
|
136
|
+
result output. Print that one URL, or `local files only` if serving is
|
|
137
|
+
unavailable. With `--share`, print the hosted URL returned by the create
|
|
138
|
+
tool.
|
|
139
|
+
7. **Review and revise by mode.** In local-files mode, treat file/chat feedback
|
|
140
|
+
as authoritative, edit the MDX directly, and rerun the pinned local check and
|
|
141
|
+
serve commands from steps 4 and 6. With `--share`, read hosted comments using
|
|
142
|
+
`get-plan-feedback` and apply targeted `update-visual-plan` content patches;
|
|
143
|
+
when a full replacement is unavoidable, read and preserve the complete source
|
|
144
|
+
and every surface first.
|
|
145
|
+
|
|
146
|
+
## Quality references — read before authoring
|
|
147
|
+
|
|
148
|
+
These are provider-neutral quality bars. Read the relevant one IN FULL before
|
|
149
|
+
authoring; do not paraphrase from memory:
|
|
150
|
+
|
|
151
|
+
- `{{package-root}}/skills/visual-plan/references/document-quality.md` — read
|
|
152
|
+
before authoring any plan document: the
|
|
153
|
+
plan-document quality bar and block families.
|
|
154
|
+
- `{{package-root}}/skills/visual-plan/references/canvas.md` — read before
|
|
155
|
+
building a canvas surface: canvas /
|
|
156
|
+
artboard / annotation mechanics and patch ops.
|
|
157
|
+
- `{{package-root}}/skills/visual-plan/references/wireframe.md` — read before
|
|
158
|
+
authoring wireframe blocks: the HTML
|
|
159
|
+
wireframe quality bar (`.wf-*` tokens, surfaces, icons, skeletons).
|
|
160
|
+
- `{{package-root}}/skills/visual-plan/references/exemplar.md` — read when
|
|
161
|
+
checking composition or anti-patterns: a worked
|
|
162
|
+
example plus the anti-patterns to avoid.
|
|
163
|
+
|
|
164
|
+
## Planning is read-only
|
|
165
|
+
|
|
166
|
+
Make NO source edits while building or reviewing the visual plan, and never edit
|
|
167
|
+
the input plan file. Begin editing code only after the user approves the
|
|
168
|
+
direction. The plan is the approval gate: surface it, name which files/areas the
|
|
169
|
+
work touches, and request sign-off.
|
|
170
|
+
|
|
171
|
+
## Egress & consent (default OFF)
|
|
172
|
+
|
|
173
|
+
Hosted upload is **OFF by default** and **consent-gated**. The full policy lives
|
|
174
|
+
in `{{package-root}}/shared/references/agent-native-setup.md`;
|
|
175
|
+
the operational rules for this skill:
|
|
176
|
+
|
|
177
|
+
- **Default = `local-files`.** Set `AGENT_NATIVE_PLANS_MODE=local-files`. In this
|
|
178
|
+
mode the runtime reads/writes plan files locally and never uploads them to the
|
|
179
|
+
hosted Plan database. The schema-only catalog request and browser UI shell may
|
|
180
|
+
contact the configured Plan app. Preview via the localhost bridge
|
|
181
|
+
(`env AGENT_NATIVE_PLANS_MODE=local-files npx -y @agent-native/core@0.59.1 plan local serve --dir <OUT> --open`),
|
|
182
|
+
which binds 127.0.0.1 on an ephemeral port and performs no hosted DB writes;
|
|
183
|
+
the UI reads MDX from localhost rather than hosted storage.
|
|
184
|
+
- **`--share` is the only opt-in.** It names the destination host
|
|
185
|
+
`plan.agent-native.com`. Only when the operator passes `--share` may any plan
|
|
186
|
+
content leave the machine.
|
|
187
|
+
- **Route all hosted egress through the guard.** Before any MDX/diff payload is
|
|
188
|
+
uploaded, run:
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
{{package-root}}/shared/scripts/visual-egress-guard.sh \
|
|
192
|
+
--payload <OUT> --destination plan.agent-native.com \
|
|
193
|
+
--consent plan.agent-native.com
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
The guard scans the payload for secrets, refuses non-public/private remotes,
|
|
197
|
+
and requires a consent token matching the destination. If it exits non-zero,
|
|
198
|
+
STOP — do not upload; report the gate that failed.
|
|
199
|
+
|
|
200
|
+
## Setup, auth, and the localhost bridge
|
|
201
|
+
|
|
202
|
+
For the pinned install version, the one-time per-client reconnect, the hosted
|
|
203
|
+
`plan` MCP connector (legacy alias `agent-native-plans`), local-files mode, and
|
|
204
|
+
the localhost bridge, read
|
|
205
|
+
`{{package-root}}/shared/references/agent-native-setup.md`. If a
|
|
206
|
+
hosted Plans tool returns `needs auth` / `Unauthorized` / `Session terminated`
|
|
207
|
+
in the `--share` branch, stop and give the user the reconnect step from that
|
|
208
|
+
reference — never reinstall from scratch to fix auth, and never use hosted tools
|
|
209
|
+
as a fallback for local-files mode.
|
|
210
|
+
|
|
211
|
+
## Output
|
|
212
|
+
|
|
213
|
+
Exactly one of the following is printed to stdout, per the `visual-mode.md`
|
|
214
|
+
contract:
|
|
215
|
+
|
|
216
|
+
- a hosted shareable URL under `https://plan.agent-native.com` (only with
|
|
217
|
+
`--share`, after the egress guard passes), or
|
|
218
|
+
- a localhost preview `http://127.0.0.1:PORT/...` (default local-files mode), or
|
|
219
|
+
- `local files only` when no server/host is available.
|
|
220
|
+
|
|
221
|
+
The calling planning skill surfaces whatever link this skill prints.
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Canvas & artboard placement — single source of truth
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Canvas block families
|
|
6
|
+
- Emitted files
|
|
7
|
+
- The coordinate rule
|
|
8
|
+
- Lay out mixed canvases in lanes
|
|
9
|
+
- Annotations are designer notes on the artboard
|
|
10
|
+
- Patching
|
|
11
|
+
- Never emit a titled artboard with no interior wireframe content
|
|
12
|
+
- UI mockups belong in the top visual review area
|
|
13
|
+
|
|
14
|
+
The canonical guide for how the visual-plan canvas works: artboard placement,
|
|
15
|
+
lane layout, annotations, patching, and emitted files. Read it in full before
|
|
16
|
+
authoring or editing any canvas/artboard content; do not author canvas layouts
|
|
17
|
+
from memory. Resolve exact block/component tag names against the live catalog
|
|
18
|
+
(`get-plan-blocks` for hosted sharing or the pinned local-files CLI catalog).
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Canvas block families
|
|
23
|
+
|
|
24
|
+
A plan canvas is composed from these block families (resolve exact tag names and
|
|
25
|
+
props via the catalog):
|
|
26
|
+
|
|
27
|
+
- **`<DesignBoard>`** — the canvas root that holds the artboards and annotations.
|
|
28
|
+
- **`<Section>`** — groups related artboards into a labeled region/lane.
|
|
29
|
+
- **`<Artboard>`** — a single fixed-footprint frame; its size/aspect is locked by
|
|
30
|
+
`surface` (see `wireframe.md`). Carries an `html` wireframe or references a
|
|
31
|
+
wireframe block via `blockId`.
|
|
32
|
+
- **`<Screen>`** — a product screen surface inside the board (a UI state under
|
|
33
|
+
review).
|
|
34
|
+
- **`<Annotation>`** — a plain-text designer note anchored to a frame by
|
|
35
|
+
`targetId` + `placement`.
|
|
36
|
+
- **`<Connector>`** — an arrow between neighboring steps of a real sequence.
|
|
37
|
+
|
|
38
|
+
## Emitted files
|
|
39
|
+
|
|
40
|
+
- `plan.mdx` — frontmatter plus markdown/document blocks (the plan body).
|
|
41
|
+
- `canvas.mdx` — the `<DesignBoard>` / `<Section>` / `<Artboard>` / `<Screen>` /
|
|
42
|
+
`<Annotation>` / `<Connector>` tree.
|
|
43
|
+
- `prototype.mdx` — present only for prototype plans (the functional flow).
|
|
44
|
+
|
|
45
|
+
JSON is the canonical runtime shape; MDX is the repo-friendly authoring/export
|
|
46
|
+
surface. Both live under the derived `visual/` directory.
|
|
47
|
+
|
|
48
|
+
## The coordinate rule
|
|
49
|
+
|
|
50
|
+
The `surface` locks each artboard's footprint and aspect — **never** set artboard
|
|
51
|
+
width/height and **never** use coordinates inside the wireframe HTML. Board-level
|
|
52
|
+
artboard `x`/`y` IS allowed when it creates clear lanes. Let canvas
|
|
53
|
+
auto-placement handle simple one-row boards. Sizing is always via `surface`, not
|
|
54
|
+
explicit pixels.
|
|
55
|
+
|
|
56
|
+
## Lay out mixed canvases in lanes
|
|
57
|
+
|
|
58
|
+
When a canvas contains broad `browser` / `desktop` frames plus compact `mobile`,
|
|
59
|
+
`popover`, or `panel` surfaces, do not put everything in one horizontal strip.
|
|
60
|
+
Use board-level artboard `x`/`y` to reserve lanes with generous empty space: main
|
|
61
|
+
flow on one row, compact surfaces in their own column or row, loading/error
|
|
62
|
+
states in a lower row. Keep at least **96px** between rendered artboard rectangles
|
|
63
|
+
plus room for annotation gutters. Connect only neighboring steps; never draw a
|
|
64
|
+
long connector that skips across unrelated frames. Before handoff, inspect the
|
|
65
|
+
top canvas at default zoom and move any frame whose label, connector, or
|
|
66
|
+
annotation crosses another frame.
|
|
67
|
+
|
|
68
|
+
## Annotations are designer notes on the artboard
|
|
69
|
+
|
|
70
|
+
When a top canvas is present, sprinkle Figma-style notes near the frames they
|
|
71
|
+
explain: a short heading, supporting text, and bullets — plain text layers, never
|
|
72
|
+
bordered or shadowed cards, and never a box around a frame. The renderer spaces
|
|
73
|
+
notes away from frames, so place each note by the frame it describes. Use an
|
|
74
|
+
arrow (`<Connector>`) only to point at one specific control or transition; for a
|
|
75
|
+
broad frame-level note, write text beside the frame with no connector.
|
|
76
|
+
|
|
77
|
+
**Do not create overlapping annotations.** Anchor each ordinary note to the frame
|
|
78
|
+
it explains with `targetId` + `placement` (top/right/bottom/left), and omit
|
|
79
|
+
`type` or use `type: "note"`. The renderer parks notes in a gutter beside the
|
|
80
|
+
frame and lays them out automatically. Do not use `type: "callout"`,
|
|
81
|
+
`type: "text"`, `type: "arrow"`, x/y, or points for ordinary notes; those are
|
|
82
|
+
freeform review-markup layers reserved for intentional markup in open canvas
|
|
83
|
+
space. Connectors are for real sequences only — never fake "Step 1 → Step 2"
|
|
84
|
+
lines between independent states.
|
|
85
|
+
|
|
86
|
+
## Patching
|
|
87
|
+
|
|
88
|
+
Edit one wireframe, canvas annotation, diagram, or block with targeted
|
|
89
|
+
`contentPatches` rather than regenerating the whole plan:
|
|
90
|
+
|
|
91
|
+
- `patch-wireframe-html` — edit the HTML of one artboard's wireframe.
|
|
92
|
+
- `patch-diagram-html` — edit the HTML/SVG of one diagram.
|
|
93
|
+
- `update-block` / `replace-blocks` — replace a block by stable id.
|
|
94
|
+
- `update-canvas-annotation` — edit one annotation.
|
|
95
|
+
- `read-visual-plan-source` / `patch-visual-plan-source` — granular MDX AST
|
|
96
|
+
patches by stable block, artboard, annotation, component, or wireframe-node id
|
|
97
|
+
when working from exported source files.
|
|
98
|
+
- `update-rich-text` — prose edits (agents use this or source patches; humans
|
|
99
|
+
edit prose inline in the browser).
|
|
100
|
+
|
|
101
|
+
`contentPatches` are part of the public MCP action schema, so every host can make
|
|
102
|
+
surgical edits. **Never** send a partial top-level `content` object as a shortcut
|
|
103
|
+
to add a canvas, frame, or block: `content` is a full structured replacement, so
|
|
104
|
+
omitted blocks or surfaces disappear. If a full replacement is truly unavoidable,
|
|
105
|
+
read the complete source/JSON first, include every existing block and surface in
|
|
106
|
+
the new payload, and verify the source/export immediately after the update.
|
|
107
|
+
|
|
108
|
+
## Never emit a titled artboard with no interior wireframe content
|
|
109
|
+
|
|
110
|
+
Every artboard must carry an `html` wireframe or reference a wireframe block via
|
|
111
|
+
`blockId`; when using `blockId`, the referenced wireframe block must remain in the
|
|
112
|
+
plan. If you remove a duplicate wireframe from the document body, first move its
|
|
113
|
+
`data` inline onto the corresponding canvas frame. A label-only frame or a frame
|
|
114
|
+
pointing at a deleted block renders empty and is rejected at parse time. If you
|
|
115
|
+
only have a title, write it as a section header or annotation, not an empty
|
|
116
|
+
artboard.
|
|
117
|
+
|
|
118
|
+
## UI mockups belong in the top visual review area
|
|
119
|
+
|
|
120
|
+
Static UI/product visuals live on the canvas; multi-step UI flows get both canvas
|
|
121
|
+
wireframes and a `prototype`. When the user asks for a mockup, UI state, loading
|
|
122
|
+
state, layout, screen, or visual comparison, make the canvas the primary home for
|
|
123
|
+
that static visual. Architecture/code diagrams stay inline in the document
|
|
124
|
+
(`document-quality.md` owns that rule) unless the user explicitly asks for a
|
|
125
|
+
spatial board. A skeleton/loading mockup also lives in a canvas artboard — never
|
|
126
|
+
move a mockup out of the canvas into a `custom-html` document block.
|
|
127
|
+
|
|
128
|
+
For abstract product concepts, use the canvas to create the first "I get it"
|
|
129
|
+
moment: one real app state near the top showing how the concept appears to a
|
|
130
|
+
user, followed by separate annotations or diagrams for mechanics. Do not make the
|
|
131
|
+
first artboard a hybrid of app UI and architecture notes; the app screen should be
|
|
132
|
+
inspectable as product UI on its own.
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# Plan document quality — single source of truth
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Block families (resolve exact tags via `get-plan-blocks`)
|
|
6
|
+
- Decisions
|
|
7
|
+
- Diagram primitives
|
|
8
|
+
- Open questions live at the bottom as a form
|
|
9
|
+
- `custom-html` is a bounded escape hatch only
|
|
10
|
+
- Verification must exercise the real workflow
|
|
11
|
+
|
|
12
|
+
The canonical quality bar for the plan document below the canvas: how it reads,
|
|
13
|
+
which block families to use, how open questions are surfaced, and the pre-handoff
|
|
14
|
+
check. Read it in full before authoring the plan document. Resolve exact tag
|
|
15
|
+
names and field shapes against the live catalog (`get-plan-blocks` for hosted
|
|
16
|
+
sharing or the pinned local-files CLI catalog) — the families below are the bar,
|
|
17
|
+
the catalog is the authority.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
**The document is a serious technical plan, not marketing.** Write it the way a
|
|
22
|
+
strong implementation plan reads: outcome-first, prose-first, self-contained, and
|
|
23
|
+
specific. State the objective and what "done" means, the scope and non-goals, the
|
|
24
|
+
proposed approach with key decisions and their rationale, ordered steps that name
|
|
25
|
+
real files / symbols / actions / data shapes, the risks, and a closing
|
|
26
|
+
verification step (tests, build, or a checkable behavior). Replace vague prose
|
|
27
|
+
with specifics; never ship a step like "make it work." No hero art, gradients,
|
|
28
|
+
logos, nav bars, slogans, value props, giant landing-page headings, or marketing
|
|
29
|
+
cards unless the user explicitly asks.
|
|
30
|
+
|
|
31
|
+
**Every published plan must stand alone.** Even when revising an existing plan,
|
|
32
|
+
the output is a plan to do the work, not a changelog of the conversation. Do not
|
|
33
|
+
write phrases like "preserve the previous plan", "do not drop the old idea", "as
|
|
34
|
+
discussed above", "this revision", "unlike the prior version", or "correction
|
|
35
|
+
from the earlier plan". Fold the right decisions into the plan as normal
|
|
36
|
+
objective, architecture, scope, and roadmap prose. A reviewer who opens the plan
|
|
37
|
+
from a link with no chat history should understand it. Avoid negative framing
|
|
38
|
+
that only makes sense against absent context ("not the old mode", "not just X")
|
|
39
|
+
unless the contrast is defined in the plan and genuinely helps; state the
|
|
40
|
+
positive model directly.
|
|
41
|
+
|
|
42
|
+
**Make abstract plans instantly legible.** If the idea is broad, strategic, or
|
|
43
|
+
intended for a third-party reviewer, put one concrete product snapshot near the
|
|
44
|
+
top before dense architecture, mode tables, manifests, or roadmaps. For
|
|
45
|
+
UI-capable concepts, that snapshot is usually a top-canvas app state plus a short
|
|
46
|
+
paragraph that says what the user sees and what changes under the hood. Then put
|
|
47
|
+
mechanics, data flow, sync boundaries, and implementation detail in separate
|
|
48
|
+
diagrams or document sections.
|
|
49
|
+
|
|
50
|
+
**Preserve the user's level of abstraction.** A motivating use case is not
|
|
51
|
+
automatically the architecture. When the prompt describes a broader framework,
|
|
52
|
+
product mode, or reusable primitive, separate the reusable core from specific
|
|
53
|
+
apps, providers, customers, scripts, or launch examples. Use the concrete example
|
|
54
|
+
to make the plan understandable, then make clear which parts are core, which are
|
|
55
|
+
app-specific adapters, and which are future examples.
|
|
56
|
+
|
|
57
|
+
**When top visuals exist, they and the document never duplicate each other.** For
|
|
58
|
+
UI work, the UI story lives in the top visual surface: canvas artboards for static
|
|
59
|
+
inspection, plus prototype tabs when the flow should be functional. The document
|
|
60
|
+
carries the technical depth the visuals cannot show — concrete file/symbol maps,
|
|
61
|
+
API and data contracts, code snippets, migration or implementation phases, risks,
|
|
62
|
+
and validation. For architecture/code reviews, invert that: the document is the
|
|
63
|
+
visual surface, and each recommendation carries its own nearby inline `diagram`
|
|
64
|
+
block plus file evidence. Repeat a wireframe in the document only for a genuinely
|
|
65
|
+
new detail view or comparison. Skip the visual surface entirely for non-visual
|
|
66
|
+
work and write a clean rich document.
|
|
67
|
+
|
|
68
|
+
## Block families (resolve exact tags via `get-plan-blocks`)
|
|
69
|
+
|
|
70
|
+
Use the right block, and make it carry substance:
|
|
71
|
+
|
|
72
|
+
- **`rich-text`** — plan prose with real bold/italic/code/links and nested lists.
|
|
73
|
+
- **`annotated-code`** — the file map: for a load-bearing file, prefer the
|
|
74
|
+
annotated walkthrough over a bare `code` block. Carry the real,
|
|
75
|
+
syntax-highlighted code AND anchor short margin notes to the lines that
|
|
76
|
+
actually change (the new action, the changed schema, the wiring point). Each
|
|
77
|
+
annotation is `{ lines: "12" | "12-18"; label?; note }`; keep a few high-signal
|
|
78
|
+
notes per file, not one per line. Highlight only files worth reading.
|
|
79
|
+
- **`code`** — a throwaway snippet with nothing to call out. When more than one
|
|
80
|
+
file matters, group blocks in a vertical `tabs` block rather than a bespoke
|
|
81
|
+
container.
|
|
82
|
+
- **`tabs`** — multiple states, directions, or comparisons. A tab that reveals
|
|
83
|
+
only prose usually means the plan is under-specified — include a relevant visual
|
|
84
|
+
unless the tab is intentionally document-only.
|
|
85
|
+
- **`columns`** — side-by-side before/after or current/target comparisons where
|
|
86
|
+
each side needs real nested blocks; label the columns clearly.
|
|
87
|
+
- **`diagram`** — two-dimensional architecture, dependency, data-flow, or state
|
|
88
|
+
relationships, only when it clarifies something real. See **Diagram primitives**
|
|
89
|
+
below.
|
|
90
|
+
- **`table`** — scannable structured data.
|
|
91
|
+
- **`checklist`** — copy the catalog example verbatim: items need `id` and
|
|
92
|
+
`label`.
|
|
93
|
+
- **`callout`** — for a decision you have committed to, use `tone="decision"`
|
|
94
|
+
(optionally with a `columns` block weighing the options). Use other tones for
|
|
95
|
+
concise assumptions or risks in the relevant section.
|
|
96
|
+
- **`question-form`** — the bottom-only Open Questions block (see below).
|
|
97
|
+
- **`custom-html`** — a bounded escape hatch only (see below).
|
|
98
|
+
|
|
99
|
+
## Decisions
|
|
100
|
+
|
|
101
|
+
- If the reviewer must still pick between a genuinely-open either/or, put it in
|
|
102
|
+
the bottom Open Questions `question-form` as a `single` question — one option
|
|
103
|
+
per real alternative, each with a short detail and `recommended: true` on the
|
|
104
|
+
one you would choose. Do not also restate the same choice elsewhere.
|
|
105
|
+
- If you have already committed to an approach, state it as settled prose or a
|
|
106
|
+
`callout` with `tone="decision"` — never as a confusing mid-document form for a
|
|
107
|
+
question you have already answered.
|
|
108
|
+
|
|
109
|
+
## Diagram primitives
|
|
110
|
+
|
|
111
|
+
For architecture/code diagrams, prefer `data.html` / `data.css` with semantic
|
|
112
|
+
HTML and inline SVG so the diagram can use panels, layers, matrices, arrows,
|
|
113
|
+
annotations, and responsive layout directly. Author with renderer-owned
|
|
114
|
+
primitives: `.diagram-panel`, `.diagram-card`, `.diagram-node`, `.diagram-box`,
|
|
115
|
+
`.diagram-pill`, `.diagram-muted`, and `[data-rough]` for sketchy mode. They map
|
|
116
|
+
to the theme variables `--wf-ink`, `--wf-muted`, `--wf-line`, `--wf-paper`,
|
|
117
|
+
`--wf-card`, `--wf-accent`, `--wf-accent-soft`, `--wf-warn`, and `--wf-ok`, and
|
|
118
|
+
switch to the sketch font plus rough.js outlines in sketchy mode.
|
|
119
|
+
|
|
120
|
+
- Do NOT set `font-family` and do NOT hard-code hex, rgb, or hsl colors in
|
|
121
|
+
diagram HTML or CSS.
|
|
122
|
+
- Prefer standard two-dimensional layouts — paired before/after panels, layered
|
|
123
|
+
diagrams, swimlanes, dependency maps, matrices, or grouped regions; do not
|
|
124
|
+
default to left-to-right chains, and use a line only when the relationship is
|
|
125
|
+
truly a sequence.
|
|
126
|
+
- Leave room for the sketch font: keep labels short, give nodes generous width,
|
|
127
|
+
and place boundary/annotation labels in unused space — labels must not overlap
|
|
128
|
+
nodes, connectors, or each other.
|
|
129
|
+
- For small text/SVG changes to an existing HTML diagram, use **`patch-diagram-html`**
|
|
130
|
+
with a unique `find`/`replace` snippet instead of resending the whole
|
|
131
|
+
`data.html` string. Use legacy `nodes` / `edges` only for small previews or
|
|
132
|
+
truly sequential flows.
|
|
133
|
+
|
|
134
|
+
## Open questions live at the bottom as a form
|
|
135
|
+
|
|
136
|
+
Surface answerable unresolved decisions in a final `question-form` block titled
|
|
137
|
+
"Open Questions" so the renderer presents it as a distinct section. That bottom
|
|
138
|
+
form is the ONLY place that enumerates the open questions: never add a second
|
|
139
|
+
"Open Questions" heading, list, or recap of the same questions earlier in the
|
|
140
|
+
document. A one-line pointer in the overview prose ("a few decisions are still
|
|
141
|
+
open — see Open Questions below") is fine.
|
|
142
|
+
|
|
143
|
+
- Use `single` or `multi` for clear choices, `freeform` for constraints,
|
|
144
|
+
`recommended: true` for the default you would pick. `single`/`multi` questions
|
|
145
|
+
always render a write-in field, so never add an explicit "Other" option
|
|
146
|
+
yourself; set `allowOther: false` only when a free-text answer makes no sense.
|
|
147
|
+
- Copy the catalog example verbatim for required fields: each question needs
|
|
148
|
+
`id`, `title`, and `mode`; each option needs `id` and `label`.
|
|
149
|
+
- Keep non-answerable assumptions or risks as concise `callout` blocks in the
|
|
150
|
+
relevant section. Never bury a questions/decisions wall inside the plan
|
|
151
|
+
narrative, and never ask the same question twice.
|
|
152
|
+
|
|
153
|
+
For complex plans, do not end without an open-question audit. If architecture,
|
|
154
|
+
scope, UX, data shape, rollout, provider mapping, or ownership still depends on a
|
|
155
|
+
choice, either commit to a recommendation with rationale or add it to the bottom
|
|
156
|
+
form with a recommended default.
|
|
157
|
+
|
|
158
|
+
## `custom-html` is a bounded escape hatch only
|
|
159
|
+
|
|
160
|
+
A single complete fragment inside a block, never `html`/`head`/`body`/`script`
|
|
161
|
+
tags, never a generic placeholder, density demo, or proof that custom HTML works.
|
|
162
|
+
Prefer native blocks for normal plans. For architecture/code reviews, use
|
|
163
|
+
`diagram` `data.html` / `data.css` for rich local HTML/SVG diagrams instead of
|
|
164
|
+
`custom-html`. For UI/product work, `custom-html` is never the primary home for a
|
|
165
|
+
requested mockup, UI state, or visual comparison.
|
|
166
|
+
|
|
167
|
+
## Verification must exercise the real workflow
|
|
168
|
+
|
|
169
|
+
The final verification section should go beyond typecheck/unit tests when the
|
|
170
|
+
plan changes UI, local files, sync, providers, browser behavior, or multi-app
|
|
171
|
+
flows. Include at least one end-to-end smoke that matches the user journey — a
|
|
172
|
+
fresh repo/folder, real manifest or data fixture, browser interaction, save/sync
|
|
173
|
+
action, and an on-disk or database assertion. Name the command or manual browser
|
|
174
|
+
path when it is known.
|
|
175
|
+
|
|
176
|
+
**Before handoff, open the plan and check it.** Fix overlap, excessive
|
|
177
|
+
whitespace, clipped fragments, misleading inactive controls, poor contrast, and
|
|
178
|
+
unreadable diagrams before asking for approval.
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Good vs. bad exemplar — single source of truth
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- A worked example — UI-first plan MDX
|
|
6
|
+
- GOOD — the bar
|
|
7
|
+
- BAD — never produce this
|
|
8
|
+
|
|
9
|
+
The canonical worked example of a great plan (and the anti-patterns to avoid).
|
|
10
|
+
Read it alongside `document-quality.md` and `canvas.md` before authoring a plan;
|
|
11
|
+
it is the bar these plans must clear. Resolve exact block tags against the live
|
|
12
|
+
catalog (`get-plan-blocks` for hosted sharing or the pinned local-files CLI catalog)
|
|
13
|
+
before emitting MDX.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## A worked example — UI-first plan MDX
|
|
18
|
+
|
|
19
|
+
The following sketch shows the _shape_ of a strong UI-first plan: a top canvas
|
|
20
|
+
with one real `desktop` artboard, plain-text designer notes off the frame, then a
|
|
21
|
+
serious document below it. Treat the tags as families — confirm exact names/props
|
|
22
|
+
against the catalog.
|
|
23
|
+
|
|
24
|
+
```mdx
|
|
25
|
+
---
|
|
26
|
+
title: Inbox triage redesign
|
|
27
|
+
mode: ui-first
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
{/* canvas.mdx — the top review surface */}
|
|
31
|
+
|
|
32
|
+
<DesignBoard>
|
|
33
|
+
<Section label="Triage view">
|
|
34
|
+
<Artboard id="inbox-default" surface="desktop" label="Inbox — default">
|
|
35
|
+
{/* data.html is a real flex layout: a sidebar of links
|
|
36
|
+
(Inbox 12, Today 4, Done), a main column headed "Today",
|
|
37
|
+
accent .wf-pill filters, a muted "OVERDUE" section label,
|
|
38
|
+
and .wf-card task rows with real titles, due dates, and a
|
|
39
|
+
button.primary — styled only via bare elements, helper
|
|
40
|
+
classes, and --wf-* tokens. */}
|
|
41
|
+
</Artboard>
|
|
42
|
+
<Annotation targetId="inbox-default" placement="right">
|
|
43
|
+
Overdue items float to the top; the primary action stays in the header so triage never scrolls.
|
|
44
|
+
</Annotation>
|
|
45
|
+
</Section>
|
|
46
|
+
</DesignBoard>
|
|
47
|
+
|
|
48
|
+
{/* plan.mdx — the document body */}
|
|
49
|
+
<rich-text>
|
|
50
|
+
|
|
51
|
+
## Objective
|
|
52
|
+
|
|
53
|
+
Cut inbox triage from many clicks to one. "Done" means an overdue item
|
|
54
|
+
can be deferred or completed from the row without opening it.
|
|
55
|
+
</rich-text>
|
|
56
|
+
|
|
57
|
+
<tabs>
|
|
58
|
+
{/* one `code` / `annotated-code` block per load-bearing file:
|
|
59
|
+
the new defer action, the changed query, the row component */}
|
|
60
|
+
</tabs>
|
|
61
|
+
|
|
62
|
+
<callout tone="decision">
|
|
63
|
+
Defer writes a `snoozedUntil` timestamp rather than moving the row to a separate table — see the columns block for the
|
|
64
|
+
two options weighed.
|
|
65
|
+
</callout>
|
|
66
|
+
|
|
67
|
+
<question-form title="Open Questions">
|
|
68
|
+
{/* single/multi questions for genuinely-open decisions, each option
|
|
69
|
+
with id + label, recommended: true on the default */}
|
|
70
|
+
</question-form>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
If the task also changes a multi-step completion flow, the same top area gains a
|
|
74
|
+
Prototype tab whose screens reuse the canvas labels and states.
|
|
75
|
+
|
|
76
|
+
## GOOD — the bar
|
|
77
|
+
|
|
78
|
+
- **UI-first todo/inbox plan.** A canvas `desktop` artboard whose `data.html` is a
|
|
79
|
+
real flex layout (sidebar links, a "Today" heading, accent `.wf-pill` filters, a
|
|
80
|
+
muted `OVERDUE` label, `.wf-card` task rows with real titles/dates and a
|
|
81
|
+
`button.primary`), styled only through bare elements, helper classes, and
|
|
82
|
+
`--wf-*` tokens. Plain-text designer notes sit spaced off the frame, pointing
|
|
83
|
+
only at controls that need explanation. Below it, a strong document: objective
|
|
84
|
+
and done-criteria, a few `code` blocks (grouped in a vertical `tabs` block when
|
|
85
|
+
more than one) showing the real shape of load-bearing files, a `callout` with
|
|
86
|
+
`tone="decision"` stating the chosen approach with a `columns` block weighing the
|
|
87
|
+
two real options, and a validation step — none of it repeating the canvas.
|
|
88
|
+
- **Broad product-architecture plan.** Opens with a plain recommendation and one
|
|
89
|
+
concrete app state before the abstraction. The first canvas artboard is pure
|
|
90
|
+
product UI that matches the current app shell; nearby notes explain the
|
|
91
|
+
user-visible delta. A separate `diagram` below shows the mechanics. The document
|
|
92
|
+
separates the reusable core from app/provider adapters and examples, covers
|
|
93
|
+
contracts and schema shape, roadmap, non-goals, a bottom Open Questions form, and
|
|
94
|
+
a verification section with at least one realistic end-to-end smoke.
|
|
95
|
+
- **Backend architecture review.** No top canvas. The document opens with context
|
|
96
|
+
and a legend, then repeats recommendation cards: title, confidence/category
|
|
97
|
+
badges, a monospace grid of real file paths, one inline two-dimensional
|
|
98
|
+
before/after or layered architecture `diagram` (using space to show boundaries
|
|
99
|
+
and ownership, not a default left-to-right chain), and terse
|
|
100
|
+
Problem/Solution/Why bullets in the codebase's vocabulary. Ends with a top
|
|
101
|
+
recommendation and a bottom `question-form` only if the next direction is
|
|
102
|
+
genuinely open.
|
|
103
|
+
|
|
104
|
+
## BAD — never produce this
|
|
105
|
+
|
|
106
|
+
- A `data.html` with hard-coded hex colors, a `font-family`, or fixed pixel
|
|
107
|
+
width/height.
|
|
108
|
+
- Gray placeholder bars "insinuating" text on a non-skeleton frame.
|
|
109
|
+
- A forced `desktop` + `mobile` pair for a popover.
|
|
110
|
+
- Floating bordered annotation cards hugging the frames.
|
|
111
|
+
- A multi-step UI flow with only static frames and no prototype tab.
|
|
112
|
+
- A mockup escaped into a document `custom-html` block.
|
|
113
|
+
- A marketing-style document with a hero heading and value props that just
|
|
114
|
+
restates what the canvas already shows.
|
|
115
|
+
- An architecture-only plan forced into a top canvas of labeled boxes with
|
|
116
|
+
overlapping text, where the real code evidence lives elsewhere.
|
|
117
|
+
- A product wireframe that mixes a real screen with repo names, file-contract
|
|
118
|
+
arrows, architecture explanations, or a made-up permanent inspector.
|
|
119
|
+
- A plan that describes itself as a revision of a prior conversation instead of a
|
|
120
|
+
standalone proposal.
|