specweave 0.4.0 → 0.6.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/.claude-plugin/README.md +325 -0
- package/.claude-plugin/marketplace.json +210 -0
- package/CLAUDE.md +1000 -252
- package/README.md +273 -180
- package/bin/install-agents.sh +1 -1
- package/bin/install-commands.sh +66 -14
- package/bin/install-hooks.sh +1 -1
- package/bin/install-skills.sh +1 -1
- package/bin/specweave.js +18 -0
- package/dist/adapters/adapter-base.d.ts +21 -0
- package/dist/adapters/adapter-base.d.ts.map +1 -1
- package/dist/adapters/adapter-base.js +28 -0
- package/dist/adapters/adapter-base.js.map +1 -1
- package/dist/adapters/adapter-interface.d.ts +41 -0
- package/dist/adapters/adapter-interface.d.ts.map +1 -1
- package/dist/adapters/claude/adapter.d.ts +85 -11
- package/dist/adapters/claude/adapter.d.ts.map +1 -1
- package/dist/adapters/claude/adapter.js +305 -37
- package/dist/adapters/claude/adapter.js.map +1 -1
- package/dist/adapters/copilot/adapter.d.ts +45 -2
- package/dist/adapters/copilot/adapter.d.ts.map +1 -1
- package/dist/adapters/copilot/adapter.js +226 -4
- package/dist/adapters/copilot/adapter.js.map +1 -1
- package/dist/adapters/cursor/adapter.d.ts +54 -0
- package/dist/adapters/cursor/adapter.d.ts.map +1 -1
- package/dist/adapters/cursor/adapter.js +192 -0
- package/dist/adapters/cursor/adapter.js.map +1 -1
- package/dist/adapters/generic/adapter.d.ts +43 -0
- package/dist/adapters/generic/adapter.d.ts.map +1 -1
- package/dist/adapters/generic/adapter.js +163 -0
- package/dist/adapters/generic/adapter.js.map +1 -1
- package/dist/cli/commands/init.d.ts +1 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +392 -123
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/install.d.ts +2 -0
- package/dist/cli/commands/install.d.ts.map +1 -1
- package/dist/cli/commands/install.js +28 -25
- package/dist/cli/commands/install.js.map +1 -1
- package/dist/cli/commands/list.d.ts +2 -0
- package/dist/cli/commands/list.d.ts.map +1 -1
- package/dist/cli/commands/list.js +26 -24
- package/dist/cli/commands/list.js.map +1 -1
- package/dist/cli/commands/plugin.d.ts +43 -0
- package/dist/cli/commands/plugin.d.ts.map +1 -0
- package/dist/cli/commands/plugin.js +307 -0
- package/dist/cli/commands/plugin.js.map +1 -0
- package/dist/core/i18n/language-detector.d.ts +29 -0
- package/dist/core/i18n/language-detector.d.ts.map +1 -0
- package/dist/core/i18n/language-detector.js +143 -0
- package/dist/core/i18n/language-detector.js.map +1 -0
- package/dist/core/i18n/language-manager.d.ts +101 -0
- package/dist/core/i18n/language-manager.d.ts.map +1 -0
- package/dist/core/i18n/language-manager.js +232 -0
- package/dist/core/i18n/language-manager.js.map +1 -0
- package/dist/core/i18n/language-registry.d.ts +44 -0
- package/dist/core/i18n/language-registry.d.ts.map +1 -0
- package/dist/core/i18n/language-registry.js +234 -0
- package/dist/core/i18n/language-registry.js.map +1 -0
- package/dist/core/i18n/locale-manager.d.ts +62 -0
- package/dist/core/i18n/locale-manager.d.ts.map +1 -0
- package/dist/core/i18n/locale-manager.js +137 -0
- package/dist/core/i18n/locale-manager.js.map +1 -0
- package/dist/core/i18n/system-prompt-injector.d.ts +33 -0
- package/dist/core/i18n/system-prompt-injector.d.ts.map +1 -0
- package/dist/core/i18n/system-prompt-injector.js +131 -0
- package/dist/core/i18n/system-prompt-injector.js.map +1 -0
- package/dist/core/i18n/types.d.ts +151 -0
- package/dist/core/i18n/types.d.ts.map +1 -0
- package/dist/core/i18n/types.js +11 -0
- package/dist/core/i18n/types.js.map +1 -0
- package/dist/core/increment-status.d.ts +72 -0
- package/dist/core/increment-status.d.ts.map +1 -0
- package/dist/core/increment-status.js +227 -0
- package/dist/core/increment-status.js.map +1 -0
- package/dist/core/plugin-detector.d.ts +96 -0
- package/dist/core/plugin-detector.d.ts.map +1 -0
- package/dist/core/plugin-detector.js +349 -0
- package/dist/core/plugin-detector.js.map +1 -0
- package/dist/core/plugin-loader.d.ts +131 -0
- package/dist/core/plugin-loader.d.ts.map +1 -0
- package/dist/core/plugin-loader.js +421 -0
- package/dist/core/plugin-loader.js.map +1 -0
- package/dist/core/plugin-manager.d.ts +144 -0
- package/dist/core/plugin-manager.d.ts.map +1 -0
- package/dist/core/plugin-manager.js +393 -0
- package/dist/core/plugin-manager.js.map +1 -0
- package/dist/core/schemas/plugin-manifest.schema.json +253 -0
- package/dist/core/types/config.d.ts +51 -0
- package/dist/core/types/config.d.ts.map +1 -0
- package/dist/core/types/config.js +21 -0
- package/dist/core/types/config.js.map +1 -0
- package/dist/core/types/plugin.d.ts +283 -0
- package/dist/core/types/plugin.d.ts.map +1 -0
- package/dist/core/types/plugin.js +49 -0
- package/dist/core/types/plugin.js.map +1 -0
- package/dist/hooks/lib/sync-living-docs.d.ts +27 -0
- package/dist/hooks/lib/sync-living-docs.d.ts.map +1 -0
- package/dist/hooks/lib/sync-living-docs.js +116 -0
- package/dist/hooks/lib/sync-living-docs.js.map +1 -0
- package/dist/hooks/lib/translate-living-docs.d.ts +13 -0
- package/dist/hooks/lib/translate-living-docs.d.ts.map +1 -0
- package/dist/hooks/lib/translate-living-docs.js +166 -0
- package/dist/hooks/lib/translate-living-docs.js.map +1 -0
- package/dist/hooks/lib/update-tasks-md.d.ts +29 -0
- package/dist/hooks/lib/update-tasks-md.d.ts.map +1 -0
- package/dist/hooks/lib/update-tasks-md.js +203 -0
- package/dist/hooks/lib/update-tasks-md.js.map +1 -0
- package/dist/integrations/jira/jira-incremental-mapper.js.map +1 -1
- package/dist/integrations/jira/jira-mapper.d.ts +2 -2
- package/dist/integrations/jira/jira-mapper.js +2 -2
- package/dist/integrations/jira/jira-mapper.js.map +1 -1
- package/dist/locales/de/.gitkeep +0 -0
- package/dist/locales/de/cli.json +108 -0
- package/dist/locales/en/cli.json +269 -0
- package/dist/locales/en/errors.json +7 -0
- package/dist/locales/en/templates.json +6 -0
- package/dist/locales/es/.gitkeep +0 -0
- package/dist/locales/es/cli.json +41 -0
- package/dist/locales/fr/.gitkeep +0 -0
- package/dist/locales/fr/cli.json +108 -0
- package/dist/locales/ja/.gitkeep +0 -0
- package/dist/locales/ja/cli.json +108 -0
- package/dist/locales/ko/.gitkeep +0 -0
- package/dist/locales/ko/cli.json +108 -0
- package/dist/locales/pt/.gitkeep +0 -0
- package/dist/locales/pt/cli.json +108 -0
- package/dist/locales/ru/.gitkeep +0 -0
- package/dist/locales/ru/cli.json +269 -0
- package/dist/locales/zh/.gitkeep +0 -0
- package/dist/locales/zh/cli.json +108 -0
- package/dist/plugins/specweave-github/lib/github-client.d.ts +86 -0
- package/dist/plugins/specweave-github/lib/github-client.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-client.js +275 -0
- package/dist/plugins/specweave-github/lib/github-client.js.map +1 -0
- package/dist/plugins/specweave-github/lib/index.d.ts +10 -0
- package/dist/plugins/specweave-github/lib/index.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/index.js +10 -0
- package/dist/plugins/specweave-github/lib/index.js.map +1 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.d.ts +51 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.js +147 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.js.map +1 -0
- package/dist/plugins/specweave-github/lib/task-parser.d.ts +37 -0
- package/dist/plugins/specweave-github/lib/task-parser.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/task-parser.js +211 -0
- package/dist/plugins/specweave-github/lib/task-parser.js.map +1 -0
- package/dist/plugins/specweave-github/lib/task-sync.d.ts +51 -0
- package/dist/plugins/specweave-github/lib/task-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/task-sync.js +332 -0
- package/dist/plugins/specweave-github/lib/task-sync.js.map +1 -0
- package/dist/plugins/specweave-github/lib/types.d.ts +80 -0
- package/dist/plugins/specweave-github/lib/types.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/types.js +5 -0
- package/dist/plugins/specweave-github/lib/types.js.map +1 -0
- package/dist/utils/agents-md-compiler.d.ts +68 -0
- package/dist/utils/agents-md-compiler.d.ts.map +1 -0
- package/dist/utils/agents-md-compiler.js +420 -0
- package/dist/utils/agents-md-compiler.js.map +1 -0
- package/dist/utils/generate-skills-index.js +4 -4
- package/dist/utils/generate-skills-index.js.map +1 -1
- package/package.json +24 -21
- package/plugins/specweave-ado/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-alternatives/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-alternatives/skills/bmad-method-expert/SKILL.md +626 -0
- package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/analyze-project.js +318 -0
- package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/check-setup.js +208 -0
- package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/generate-template.js +1149 -0
- package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/validate-documents.js +340 -0
- package/plugins/specweave-alternatives/skills/spec-kit-expert/SKILL.md +1010 -0
- package/plugins/specweave-backend/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-core/.claude-plugin/plugin.json +25 -0
- package/{src → plugins/specweave-core}/agents/pm/AGENT.md +80 -0
- package/plugins/specweave-core/agents/translator/AGENT.md +282 -0
- package/{src → plugins/specweave-core}/commands/README.md +11 -11
- package/{src → plugins/specweave-core}/commands/specweave.costs.md +7 -7
- package/{src → plugins/specweave-core}/commands/specweave.do.md +34 -7
- package/{src → plugins/specweave-core}/commands/specweave.increment.md +131 -22
- package/{src → plugins/specweave-core}/commands/specweave.md +49 -17
- package/{src → plugins/specweave-core}/commands/specweave.sync-docs.md +5 -5
- package/plugins/specweave-core/commands/specweave.translate.md +425 -0
- package/{src → plugins/specweave-core}/commands/specweave.validate.md +1 -1
- package/plugins/specweave-core/hooks/hooks.json +13 -0
- package/plugins/specweave-core/hooks/post-increment-plugin-detect.sh +142 -0
- package/plugins/specweave-core/hooks/post-task-completion.sh +265 -0
- package/plugins/specweave-core/hooks/pre-task-plugin-detect.sh +96 -0
- package/plugins/specweave-core/skills/SKILLS-INDEX.md +229 -0
- package/{src → plugins/specweave-core}/skills/brownfield-analyzer/SKILL.md +66 -24
- package/{src → plugins/specweave-core}/skills/context-loader/SKILL.md +1 -1
- package/plugins/specweave-core/skills/context-optimizer/SKILL.md +588 -0
- package/plugins/specweave-core/skills/docs-updater/SKILL.md +0 -0
- package/{src → plugins/specweave-core}/skills/increment-planner/SKILL.md +81 -4
- package/plugins/specweave-core/skills/plugin-detector/SKILL.md +211 -0
- package/{src → plugins/specweave-core}/skills/project-kickstarter/SKILL.md +7 -7
- package/plugins/specweave-core/skills/rfc-generator/SKILL.md +369 -0
- package/{src → plugins/specweave-core}/skills/specweave-detector/SKILL.md +2 -2
- package/plugins/specweave-core/skills/specweave-framework/SKILL.md +498 -0
- package/plugins/specweave-core/skills/specweave-framework/test-cases/test-1-increment-naming.yaml +11 -0
- package/plugins/specweave-core/skills/specweave-framework/test-cases/test-2-source-of-truth.yaml +11 -0
- package/plugins/specweave-core/skills/specweave-framework/test-cases/test-3-increment-discipline.yaml +12 -0
- package/plugins/specweave-core/skills/specweave-framework/test-cases/test-4-file-placement.yaml +11 -0
- package/{src → plugins/specweave-core}/skills/tdd-workflow/SKILL.md +20 -20
- package/plugins/specweave-core/skills/translator/SKILL.md +172 -0
- package/plugins/specweave-cost-optimizer/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-diagrams/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-docs/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-docs/skills/docusaurus/SKILL.md +526 -0
- package/plugins/specweave-figma/.claude-plugin/.mcp.json +12 -0
- package/plugins/specweave-figma/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-figma/ARCHITECTURE.md +453 -0
- package/plugins/specweave-figma/README.md +728 -0
- package/plugins/specweave-figma/skills/figma-to-code/SKILL.md +632 -0
- package/plugins/specweave-figma/skills/figma-to-code/test-1-token-generation.yaml +29 -0
- package/plugins/specweave-figma/skills/figma-to-code/test-2-component-generation.yaml +27 -0
- package/plugins/specweave-figma/skills/figma-to-code/test-3-typescript-generation.yaml +28 -0
- package/plugins/specweave-frontend/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-github/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-github/agents/github-manager/AGENT.md +651 -0
- package/plugins/specweave-github/commands/github-close-issue.md +418 -0
- package/plugins/specweave-github/commands/github-create-issue.md +307 -0
- package/plugins/specweave-github/commands/github-status.md +533 -0
- package/plugins/specweave-github/commands/github-sync-tasks.md +530 -0
- package/plugins/specweave-github/commands/github-sync.md +443 -0
- package/plugins/specweave-github/lib/github-client.ts +330 -0
- package/plugins/specweave-github/lib/index.ts +10 -0
- package/plugins/specweave-github/lib/subtask-sync.ts +225 -0
- package/plugins/specweave-github/lib/task-parser.ts +246 -0
- package/plugins/specweave-github/lib/task-sync.ts +402 -0
- package/plugins/specweave-github/lib/types.ts +86 -0
- package/plugins/specweave-github/skills/github-issue-tracker/SKILL.md +497 -0
- package/plugins/specweave-github/skills/github-sync/SKILL.md +461 -0
- package/plugins/specweave-infrastructure/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-jira/.claude-plugin/plugin.json +8 -0
- package/{src → plugins/specweave-jira}/commands/specweave.sync-jira.md +18 -18
- package/plugins/specweave-kubernetes/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-ml/.claude-plugin/plugin.json +39 -0
- package/plugins/specweave-ml/README.md +885 -0
- package/plugins/specweave-ml/agents/ml-engineer/AGENT.md +402 -0
- package/plugins/specweave-ml/commands/ml-deploy.md +116 -0
- package/plugins/specweave-ml/commands/ml-evaluate.md +87 -0
- package/plugins/specweave-ml/commands/ml-explain.md +83 -0
- package/plugins/specweave-ml/skills/anomaly-detector/SKILL.md +559 -0
- package/plugins/specweave-ml/skills/automl-optimizer/SKILL.md +485 -0
- package/plugins/specweave-ml/skills/cv-pipeline-builder/SKILL.md +157 -0
- package/plugins/specweave-ml/skills/data-visualizer/SKILL.md +521 -0
- package/plugins/specweave-ml/skills/experiment-tracker/SKILL.md +535 -0
- package/plugins/specweave-ml/skills/feature-engineer/SKILL.md +566 -0
- package/plugins/specweave-ml/skills/ml-deployment-helper/SKILL.md +345 -0
- package/plugins/specweave-ml/skills/ml-pipeline-orchestrator/SKILL.md +518 -0
- package/plugins/specweave-ml/skills/model-evaluator/SKILL.md +155 -0
- package/plugins/specweave-ml/skills/model-explainer/SKILL.md +227 -0
- package/plugins/specweave-ml/skills/model-registry/SKILL.md +541 -0
- package/plugins/specweave-ml/skills/nlp-pipeline-builder/SKILL.md +180 -0
- package/plugins/specweave-ml/skills/time-series-forecaster/SKILL.md +569 -0
- package/plugins/specweave-payments/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-testing/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-tooling/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-ui/.claude-plugin/plugin.json +106 -0
- package/plugins/specweave-ui/.mcp.json +14 -0
- package/plugins/specweave-ui/README.md +386 -0
- package/src/adapters/adapter-base.ts +33 -0
- package/src/adapters/adapter-interface.ts +46 -0
- package/src/adapters/claude/adapter.ts +350 -39
- package/src/adapters/copilot/adapter.ts +267 -4
- package/src/adapters/cursor/adapter.ts +229 -0
- package/src/adapters/generic/adapter.ts +196 -0
- package/src/templates/AGENTS.md.template +170 -1
- package/src/templates/CLAUDE.md.template +122 -24
- package/src/templates/tasks.md.template +261 -0
- package/src/agents/ml-engineer/AGENT.md +0 -150
- package/src/commands/specweave.sync-github.md +0 -269
- package/src/hooks/post-task-completion.sh +0 -79
- package/src/skills/SKILLS-INDEX.md +0 -444
- package/src/skills/github-sync/SKILL.md +0 -234
- /package/{src → plugins/specweave-ado}/skills/ado-sync/README.md +0 -0
- /package/{src → plugins/specweave-ado}/skills/ado-sync/SKILL.md +0 -0
- /package/{src → plugins/specweave-ado}/skills/specweave-ado-mapper/SKILL.md +0 -0
- /package/{src → plugins/specweave-backend}/agents/database-optimizer/AGENT.md +0 -0
- /package/{src → plugins/specweave-backend}/skills/dotnet-backend/SKILL.md +0 -0
- /package/{src → plugins/specweave-backend}/skills/nodejs-backend/SKILL.md +0 -0
- /package/{src → plugins/specweave-backend}/skills/python-backend/SKILL.md +0 -0
- /package/{src → plugins/specweave-core}/agents/architect/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/code-reviewer.md +0 -0
- /package/{src → plugins/specweave-core}/agents/docs-writer/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/performance/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/qa-lead/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/security/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/tdd-orchestrator/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/tech-lead/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.done.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.inc.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.list-increments.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.next.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.progress.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.tdd-cycle.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.tdd-green.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.tdd-red.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.tdd-refactor.md +0 -0
- /package/{src → plugins/specweave-core}/hooks/README.md +0 -0
- /package/{src → plugins/specweave-core}/hooks/docs-changed.sh +0 -0
- /package/{src → plugins/specweave-core}/hooks/human-input-required.sh +0 -0
- /package/{src → plugins/specweave-core}/hooks/pre-implementation.sh +0 -0
- /package/{src → plugins/specweave-core}/skills/brownfield-onboarder/SKILL.md +0 -0
- /package/{src → plugins/specweave-core}/skills/docs-updater/README.md +0 -0
- /package/{src → plugins/specweave-core}/skills/increment-planner/scripts/feature-utils.js +0 -0
- /package/{src → plugins/specweave-core}/skills/increment-quality-judge/SKILL.md +0 -0
- /package/{src → plugins/specweave-core}/skills/project-kickstarter/test-cases/test-1-high-confidence-full-product.yaml +0 -0
- /package/{src → plugins/specweave-core}/skills/project-kickstarter/test-cases/test-2-medium-confidence-partial.yaml +0 -0
- /package/{src → plugins/specweave-core}/skills/project-kickstarter/test-cases/test-3-low-confidence-technical-question.yaml +0 -0
- /package/{src → plugins/specweave-core}/skills/project-kickstarter/test-cases/test-4-opt-out-explicit.yaml +0 -0
- /package/{src → plugins/specweave-core}/skills/role-orchestrator/README.md +0 -0
- /package/{src → plugins/specweave-core}/skills/role-orchestrator/SKILL.md +0 -0
- /package/{src → plugins/specweave-core}/skills/task-builder/README.md +0 -0
- /package/{src → plugins/specweave-cost-optimizer}/skills/cost-optimizer/SKILL.md +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/AGENT.md +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/c4-component-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/c4-container-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/c4-context-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/deployment-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/er-diagram-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/sequence-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/test-cases/test-1-c4-context.yaml +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/test-cases/test-2-sequence.yaml +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/test-cases/test-3-er-diagram.yaml +0 -0
- /package/{src → plugins/specweave-diagrams}/skills/diagrams-architect/SKILL.md +0 -0
- /package/{src → plugins/specweave-diagrams}/skills/diagrams-generator/SKILL.md +0 -0
- /package/{src → plugins/specweave-docs}/skills/spec-driven-brainstorming/README.md +0 -0
- /package/{src → plugins/specweave-docs}/skills/spec-driven-brainstorming/SKILL.md +0 -0
- /package/{src → plugins/specweave-docs}/skills/spec-driven-debugging/README.md +0 -0
- /package/{src → plugins/specweave-docs}/skills/spec-driven-debugging/SKILL.md +0 -0
- /package/{src → plugins/specweave-frontend}/skills/design-system-architect/SKILL.md +0 -0
- /package/{src → plugins/specweave-frontend}/skills/frontend/SKILL.md +0 -0
- /package/{src → plugins/specweave-frontend}/skills/nextjs/SKILL.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/devops/AGENT.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/network-engineer/AGENT.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/observability-engineer/AGENT.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/performance-engineer/AGENT.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/AGENT.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/backend-diagnostics.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/database-diagnostics.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/infrastructure.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/monitoring.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/security-incidents.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/ui-diagnostics.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/01-high-cpu-usage.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/02-database-deadlock.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/03-memory-leak.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/04-slow-api-response.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/05-ddos-attack.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/06-disk-full.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/07-service-down.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/08-data-corruption.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/09-cascade-failure.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/10-rate-limit-exceeded.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/health-check.sh +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/log-analyzer.py +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/metrics-collector.sh +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/trace-analyzer.js +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/incident-report.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/mitigation-plan.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/post-mortem.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/runbook-template.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/commands/specweave.monitor-setup.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/commands/specweave.slo-implement.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/distributed-tracing/SKILL.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/grafana-dashboards/SKILL.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/hetzner-provisioner/README.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/hetzner-provisioner/SKILL.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/prometheus-configuration/SKILL.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/slo-implementation/SKILL.md +0 -0
- /package/{src → plugins/specweave-jira}/skills/jira-sync/README.md +0 -0
- /package/{src → plugins/specweave-jira}/skills/jira-sync/SKILL.md +0 -0
- /package/{src → plugins/specweave-jira}/skills/specweave-jira-mapper/SKILL.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/agents/kubernetes-architect/AGENT.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/gitops-workflow/SKILL.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/gitops-workflow/references/argocd-setup.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/gitops-workflow/references/sync-policies.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/SKILL.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/assets/Chart.yaml.template +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/assets/values.yaml.template +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/references/chart-structure.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/scripts/validate-chart.sh +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/SKILL.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/assets/configmap-template.yaml +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/assets/deployment-template.yaml +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/assets/service-template.yaml +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/references/deployment-spec.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/references/service-spec.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-security-policies/SKILL.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-security-policies/assets/network-policy-template.yaml +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-security-policies/references/rbac-patterns.md +0 -0
- /package/{src → plugins/specweave-ml}/agents/data-scientist/AGENT.md +0 -0
- /package/{src → plugins/specweave-ml}/agents/mlops-engineer/AGENT.md +0 -0
- /package/{src → plugins/specweave-ml}/commands/specweave.ml-pipeline.md +0 -0
- /package/{src → plugins/specweave-ml}/skills/ml-pipeline-workflow/SKILL.md +0 -0
- /package/{src → plugins/specweave-payments}/agents/payment-integration/AGENT.md +0 -0
- /package/{src → plugins/specweave-payments}/skills/billing-automation/SKILL.md +0 -0
- /package/{src → plugins/specweave-payments}/skills/paypal-integration/SKILL.md +0 -0
- /package/{src → plugins/specweave-payments}/skills/pci-compliance/SKILL.md +0 -0
- /package/{src → plugins/specweave-payments}/skills/stripe-integration/SKILL.md +0 -0
- /package/{src → plugins/specweave-testing}/skills/e2e-playwright/README.md +0 -0
- /package/{src → plugins/specweave-testing}/skills/e2e-playwright/SKILL.md +0 -0
- /package/{src → plugins/specweave-testing}/skills/e2e-playwright/execute.js +0 -0
- /package/{src → plugins/specweave-testing}/skills/e2e-playwright/lib/utils.js +0 -0
- /package/{src → plugins/specweave-testing}/skills/e2e-playwright/package.json +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-creator/LICENSE.txt +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-creator/SKILL.md +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-creator/scripts/init_skill.py +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-creator/scripts/package_skill.py +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-creator/scripts/quick_validate.py +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-router/SKILL.md +0 -0
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
# SpecWeave UI Plugin
|
|
2
|
+
|
|
3
|
+
**Complete UI/UX Development Toolkit** - Playwright E2E testing, Figma design integration, React/Vue/Angular development, design systems, Storybook component testing.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## What's Included
|
|
8
|
+
|
|
9
|
+
### Skills (7)
|
|
10
|
+
|
|
11
|
+
1. **e2e-playwright** - Browser automation and E2E testing with Playwright
|
|
12
|
+
- Write automated tests for web applications
|
|
13
|
+
- Cross-browser testing (Chrome, Firefox, Safari, Edge)
|
|
14
|
+
- Screenshot and video capture
|
|
15
|
+
- Accessibility testing
|
|
16
|
+
- Mobile emulation
|
|
17
|
+
|
|
18
|
+
2. **figma-designer** - Figma design integration and mockup creation
|
|
19
|
+
- Create production-ready Figma designs
|
|
20
|
+
- Design systems with reusable components
|
|
21
|
+
- Design tokens (colors, typography, spacing)
|
|
22
|
+
- Responsive layouts
|
|
23
|
+
|
|
24
|
+
3. **figma-implementer** - Convert Figma designs to production code
|
|
25
|
+
- Pixel-perfect React/Angular components
|
|
26
|
+
- Extract design tokens automatically
|
|
27
|
+
- Generate TypeScript interfaces from Figma
|
|
28
|
+
- Storybook integration
|
|
29
|
+
|
|
30
|
+
4. **figma-mcp-connector** - Connect to Figma via MCP servers
|
|
31
|
+
- Read/write Figma files
|
|
32
|
+
- Extract design variables
|
|
33
|
+
- Sync design changes
|
|
34
|
+
|
|
35
|
+
5. **design-system-architect** - Build scalable design systems
|
|
36
|
+
- Atomic design methodology
|
|
37
|
+
- Component hierarchy (atoms/molecules/organisms)
|
|
38
|
+
- Design token management
|
|
39
|
+
- Brand consistency
|
|
40
|
+
|
|
41
|
+
6. **frontend** - React, Vue, Angular development
|
|
42
|
+
- Component-driven development
|
|
43
|
+
- State management (Redux, Zustand, Pinia)
|
|
44
|
+
- Form validation and handling
|
|
45
|
+
- Responsive design with Tailwind/CSS modules
|
|
46
|
+
- Accessibility (WCAG 2.1 compliance)
|
|
47
|
+
|
|
48
|
+
7. **nextjs** - Next.js 14+ App Router specialist
|
|
49
|
+
- Server components and streaming
|
|
50
|
+
- Server actions and mutations
|
|
51
|
+
- Route handlers and middleware
|
|
52
|
+
- Metadata API and SEO
|
|
53
|
+
- NextAuth.js authentication
|
|
54
|
+
- Prisma ORM integration
|
|
55
|
+
|
|
56
|
+
### Agents (1)
|
|
57
|
+
|
|
58
|
+
**ui-ux-specialist** - Unified agent with expertise across all UI/UX tools
|
|
59
|
+
- Combines knowledge from all 7 skills
|
|
60
|
+
- Coordinates design → implementation → testing workflow
|
|
61
|
+
- Provides holistic UI/UX guidance
|
|
62
|
+
|
|
63
|
+
### Commands (3)
|
|
64
|
+
|
|
65
|
+
1. `/ui.test` - Run Playwright E2E tests
|
|
66
|
+
2. `/ui.design` - Generate Figma designs
|
|
67
|
+
3. `/ui.implement` - Convert Figma to code
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Auto-Detection
|
|
72
|
+
|
|
73
|
+
This plugin **auto-activates** when your project contains:
|
|
74
|
+
|
|
75
|
+
**Package.json dependencies**:
|
|
76
|
+
- `@playwright/test`, `playwright`
|
|
77
|
+
- `figma`, `@figma/rest-api-types`
|
|
78
|
+
- `react`, `react-dom`, `next`
|
|
79
|
+
- `vue`, `@vue/core`
|
|
80
|
+
- `@angular/core`
|
|
81
|
+
- `@storybook/react`
|
|
82
|
+
|
|
83
|
+
**Files/directories**:
|
|
84
|
+
- `playwright.config.ts`
|
|
85
|
+
- `figma.config.json`
|
|
86
|
+
- `.storybook/`
|
|
87
|
+
- `next.config.js`
|
|
88
|
+
|
|
89
|
+
**Keywords in increment descriptions**:
|
|
90
|
+
- "playwright", "e2e", "end-to-end"
|
|
91
|
+
- "figma", "design", "ui", "ux"
|
|
92
|
+
- "react", "next", "vue", "angular"
|
|
93
|
+
- "storybook", "design system"
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Installation
|
|
98
|
+
|
|
99
|
+
### Automatic (Recommended)
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# SpecWeave detects UI project and suggests plugin
|
|
103
|
+
specweave init
|
|
104
|
+
|
|
105
|
+
# Detected: React + Playwright
|
|
106
|
+
# Installing: specweave-ui
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Manual
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
# Via SpecWeave CLI
|
|
113
|
+
specweave plugin enable specweave-ui
|
|
114
|
+
|
|
115
|
+
# Via Claude Code
|
|
116
|
+
/plugin install specweave-ui
|
|
117
|
+
|
|
118
|
+
# Via NPM
|
|
119
|
+
npm install -g specweave
|
|
120
|
+
cp -r node_modules/specweave/plugins/specweave-ui .claude/plugins/
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Usage
|
|
126
|
+
|
|
127
|
+
### E2E Testing with Playwright
|
|
128
|
+
|
|
129
|
+
**Skill auto-activates when you mention:**
|
|
130
|
+
- "Add Playwright tests"
|
|
131
|
+
- "Create E2E test for login"
|
|
132
|
+
- "Test user signup flow"
|
|
133
|
+
|
|
134
|
+
**Example interaction**:
|
|
135
|
+
```
|
|
136
|
+
User: Add Playwright tests for the login page
|
|
137
|
+
AI: I'll create a comprehensive E2E test suite for the login page...
|
|
138
|
+
[Generates tests/e2e/login.spec.ts with Playwright tests]
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
**Manual command**:
|
|
142
|
+
```bash
|
|
143
|
+
/ui.test login
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
### Figma Design Integration
|
|
149
|
+
|
|
150
|
+
**Skill auto-activates when you mention:**
|
|
151
|
+
- "Design in Figma"
|
|
152
|
+
- "Create mockup"
|
|
153
|
+
- "Convert Figma to code"
|
|
154
|
+
|
|
155
|
+
**Example interaction**:
|
|
156
|
+
```
|
|
157
|
+
User: Convert the Figma dashboard design to React components
|
|
158
|
+
AI: I'll extract the Figma design and generate React components...
|
|
159
|
+
[Generates components with design tokens and TypeScript types]
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**Manual command**:
|
|
163
|
+
```bash
|
|
164
|
+
/ui.design dashboard
|
|
165
|
+
/ui.implement dashboard
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
### Frontend Development
|
|
171
|
+
|
|
172
|
+
**Skill auto-activates when you mention:**
|
|
173
|
+
- "Create React component"
|
|
174
|
+
- "Build Next.js page"
|
|
175
|
+
- "Add Vue component"
|
|
176
|
+
|
|
177
|
+
**Example interaction**:
|
|
178
|
+
```
|
|
179
|
+
User: Create a reusable Button component with variants
|
|
180
|
+
AI: I'll create a Button component following atomic design...
|
|
181
|
+
[Generates Button.tsx with primary/secondary variants, Storybook stories, tests]
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
### Design System Architecture
|
|
187
|
+
|
|
188
|
+
**Skill auto-activates when you mention:**
|
|
189
|
+
- "Design system"
|
|
190
|
+
- "Component library"
|
|
191
|
+
- "Design tokens"
|
|
192
|
+
|
|
193
|
+
**Example interaction**:
|
|
194
|
+
```
|
|
195
|
+
User: Set up a design system with Tailwind and design tokens
|
|
196
|
+
AI: I'll create a comprehensive design system...
|
|
197
|
+
[Generates tokens.ts, color palette, typography scale, spacing system]
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## MCP Integration (Optional)
|
|
203
|
+
|
|
204
|
+
### Browserbase (Cloud Browser Automation)
|
|
205
|
+
|
|
206
|
+
**What it does**:
|
|
207
|
+
- Runs Playwright tests in cloud infrastructure
|
|
208
|
+
- Parallel test execution (10x faster)
|
|
209
|
+
- No local browser dependencies
|
|
210
|
+
- Automatic screenshots/videos
|
|
211
|
+
|
|
212
|
+
**Setup**:
|
|
213
|
+
|
|
214
|
+
1. Get API key from [Browserbase](https://www.browserbase.com/)
|
|
215
|
+
|
|
216
|
+
2. Set environment variables:
|
|
217
|
+
```bash
|
|
218
|
+
export BROWSERBASE_API_KEY="bb_xxx"
|
|
219
|
+
export BROWSERBASE_PROJECT_ID="proj_xxx"
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
3. SpecWeave auto-configures MCP server (via `.mcp.json`)
|
|
223
|
+
|
|
224
|
+
4. Use in Playwright:
|
|
225
|
+
```typescript
|
|
226
|
+
// playwright.config.ts
|
|
227
|
+
export default {
|
|
228
|
+
use: {
|
|
229
|
+
connectOptions: {
|
|
230
|
+
wsEndpoint: process.env.BROWSERBASE_WS_ENDPOINT
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
**Benefits**:
|
|
237
|
+
- ✅ 10x faster parallel execution
|
|
238
|
+
- ✅ No local ChromeDriver installation
|
|
239
|
+
- ✅ Automatic scaling
|
|
240
|
+
- ✅ Works in CI/CD without setup
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## Workflow Example
|
|
245
|
+
|
|
246
|
+
### Complete UI Feature Development
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
# 1. Create increment
|
|
250
|
+
/specweave:inc "Add user dashboard with charts"
|
|
251
|
+
|
|
252
|
+
# 2. SpecWeave detects UI work, auto-enables plugin
|
|
253
|
+
# Installing: specweave-ui (Playwright + Figma + React + Design System)
|
|
254
|
+
|
|
255
|
+
# 3. Design phase (Figma skill)
|
|
256
|
+
/ui.design dashboard
|
|
257
|
+
|
|
258
|
+
# 4. Implementation (Frontend + Next.js skills)
|
|
259
|
+
/ui.implement dashboard
|
|
260
|
+
|
|
261
|
+
# 5. Testing (Playwright skill)
|
|
262
|
+
/ui.test dashboard
|
|
263
|
+
|
|
264
|
+
# 6. Storybook documentation (auto-generated)
|
|
265
|
+
npm run storybook
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
**AI auto-coordinates** across all skills:
|
|
269
|
+
1. **Design System Architect**: Defines tokens, components
|
|
270
|
+
2. **Figma Designer**: Creates mockups
|
|
271
|
+
3. **Frontend**: Implements React components
|
|
272
|
+
4. **Next.js**: Integrates into App Router
|
|
273
|
+
5. **Playwright**: Writes E2E tests
|
|
274
|
+
6. **Storybook**: Documents components
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## Configuration
|
|
279
|
+
|
|
280
|
+
### Plugin Settings
|
|
281
|
+
|
|
282
|
+
**File**: `.claude/settings.json`
|
|
283
|
+
|
|
284
|
+
```json
|
|
285
|
+
{
|
|
286
|
+
"plugins": {
|
|
287
|
+
"specweave-ui": {
|
|
288
|
+
"enabled": true,
|
|
289
|
+
"mcp": {
|
|
290
|
+
"browserbase": {
|
|
291
|
+
"enabled": false
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"defaults": {
|
|
295
|
+
"frontend_framework": "react", // or "vue", "angular"
|
|
296
|
+
"test_framework": "playwright",
|
|
297
|
+
"design_tool": "figma"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
---
|
|
305
|
+
|
|
306
|
+
## FAQ
|
|
307
|
+
|
|
308
|
+
### Q: Do I need all 7 skills?
|
|
309
|
+
|
|
310
|
+
**A**: No! Skills auto-activate based on your project.
|
|
311
|
+
- React project? Only `frontend` and `nextjs` activate
|
|
312
|
+
- Playwright tests? Only `e2e-playwright` activates
|
|
313
|
+
- Design work? Only `figma-*` and `design-system-architect` activate
|
|
314
|
+
|
|
315
|
+
### Q: Can I disable specific skills?
|
|
316
|
+
|
|
317
|
+
**A**: Yes, via settings:
|
|
318
|
+
```json
|
|
319
|
+
{
|
|
320
|
+
"plugins": {
|
|
321
|
+
"specweave-ui": {
|
|
322
|
+
"skills": {
|
|
323
|
+
"figma-designer": { "enabled": false }
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
### Q: Does this work without SpecWeave?
|
|
331
|
+
|
|
332
|
+
**A**: Yes! This is a **native Claude Code plugin**. Install it directly:
|
|
333
|
+
```bash
|
|
334
|
+
/plugin install specweave-ui
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
### Q: How much context does this use?
|
|
338
|
+
|
|
339
|
+
**A**:
|
|
340
|
+
- **All skills loaded**: ~8K tokens
|
|
341
|
+
- **Typical usage** (2-3 skills active): ~3K tokens
|
|
342
|
+
- **vs. Monolithic** (loading all 44 skills): 50K tokens
|
|
343
|
+
|
|
344
|
+
**Result**: **84-94% context reduction** vs. old architecture.
|
|
345
|
+
|
|
346
|
+
### Q: Can I contribute skills?
|
|
347
|
+
|
|
348
|
+
**A**: Yes! Submit a PR:
|
|
349
|
+
1. Add skill to `src/plugins/specweave-ui/skills/`
|
|
350
|
+
2. Update `plugin.json` provides list
|
|
351
|
+
3. Add tests in `test-cases/`
|
|
352
|
+
4. Update this README
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
## Community Extensions
|
|
357
|
+
|
|
358
|
+
### Available Community Skills
|
|
359
|
+
|
|
360
|
+
- **specweave-ui-mobile** - React Native, Flutter, SwiftUI
|
|
361
|
+
- **specweave-ui-3d** - Three.js, WebGL, 3D visualization
|
|
362
|
+
- **specweave-ui-animation** - Framer Motion, GSAP, Lottie
|
|
363
|
+
|
|
364
|
+
**Install**:
|
|
365
|
+
```bash
|
|
366
|
+
/plugin marketplace add specweave-community
|
|
367
|
+
/plugin install specweave-ui-mobile
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
---
|
|
371
|
+
|
|
372
|
+
## Support
|
|
373
|
+
|
|
374
|
+
- **Documentation**: https://spec-weave.com/plugins/ui
|
|
375
|
+
- **Issues**: https://github.com/anton-abyzov/specweave/issues
|
|
376
|
+
- **Discussions**: https://github.com/anton-abyzov/specweave/discussions
|
|
377
|
+
|
|
378
|
+
---
|
|
379
|
+
|
|
380
|
+
## License
|
|
381
|
+
|
|
382
|
+
MIT © Anton Abyzov
|
|
383
|
+
|
|
384
|
+
---
|
|
385
|
+
|
|
386
|
+
🎨 **SpecWeave UI Plugin** - Complete UI/UX toolkit for AI-assisted development
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
AutomationLevel
|
|
17
17
|
} from './adapter-interface.js';
|
|
18
18
|
import { getDirname } from '../utils/esm-helpers.js';
|
|
19
|
+
import type { Plugin } from '../core/types/plugin.js';
|
|
19
20
|
|
|
20
21
|
const __dirname = getDirname(import.meta.url);
|
|
21
22
|
|
|
@@ -146,4 +147,36 @@ export abstract class AdapterBase implements IAdapter {
|
|
|
146
147
|
|
|
147
148
|
return content;
|
|
148
149
|
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Check if this adapter supports plugins
|
|
153
|
+
* Default: No plugin support (override in concrete adapters)
|
|
154
|
+
*/
|
|
155
|
+
supportsPlugins(): boolean {
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Compile and install a plugin
|
|
161
|
+
* Default: Throw error (override in concrete adapters that support plugins)
|
|
162
|
+
*/
|
|
163
|
+
async compilePlugin(plugin: Plugin): Promise<void> {
|
|
164
|
+
throw new Error(`Plugin support not implemented for ${this.name} adapter`);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Unload a plugin
|
|
169
|
+
* Default: Throw error (override in concrete adapters that support plugins)
|
|
170
|
+
*/
|
|
171
|
+
async unloadPlugin(pluginName: string): Promise<void> {
|
|
172
|
+
throw new Error(`Plugin support not implemented for ${this.name} adapter`);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Get installed plugins
|
|
177
|
+
* Default: Return empty array (override in concrete adapters that support plugins)
|
|
178
|
+
*/
|
|
179
|
+
async getInstalledPlugins(): Promise<string[]> {
|
|
180
|
+
return [];
|
|
181
|
+
}
|
|
149
182
|
}
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* Enables SpecWeave to work with ANY AI coding tool (Claude, Cursor, Copilot, etc.)
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import type { Plugin } from '../core/types/plugin.js';
|
|
9
|
+
|
|
8
10
|
export interface AdapterOptions {
|
|
9
11
|
projectPath: string;
|
|
10
12
|
projectName: string;
|
|
@@ -117,4 +119,48 @@ export interface IAdapter {
|
|
|
117
119
|
* @returns string Markdown-formatted instructions
|
|
118
120
|
*/
|
|
119
121
|
getInstructions(): string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Check if this adapter supports plugins
|
|
125
|
+
*
|
|
126
|
+
* Returns true if the adapter can install and compile plugins
|
|
127
|
+
* (Claude native, Cursor AGENTS.md, Copilot instructions.md)
|
|
128
|
+
* Returns false for generic/manual adapters
|
|
129
|
+
*
|
|
130
|
+
* @returns boolean True if plugins are supported
|
|
131
|
+
*/
|
|
132
|
+
supportsPlugins(): boolean;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Compile and install a plugin for this adapter
|
|
136
|
+
*
|
|
137
|
+
* Transforms plugin content (skills/agents/commands) to tool-specific format:
|
|
138
|
+
* - Claude: Copy to .claude/skills/, .claude/agents/, .claude/commands/
|
|
139
|
+
* - Cursor: Compile to AGENTS.md + team commands JSON
|
|
140
|
+
* - Copilot: Compile to .github/copilot/instructions.md
|
|
141
|
+
* - Generic: Generate manual copy-paste instructions
|
|
142
|
+
*
|
|
143
|
+
* @param plugin Plugin to compile and install
|
|
144
|
+
* @returns Promise<void>
|
|
145
|
+
*/
|
|
146
|
+
compilePlugin(plugin: Plugin): Promise<void>;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Unload (disable) a plugin for this adapter
|
|
150
|
+
*
|
|
151
|
+
* Removes plugin-specific files and restores previous state
|
|
152
|
+
*
|
|
153
|
+
* @param pluginName Name of plugin to unload
|
|
154
|
+
* @returns Promise<void>
|
|
155
|
+
*/
|
|
156
|
+
unloadPlugin(pluginName: string): Promise<void>;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Get plugin installation status
|
|
160
|
+
*
|
|
161
|
+
* Returns information about which plugins are currently installed
|
|
162
|
+
*
|
|
163
|
+
* @returns Promise<string[]> Array of installed plugin names
|
|
164
|
+
*/
|
|
165
|
+
getInstalledPlugins(): Promise<string[]>;
|
|
120
166
|
}
|