@yandy-r/ycc-opencode 0.0.0-stage → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +39 -0
- package/LICENSE +21 -0
- package/README.md +50 -2
- package/agents/ansible-automation-expert.md +115 -0
- package/agents/api-docs-expert.md +146 -0
- package/agents/api-documenter.md +105 -0
- package/agents/architect.md +264 -0
- package/agents/architecture-analyst.md +99 -0
- package/agents/backport-conflict-resolver.md +476 -0
- package/agents/cloudflare-architect.md +85 -0
- package/agents/cloudflare-developer.md +196 -0
- package/agents/code-architect.md +101 -0
- package/agents/code-documenter.md +114 -0
- package/agents/code-explorer.md +99 -0
- package/agents/code-finder.md +83 -0
- package/agents/code-researcher.md +102 -0
- package/agents/code-reviewer.md +268 -0
- package/agents/code-simplifier.md +77 -0
- package/agents/codebase-advisor.md +130 -0
- package/agents/db-modifier.md +577 -0
- package/agents/docs-git-committer.md +220 -0
- package/agents/documentation-writer.md +92 -0
- package/agents/feature-researcher.md +121 -0
- package/agents/feature-writer.md +89 -0
- package/agents/frontend-ui-developer.md +98 -0
- package/agents/git-cleanup.md +174 -0
- package/agents/go-api-architect.md +172 -0
- package/agents/go-expert-architect.md +147 -0
- package/agents/implementor.md +167 -0
- package/agents/library-docs-writer.md +128 -0
- package/agents/nextjs-ux-ui-expert.md +127 -0
- package/agents/nodejs-backend-architect.md +112 -0
- package/agents/nodejs-backend-developer.md +184 -0
- package/agents/planner.md +257 -0
- package/agents/pr-comment-fixer.md +626 -0
- package/agents/practices-researcher.md +80 -0
- package/agents/project-file-cleaner.md +140 -0
- package/agents/prp-researcher.md +231 -0
- package/agents/python-developer.md +171 -0
- package/agents/python-expert-architect.md +188 -0
- package/agents/readme-generator.md +100 -0
- package/agents/release-fix-applier.md +558 -0
- package/agents/releaser.md +147 -0
- package/agents/research-specialist.md +106 -0
- package/agents/reverse-proxy-architect.md +131 -0
- package/agents/review-fixer.md +609 -0
- package/agents/root-cause-analyzer.md +105 -0
- package/agents/rust-build-resolver.md +183 -0
- package/agents/rust-expert-architect.md +149 -0
- package/agents/rust-reviewer.md +126 -0
- package/agents/sql-database-developer.md +195 -0
- package/agents/systems-engineering-expert.md +203 -0
- package/agents/terraform-architect.md +109 -0
- package/agents/terraform-developer.md +229 -0
- package/agents/test-strategy-planner.md +126 -0
- package/agents/turso-database-architect.md +139 -0
- package/agents/typescript-developer.md +170 -0
- package/agents/typescript-expert-architect.md +167 -0
- package/index.js +523 -0
- package/package.json +36 -4
- package/registration.json +7259 -0
- package/shared/references/agent-native-setup.md +121 -0
- package/shared/references/branch-prep.md +31 -0
- package/shared/references/branching-model.md +162 -0
- package/shared/references/ci-monitoring.md +455 -0
- package/shared/references/forge-detection.md +162 -0
- package/shared/references/goal-pairing.md +55 -0
- package/shared/references/pr-base-and-backport.md +143 -0
- package/shared/references/question-policy.md +99 -0
- package/shared/references/review-artifact-format.md +141 -0
- package/shared/references/review-checklist.md +161 -0
- package/shared/references/review-dispatch.md +73 -0
- package/shared/references/session-state.md +159 -0
- package/shared/references/standalone-dispatch.md +300 -0
- package/shared/references/target-capability-matrix.md +516 -0
- package/shared/references/visual-mode.md +155 -0
- package/shared/references/worktree-strategy.md +326 -0
- package/shared/scripts/backport-audit.sh +283 -0
- package/shared/scripts/ci-monitor.sh +637 -0
- package/shared/scripts/lib/backport-lib.sh +47 -0
- package/shared/scripts/lib/ci-classify.sh +103 -0
- package/shared/scripts/lib/forge.sh +264 -0
- package/shared/scripts/lib/release-state-lib.sh +300 -0
- package/shared/scripts/list-worktrees.sh +178 -0
- package/shared/scripts/merge-children.sh +82 -0
- package/shared/scripts/move-plan-to-worktree.sh +231 -0
- package/shared/scripts/pr-guard.sh +283 -0
- package/shared/scripts/prepare-feature-branch.sh +326 -0
- package/shared/scripts/release-ci-monitor.sh +671 -0
- package/shared/scripts/release-state-update.sh +216 -0
- package/shared/scripts/release-state.sh +178 -0
- package/shared/scripts/report-bundle-drift.sh +343 -0
- package/shared/scripts/require-python.sh +17 -0
- package/shared/scripts/resolve-plans-dir.sh +262 -0
- package/shared/scripts/rules-pointer.sh +20 -0
- package/shared/scripts/rules_pointer.py +267 -0
- package/shared/scripts/setup-worktree.sh +288 -0
- package/shared/scripts/validate-file-paths.sh +249 -0
- package/shared/scripts/visual-egress-guard.sh +303 -0
- package/shared/scripts/visual-recap-collect.sh +247 -0
- package/shared/scripts/worktree-paths.sh +91 -0
- package/skills/backport/SKILL.md +293 -0
- package/skills/backport/scripts/cherry-pick-pr.sh +232 -0
- package/skills/backport/scripts/find-pending.sh +199 -0
- package/skills/blueprint/SKILL.md +412 -0
- package/skills/blueprint/references/bootstrap-mapping.md +87 -0
- package/skills/bundle-author/SKILL.md +121 -0
- package/skills/bundle-author/references/surface-map.md +128 -0
- package/skills/bundle-author/references/templates/agent-template.md +21 -0
- package/skills/bundle-author/references/templates/skill-template.md +36 -0
- package/skills/bundle-author/references/when-not-to-scaffold.md +85 -0
- package/skills/bundle-author/scripts/scaffold-skill.sh +156 -0
- package/skills/bundle-release/SKILL.md +192 -0
- package/skills/bundle-release/references/release-checklist.md +196 -0
- package/skills/bundle-release/references/release-notes-template.md +48 -0
- package/skills/bundle-release/references/version-policy.md +156 -0
- package/skills/bundle-release/scripts/bump-version.sh +99 -0
- package/skills/bundle-release/scripts/draft-notes.sh +222 -0
- package/skills/bundle-release/scripts/preflight.sh +165 -0
- package/skills/bundle-release/scripts/release_versions.py +375 -0
- package/skills/clean/SKILL.md +109 -0
- package/skills/clean/references/agent-prompts.md +199 -0
- package/skills/clean/references/safety-config.md +125 -0
- package/skills/clean/scripts/detect-project-type.sh +423 -0
- package/skills/clean/scripts/generate-report.sh +245 -0
- package/skills/clean/scripts/validate-safety.sh +401 -0
- package/skills/code-report/SKILL.md +377 -0
- package/skills/code-report/scripts/check-prerequisites.sh +65 -0
- package/skills/code-report/templates/report-structure.md +202 -0
- package/skills/code-review/SKILL.md +155 -0
- package/skills/code-review/references/pr-procedure.md +311 -0
- package/skills/compatibility-audit/SKILL.md +229 -0
- package/skills/compatibility-audit/references/reading-the-report.md +162 -0
- package/skills/compatibility-audit/scripts/audit-install-assumptions.sh +431 -0
- package/skills/compatibility-audit/scripts/audit-target-features.sh +596 -0
- package/skills/deep-research/SKILL.md +251 -0
- package/skills/deep-research/references/analysis-prompts.md +702 -0
- package/skills/deep-research/references/completion-summary-template.md +66 -0
- package/skills/deep-research/references/persona-analogical.md +159 -0
- package/skills/deep-research/references/persona-archaeological.md +69 -0
- package/skills/deep-research/references/persona-contrarian.md +155 -0
- package/skills/deep-research/references/persona-futurist.md +70 -0
- package/skills/deep-research/references/persona-historical.md +142 -0
- package/skills/deep-research/references/persona-journalistic.md +69 -0
- package/skills/deep-research/references/persona-negative-space.md +70 -0
- package/skills/deep-research/references/persona-systems.md +69 -0
- package/skills/deep-research/references/synthesis-template.md +569 -0
- package/skills/deep-research/references/verification-log-template.md +32 -0
- package/skills/deep-research/scripts/check-prerequisites.sh +153 -0
- package/skills/deep-research/scripts/validate-research.sh +244 -0
- package/skills/feature-research/SKILL.md +294 -0
- package/skills/feature-research/scripts/validate-research.sh +159 -0
- package/skills/feature-research/scripts/validate-spec.sh +270 -0
- package/skills/feature-research/templates/research-agents.md +569 -0
- package/skills/feature-research/templates/spec-structure.md +437 -0
- package/skills/formatters/SKILL.md +209 -0
- package/skills/formatters/references/best-practices.md +78 -0
- package/skills/formatters/references/flag-reference.md +178 -0
- package/skills/formatters/references/stack-detection.md +119 -0
- package/skills/formatters/references/templates/husky-pre-commit.tmpl +13 -0
- package/skills/formatters/references/templates/justfile-snippet.just.tmpl +31 -0
- package/skills/formatters/references/templates/lefthook.yml.tmpl +22 -0
- package/skills/formatters/references/templates/lint-autofix.yml.tmpl +94 -0
- package/skills/formatters/references/templates/lint.yml.tmpl +85 -0
- package/skills/formatters/references/templates/makefile-snippet.mk.tmpl +34 -0
- package/skills/formatters/references/templates/package-json-scripts.json.tmpl +14 -0
- package/skills/formatters/references/templates/readme-section.md.tmpl +118 -0
- package/skills/formatters/scripts/apply-aliases.sh +245 -0
- package/skills/formatters/scripts/apply-ci.sh +136 -0
- package/skills/formatters/scripts/apply-docs.sh +187 -0
- package/skills/formatters/scripts/apply-hooks.sh +261 -0
- package/skills/formatters/scripts/bundle/format.sh +15 -0
- package/skills/formatters/scripts/bundle/go-tools.sh +119 -0
- package/skills/formatters/scripts/bundle/init-formatters.sh +517 -0
- package/skills/formatters/scripts/bundle/install-shellcheck.sh +85 -0
- package/skills/formatters/scripts/bundle/lib/excludes.sh +179 -0
- package/skills/formatters/scripts/bundle/lib/modified-files.sh +222 -0
- package/skills/formatters/scripts/bundle/lib/shellcheck-resolve.sh +81 -0
- package/skills/formatters/scripts/bundle/lib/shellcheck-version.sh +5 -0
- package/skills/formatters/scripts/bundle/lint.sh +15 -0
- package/skills/formatters/scripts/bundle/style.sh +1410 -0
- package/skills/formatters/scripts/bundle/templates/biome.json +81 -0
- package/skills/formatters/scripts/bundle/templates/clippy.toml +2 -0
- package/skills/formatters/scripts/bundle/templates/markdownlint.json +14 -0
- package/skills/formatters/scripts/bundle/templates/markdownlintignore +38 -0
- package/skills/formatters/scripts/bundle/templates/prettierignore +45 -0
- package/skills/formatters/scripts/bundle/templates/prettierrc.json +11 -0
- package/skills/formatters/scripts/bundle/templates/python-pyproject.toml +80 -0
- package/skills/formatters/scripts/bundle/templates/rustfmt.toml +41 -0
- package/skills/formatters/scripts/bundle/templates/tsconfig.json +21 -0
- package/skills/formatters/scripts/profile-style.sh +264 -0
- package/skills/frontend-design/SKILL.md +151 -0
- package/skills/frontend-patterns/SKILL.md +66 -0
- package/skills/frontend-patterns/references/animation.md +21 -0
- package/skills/frontend-patterns/references/components-and-state.md +40 -0
- package/skills/frontend-patterns/references/data-and-performance.md +34 -0
- package/skills/frontend-patterns/references/forms-errors-a11y.md +35 -0
- package/skills/git-cleanup/SKILL.md +300 -0
- package/skills/git-cleanup/references/active-code-rules.md +323 -0
- package/skills/git-cleanup/references/host-detection.md +217 -0
- package/skills/git-workflow/SKILL.md +132 -0
- package/skills/git-workflow/references/ci-monitoring-phase.md +130 -0
- package/skills/git-workflow/references/commit-phases.md +247 -0
- package/skills/git-workflow/references/examples-and-troubleshooting.md +47 -0
- package/skills/git-workflow/references/goal-pairing.md +23 -0
- package/skills/git-workflow/references/pr-creation.md +269 -0
- package/skills/git-workflow/scripts/analyze-changes.sh +266 -0
- package/skills/git-workflow/scripts/create-pr.sh +464 -0
- package/skills/git-workflow/scripts/validate-commit.sh +235 -0
- package/skills/git-workflow/templates/agent-prompts.md +518 -0
- package/skills/git-workflow/templates/commit-types.md +504 -0
- package/skills/git-workflow/templates/documentation-decision.md +509 -0
- package/skills/git-workflow/templates/pr-template.md +772 -0
- package/skills/go-patterns/SKILL.md +89 -0
- package/skills/go-patterns/references/design-and-tooling.md +336 -0
- package/skills/go-patterns/references/errors-and-concurrency.md +292 -0
- package/skills/go-testing/SKILL.md +133 -0
- package/skills/go-testing/references/advanced-testing.md +349 -0
- package/skills/go-testing/references/test-structure.md +277 -0
- package/skills/hooks-workflow/SKILL.md +232 -0
- package/skills/hooks-workflow/references/support-notes.md +134 -0
- package/skills/hooks-workflow/references/templates/claude-settings.json.tmpl +13 -0
- package/skills/hooks-workflow/references/templates/codex-config-fragment.toml.tmpl +9 -0
- package/skills/hooks-workflow/references/templates/cursor-rule-fragment.mdc.tmpl +16 -0
- package/skills/hooks-workflow/scripts/build-hook-config.sh +487 -0
- package/skills/hooks-workflow/scripts/verify-hooks.sh +257 -0
- package/skills/implement-plan/SKILL.md +223 -0
- package/skills/implement-plan/references/agent-task-prompt.md +214 -0
- package/skills/implement-plan/references/output-formats.md +150 -0
- package/skills/implement-plan/references/plan-inputs.md +126 -0
- package/skills/implement-plan/scripts/check-prerequisites.sh +78 -0
- package/skills/implement-plan/scripts/parse-dependencies.sh +206 -0
- package/skills/init/SKILL.md +274 -0
- package/skills/init/references/conventional-commits.md +114 -0
- package/skills/init/references/flag-reference.md +236 -0
- package/skills/init/references/label-taxonomy.md +115 -0
- package/skills/init/references/project-profile-heuristics.md +156 -0
- package/skills/init/references/template-library.md +129 -0
- package/skills/init/scripts/count-source-files.sh +60 -0
- package/skills/init/scripts/generate-agent-catalog.sh +193 -0
- package/skills/init/scripts/generate-mcp-catalog.sh +214 -0
- package/skills/init/scripts/migrate-rules.py +459 -0
- package/skills/init/scripts/migrate-rules.sh +26 -0
- package/skills/init/scripts/profile-project.sh +453 -0
- package/skills/init/scripts/render-template.py +226 -0
- package/skills/init/scripts/render-template.sh +25 -0
- package/skills/init/scripts/rules-report.sh +31 -0
- package/skills/init/scripts/rules_file_lib.py +41 -0
- package/skills/init/templates/AGENTS.md.tmpl +38 -0
- package/skills/init/templates/CLAUDE.md.tmpl +7 -0
- package/skills/init/templates/ai-rule.md.tmpl +3 -0
- package/skills/init/templates/cursor-rule.mdc.tmpl +7 -0
- package/skills/init/templates/git/commitlint.config.cjs.tmpl +40 -0
- package/skills/init/templates/git/gitignore.tmpl +121 -0
- package/skills/init/templates/git/gitmessage.tmpl +27 -0
- package/skills/init/templates/git/install-lefthook.sh.tmpl +131 -0
- package/skills/init/templates/git/lefthook-usage.md.tmpl +101 -0
- package/skills/init/templates/git/lefthook.yml.tmpl +64 -0
- package/skills/init/templates/github/bug_report.yml.tmpl +78 -0
- package/skills/init/templates/github/config.yml.tmpl +5 -0
- package/skills/init/templates/github/copilot-instructions.md.tmpl +24 -0
- package/skills/init/templates/github/docs_request.yml.tmpl +41 -0
- package/skills/init/templates/github/feature_request.yml.tmpl +59 -0
- package/skills/init/templates/github/labels.md.tmpl +75 -0
- package/skills/init/templates/github/pull_request_template.md.tmpl +66 -0
- package/skills/init/templates/github/workflows/pr-title-autofix.yml.tmpl +101 -0
- package/skills/init/templates/github/workflows/pr-title.yml.tmpl +55 -0
- package/skills/init/templates/workspace-report.md +83 -0
- package/skills/orchestrate/SKILL.md +165 -0
- package/skills/orchestrate/references/agent-catalog.md +601 -0
- package/skills/orchestrate/references/agent-prompts.md +495 -0
- package/skills/orchestrate/references/dispatch-playbook.md +333 -0
- package/skills/orchestrate/references/task-breakdown.md +410 -0
- package/skills/orchestrate/scripts/analyze-task.sh +139 -0
- package/skills/orchestrate/scripts/summarize-results.sh +160 -0
- package/skills/orchestrate/scripts/validate-agents.sh +92 -0
- package/skills/parallel-plan/SKILL.md +124 -0
- package/skills/plan/SKILL.md +136 -0
- package/skills/plan/references/enhanced-personas.md +131 -0
- package/skills/plan/references/personas-and-merge.md +77 -0
- package/skills/plan/references/plan-validation.md +65 -0
- package/skills/plan/references/planner-prompts.md +68 -0
- package/skills/plan/references/planning-tracks.md +73 -0
- package/skills/plan-workflow/SKILL.md +409 -0
- package/skills/plan-workflow/references/checkpoint-messages.md +370 -0
- package/skills/plan-workflow/references/plan-structure.md +238 -0
- package/skills/plan-workflow/references/planning-agents.md +511 -0
- package/skills/plan-workflow/references/research-agents-optimized.md +348 -0
- package/skills/plan-workflow/references/research-agents.md +436 -0
- package/skills/plan-workflow/references/shared-structure.md +152 -0
- package/skills/plan-workflow/references/validation-agents.md +363 -0
- package/skills/plan-workflow/scripts/check-prerequisites.sh +65 -0
- package/skills/plan-workflow/scripts/check-state.sh +190 -0
- package/skills/plan-workflow/scripts/persist-or-fail.sh +135 -0
- package/skills/plan-workflow/scripts/validate-analysis-artifacts.sh +216 -0
- package/skills/plan-workflow/scripts/validate-research-artifacts.sh +225 -0
- package/skills/plan-workflow/scripts/validate-shared.sh +229 -0
- package/skills/plan-workflow/scripts/validate-workflow-plan.sh +256 -0
- package/skills/pr-autofix/SKILL.md +309 -0
- package/skills/pr-autofix/references/ci-loop.md +64 -0
- package/skills/pr-autofix/references/comment-sources.md +197 -0
- package/skills/pr-autofix/references/data-shapes.md +87 -0
- package/skills/pr-autofix/references/goal-example.md +30 -0
- package/skills/pr-autofix/references/output-templates.md +162 -0
- package/skills/pr-autofix/references/prompt-injection-safety.md +165 -0
- package/skills/pr-autofix/references/related-skills.md +11 -0
- package/skills/pr-autofix/references/severity-mapping.md +146 -0
- package/skills/pr-autofix/scripts/fetch-pr-comments.sh +364 -0
- package/skills/pr-autofix/scripts/post-summary.sh +226 -0
- package/skills/pr-autofix/scripts/resolve-thread.sh +251 -0
- package/skills/prp-commit/SKILL.md +128 -0
- package/skills/prp-implement/SKILL.md +179 -0
- package/skills/prp-implement/references/agent-task-prompt.md +36 -0
- package/skills/prp-implement/references/detection.md +49 -0
- package/skills/prp-implement/references/dry-run.md +0 -0
- package/skills/prp-implement/references/report-output.md +204 -0
- package/skills/prp-implement/references/validation-and-failures.md +118 -0
- package/skills/prp-plan/SKILL.md +323 -0
- package/skills/prp-plan/references/enhanced-researchers.md +425 -0
- package/skills/prp-plan/references/parallel-additions.md +56 -0
- package/skills/prp-plan/references/plan-template.md +264 -0
- package/skills/prp-plan/references/synthesis-map.md +25 -0
- package/skills/prp-plan/scripts/validate-prp-plan.sh +368 -0
- package/skills/prp-pr/SKILL.md +404 -0
- package/skills/prp-prd/SKILL.md +444 -0
- package/skills/prp-spec/SKILL.md +276 -0
- package/skills/python-patterns/SKILL.md +103 -0
- package/skills/python-patterns/references/core-idioms.md +304 -0
- package/skills/python-patterns/references/design-and-tooling.md +407 -0
- package/skills/python-testing/SKILL.md +114 -0
- package/skills/python-testing/references/mocking-and-integration.md +395 -0
- package/skills/python-testing/references/pytest-core.md +366 -0
- package/skills/quick-fix/SKILL.md +246 -0
- package/skills/quick-review/SKILL.md +306 -0
- package/skills/release-model/SKILL.md +233 -0
- package/skills/release-model/references/pointer-and-labels.md +83 -0
- package/skills/release-model/references/signals-and-proposal.md +68 -0
- package/skills/release-model/references/template-placeholders.md +42 -0
- package/skills/release-model/references/upgrade-and-audit.md +131 -0
- package/skills/release-model/scripts/collect-signals.sh +459 -0
- package/skills/release-model/scripts/pointer-targets.sh +29 -0
- package/skills/release-model/templates/RELEASING.md.tmpl +151 -0
- package/skills/releaser/SKILL.md +253 -0
- package/skills/releaser/references/ci-optimization-checklist.md +149 -0
- package/skills/releaser/references/ci-templates/docker-release.yml +88 -0
- package/skills/releaser/references/ci-templates/generic-release.yml +69 -0
- package/skills/releaser/references/ci-templates/go-release.yml +50 -0
- package/skills/releaser/references/ci-templates/node-release.yml +126 -0
- package/skills/releaser/references/ci-templates/python-release.yml +95 -0
- package/skills/releaser/references/ci-templates/rust-release.yml +128 -0
- package/skills/releaser/references/ci-workflow-modes.md +42 -0
- package/skills/releaser/references/goal-pairing.md +37 -0
- package/skills/releaser/references/output-templates.md +143 -0
- package/skills/releaser/references/project-type-matrix.md +144 -0
- package/skills/releaser/references/release-branches.md +138 -0
- package/skills/releaser/references/release-ci-loop.md +249 -0
- package/skills/releaser/references/release-notes-template.md +42 -0
- package/skills/releaser/references/release-preparation.md +210 -0
- package/skills/releaser/scripts/check-release-branch.sh +235 -0
- package/skills/releaser/scripts/detect-project.sh +234 -0
- package/skills/releaser/scripts/draft-changelog.sh +387 -0
- package/skills/releaser/scripts/publish-release.sh +302 -0
- package/skills/research-to-issues/SKILL.md +287 -0
- package/skills/research-to-issues/references/label-taxonomy.md +48 -0
- package/skills/research-to-issues/references/parse-deep-research.md +86 -0
- package/skills/research-to-issues/references/parse-feature-spec.md +143 -0
- package/skills/research-to-issues/references/parse-parallel-plan.md +124 -0
- package/skills/research-to-issues/references/parse-prd.md +184 -0
- package/skills/research-to-issues/references/parse-prp-plan.md +237 -0
- package/skills/research-to-issues/references/plan-display-format.md +136 -0
- package/skills/research-to-issues/scripts/validate-prerequisites.sh +312 -0
- package/skills/research-to-issues/templates/feature-issue.md +131 -0
- package/skills/research-to-issues/templates/task-issue.md +104 -0
- package/skills/research-to-issues/templates/tracking-issue.md +126 -0
- package/skills/resume-session/SKILL.md +154 -0
- package/skills/review-fix/SKILL.md +231 -0
- package/skills/review-fix/references/fix-report.md +121 -0
- package/skills/review-fix/references/fixer-dispatch.md +79 -0
- package/skills/review-fix/references/plan.md +119 -0
- package/skills/rust-patterns/SKILL.md +85 -0
- package/skills/rust-patterns/references/concurrency-unsafe-modules.md +243 -0
- package/skills/rust-patterns/references/ownership-errors-types.md +262 -0
- package/skills/rust-testing/SKILL.md +99 -0
- package/skills/rust-testing/references/advanced-testing.md +247 -0
- package/skills/rust-testing/references/unit-and-integration.md +193 -0
- package/skills/save-session/SKILL.md +161 -0
- package/skills/shared-context/SKILL.md +101 -0
- package/skills/ts-patterns/SKILL.md +159 -0
- package/skills/ts-patterns/references/async-runtimes-tooling.md +375 -0
- package/skills/ts-patterns/references/types-errors-modules.md +336 -0
- package/skills/ts-testing/SKILL.md +151 -0
- package/skills/ts-testing/references/advanced-testing.md +350 -0
- package/skills/ts-testing/references/vitest-core.md +318 -0
- package/skills/visual-plan/SKILL.md +221 -0
- package/skills/visual-plan/references/canvas.md +132 -0
- package/skills/visual-plan/references/document-quality.md +178 -0
- package/skills/visual-plan/references/exemplar.md +120 -0
- package/skills/visual-plan/references/wireframe.md +212 -0
- package/skills/visual-plan/scripts/derive-visual-dir.sh +77 -0
- package/skills/visual-recap/SKILL.md +238 -0
- package/skills/visual-recap/references/wireframe.md +237 -0
- package/skills/write-docs/SKILL.md +354 -0
- package/skills/write-docs/scripts/audit-documentation.sh +190 -0
- package/skills/write-docs/scripts/generate-doc-index.sh +125 -0
- package/skills/write-docs/scripts/verify-links.sh +81 -0
- package/skills/write-docs/templates/docs-readme.md +34 -0
- package/skills/write-docs/templates/documentation-strategy.md +91 -0
- package/ycc-sensitive-guard/index.js +621 -0
- package/ycc-sensitive-guard/package.json +7 -0
- package/ycc-sensitive-guard/policy.json +40 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
# HTML wireframe quality — single source of truth
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
This file is the canonical quality bar for HTML wireframes / `WireframeBlock`
|
|
6
|
+
content, shared word for word by `visual-plan` and `visual-recap`. Read it in
|
|
7
|
+
full before authoring ANY wireframe; do not author wireframes from memory or paraphrase
|
|
8
|
+
these rules per command.
|
|
9
|
+
|
|
10
|
+
**A wireframe is an HTML mockup. The renderer owns the look; you write the content.**
|
|
11
|
+
Set `data.html` to a self-contained, semantic HTML fragment of the screen and set
|
|
12
|
+
`data.surface`. The renderer owns the surface footprint/aspect, the dark/light theme,
|
|
13
|
+
the hand-drawn font, and the sketch overlay — you never write `<html>`/`<body>`/`<svg>`
|
|
14
|
+
tags or any width/height/coordinates. You write real HTML layout and real product
|
|
15
|
+
content; the renderer styles and roughens it.
|
|
16
|
+
|
|
17
|
+
**A wireframe block's data is an HTML screen plus a surface:**
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"surface": "browser",
|
|
22
|
+
"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>"
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
**Write PLAIN semantic HTML and let the renderer style it.** Bare elements
|
|
27
|
+
(`h1`/`h2`/`h3`, `p`, `button`, `input`, `label`, `a`, `hr`) are auto-themed — no
|
|
28
|
+
classes needed. Helper classes carry the rest:
|
|
29
|
+
|
|
30
|
+
- `.wf-card` / `.wf-box` — a bordered, padded container (a panel, a list item).
|
|
31
|
+
- `.wf-pill` / `.wf-chip` — a rounded tag or filter; add `.accent` for the
|
|
32
|
+
accent-filled variant.
|
|
33
|
+
- `.wf-muted` — secondary/muted text.
|
|
34
|
+
- `button.primary` or any element with `[data-primary]` — the accent-filled primary
|
|
35
|
+
button.
|
|
36
|
+
|
|
37
|
+
**No decorative shadows around mockups.** Do not put `box-shadow`,
|
|
38
|
+
`filter: drop-shadow(...)`, Tailwind `shadow-*` classes, or other fake depth effects on
|
|
39
|
+
a wireframe frame, root container, `.wf-card` / `.wf-box`, or canvas artboard. Mockups
|
|
40
|
+
should read as flat, bordered surfaces; use spacing, borders, labels, and annotations
|
|
41
|
+
for separation. Only show a shadow when the real product UI already has that shadow and
|
|
42
|
+
it is essential to the change being reviewed.
|
|
43
|
+
|
|
44
|
+
**Use renderer icons, not visible icon words.** For icon-only buttons or leading icons
|
|
45
|
+
inside fields, chips, menu items, and toolbars, write an empty marker such as
|
|
46
|
+
`<i data-icon="mail"></i>` or `<span data-icon="search"></span>`. The renderer replaces
|
|
47
|
+
it with a Tabler-style SVG and the `.wf-icon` class sizes it to the surrounding text.
|
|
48
|
+
Supported names and aliases: `mail`/`email`, `lock`/`password`, `search`, `plus`/`add`,
|
|
49
|
+
`x`/`close`, `check`, `chevronDown`, `chevronUp`, `chevronLeft`, `chevronRight`,
|
|
50
|
+
`dots`/`more`, `chevron`/`caret`/`dropdown` (down chevron), `user`, `settings`,
|
|
51
|
+
`calendar`, `bell`, `send`, `edit`, `arrowLeft`, and `arrowRight`. Do not put visible
|
|
52
|
+
words like "email", "lock", "search", "chevron", or "more" where the product UI would
|
|
53
|
+
show an icon; use text only when it is a real label a user would read.
|
|
54
|
+
|
|
55
|
+
**Use the `--wf-*` tokens for any custom color, never hex.** The renderer flips these on
|
|
56
|
+
light/dark, so reading them is what keeps a mockup correct in both themes. For any
|
|
57
|
+
inline border, background, or text color, reference a token:
|
|
58
|
+
`style="border:1.4px solid var(--wf-line)"`. The tokens are `--wf-ink` (text),
|
|
59
|
+
`--wf-muted` (secondary text), `--wf-line` (borders/dividers), `--wf-paper` (page
|
|
60
|
+
background), `--wf-card` (container surface), `--wf-accent` / `--wf-accent-fg` /
|
|
61
|
+
`--wf-accent-soft` (brand action), `--wf-warn`, `--wf-ok`, and `--wf-radius`. Never
|
|
62
|
+
hard-code a hex color and never set `font-family` — the renderer owns the sketch/clean
|
|
63
|
+
font.
|
|
64
|
+
|
|
65
|
+
**Lay out with inline `style` flex/grid.** You write the real layout —
|
|
66
|
+
`display:flex; flex-direction:column; gap:10px; padding:16px` and so on — and the
|
|
67
|
+
renderer never repositions anything. Compose the actual product: reproduce the current
|
|
68
|
+
screen, then show the modification. Real labels, real counts, real dates, real button
|
|
69
|
+
text grounded in the screen you read; not lorem or gray bars.
|
|
70
|
+
|
|
71
|
+
**Surface presets — match the real footprint, never default to desktop+mobile.** Pick
|
|
72
|
+
the `surface` that matches what the user will actually see:
|
|
73
|
+
|
|
74
|
+
- `browser`: a web page that needs a browser chrome frame around it.
|
|
75
|
+
- `desktop`: a full desktop app page or app shell.
|
|
76
|
+
- `mobile`: a phone screen, only when the work is genuinely mobile.
|
|
77
|
+
- `popover`: a small floating menu, dropdown, or inline popover.
|
|
78
|
+
- `panel`: a side panel, inspector, or sidebar widget.
|
|
79
|
+
|
|
80
|
+
A sidebar popover renders as a small surface, not a desktop page and a phone frame. Do
|
|
81
|
+
not emit `desktop` + `mobile` variants unless responsive behavior actually changes the
|
|
82
|
+
layout. For a component or widget, show one broader app-context frame only when
|
|
83
|
+
placement affects understanding, then the focused component states.
|
|
84
|
+
|
|
85
|
+
**Model the actual component shell for small surfaces.** A rendered UI change belongs in
|
|
86
|
+
a wireframe; reserve `diagram` for architecture, dependency, state, or data-flow
|
|
87
|
+
relationships. Popovers, dropdown menus, command palettes, and context menus use
|
|
88
|
+
`surface: "popover"` unless the surrounding page placement is the point of the change.
|
|
89
|
+
Dialogs, sheets, inspectors, sidebars, and long property panels use the matching
|
|
90
|
+
`panel` / `desktop` surface as appropriate. Show the real chrome: trigger or anchor when
|
|
91
|
+
it matters, title/header row, top-right actions, separators, fields, options, selected
|
|
92
|
+
states, body content, and footer actions that are visible in the workflow.
|
|
93
|
+
|
|
94
|
+
**Modify, don't redesign.** When the task changes an existing screen, reproduce the
|
|
95
|
+
current screen's real layout and footprint FIRST, then change only the delta and call it
|
|
96
|
+
out with a single annotation. Do not restack the page into a new layout. For net-new
|
|
97
|
+
surfaces, compose from the real app shell. Inspect the actual app components before
|
|
98
|
+
drawing an existing product: sidebar density, toolbar actions, overflow menus, property
|
|
99
|
+
panels, and framework chrome should match the product unless the plan intentionally
|
|
100
|
+
changes them.
|
|
101
|
+
|
|
102
|
+
**Keep product screens pure.** A product wireframe shows the app state a user would
|
|
103
|
+
actually see. Do not embed file contracts, architecture arrows, repo pills, mode
|
|
104
|
+
explanations, or implementation callouts inside the screen just to explain the plan. Put
|
|
105
|
+
those in canvas annotations, a separate diagram, or the document body. Secondary UI such
|
|
106
|
+
as properties, history, sync, export, or agent controls should appear where the real
|
|
107
|
+
product would put them: an overflow popover, sheet, panel, or separate framework sidebar
|
|
108
|
+
state, not a generic permanent right inspector unless that inspector is the actual
|
|
109
|
+
design.
|
|
110
|
+
|
|
111
|
+
**Classify mockup scope before implementation.** Before turning a plan mockup into
|
|
112
|
+
source code, decide whether each artboard represents the whole page/app shell, a route
|
|
113
|
+
body inside an existing shell, or a component/sub-surface. If an artboard includes
|
|
114
|
+
navigation, sidebars, auth banners, or a signup/login form, map those pieces to the real
|
|
115
|
+
shared shell/auth components instead of nesting the entire mockup inside the current
|
|
116
|
+
page. When a mockup references the product's standard signup/login page, find and reuse
|
|
117
|
+
that existing implementation; do not approximate it from the wireframe.
|
|
118
|
+
|
|
119
|
+
**Zoom in on sub-surfaces, don't redraw the page.** For a small sub-surface (a popover,
|
|
120
|
+
menu, dialog, toast), show the full screen once, then add a small separate artboard
|
|
121
|
+
whose `html` contains ONLY that sub-surface — do not re-draw the whole page around it,
|
|
122
|
+
and do not scale a duplicate up. Pick the matching `surface` (e.g. `popover`) so the
|
|
123
|
+
footprint is right; never widen a popover to page width.
|
|
124
|
+
|
|
125
|
+
**Loading / skeleton states.** Set `data.skeleton: true` on the wireframe and fill the
|
|
126
|
+
`html` with neutral, textless placeholder geometry — boxes and bars built as `<div>`s
|
|
127
|
+
with `background:var(--wf-line)` and explicit heights/widths, no labels or copy. The
|
|
128
|
+
renderer drops borders, sketch, and color into the skeleton register automatically.
|
|
129
|
+
Never escape to a `custom-html` document block to fake a loader.
|
|
130
|
+
|
|
131
|
+
**Editing an existing mockup.** Because this skill is LOCAL-ONLY, edit the MDX source
|
|
132
|
+
file directly (no hosted patch tool), then rerun
|
|
133
|
+
`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`
|
|
134
|
+
to re-render. Read the current `html` first so each replacement targets a unique
|
|
135
|
+
snippet; the result is re-sanitized on reload.
|
|
136
|
+
|
|
137
|
+
**Treat the wireframe border as part of the visible design.** Always wrap HTML wireframe
|
|
138
|
+
content in a root container with real inner padding before drawing cards, fields, pills,
|
|
139
|
+
labels, or controls. Use at least 14–16px of padding, `box-sizing: border-box`,
|
|
140
|
+
`height: 100%`, and `gap` between child rows so the first row never sits flush against
|
|
141
|
+
the screen border. Keep text away from borders: every container, field, button, menu
|
|
142
|
+
item, and annotation needs enough padding and line-height to read cleanly in the
|
|
143
|
+
rendered Plan view.
|
|
144
|
+
|
|
145
|
+
**Lay out children safely so they never collide.** Use HTML flex/grid with `gap`,
|
|
146
|
+
`min-width: 0`, and sensible overflow. Avoid negative margins, absolute positioning, or
|
|
147
|
+
fixed child widths that can collide when the renderer switches between light/dark,
|
|
148
|
+
sketch/clean, or different zoom levels.
|
|
149
|
+
|
|
150
|
+
**Do not wrap intentionally single-line labels.** For toolbars, tab rails, breadcrumbs,
|
|
151
|
+
chip/filter rows, branch and file names, file chips, and code filenames — any
|
|
152
|
+
deliberately single-line row — do not let long text wrap. Put `white-space: nowrap` on
|
|
153
|
+
the row (and `overflow: hidden; text-overflow: ellipsis` on the individual labels that
|
|
154
|
+
can grow), so the wireframe demonstrates the actual layout behavior instead of producing
|
|
155
|
+
ugly stacked or vertical text. Use horizontally scrollable or clipped rails for
|
|
156
|
+
overflow.
|
|
157
|
+
|
|
158
|
+
**Fill the frame; keep labels short.** Each artboard is a fixed-size surface — compose
|
|
159
|
+
enough realistic HTML to fill it top to bottom with even vertical rhythm; never leave a
|
|
160
|
+
large empty band. On desktop/app-shell sidebars, let the nav stack flex to fill
|
|
161
|
+
(`flex:1`) and add any persistent bottom action/status after it so the rail reads
|
|
162
|
+
complete in taller frames. On mobile especially, flow real rows down the whole screen
|
|
163
|
+
(status bar, header, then list/detail content) rather than a header floating above a
|
|
164
|
+
gap. Keep every label short enough to sit on one line within its column — shorten the
|
|
165
|
+
copy rather than relying on the frame to absorb it.
|
|
166
|
+
|
|
167
|
+
**Persistent chrome bars span the full frame width.** Top bars, app headers, toolbars,
|
|
168
|
+
and bottom tab/nav bars are full-width chrome, not centered content. Lay each one out as
|
|
169
|
+
a single flex row that fills the frame (`style="display:flex;align-items:center;width:100%"`)
|
|
170
|
+
and push trailing actions to the right edge with a flex spacer
|
|
171
|
+
(`<div style="flex:1"></div>`) between the leading group and the trailing group — never
|
|
172
|
+
center a bar inside a narrow, centered block, and never let it collapse to the width of
|
|
173
|
+
its contents. In a Before/After pair the bar stays full-width in BOTH states even when
|
|
174
|
+
one state has fewer controls; the spacer absorbs the difference so the remaining controls
|
|
175
|
+
hold their edge alignment.
|
|
176
|
+
|
|
177
|
+
**Pin bottom bars to the bottom of the frame.** For mobile tab bars, footers, and any
|
|
178
|
+
persistent bottom action row, make the frame itself a flex column at `height:100%`
|
|
179
|
+
(`style="display:flex;flex-direction:column;height:100%"`), give the scrolling body
|
|
180
|
+
`flex:1` so it absorbs the slack, and place the bar as the LAST child of the frame (or
|
|
181
|
+
set `margin-top:auto` on it). The bar then sits flush at the bottom of the surface
|
|
182
|
+
instead of floating directly under the content with an empty band beneath it.
|
|
183
|
+
|
|
184
|
+
**Before / after must be comparable.** When showing a state change, preserve the
|
|
185
|
+
unchanged controls in both states so the reviewer can see exactly what moved or
|
|
186
|
+
appeared; do not show an added control as a generic box floating elsewhere in the
|
|
187
|
+
surface. Place the new/changed affordance where the implementation puts it — for
|
|
188
|
+
example, a new `Edit with AI` action in a popover header belongs in the top-right header
|
|
189
|
+
slot, aligned with the title, not in the body or footer. Use the same frame size, scale,
|
|
190
|
+
outer padding, border radius, and visual density on both sides unless the change itself
|
|
191
|
+
alters those properties, and let the frame height fit the content rather than leaving a
|
|
192
|
+
tall empty lower half.
|
|
193
|
+
|
|
194
|
+
**Name the states with the column header, never inside the frame.** For document-body
|
|
195
|
+
wireframes (recaps), put the two states in a `columns` block and set each column's
|
|
196
|
+
`label` to `Before` and `After` — the renderer draws that label as an `h4` heading above
|
|
197
|
+
each frame. Do NOT bake a `Before`/`After` pill, title, or heading into the wireframe
|
|
198
|
+
`html`: a label placed inside reads as part of the product UI, lands in a random corner,
|
|
199
|
+
and clutters the comparison. The column header is the one and only place the state name
|
|
200
|
+
belongs.
|
|
201
|
+
|
|
202
|
+
**Let the surface choose side-by-side vs. stacked.** For document-body wireframes
|
|
203
|
+
(recaps), the `columns` renderer lays narrow surfaces (`mobile`, `popover`, `panel`) out
|
|
204
|
+
side by side, and automatically stacks wide surfaces (`desktop`, `browser`) vertically
|
|
205
|
+
at full document width so a large frame is never crushed into a half-width column and
|
|
206
|
+
cropped. Author both wireframes with the real `surface` and the matching `Before`/`After`
|
|
207
|
+
column labels; do not hand-stack the pair into separate top-level wireframes or duplicate
|
|
208
|
+
the state name as body content.
|
|
209
|
+
|
|
210
|
+
**Good example — a contacts list, surface `browser`.** A small, real screen composed
|
|
211
|
+
from the helper classes and tokens, layout in inline flex, no fonts or hex colors:
|
|
212
|
+
|
|
213
|
+
```html
|
|
214
|
+
<div style="display:flex;flex-direction:column;gap:12px;padding:16px;height:100%">
|
|
215
|
+
<div style="display:flex;align-items:center;justify-content:space-between">
|
|
216
|
+
<h1>Contacts</h1>
|
|
217
|
+
<button class="primary">New contact</button>
|
|
218
|
+
</div>
|
|
219
|
+
<div style="display:flex;gap:6px">
|
|
220
|
+
<span class="wf-pill accent">All 128</span>
|
|
221
|
+
<span class="wf-pill">Favorites</span>
|
|
222
|
+
<span class="wf-pill">Archived</span>
|
|
223
|
+
</div>
|
|
224
|
+
<div class="wf-card" style="display:flex;flex-direction:column;gap:0;padding:0">
|
|
225
|
+
<div style="display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1.4px solid var(--wf-line)">
|
|
226
|
+
<div style="width:32px;height:32px;border-radius:999px;background:var(--wf-accent-soft)"></div>
|
|
227
|
+
<div style="flex:1"><strong>Jane Cooper</strong><br /><small>jane@acme.co</small></div>
|
|
228
|
+
<span class="wf-pill">Lead</span>
|
|
229
|
+
</div>
|
|
230
|
+
<div style="display:flex;align-items:center;gap:10px;padding:10px 12px">
|
|
231
|
+
<div style="width:32px;height:32px;border-radius:999px;background:var(--wf-accent-soft)"></div>
|
|
232
|
+
<div style="flex:1"><strong>Marcus Lee</strong><br /><small>marcus@globex.io</small></div>
|
|
233
|
+
<span class="wf-pill">Customer</span>
|
|
234
|
+
</div>
|
|
235
|
+
</div>
|
|
236
|
+
</div>
|
|
237
|
+
```
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: write-docs
|
|
3
|
+
description: Coordinates parallel documentation agents to audit and improve project
|
|
4
|
+
docs. Use when generating codebase documentation, filling documentation gaps, or
|
|
5
|
+
updating existing docs.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Documentation Orchestration Skill
|
|
9
|
+
|
|
10
|
+
You are a documentation orchestrator deploying specialized agents to analyze the codebase and create comprehensive, consistent documentation. **Your role is to coordinate agents, not write documentation yourself.**
|
|
11
|
+
|
|
12
|
+
## Current Project Context
|
|
13
|
+
|
|
14
|
+
When the skill starts, run these commands to gather project context:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pwd # Working directory
|
|
18
|
+
test -d docs && echo "yes" || echo "no" # docs/ exists
|
|
19
|
+
test -f README.md && echo "yes" || echo "no" # README.md exists
|
|
20
|
+
test -f AGENTS.md && echo "yes" || echo "no" # AGENTS.md exists
|
|
21
|
+
test -f package.json && echo "yes" || echo "no" # Node.js project
|
|
22
|
+
test -f go.mod && echo "yes" || echo "no" # Go project
|
|
23
|
+
test -f requirements.txt && echo "yes" || echo "no" # Python project (pip)
|
|
24
|
+
test -f pyproject.toml && echo "yes" || echo "no" # Python project (poetry)
|
|
25
|
+
test -f Cargo.toml && echo "yes" || echo "no" # Rust project
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Use this information to understand the project structure and determine the documentation strategy.
|
|
29
|
+
|
|
30
|
+
## Arguments
|
|
31
|
+
|
|
32
|
+
**Target**: `$ARGUMENTS`
|
|
33
|
+
|
|
34
|
+
Parse arguments:
|
|
35
|
+
|
|
36
|
+
- **scope**: Any non-flag argument (e.g., "auth system", "api", "frontend")
|
|
37
|
+
- **--update**: Enhance existing documentation without restructuring
|
|
38
|
+
- **--fresh**: Create fresh documentation, ignoring existing structure
|
|
39
|
+
- **--dry-run**: Show what would be done without making changes
|
|
40
|
+
|
|
41
|
+
If no arguments provided, analyze the entire codebase and create a full documentation plan.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Phase 0: Documentation Audit
|
|
46
|
+
|
|
47
|
+
### Step 1: Run Documentation Audit Script
|
|
48
|
+
|
|
49
|
+
Execute the audit script to inventory existing documentation:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
{{package-root}}/skills/write-docs/scripts/audit-documentation.sh
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
This script scans:
|
|
56
|
+
|
|
57
|
+
- `docs/` directory structure and files
|
|
58
|
+
- All `README.md` files (root and subdirectories)
|
|
59
|
+
- All `AGENTS.md` files
|
|
60
|
+
- API specifications (OpenAPI, GraphQL schemas)
|
|
61
|
+
- Inline documentation density (JSDoc, docstrings)
|
|
62
|
+
|
|
63
|
+
### Step 2: Infrastructure Setup
|
|
64
|
+
|
|
65
|
+
If `docs/` doesn't exist or is minimal, create the documentation infrastructure:
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
docs/
|
|
69
|
+
├── README.md # Main documentation index
|
|
70
|
+
├── plans/
|
|
71
|
+
│ └── documentation-strategy.md
|
|
72
|
+
├── architecture/ # System design docs
|
|
73
|
+
├── api/ # API reference
|
|
74
|
+
├── features/ # Feature guides
|
|
75
|
+
├── development/ # Developer guides
|
|
76
|
+
└── reference/ # Technical reference
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Step 3: Gap Analysis
|
|
80
|
+
|
|
81
|
+
Based on audit results, identify:
|
|
82
|
+
|
|
83
|
+
- Undocumented code modules and features
|
|
84
|
+
- Outdated documentation (compare timestamps vs code changes)
|
|
85
|
+
- Missing API documentation
|
|
86
|
+
- Incomplete architecture diagrams
|
|
87
|
+
- Code without inline documentation
|
|
88
|
+
|
|
89
|
+
Write findings to `docs/plans/documentation-strategy.md` using the template.
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Phase 1: Strategy & Prioritization
|
|
94
|
+
|
|
95
|
+
### Step 4: Define Scope
|
|
96
|
+
|
|
97
|
+
Based on `$ARGUMENTS`:
|
|
98
|
+
|
|
99
|
+
- **Specific scope** (e.g., "auth system"): Focus agents on named feature/module
|
|
100
|
+
- **Full codebase** (no scope): Assign agents to different areas
|
|
101
|
+
- **--update mode**: Focus on gaps identified in Phase 0
|
|
102
|
+
- **--fresh mode**: Full documentation regeneration
|
|
103
|
+
|
|
104
|
+
### Step 5: Create Task Plan
|
|
105
|
+
|
|
106
|
+
Use the task tools (`track the task`) to create a prioritized task list:
|
|
107
|
+
|
|
108
|
+
1. Critical documentation gaps (public APIs, core features)
|
|
109
|
+
2. Architecture and system design
|
|
110
|
+
3. Feature documentation
|
|
111
|
+
4. Developer guides
|
|
112
|
+
5. Code-level documentation
|
|
113
|
+
|
|
114
|
+
Map: code areas → documentation needs → agent assignments
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Phase 2: Parallel Agent Deployment
|
|
119
|
+
|
|
120
|
+
### Step 6: Check for Dry Run
|
|
121
|
+
|
|
122
|
+
If `--dry-run` is in `$ARGUMENTS`:
|
|
123
|
+
|
|
124
|
+
- Display the documentation strategy
|
|
125
|
+
- Show which agents would be deployed
|
|
126
|
+
- List files that would be created/modified
|
|
127
|
+
- **STOP HERE** - do not deploy agents or make changes
|
|
128
|
+
|
|
129
|
+
### Step 7: Deploy Documentation Agents
|
|
130
|
+
|
|
131
|
+
**CRITICAL**: Deploy all 5 agents in a **SINGLE message** with **MULTIPLE parallel subagent invocations**.
|
|
132
|
+
|
|
133
|
+
| Agent | Plugin Agent Name | Output Location | Focus |
|
|
134
|
+
| ------------------------ | ---------------------- | -------------------- | ------------------------------------------------------------- |
|
|
135
|
+
| **Architecture Analyst** | `architecture-analyst` | `docs/architecture/` | System diagrams, component relationships, data flow (Mermaid) |
|
|
136
|
+
| **API Documenter** | `api-documenter` | `docs/api/` | Endpoint specs, request/response examples, OpenAPI |
|
|
137
|
+
| **Feature Writer** | `feature-writer` | `docs/features/` | User-facing feature guides, tutorials, use cases |
|
|
138
|
+
| **Code Documenter** | `code-documenter` | Source files | JSDoc, type docs, inline comments for complex logic |
|
|
139
|
+
| **README Generator** | `readme-generator` | `README.md` files | Project/directory READMEs, setup, usage |
|
|
140
|
+
|
|
141
|
+
### Agent Deployment Instructions
|
|
142
|
+
|
|
143
|
+
Each agent receives:
|
|
144
|
+
|
|
145
|
+
1. **Context**: The `docs/plans/documentation-strategy.md` file
|
|
146
|
+
2. **Scope**: Their specific documentation mandate
|
|
147
|
+
3. **Style Guidelines**:
|
|
148
|
+
- Clear, concise language
|
|
149
|
+
- Include code examples from actual codebase
|
|
150
|
+
- Use Mermaid syntax for all diagrams
|
|
151
|
+
- Cross-reference related documentation
|
|
152
|
+
4. **Output**: Specific file paths and format requirements
|
|
153
|
+
5. **Mode**:
|
|
154
|
+
- **Default/--update**: Enhance existing docs, preserve structure
|
|
155
|
+
- **--fresh**: Create new documentation, may restructure
|
|
156
|
+
|
|
157
|
+
### Placeholder Substitution
|
|
158
|
+
|
|
159
|
+
Before deploying agents, replace runtime placeholders in the task prompts:
|
|
160
|
+
|
|
161
|
+
- **`[SCOPE]`**: Replace with the parsed scope argument (e.g., "auth system", "api") or "the entire codebase" if no scope was provided
|
|
162
|
+
- **`[update|fresh]`**: Replace with "update" (default) or "fresh" if the `--fresh` flag is present
|
|
163
|
+
|
|
164
|
+
### Agent Task Prompts
|
|
165
|
+
|
|
166
|
+
**Architecture Analyst**:
|
|
167
|
+
|
|
168
|
+
```
|
|
169
|
+
Analyze the codebase architecture and create documentation in docs/architecture/.
|
|
170
|
+
|
|
171
|
+
Read docs/plans/documentation-strategy.md for context.
|
|
172
|
+
|
|
173
|
+
Create:
|
|
174
|
+
- docs/architecture/overview.md: High-level system overview with Mermaid diagram
|
|
175
|
+
- docs/architecture/components.md: Component descriptions and relationships
|
|
176
|
+
- docs/architecture/data-flow.md: Data flow patterns with Mermaid sequence diagrams
|
|
177
|
+
|
|
178
|
+
Use Mermaid syntax for all diagrams. Focus on [SCOPE] if specified.
|
|
179
|
+
Mode: [update|fresh]
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**API Documenter**:
|
|
183
|
+
|
|
184
|
+
```
|
|
185
|
+
Create API documentation in docs/api/.
|
|
186
|
+
|
|
187
|
+
Read docs/plans/documentation-strategy.md for context.
|
|
188
|
+
|
|
189
|
+
Create:
|
|
190
|
+
- docs/api/README.md: API overview and quick reference
|
|
191
|
+
- docs/api/endpoints.md: Detailed endpoint documentation
|
|
192
|
+
- docs/api/authentication.md: Auth methods and examples
|
|
193
|
+
- docs/api/errors.md: Error codes and handling
|
|
194
|
+
|
|
195
|
+
Include request/response examples with realistic data.
|
|
196
|
+
Focus on [SCOPE] if specified.
|
|
197
|
+
Mode: [update|fresh]
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
**Feature Writer**:
|
|
201
|
+
|
|
202
|
+
```
|
|
203
|
+
Create user-facing feature documentation in docs/features/.
|
|
204
|
+
|
|
205
|
+
Read docs/plans/documentation-strategy.md for context.
|
|
206
|
+
|
|
207
|
+
Create feature guides with:
|
|
208
|
+
- Overview and purpose
|
|
209
|
+
- Step-by-step usage instructions
|
|
210
|
+
- Code examples
|
|
211
|
+
- Common use cases
|
|
212
|
+
- Troubleshooting tips
|
|
213
|
+
|
|
214
|
+
Focus on [SCOPE] if specified.
|
|
215
|
+
Mode: [update|fresh]
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
**Code Documenter**:
|
|
219
|
+
|
|
220
|
+
```
|
|
221
|
+
Add inline documentation to source files.
|
|
222
|
+
|
|
223
|
+
Read docs/plans/documentation-strategy.md for context.
|
|
224
|
+
|
|
225
|
+
Add:
|
|
226
|
+
- JSDoc/docstrings to exported functions and classes
|
|
227
|
+
- Type documentation for complex types
|
|
228
|
+
- Inline comments for non-obvious logic
|
|
229
|
+
- Module-level documentation headers
|
|
230
|
+
|
|
231
|
+
Focus on [SCOPE] if specified.
|
|
232
|
+
Do NOT over-document obvious code.
|
|
233
|
+
Mode: [update|fresh]
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
**README Generator**:
|
|
237
|
+
|
|
238
|
+
```
|
|
239
|
+
Create/update README.md files throughout the project.
|
|
240
|
+
|
|
241
|
+
Read docs/plans/documentation-strategy.md for context.
|
|
242
|
+
|
|
243
|
+
Update:
|
|
244
|
+
- Root README.md: Project overview, setup, usage
|
|
245
|
+
- Directory READMEs: Purpose of each major directory
|
|
246
|
+
|
|
247
|
+
Include:
|
|
248
|
+
- Quick start guide
|
|
249
|
+
- Installation instructions
|
|
250
|
+
- Basic usage examples
|
|
251
|
+
- Links to detailed documentation
|
|
252
|
+
|
|
253
|
+
Focus on [SCOPE] if specified.
|
|
254
|
+
Mode: [update|fresh]
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## Phase 3: Integration & Index Generation
|
|
260
|
+
|
|
261
|
+
### Step 8: Generate Documentation Index
|
|
262
|
+
|
|
263
|
+
After agents complete, run:
|
|
264
|
+
|
|
265
|
+
```bash
|
|
266
|
+
{{package-root}}/skills/write-docs/scripts/generate-doc-index.sh
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
This creates/updates `docs/README.md` with:
|
|
270
|
+
|
|
271
|
+
- Quick links to main sections
|
|
272
|
+
- Complete navigation tree
|
|
273
|
+
- Recently updated files
|
|
274
|
+
|
|
275
|
+
### Step 9: Cross-Link Documentation
|
|
276
|
+
|
|
277
|
+
Ensure documentation is interconnected:
|
|
278
|
+
|
|
279
|
+
- Add "See Also" sections where appropriate
|
|
280
|
+
- Create category indexes (api/README.md, features/README.md, etc.)
|
|
281
|
+
- Link from code comments to detailed docs
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
## Phase 4: Quality Assurance
|
|
286
|
+
|
|
287
|
+
### Step 10: Verify Links
|
|
288
|
+
|
|
289
|
+
Run link verification:
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
{{package-root}}/skills/write-docs/scripts/verify-links.sh
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
Report and fix any broken internal links.
|
|
296
|
+
|
|
297
|
+
### Step 11: Verification Checklist
|
|
298
|
+
|
|
299
|
+
Before finalizing, verify:
|
|
300
|
+
|
|
301
|
+
- [ ] All gaps from Phase 0 audit are addressed
|
|
302
|
+
- [ ] Architecture diagrams render correctly (valid Mermaid syntax)
|
|
303
|
+
- [ ] API documentation includes request/response examples
|
|
304
|
+
- [ ] Code examples are accurate and from actual codebase
|
|
305
|
+
- [ ] Cross-references and internal links are valid
|
|
306
|
+
- [ ] Consistent style across all documentation
|
|
307
|
+
- [ ] README files explain purpose and setup clearly
|
|
308
|
+
- [ ] No duplicate content between agents' outputs
|
|
309
|
+
|
|
310
|
+
### Step 12: Final Summary
|
|
311
|
+
|
|
312
|
+
Provide completion summary:
|
|
313
|
+
|
|
314
|
+
1. **Files Created**: List of new documentation files
|
|
315
|
+
2. **Files Updated**: List of existing files enhanced
|
|
316
|
+
3. **Coverage Summary**: Documentation coverage by area
|
|
317
|
+
4. **Remaining Gaps**: Any areas that couldn't be addressed
|
|
318
|
+
5. **Maintenance Notes**: Recommendations for keeping docs current
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
## Quality Standards
|
|
323
|
+
|
|
324
|
+
### Style Guidelines
|
|
325
|
+
|
|
326
|
+
- Use clear, concise language
|
|
327
|
+
- Provide working code examples that can be copy-pasted
|
|
328
|
+
- Use Mermaid syntax for all diagrams
|
|
329
|
+
- Structure with proper headings (H1 for title, H2 for sections, H3 for subsections)
|
|
330
|
+
- Include "Prerequisites" and "Next Steps" where appropriate
|
|
331
|
+
|
|
332
|
+
### Diagram Standards (Mermaid)
|
|
333
|
+
|
|
334
|
+
- Use `graph TD` for hierarchies and flows
|
|
335
|
+
- Use `sequenceDiagram` for API/process flows
|
|
336
|
+
- Use `classDiagram` for type relationships
|
|
337
|
+
- Keep diagrams focused and readable
|
|
338
|
+
|
|
339
|
+
### Code Example Standards
|
|
340
|
+
|
|
341
|
+
- Use actual code from the codebase, not hypotheticals
|
|
342
|
+
- Include necessary imports and context
|
|
343
|
+
- Show both input and expected output where relevant
|
|
344
|
+
- Annotate complex parts with comments
|
|
345
|
+
|
|
346
|
+
---
|
|
347
|
+
|
|
348
|
+
## Important Notes
|
|
349
|
+
|
|
350
|
+
- **You are the orchestrator** - delegate writing to agents
|
|
351
|
+
- **Deploy agents in parallel** - single message with multiple Agent calls
|
|
352
|
+
- **Respect existing work** - enhance, don't replace (unless --fresh)
|
|
353
|
+
- **Quality over quantity** - focused docs are better than comprehensive but vague
|
|
354
|
+
- **Verify before completing** - run all checks before marking done
|