compound-engineering-pi 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +124 -0
- package/bin/compound-engineering-pi +12 -0
- package/bin/compound-plugin +12 -0
- package/compound-engineering-pi +12 -0
- package/compound-plugin +5 -0
- package/docs/pi.md +152 -0
- package/extensions/compound-engineering-compat.ts +452 -0
- package/package.json +84 -0
- package/pi-resources/compound-engineering/mcporter.json +7 -0
- package/plugins/coding-tutor/.claude-plugin/plugin.json +9 -0
- package/plugins/coding-tutor/README.md +37 -0
- package/plugins/coding-tutor/commands/quiz-me.md +1 -0
- package/plugins/coding-tutor/commands/sync-tutorials.md +25 -0
- package/plugins/coding-tutor/commands/teach-me.md +1 -0
- package/plugins/coding-tutor/skills/coding-tutor/SKILL.md +214 -0
- package/plugins/coding-tutor/skills/coding-tutor/scripts/create_tutorial.py +207 -0
- package/plugins/coding-tutor/skills/coding-tutor/scripts/index_tutorials.py +193 -0
- package/plugins/coding-tutor/skills/coding-tutor/scripts/quiz_priority.py +190 -0
- package/plugins/coding-tutor/skills/coding-tutor/scripts/setup_tutorials.py +118 -0
- package/plugins/compound-engineering/.claude-plugin/plugin.json +33 -0
- package/plugins/compound-engineering/CHANGELOG.md +457 -0
- package/plugins/compound-engineering/CLAUDE.md +89 -0
- package/plugins/compound-engineering/LICENSE +21 -0
- package/plugins/compound-engineering/README.md +232 -0
- package/plugins/compound-engineering/agents/design/design-implementation-reviewer.md +109 -0
- package/plugins/compound-engineering/agents/design/design-iterator.md +224 -0
- package/plugins/compound-engineering/agents/design/figma-design-sync.md +190 -0
- package/plugins/compound-engineering/agents/docs/ankane-readme-writer.md +65 -0
- package/plugins/compound-engineering/agents/research/best-practices-researcher.md +126 -0
- package/plugins/compound-engineering/agents/research/framework-docs-researcher.md +106 -0
- package/plugins/compound-engineering/agents/research/git-history-analyzer.md +59 -0
- package/plugins/compound-engineering/agents/research/learnings-researcher.md +264 -0
- package/plugins/compound-engineering/agents/research/repo-research-analyst.md +135 -0
- package/plugins/compound-engineering/agents/review/agent-native-reviewer.md +261 -0
- package/plugins/compound-engineering/agents/review/architecture-strategist.md +67 -0
- package/plugins/compound-engineering/agents/review/code-simplicity-reviewer.md +101 -0
- package/plugins/compound-engineering/agents/review/data-integrity-guardian.md +85 -0
- package/plugins/compound-engineering/agents/review/data-migration-expert.md +112 -0
- package/plugins/compound-engineering/agents/review/deployment-verification-agent.md +174 -0
- package/plugins/compound-engineering/agents/review/dhh-rails-reviewer.md +66 -0
- package/plugins/compound-engineering/agents/review/julik-frontend-races-reviewer.md +221 -0
- package/plugins/compound-engineering/agents/review/kieran-python-reviewer.md +133 -0
- package/plugins/compound-engineering/agents/review/kieran-rails-reviewer.md +115 -0
- package/plugins/compound-engineering/agents/review/kieran-typescript-reviewer.md +124 -0
- package/plugins/compound-engineering/agents/review/pattern-recognition-specialist.md +72 -0
- package/plugins/compound-engineering/agents/review/performance-oracle.md +137 -0
- package/plugins/compound-engineering/agents/review/schema-drift-detector.md +154 -0
- package/plugins/compound-engineering/agents/review/security-sentinel.md +114 -0
- package/plugins/compound-engineering/agents/workflow/bug-reproduction-validator.md +82 -0
- package/plugins/compound-engineering/agents/workflow/every-style-editor.md +64 -0
- package/plugins/compound-engineering/agents/workflow/lint.md +16 -0
- package/plugins/compound-engineering/agents/workflow/pr-comment-resolver.md +84 -0
- package/plugins/compound-engineering/agents/workflow/spec-flow-analyzer.md +134 -0
- package/plugins/compound-engineering/commands/agent-native-audit.md +278 -0
- package/plugins/compound-engineering/commands/changelog.md +138 -0
- package/plugins/compound-engineering/commands/create-agent-skill.md +9 -0
- package/plugins/compound-engineering/commands/deepen-plan.md +546 -0
- package/plugins/compound-engineering/commands/deploy-docs.md +113 -0
- package/plugins/compound-engineering/commands/feature-video.md +342 -0
- package/plugins/compound-engineering/commands/generate_command.md +163 -0
- package/plugins/compound-engineering/commands/heal-skill.md +143 -0
- package/plugins/compound-engineering/commands/lfg.md +20 -0
- package/plugins/compound-engineering/commands/release-docs.md +212 -0
- package/plugins/compound-engineering/commands/report-bug.md +151 -0
- package/plugins/compound-engineering/commands/reproduce-bug.md +100 -0
- package/plugins/compound-engineering/commands/resolve_parallel.md +35 -0
- package/plugins/compound-engineering/commands/resolve_todo_parallel.md +37 -0
- package/plugins/compound-engineering/commands/slfg.md +32 -0
- package/plugins/compound-engineering/commands/technical_review.md +8 -0
- package/plugins/compound-engineering/commands/test-browser.md +339 -0
- package/plugins/compound-engineering/commands/test-xcode.md +332 -0
- package/plugins/compound-engineering/commands/triage.md +311 -0
- package/plugins/compound-engineering/commands/workflows/brainstorm.md +124 -0
- package/plugins/compound-engineering/commands/workflows/compound.md +239 -0
- package/plugins/compound-engineering/commands/workflows/plan.md +551 -0
- package/plugins/compound-engineering/commands/workflows/review.md +526 -0
- package/plugins/compound-engineering/commands/workflows/work.md +433 -0
- package/plugins/compound-engineering/skills/agent-browser/SKILL.md +223 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/SKILL.md +435 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/action-parity-discipline.md +409 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/agent-execution-patterns.md +467 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/agent-native-testing.md +582 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/architecture-patterns.md +478 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/dynamic-context-injection.md +338 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/files-universal-interface.md +301 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/from-primitives-to-domain-tools.md +359 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/mcp-tool-design.md +506 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/mobile-patterns.md +871 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/product-implications.md +443 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/refactoring-to-prompt-native.md +317 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/self-modification.md +269 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/shared-workspace-architecture.md +680 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/system-prompt-design.md +250 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/SKILL.md +184 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/database-adapters.md +231 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/module-organization.md +121 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/rails-integration.md +183 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/resources.md +119 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/testing-patterns.md +261 -0
- package/plugins/compound-engineering/skills/brainstorming/SKILL.md +190 -0
- package/plugins/compound-engineering/skills/compound-docs/SKILL.md +511 -0
- package/plugins/compound-engineering/skills/compound-docs/assets/critical-pattern-template.md +34 -0
- package/plugins/compound-engineering/skills/compound-docs/assets/resolution-template.md +93 -0
- package/plugins/compound-engineering/skills/compound-docs/references/yaml-schema.md +65 -0
- package/plugins/compound-engineering/skills/compound-docs/schema.yaml +176 -0
- package/plugins/compound-engineering/skills/create-agent-skills/SKILL.md +275 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/api-security.md +226 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/be-clear-and-direct.md +531 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/best-practices.md +404 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/common-patterns.md +595 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/core-principles.md +437 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/executable-code.md +175 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/iteration-and-testing.md +474 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/official-spec.md +134 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/recommended-structure.md +168 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/skill-structure.md +152 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/using-scripts.md +113 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/using-templates.md +112 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/workflows-and-validation.md +510 -0
- package/plugins/compound-engineering/skills/create-agent-skills/templates/router-skill.md +73 -0
- package/plugins/compound-engineering/skills/create-agent-skills/templates/simple-skill.md +33 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-reference.md +96 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-script.md +93 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-template.md +74 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-workflow.md +120 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/audit-skill.md +138 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/create-domain-expertise-skill.md +605 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/create-new-skill.md +191 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/get-guidance.md +121 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/upgrade-to-router.md +161 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/verify-skill.md +204 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/SKILL.md +185 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/architecture.md +653 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/controllers.md +303 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/frontend.md +510 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/gems.md +266 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/models.md +359 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/testing.md +338 -0
- package/plugins/compound-engineering/skills/document-review/SKILL.md +87 -0
- package/plugins/compound-engineering/skills/dspy-ruby/SKILL.md +737 -0
- package/plugins/compound-engineering/skills/dspy-ruby/assets/config-template.rb +187 -0
- package/plugins/compound-engineering/skills/dspy-ruby/assets/module-template.rb +300 -0
- package/plugins/compound-engineering/skills/dspy-ruby/assets/signature-template.rb +221 -0
- package/plugins/compound-engineering/skills/dspy-ruby/references/core-concepts.md +674 -0
- package/plugins/compound-engineering/skills/dspy-ruby/references/observability.md +366 -0
- package/plugins/compound-engineering/skills/dspy-ruby/references/optimization.md +603 -0
- package/plugins/compound-engineering/skills/dspy-ruby/references/providers.md +418 -0
- package/plugins/compound-engineering/skills/dspy-ruby/references/toolsets.md +502 -0
- package/plugins/compound-engineering/skills/every-style-editor/SKILL.md +134 -0
- package/plugins/compound-engineering/skills/every-style-editor/references/EVERY_WRITE_STYLE.md +529 -0
- package/plugins/compound-engineering/skills/file-todos/SKILL.md +252 -0
- package/plugins/compound-engineering/skills/file-todos/assets/todo-template.md +155 -0
- package/plugins/compound-engineering/skills/frontend-design/SKILL.md +42 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/SKILL.md +237 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/requirements.txt +2 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/scripts/compose_images.py +157 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/scripts/edit_image.py +144 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/scripts/gemini_images.py +263 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/scripts/generate_image.py +133 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/scripts/multi_turn_chat.py +216 -0
- package/plugins/compound-engineering/skills/git-worktree/SKILL.md +302 -0
- package/plugins/compound-engineering/skills/git-worktree/scripts/worktree-manager.sh +337 -0
- package/plugins/compound-engineering/skills/orchestrating-swarms/SKILL.md +1718 -0
- package/plugins/compound-engineering/skills/rclone/SKILL.md +150 -0
- package/plugins/compound-engineering/skills/rclone/scripts/check_setup.sh +60 -0
- package/plugins/compound-engineering/skills/resolve-pr-parallel/SKILL.md +89 -0
- package/plugins/compound-engineering/skills/resolve-pr-parallel/scripts/get-pr-comments +68 -0
- package/plugins/compound-engineering/skills/resolve-pr-parallel/scripts/resolve-pr-thread +23 -0
- package/plugins/compound-engineering/skills/skill-creator/SKILL.md +210 -0
- package/plugins/compound-engineering/skills/skill-creator/scripts/init_skill.py +303 -0
- package/plugins/compound-engineering/skills/skill-creator/scripts/package_skill.py +110 -0
- package/plugins/compound-engineering/skills/skill-creator/scripts/quick_validate.py +65 -0
- package/prompts/deepen-plan.md +549 -0
- package/prompts/feature-video.md +341 -0
- package/prompts/resolve_todo_parallel.md +36 -0
- package/prompts/test-browser.md +342 -0
- package/prompts/workflows-brainstorm.md +123 -0
- package/prompts/workflows-compound.md +238 -0
- package/prompts/workflows-plan.md +550 -0
- package/prompts/workflows-review.md +529 -0
- package/prompts/workflows-work.md +432 -0
- package/skills/agent-browser/SKILL.md +223 -0
- package/skills/agent-native-architecture/SKILL.md +435 -0
- package/skills/agent-native-architecture/references/action-parity-discipline.md +409 -0
- package/skills/agent-native-architecture/references/agent-execution-patterns.md +467 -0
- package/skills/agent-native-architecture/references/agent-native-testing.md +582 -0
- package/skills/agent-native-architecture/references/architecture-patterns.md +478 -0
- package/skills/agent-native-architecture/references/dynamic-context-injection.md +338 -0
- package/skills/agent-native-architecture/references/files-universal-interface.md +301 -0
- package/skills/agent-native-architecture/references/from-primitives-to-domain-tools.md +359 -0
- package/skills/agent-native-architecture/references/mcp-tool-design.md +506 -0
- package/skills/agent-native-architecture/references/mobile-patterns.md +871 -0
- package/skills/agent-native-architecture/references/product-implications.md +443 -0
- package/skills/agent-native-architecture/references/refactoring-to-prompt-native.md +317 -0
- package/skills/agent-native-architecture/references/self-modification.md +269 -0
- package/skills/agent-native-architecture/references/shared-workspace-architecture.md +680 -0
- package/skills/agent-native-architecture/references/system-prompt-design.md +250 -0
- package/skills/agent-native-reviewer/SKILL.md +260 -0
- package/skills/andrew-kane-gem-writer/SKILL.md +184 -0
- package/skills/andrew-kane-gem-writer/references/database-adapters.md +231 -0
- package/skills/andrew-kane-gem-writer/references/module-organization.md +121 -0
- package/skills/andrew-kane-gem-writer/references/rails-integration.md +183 -0
- package/skills/andrew-kane-gem-writer/references/resources.md +119 -0
- package/skills/andrew-kane-gem-writer/references/testing-patterns.md +261 -0
- package/skills/ankane-readme-writer/SKILL.md +63 -0
- package/skills/architecture-strategist/SKILL.md +66 -0
- package/skills/best-practices-researcher/SKILL.md +125 -0
- package/skills/brainstorming/SKILL.md +190 -0
- package/skills/bug-reproduction-validator/SKILL.md +81 -0
- package/skills/code-simplicity-reviewer/SKILL.md +100 -0
- package/skills/compound-docs/SKILL.md +511 -0
- package/skills/compound-docs/assets/critical-pattern-template.md +34 -0
- package/skills/compound-docs/assets/resolution-template.md +93 -0
- package/skills/compound-docs/references/yaml-schema.md +65 -0
- package/skills/compound-docs/schema.yaml +176 -0
- package/skills/create-agent-skills/SKILL.md +275 -0
- package/skills/create-agent-skills/references/api-security.md +226 -0
- package/skills/create-agent-skills/references/be-clear-and-direct.md +531 -0
- package/skills/create-agent-skills/references/best-practices.md +404 -0
- package/skills/create-agent-skills/references/common-patterns.md +595 -0
- package/skills/create-agent-skills/references/core-principles.md +437 -0
- package/skills/create-agent-skills/references/executable-code.md +175 -0
- package/skills/create-agent-skills/references/iteration-and-testing.md +474 -0
- package/skills/create-agent-skills/references/official-spec.md +134 -0
- package/skills/create-agent-skills/references/recommended-structure.md +168 -0
- package/skills/create-agent-skills/references/skill-structure.md +152 -0
- package/skills/create-agent-skills/references/using-scripts.md +113 -0
- package/skills/create-agent-skills/references/using-templates.md +112 -0
- package/skills/create-agent-skills/references/workflows-and-validation.md +510 -0
- package/skills/create-agent-skills/templates/router-skill.md +73 -0
- package/skills/create-agent-skills/templates/simple-skill.md +33 -0
- package/skills/create-agent-skills/workflows/add-reference.md +96 -0
- package/skills/create-agent-skills/workflows/add-script.md +93 -0
- package/skills/create-agent-skills/workflows/add-template.md +74 -0
- package/skills/create-agent-skills/workflows/add-workflow.md +120 -0
- package/skills/create-agent-skills/workflows/audit-skill.md +138 -0
- package/skills/create-agent-skills/workflows/create-domain-expertise-skill.md +605 -0
- package/skills/create-agent-skills/workflows/create-new-skill.md +191 -0
- package/skills/create-agent-skills/workflows/get-guidance.md +121 -0
- package/skills/create-agent-skills/workflows/upgrade-to-router.md +161 -0
- package/skills/create-agent-skills/workflows/verify-skill.md +204 -0
- package/skills/data-integrity-guardian/SKILL.md +84 -0
- package/skills/data-migration-expert/SKILL.md +111 -0
- package/skills/deployment-verification-agent/SKILL.md +173 -0
- package/skills/design-implementation-reviewer/SKILL.md +107 -0
- package/skills/design-iterator/SKILL.md +222 -0
- package/skills/dhh-rails-reviewer/SKILL.md +65 -0
- package/skills/dhh-rails-style/SKILL.md +185 -0
- package/skills/dhh-rails-style/references/architecture.md +653 -0
- package/skills/dhh-rails-style/references/controllers.md +303 -0
- package/skills/dhh-rails-style/references/frontend.md +510 -0
- package/skills/dhh-rails-style/references/gems.md +266 -0
- package/skills/dhh-rails-style/references/models.md +359 -0
- package/skills/dhh-rails-style/references/testing.md +338 -0
- package/skills/document-review/SKILL.md +87 -0
- package/skills/dspy-ruby/SKILL.md +737 -0
- package/skills/dspy-ruby/assets/config-template.rb +187 -0
- package/skills/dspy-ruby/assets/module-template.rb +300 -0
- package/skills/dspy-ruby/assets/signature-template.rb +221 -0
- package/skills/dspy-ruby/references/core-concepts.md +674 -0
- package/skills/dspy-ruby/references/observability.md +366 -0
- package/skills/dspy-ruby/references/optimization.md +603 -0
- package/skills/dspy-ruby/references/providers.md +418 -0
- package/skills/dspy-ruby/references/toolsets.md +502 -0
- package/skills/every-style-editor/SKILL.md +134 -0
- package/skills/every-style-editor/references/EVERY_WRITE_STYLE.md +529 -0
- package/skills/every-style-editor-2/SKILL.md +62 -0
- package/skills/figma-design-sync/SKILL.md +188 -0
- package/skills/file-todos/SKILL.md +252 -0
- package/skills/file-todos/assets/todo-template.md +155 -0
- package/skills/framework-docs-researcher/SKILL.md +105 -0
- package/skills/frontend-design/SKILL.md +42 -0
- package/skills/gemini-imagegen/SKILL.md +237 -0
- package/skills/gemini-imagegen/requirements.txt +2 -0
- package/skills/gemini-imagegen/scripts/compose_images.py +157 -0
- package/skills/gemini-imagegen/scripts/edit_image.py +144 -0
- package/skills/gemini-imagegen/scripts/gemini_images.py +263 -0
- package/skills/gemini-imagegen/scripts/generate_image.py +133 -0
- package/skills/gemini-imagegen/scripts/multi_turn_chat.py +216 -0
- package/skills/git-history-analyzer/SKILL.md +58 -0
- package/skills/git-worktree/SKILL.md +302 -0
- package/skills/git-worktree/scripts/worktree-manager.sh +337 -0
- package/skills/julik-frontend-races-reviewer/SKILL.md +220 -0
- package/skills/kieran-python-reviewer/SKILL.md +132 -0
- package/skills/kieran-rails-reviewer/SKILL.md +114 -0
- package/skills/kieran-typescript-reviewer/SKILL.md +123 -0
- package/skills/learnings-researcher/SKILL.md +263 -0
- package/skills/lint/SKILL.md +14 -0
- package/skills/orchestrating-swarms/SKILL.md +1718 -0
- package/skills/pattern-recognition-specialist/SKILL.md +71 -0
- package/skills/performance-oracle/SKILL.md +136 -0
- package/skills/pr-comment-resolver/SKILL.md +82 -0
- package/skills/rclone/SKILL.md +150 -0
- package/skills/rclone/scripts/check_setup.sh +60 -0
- package/skills/repo-research-analyst/SKILL.md +134 -0
- package/skills/resolve_pr_parallel/SKILL.md +89 -0
- package/skills/resolve_pr_parallel/scripts/get-pr-comments +68 -0
- package/skills/resolve_pr_parallel/scripts/resolve-pr-thread +23 -0
- package/skills/schema-drift-detector/SKILL.md +153 -0
- package/skills/security-sentinel/SKILL.md +113 -0
- package/skills/skill-creator/SKILL.md +210 -0
- package/skills/skill-creator/scripts/init_skill.py +303 -0
- package/skills/skill-creator/scripts/package_skill.py +110 -0
- package/skills/skill-creator/scripts/quick_validate.py +65 -0
- package/skills/spec-flow-analyzer/SKILL.md +133 -0
- package/src/commands/convert.ts +183 -0
- package/src/commands/install.ts +273 -0
- package/src/commands/list.ts +37 -0
- package/src/commands/sync.ts +89 -0
- package/src/converters/claude-to-codex.ts +182 -0
- package/src/converters/claude-to-opencode.ts +395 -0
- package/src/converters/claude-to-pi.ts +205 -0
- package/src/index.ts +22 -0
- package/src/parsers/claude-home.ts +65 -0
- package/src/parsers/claude.ts +252 -0
- package/src/sync/codex.ts +92 -0
- package/src/sync/opencode.ts +75 -0
- package/src/sync/pi.ts +88 -0
- package/src/targets/codex.ts +96 -0
- package/src/targets/index.ts +38 -0
- package/src/targets/opencode.ts +57 -0
- package/src/targets/pi.ts +131 -0
- package/src/templates/pi/compat-extension.ts +452 -0
- package/src/types/claude.ts +90 -0
- package/src/types/codex.ts +23 -0
- package/src/types/opencode.ts +54 -0
- package/src/types/pi.ts +40 -0
- package/src/utils/codex-agents.ts +64 -0
- package/src/utils/files.ts +77 -0
- package/src/utils/frontmatter.ts +65 -0
- package/src/utils/symlink.ts +43 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: data-integrity-guardian
|
|
3
|
+
description: Reviews database migrations, data models, and persistent data code for safety. Use when checking migration safety, data constraints, transaction boundaries, or privacy compliance.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<examples>
|
|
7
|
+
<example>
|
|
8
|
+
Context: The user has just written a database migration that adds a new column and updates existing records.
|
|
9
|
+
user: "I've created a migration to add a status column to the orders table"
|
|
10
|
+
assistant: "I'll use the data-integrity-guardian agent to review this migration for safety and data integrity concerns"
|
|
11
|
+
<commentary>Since the user has created a database migration, use the data-integrity-guardian agent to ensure the migration is safe, handles existing data properly, and maintains referential integrity.</commentary>
|
|
12
|
+
</example>
|
|
13
|
+
<example>
|
|
14
|
+
Context: The user has implemented a service that transfers data between models.
|
|
15
|
+
user: "Here's my new service that moves user data from the legacy_users table to the new users table"
|
|
16
|
+
assistant: "Let me have the data-integrity-guardian agent review this data transfer service"
|
|
17
|
+
<commentary>Since this involves moving data between tables, the data-integrity-guardian should review transaction boundaries, data validation, and integrity preservation.</commentary>
|
|
18
|
+
</example>
|
|
19
|
+
</examples>
|
|
20
|
+
|
|
21
|
+
You are a Data Integrity Guardian, an expert in database design, data migration safety, and data governance. Your deep expertise spans relational database theory, ACID properties, data privacy regulations (GDPR, CCPA), and production database management.
|
|
22
|
+
|
|
23
|
+
Your primary mission is to protect data integrity, ensure migration safety, and maintain compliance with data privacy requirements.
|
|
24
|
+
|
|
25
|
+
When reviewing code, you will:
|
|
26
|
+
|
|
27
|
+
1. **Analyze Database Migrations**:
|
|
28
|
+
- Check for reversibility and rollback safety
|
|
29
|
+
- Identify potential data loss scenarios
|
|
30
|
+
- Verify handling of NULL values and defaults
|
|
31
|
+
- Assess impact on existing data and indexes
|
|
32
|
+
- Ensure migrations are idempotent when possible
|
|
33
|
+
- Check for long-running operations that could lock tables
|
|
34
|
+
|
|
35
|
+
2. **Validate Data Constraints**:
|
|
36
|
+
- Verify presence of appropriate validations at model and database levels
|
|
37
|
+
- Check for race conditions in uniqueness constraints
|
|
38
|
+
- Ensure foreign key relationships are properly defined
|
|
39
|
+
- Validate that business rules are enforced consistently
|
|
40
|
+
- Identify missing NOT NULL constraints
|
|
41
|
+
|
|
42
|
+
3. **Review Transaction Boundaries**:
|
|
43
|
+
- Ensure atomic operations are wrapped in transactions
|
|
44
|
+
- Check for proper isolation levels
|
|
45
|
+
- Identify potential deadlock scenarios
|
|
46
|
+
- Verify rollback handling for failed operations
|
|
47
|
+
- Assess transaction scope for performance impact
|
|
48
|
+
|
|
49
|
+
4. **Preserve Referential Integrity**:
|
|
50
|
+
- Check cascade behaviors on deletions
|
|
51
|
+
- Verify orphaned record prevention
|
|
52
|
+
- Ensure proper handling of dependent associations
|
|
53
|
+
- Validate that polymorphic associations maintain integrity
|
|
54
|
+
- Check for dangling references
|
|
55
|
+
|
|
56
|
+
5. **Ensure Privacy Compliance**:
|
|
57
|
+
- Identify personally identifiable information (PII)
|
|
58
|
+
- Verify data encryption for sensitive fields
|
|
59
|
+
- Check for proper data retention policies
|
|
60
|
+
- Ensure audit trails for data access
|
|
61
|
+
- Validate data anonymization procedures
|
|
62
|
+
- Check for GDPR right-to-deletion compliance
|
|
63
|
+
|
|
64
|
+
Your analysis approach:
|
|
65
|
+
- Start with a high-level assessment of data flow and storage
|
|
66
|
+
- Identify critical data integrity risks first
|
|
67
|
+
- Provide specific examples of potential data corruption scenarios
|
|
68
|
+
- Suggest concrete improvements with code examples
|
|
69
|
+
- Consider both immediate and long-term data integrity implications
|
|
70
|
+
|
|
71
|
+
When you identify issues:
|
|
72
|
+
- Explain the specific risk to data integrity
|
|
73
|
+
- Provide a clear example of how data could be corrupted
|
|
74
|
+
- Offer a safe alternative implementation
|
|
75
|
+
- Include migration strategies for fixing existing data if needed
|
|
76
|
+
|
|
77
|
+
Always prioritize:
|
|
78
|
+
1. Data safety and integrity above all else
|
|
79
|
+
2. Zero data loss during migrations
|
|
80
|
+
3. Maintaining consistency across related data
|
|
81
|
+
4. Compliance with privacy regulations
|
|
82
|
+
5. Performance impact on production databases
|
|
83
|
+
|
|
84
|
+
Remember: In production, data integrity issues can be catastrophic. Be thorough, be cautious, and always consider the worst-case scenario.
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: data-migration-expert
|
|
3
|
+
description: Validates data migrations, backfills, and production data transformations against reality. Use when PRs involve ID mappings, column renames, enum conversions, or schema changes.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<examples>
|
|
7
|
+
<example>
|
|
8
|
+
Context: The user has a PR with database migrations that involve ID mappings.
|
|
9
|
+
user: "Review this PR that migrates from action_id to action_module_name"
|
|
10
|
+
assistant: "I'll use the data-migration-expert agent to validate the ID mappings and migration safety"
|
|
11
|
+
<commentary>Since the PR involves ID mappings and data migration, use the data-migration-expert to verify the mappings match production and check for swapped values.</commentary>
|
|
12
|
+
</example>
|
|
13
|
+
<example>
|
|
14
|
+
Context: The user has a migration that transforms enum values.
|
|
15
|
+
user: "This migration converts status integers to string enums"
|
|
16
|
+
assistant: "Let me have the data-migration-expert verify the mapping logic and rollback safety"
|
|
17
|
+
<commentary>Enum conversions are high-risk for swapped mappings, making this a perfect use case for data-migration-expert.</commentary>
|
|
18
|
+
</example>
|
|
19
|
+
</examples>
|
|
20
|
+
|
|
21
|
+
You are a Data Migration Expert. Your mission is to prevent data corruption by validating that migrations match production reality, not fixture or assumed values.
|
|
22
|
+
|
|
23
|
+
## Core Review Goals
|
|
24
|
+
|
|
25
|
+
For every data migration or backfill, you must:
|
|
26
|
+
|
|
27
|
+
1. **Verify mappings match production data** - Never trust fixtures or assumptions
|
|
28
|
+
2. **Check for swapped or inverted values** - The most common and dangerous migration bug
|
|
29
|
+
3. **Ensure concrete verification plans exist** - SQL queries to prove correctness post-deploy
|
|
30
|
+
4. **Validate rollback safety** - Feature flags, dual-writes, staged deploys
|
|
31
|
+
|
|
32
|
+
## Reviewer Checklist
|
|
33
|
+
|
|
34
|
+
### 1. Understand the Real Data
|
|
35
|
+
|
|
36
|
+
- [ ] What tables/rows does the migration touch? List them explicitly.
|
|
37
|
+
- [ ] What are the **actual** values in production? Document the exact SQL to verify.
|
|
38
|
+
- [ ] If mappings/IDs/enums are involved, paste the assumed mapping and the live mapping side-by-side.
|
|
39
|
+
- [ ] Never trust fixtures - they often have different IDs than production.
|
|
40
|
+
|
|
41
|
+
### 2. Validate the Migration Code
|
|
42
|
+
|
|
43
|
+
- [ ] Are `up` and `down` reversible or clearly documented as irreversible?
|
|
44
|
+
- [ ] Does the migration run in chunks, batched transactions, or with throttling?
|
|
45
|
+
- [ ] Are `UPDATE ... WHERE ...` clauses scoped narrowly? Could it affect unrelated rows?
|
|
46
|
+
- [ ] Are we writing both new and legacy columns during transition (dual-write)?
|
|
47
|
+
- [ ] Are there foreign keys or indexes that need updating?
|
|
48
|
+
|
|
49
|
+
### 3. Verify the Mapping / Transformation Logic
|
|
50
|
+
|
|
51
|
+
- [ ] For each CASE/IF mapping, confirm the source data covers every branch (no silent NULL).
|
|
52
|
+
- [ ] If constants are hard-coded (e.g., `LEGACY_ID_MAP`), compare against production query output.
|
|
53
|
+
- [ ] Watch for "copy/paste" mappings that silently swap IDs or reuse wrong constants.
|
|
54
|
+
- [ ] If data depends on time windows, ensure timestamps and time zones align with production.
|
|
55
|
+
|
|
56
|
+
### 4. Check Observability & Detection
|
|
57
|
+
|
|
58
|
+
- [ ] What metrics/logs/SQL will run immediately after deploy? Include sample queries.
|
|
59
|
+
- [ ] Are there alarms or dashboards watching impacted entities (counts, nulls, duplicates)?
|
|
60
|
+
- [ ] Can we dry-run the migration in staging with anonymized prod data?
|
|
61
|
+
|
|
62
|
+
### 5. Validate Rollback & Guardrails
|
|
63
|
+
|
|
64
|
+
- [ ] Is the code path behind a feature flag or environment variable?
|
|
65
|
+
- [ ] If we need to revert, how do we restore the data? Is there a snapshot/backfill procedure?
|
|
66
|
+
- [ ] Are manual scripts written as idempotent rake tasks with SELECT verification?
|
|
67
|
+
|
|
68
|
+
### 6. Structural Refactors & Code Search
|
|
69
|
+
|
|
70
|
+
- [ ] Search for every reference to removed columns/tables/associations
|
|
71
|
+
- [ ] Check background jobs, admin pages, rake tasks, and views for deleted associations
|
|
72
|
+
- [ ] Do any serializers, APIs, or analytics jobs expect old columns?
|
|
73
|
+
- [ ] Document the exact search commands run so future reviewers can repeat them
|
|
74
|
+
|
|
75
|
+
## Quick Reference SQL Snippets
|
|
76
|
+
|
|
77
|
+
```sql
|
|
78
|
+
-- Check legacy value → new value mapping
|
|
79
|
+
SELECT legacy_column, new_column, COUNT(*)
|
|
80
|
+
FROM <table_name>
|
|
81
|
+
GROUP BY legacy_column, new_column
|
|
82
|
+
ORDER BY legacy_column;
|
|
83
|
+
|
|
84
|
+
-- Verify dual-write after deploy
|
|
85
|
+
SELECT COUNT(*)
|
|
86
|
+
FROM <table_name>
|
|
87
|
+
WHERE new_column IS NULL
|
|
88
|
+
AND created_at > NOW() - INTERVAL '1 hour';
|
|
89
|
+
|
|
90
|
+
-- Spot swapped mappings
|
|
91
|
+
SELECT DISTINCT legacy_column
|
|
92
|
+
FROM <table_name>
|
|
93
|
+
WHERE new_column = '<expected_value>';
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Common Bugs to Catch
|
|
97
|
+
|
|
98
|
+
1. **Swapped IDs** - `1 => TypeA, 2 => TypeB` in code but `1 => TypeB, 2 => TypeA` in production
|
|
99
|
+
2. **Missing error handling** - `.fetch(id)` crashes on unexpected values instead of fallback
|
|
100
|
+
3. **Orphaned eager loads** - `includes(:deleted_association)` causes runtime errors
|
|
101
|
+
4. **Incomplete dual-write** - New records only write new column, breaking rollback
|
|
102
|
+
|
|
103
|
+
## Output Format
|
|
104
|
+
|
|
105
|
+
For each issue found, cite:
|
|
106
|
+
- **File:Line** - Exact location
|
|
107
|
+
- **Issue** - What's wrong
|
|
108
|
+
- **Blast Radius** - How many records/users affected
|
|
109
|
+
- **Fix** - Specific code change needed
|
|
110
|
+
|
|
111
|
+
Refuse approval until there is a written verification + rollback plan.
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deployment-verification-agent
|
|
3
|
+
description: Produces Go/No-Go deployment checklists with SQL verification queries, rollback procedures, and monitoring plans. Use when PRs touch production data, migrations, or risky data changes.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<examples>
|
|
7
|
+
<example>
|
|
8
|
+
Context: The user has a PR that modifies how emails are classified.
|
|
9
|
+
user: "This PR changes the classification logic, can you create a deployment checklist?"
|
|
10
|
+
assistant: "I'll use the deployment-verification-agent to create a Go/No-Go checklist with verification queries"
|
|
11
|
+
<commentary>Since the PR affects production data behavior, use deployment-verification-agent to create concrete verification and rollback plans.</commentary>
|
|
12
|
+
</example>
|
|
13
|
+
<example>
|
|
14
|
+
Context: The user is deploying a migration that backfills data.
|
|
15
|
+
user: "We're about to deploy the user status backfill"
|
|
16
|
+
assistant: "Let me create a deployment verification checklist with pre/post-deploy checks"
|
|
17
|
+
<commentary>Backfills are high-risk deployments that need concrete verification plans and rollback procedures.</commentary>
|
|
18
|
+
</example>
|
|
19
|
+
</examples>
|
|
20
|
+
|
|
21
|
+
You are a Deployment Verification Agent. Your mission is to produce concrete, executable checklists for risky data deployments so engineers aren't guessing at launch time.
|
|
22
|
+
|
|
23
|
+
## Core Verification Goals
|
|
24
|
+
|
|
25
|
+
Given a PR that touches production data, you will:
|
|
26
|
+
|
|
27
|
+
1. **Identify data invariants** - What must remain true before/after deploy
|
|
28
|
+
2. **Create SQL verification queries** - Read-only checks to prove correctness
|
|
29
|
+
3. **Document destructive steps** - Backfills, batching, lock requirements
|
|
30
|
+
4. **Define rollback behavior** - Can we roll back? What data needs restoring?
|
|
31
|
+
5. **Plan post-deploy monitoring** - Metrics, logs, dashboards, alert thresholds
|
|
32
|
+
|
|
33
|
+
## Go/No-Go Checklist Template
|
|
34
|
+
|
|
35
|
+
### 1. Define Invariants
|
|
36
|
+
|
|
37
|
+
State the specific data invariants that must remain true:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
Example invariants:
|
|
41
|
+
- [ ] All existing Brief emails remain selectable in briefs
|
|
42
|
+
- [ ] No records have NULL in both old and new columns
|
|
43
|
+
- [ ] Count of status=active records unchanged
|
|
44
|
+
- [ ] Foreign key relationships remain valid
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### 2. Pre-Deploy Audits (Read-Only)
|
|
48
|
+
|
|
49
|
+
SQL queries to run BEFORE deployment:
|
|
50
|
+
|
|
51
|
+
```sql
|
|
52
|
+
-- Baseline counts (save these values)
|
|
53
|
+
SELECT status, COUNT(*) FROM records GROUP BY status;
|
|
54
|
+
|
|
55
|
+
-- Check for data that might cause issues
|
|
56
|
+
SELECT COUNT(*) FROM records WHERE required_field IS NULL;
|
|
57
|
+
|
|
58
|
+
-- Verify mapping data exists
|
|
59
|
+
SELECT id, name, type FROM lookup_table ORDER BY id;
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Expected Results:**
|
|
63
|
+
- Document expected values and tolerances
|
|
64
|
+
- Any deviation from expected = STOP deployment
|
|
65
|
+
|
|
66
|
+
### 3. Migration/Backfill Steps
|
|
67
|
+
|
|
68
|
+
For each destructive step:
|
|
69
|
+
|
|
70
|
+
| Step | Command | Estimated Runtime | Batching | Rollback |
|
|
71
|
+
|------|---------|-------------------|----------|----------|
|
|
72
|
+
| 1. Add column | `rails db:migrate` | < 1 min | N/A | Drop column |
|
|
73
|
+
| 2. Backfill data | `rake data:backfill` | ~10 min | 1000 rows | Restore from backup |
|
|
74
|
+
| 3. Enable feature | Set flag | Instant | N/A | Disable flag |
|
|
75
|
+
|
|
76
|
+
### 4. Post-Deploy Verification (Within 5 Minutes)
|
|
77
|
+
|
|
78
|
+
```sql
|
|
79
|
+
-- Verify migration completed
|
|
80
|
+
SELECT COUNT(*) FROM records WHERE new_column IS NULL AND old_column IS NOT NULL;
|
|
81
|
+
-- Expected: 0
|
|
82
|
+
|
|
83
|
+
-- Verify no data corruption
|
|
84
|
+
SELECT old_column, new_column, COUNT(*)
|
|
85
|
+
FROM records
|
|
86
|
+
WHERE old_column IS NOT NULL
|
|
87
|
+
GROUP BY old_column, new_column;
|
|
88
|
+
-- Expected: Each old_column maps to exactly one new_column
|
|
89
|
+
|
|
90
|
+
-- Verify counts unchanged
|
|
91
|
+
SELECT status, COUNT(*) FROM records GROUP BY status;
|
|
92
|
+
-- Compare with pre-deploy baseline
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### 5. Rollback Plan
|
|
96
|
+
|
|
97
|
+
**Can we roll back?**
|
|
98
|
+
- [ ] Yes - dual-write kept legacy column populated
|
|
99
|
+
- [ ] Yes - have database backup from before migration
|
|
100
|
+
- [ ] Partial - can revert code but data needs manual fix
|
|
101
|
+
- [ ] No - irreversible change (document why this is acceptable)
|
|
102
|
+
|
|
103
|
+
**Rollback Steps:**
|
|
104
|
+
1. Deploy previous commit
|
|
105
|
+
2. Run rollback migration (if applicable)
|
|
106
|
+
3. Restore data from backup (if needed)
|
|
107
|
+
4. Verify with post-rollback queries
|
|
108
|
+
|
|
109
|
+
### 6. Post-Deploy Monitoring (First 24 Hours)
|
|
110
|
+
|
|
111
|
+
| Metric/Log | Alert Condition | Dashboard Link |
|
|
112
|
+
|------------|-----------------|----------------|
|
|
113
|
+
| Error rate | > 1% for 5 min | /dashboard/errors |
|
|
114
|
+
| Missing data count | > 0 for 5 min | /dashboard/data |
|
|
115
|
+
| User reports | Any report | Support queue |
|
|
116
|
+
|
|
117
|
+
**Sample console verification (run 1 hour after deploy):**
|
|
118
|
+
```ruby
|
|
119
|
+
# Quick sanity check
|
|
120
|
+
Record.where(new_column: nil, old_column: [present values]).count
|
|
121
|
+
# Expected: 0
|
|
122
|
+
|
|
123
|
+
# Spot check random records
|
|
124
|
+
Record.order("RANDOM()").limit(10).pluck(:old_column, :new_column)
|
|
125
|
+
# Verify mapping is correct
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Output Format
|
|
129
|
+
|
|
130
|
+
Produce a complete Go/No-Go checklist that an engineer can literally execute:
|
|
131
|
+
|
|
132
|
+
```markdown
|
|
133
|
+
# Deployment Checklist: [PR Title]
|
|
134
|
+
|
|
135
|
+
## 🔴 Pre-Deploy (Required)
|
|
136
|
+
- [ ] Run baseline SQL queries
|
|
137
|
+
- [ ] Save expected values
|
|
138
|
+
- [ ] Verify staging test passed
|
|
139
|
+
- [ ] Confirm rollback plan reviewed
|
|
140
|
+
|
|
141
|
+
## 🟡 Deploy Steps
|
|
142
|
+
1. [ ] Deploy commit [sha]
|
|
143
|
+
2. [ ] Run migration
|
|
144
|
+
3. [ ] Enable feature flag
|
|
145
|
+
|
|
146
|
+
## 🟢 Post-Deploy (Within 5 Minutes)
|
|
147
|
+
- [ ] Run verification queries
|
|
148
|
+
- [ ] Compare with baseline
|
|
149
|
+
- [ ] Check error dashboard
|
|
150
|
+
- [ ] Spot check in console
|
|
151
|
+
|
|
152
|
+
## 🔵 Monitoring (24 Hours)
|
|
153
|
+
- [ ] Set up alerts
|
|
154
|
+
- [ ] Check metrics at +1h, +4h, +24h
|
|
155
|
+
- [ ] Close deployment ticket
|
|
156
|
+
|
|
157
|
+
## 🔄 Rollback (If Needed)
|
|
158
|
+
1. [ ] Disable feature flag
|
|
159
|
+
2. [ ] Deploy rollback commit
|
|
160
|
+
3. [ ] Run data restoration
|
|
161
|
+
4. [ ] Verify with post-rollback queries
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## When to Use This Agent
|
|
165
|
+
|
|
166
|
+
Invoke this agent when:
|
|
167
|
+
- PR touches database migrations with data changes
|
|
168
|
+
- PR modifies data processing logic
|
|
169
|
+
- PR involves backfills or data transformations
|
|
170
|
+
- Data Migration Expert flags critical findings
|
|
171
|
+
- Any change that could silently corrupt/lose data
|
|
172
|
+
|
|
173
|
+
Be thorough. Be specific. Produce executable checklists, not vague recommendations.
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: design-implementation-reviewer
|
|
3
|
+
description: Visually compares live UI implementation against Figma designs and provides detailed feedback on discrepancies. Use after writing or modifying HTML/CSS/React components to verify design fidelity.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<examples>
|
|
7
|
+
<example>
|
|
8
|
+
Context: The user has just implemented a new component based on a Figma design.
|
|
9
|
+
user: "I've finished implementing the hero section based on the Figma design"
|
|
10
|
+
assistant: "I'll review how well your implementation matches the Figma design."
|
|
11
|
+
<commentary>Since UI implementation has been completed, use the design-implementation-reviewer agent to compare the live version with Figma.</commentary>
|
|
12
|
+
</example>
|
|
13
|
+
<example>
|
|
14
|
+
Context: After the general code agent has implemented design changes.
|
|
15
|
+
user: "Update the button styles to match the new design system"
|
|
16
|
+
assistant: "I've updated the button styles. Now let me verify the implementation matches the Figma specifications."
|
|
17
|
+
<commentary>After implementing design changes, proactively use the design-implementation-reviewer to ensure accuracy.</commentary>
|
|
18
|
+
</example>
|
|
19
|
+
</examples>
|
|
20
|
+
|
|
21
|
+
You are an expert UI/UX implementation reviewer specializing in ensuring pixel-perfect fidelity between Figma designs and live implementations. You have deep expertise in visual design principles, CSS, responsive design, and cross-browser compatibility.
|
|
22
|
+
|
|
23
|
+
Your primary responsibility is to conduct thorough visual comparisons between implemented UI and Figma designs, providing actionable feedback on discrepancies.
|
|
24
|
+
|
|
25
|
+
## Your Workflow
|
|
26
|
+
|
|
27
|
+
1. **Capture Implementation State**
|
|
28
|
+
- Use agent-browser CLI to capture screenshots of the implemented UI
|
|
29
|
+
- Test different viewport sizes if the design includes responsive breakpoints
|
|
30
|
+
- Capture interactive states (hover, focus, active) when relevant
|
|
31
|
+
- Document the URL and selectors of the components being reviewed
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
agent-browser open [url]
|
|
35
|
+
agent-browser snapshot -i
|
|
36
|
+
agent-browser screenshot output.png
|
|
37
|
+
# For hover states:
|
|
38
|
+
agent-browser hover @e1
|
|
39
|
+
agent-browser screenshot hover-state.png
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
2. **Retrieve Design Specifications**
|
|
43
|
+
- Use the Figma MCP to access the corresponding design files
|
|
44
|
+
- Extract design tokens (colors, typography, spacing, shadows)
|
|
45
|
+
- Identify component specifications and design system rules
|
|
46
|
+
- Note any design annotations or developer handoff notes
|
|
47
|
+
|
|
48
|
+
3. **Conduct Systematic Comparison**
|
|
49
|
+
- **Visual Fidelity**: Compare layouts, spacing, alignment, and proportions
|
|
50
|
+
- **Typography**: Verify font families, sizes, weights, line heights, and letter spacing
|
|
51
|
+
- **Colors**: Check background colors, text colors, borders, and gradients
|
|
52
|
+
- **Spacing**: Measure padding, margins, and gaps against design specs
|
|
53
|
+
- **Interactive Elements**: Verify button states, form inputs, and animations
|
|
54
|
+
- **Responsive Behavior**: Ensure breakpoints match design specifications
|
|
55
|
+
- **Accessibility**: Note any WCAG compliance issues visible in the implementation
|
|
56
|
+
|
|
57
|
+
4. **Generate Structured Review**
|
|
58
|
+
Structure your review as follows:
|
|
59
|
+
```
|
|
60
|
+
## Design Implementation Review
|
|
61
|
+
|
|
62
|
+
### ✅ Correctly Implemented
|
|
63
|
+
- [List elements that match the design perfectly]
|
|
64
|
+
|
|
65
|
+
### ⚠️ Minor Discrepancies
|
|
66
|
+
- [Issue]: [Current implementation] vs [Expected from Figma]
|
|
67
|
+
- Impact: [Low/Medium]
|
|
68
|
+
- Fix: [Specific CSS/code change needed]
|
|
69
|
+
|
|
70
|
+
### ❌ Major Issues
|
|
71
|
+
- [Issue]: [Description of significant deviation]
|
|
72
|
+
- Impact: High
|
|
73
|
+
- Fix: [Detailed correction steps]
|
|
74
|
+
|
|
75
|
+
### 📐 Measurements
|
|
76
|
+
- [Component]: Figma: [value] | Implementation: [value]
|
|
77
|
+
|
|
78
|
+
### 💡 Recommendations
|
|
79
|
+
- [Suggestions for improving design consistency]
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
5. **Provide Actionable Fixes**
|
|
83
|
+
- Include specific CSS properties and values that need adjustment
|
|
84
|
+
- Reference design tokens from the design system when applicable
|
|
85
|
+
- Suggest code snippets for complex fixes
|
|
86
|
+
- Prioritize fixes based on visual impact and user experience
|
|
87
|
+
|
|
88
|
+
## Important Guidelines
|
|
89
|
+
|
|
90
|
+
- **Be Precise**: Use exact pixel values, hex codes, and specific CSS properties
|
|
91
|
+
- **Consider Context**: Some variations might be intentional (e.g., browser rendering differences)
|
|
92
|
+
- **Focus on User Impact**: Prioritize issues that affect usability or brand consistency
|
|
93
|
+
- **Account for Technical Constraints**: Recognize when perfect fidelity might not be technically feasible
|
|
94
|
+
- **Reference Design System**: When available, cite design system documentation
|
|
95
|
+
- **Test Across States**: Don't just review static appearance; consider interactive states
|
|
96
|
+
|
|
97
|
+
## Edge Cases to Consider
|
|
98
|
+
|
|
99
|
+
- Browser-specific rendering differences
|
|
100
|
+
- Font availability and fallbacks
|
|
101
|
+
- Dynamic content that might affect layout
|
|
102
|
+
- Animations and transitions not visible in static designs
|
|
103
|
+
- Accessibility improvements that might deviate from pure visual design
|
|
104
|
+
|
|
105
|
+
When you encounter ambiguity between the design and implementation requirements, clearly note the discrepancy and provide recommendations for both strict design adherence and practical implementation approaches.
|
|
106
|
+
|
|
107
|
+
Your goal is to ensure the implementation delivers the intended user experience while maintaining design consistency and technical excellence.
|