claude-code-templates 1.21.4 → 1.21.6
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/components/agents/ai-specialists/ai-ethics-advisor.md +195 -0
- package/components/agents/ai-specialists/hackathon-ai-strategist.md +46 -0
- package/components/agents/ai-specialists/llms-maintainer.md +94 -0
- package/components/agents/ai-specialists/model-evaluator.md +150 -0
- package/components/agents/ai-specialists/prompt-engineer.md +112 -0
- package/components/agents/ai-specialists/search-specialist.md +59 -0
- package/components/agents/ai-specialists/task-decomposition-expert.md +97 -0
- package/components/agents/api-graphql/graphql-architect.md +208 -0
- package/components/agents/api-graphql/graphql-performance-optimizer.md +357 -0
- package/components/agents/api-graphql/graphql-security-specialist.md +519 -0
- package/components/agents/blockchain-web3/smart-contract-auditor.md +32 -0
- package/components/agents/blockchain-web3/smart-contract-specialist.md +32 -0
- package/components/agents/blockchain-web3/web3-integration-specialist.md +32 -0
- package/components/agents/business-marketing/business-analyst.md +194 -0
- package/components/agents/business-marketing/content-marketer.md +36 -0
- package/components/agents/business-marketing/customer-support.md +36 -0
- package/components/agents/business-marketing/legal-advisor.md +50 -0
- package/components/agents/business-marketing/marketing-attribution-analyst.md +352 -0
- package/components/agents/business-marketing/payment-integration.md +33 -0
- package/components/agents/business-marketing/product-strategist.md +212 -0
- package/components/agents/business-marketing/risk-manager.md +42 -0
- package/components/agents/business-marketing/sales-automator.md +36 -0
- package/components/agents/data-ai/ai-engineer.md +33 -0
- package/components/agents/data-ai/computer-vision-engineer.md +562 -0
- package/components/agents/data-ai/data-engineer.md +33 -0
- package/components/agents/data-ai/data-scientist.md +337 -0
- package/components/agents/data-ai/ml-engineer.md +33 -0
- package/components/agents/data-ai/mlops-engineer.md +58 -0
- package/components/agents/data-ai/nlp-engineer.md +680 -0
- package/components/agents/data-ai/quant-analyst.md +33 -0
- package/components/agents/database/database-admin.md +33 -0
- package/components/agents/database/database-architect.md +590 -0
- package/components/agents/database/database-optimization.md +33 -0
- package/components/agents/database/database-optimizer.md +33 -0
- package/components/agents/database/nosql-specialist.md +708 -0
- package/components/agents/database/supabase-schema-architect.md +138 -0
- package/components/agents/deep-research-team/academic-researcher.md +33 -0
- package/components/agents/deep-research-team/agent-overview.md +235 -0
- package/components/agents/deep-research-team/competitive-intelligence-analyst.md +530 -0
- package/components/agents/deep-research-team/data-analyst.md +112 -0
- package/components/agents/deep-research-team/fact-checker.md +553 -0
- package/components/agents/deep-research-team/query-clarifier.md +73 -0
- package/components/agents/deep-research-team/report-generator.md +108 -0
- package/components/agents/deep-research-team/research-brief-generator.md +108 -0
- package/components/agents/deep-research-team/research-coordinator.md +94 -0
- package/components/agents/deep-research-team/research-orchestrator.md +119 -0
- package/components/agents/deep-research-team/research-synthesizer.md +109 -0
- package/components/agents/deep-research-team/technical-researcher.md +95 -0
- package/components/agents/development-team/backend-architect.md +31 -0
- package/components/agents/development-team/cli-ui-designer.md +405 -0
- package/components/agents/development-team/devops-engineer.md +886 -0
- package/components/agents/development-team/frontend-developer.md +32 -0
- package/components/agents/development-team/fullstack-developer.md +1205 -0
- package/components/agents/development-team/ios-developer.md +36 -0
- package/components/agents/development-team/mobile-developer.md +33 -0
- package/components/agents/development-team/ui-ux-designer.md +36 -0
- package/components/agents/development-tools/code-reviewer.md +30 -0
- package/components/agents/development-tools/command-expert.md +422 -0
- package/components/agents/development-tools/context-manager.md +65 -0
- package/components/agents/development-tools/debugger.md +31 -0
- package/components/agents/development-tools/dx-optimizer.md +64 -0
- package/components/agents/development-tools/error-detective.md +33 -0
- package/components/agents/development-tools/mcp-expert.md +259 -0
- package/components/agents/development-tools/performance-profiler.md +799 -0
- package/components/agents/development-tools/test-engineer.md +936 -0
- package/components/agents/devops-infrastructure/cloud-architect.md +33 -0
- package/components/agents/devops-infrastructure/deployment-engineer.md +33 -0
- package/components/agents/devops-infrastructure/devops-troubleshooter.md +33 -0
- package/components/agents/devops-infrastructure/monitoring-specialist.md +36 -0
- package/components/agents/devops-infrastructure/network-engineer.md +33 -0
- package/components/agents/devops-infrastructure/security-engineer.md +971 -0
- package/components/agents/devops-infrastructure/terraform-specialist.md +36 -0
- package/components/agents/devops-infrastructure/vercel-deployment-specialist.md +357 -0
- package/components/agents/documentation/api-documenter.md +33 -0
- package/components/agents/documentation/changelog-generator.md +37 -0
- package/components/agents/documentation/docusaurus-expert.md +52 -0
- package/components/agents/documentation/technical-writer.md +37 -0
- package/components/agents/expert-advisors/agent-expert.md +477 -0
- package/components/agents/expert-advisors/architect-review.md +50 -0
- package/components/agents/expert-advisors/dependency-manager.md +45 -0
- package/components/agents/expert-advisors/documentation-expert.md +47 -0
- package/components/agents/ffmpeg-clip-team/audio-mixer.md +37 -0
- package/components/agents/ffmpeg-clip-team/audio-quality-controller.md +100 -0
- package/components/agents/ffmpeg-clip-team/podcast-content-analyzer.md +60 -0
- package/components/agents/ffmpeg-clip-team/podcast-metadata-specialist.md +46 -0
- package/components/agents/ffmpeg-clip-team/podcast-transcriber.md +68 -0
- package/components/agents/ffmpeg-clip-team/social-media-clip-creator.md +69 -0
- package/components/agents/ffmpeg-clip-team/timestamp-precision-specialist.md +98 -0
- package/components/agents/ffmpeg-clip-team/video-editor.md +37 -0
- package/components/agents/game-development/3d-artist.md +37 -0
- package/components/agents/game-development/game-designer.md +37 -0
- package/components/agents/game-development/unity-game-developer.md +110 -0
- package/components/agents/game-development/unreal-engine-developer.md +128 -0
- package/components/agents/mcp-dev-team/mcp-deployment-orchestrator.md +101 -0
- package/components/agents/mcp-dev-team/mcp-integration-engineer.md +37 -0
- package/components/agents/mcp-dev-team/mcp-protocol-specialist.md +37 -0
- package/components/agents/mcp-dev-team/mcp-registry-navigator.md +112 -0
- package/components/agents/mcp-dev-team/mcp-security-auditor.md +70 -0
- package/components/agents/mcp-dev-team/mcp-server-architect.md +74 -0
- package/components/agents/mcp-dev-team/mcp-testing-engineer.md +106 -0
- package/components/agents/modernization/architecture-modernizer.md +37 -0
- package/components/agents/modernization/cloud-migration-specialist.md +37 -0
- package/components/agents/modernization/legacy-modernizer.md +33 -0
- package/components/agents/obsidian-ops-team/Scripts/daily_notes_connector.py +306 -0
- package/components/agents/obsidian-ops-team/Scripts/enhance_tag_standardizer.py +343 -0
- package/components/agents/obsidian-ops-team/Scripts/find_keyword_connections.py +216 -0
- package/components/agents/obsidian-ops-team/Scripts/fix_quoted_tags.py +82 -0
- package/components/agents/obsidian-ops-team/Scripts/implement_entity_connections.py +195 -0
- package/components/agents/obsidian-ops-team/Scripts/link_suggester.py +301 -0
- package/components/agents/obsidian-ops-team/Scripts/metadata_adder.py +197 -0
- package/components/agents/obsidian-ops-team/Scripts/moc_generator.py +296 -0
- package/components/agents/obsidian-ops-team/Scripts/parse_keyword_connections.py +122 -0
- package/components/agents/obsidian-ops-team/Scripts/tag_standardizer.py +387 -0
- package/components/agents/obsidian-ops-team/connection-agent.md +67 -0
- package/components/agents/obsidian-ops-team/content-curator.md +81 -0
- package/components/agents/obsidian-ops-team/metadata-agent.md +51 -0
- package/components/agents/obsidian-ops-team/moc-agent.md +112 -0
- package/components/agents/obsidian-ops-team/review-agent.md +94 -0
- package/components/agents/obsidian-ops-team/tag-agent.md +92 -0
- package/components/agents/obsidian-ops-team/vault-optimizer.md +76 -0
- package/components/agents/ocr-extraction-team/document-structure-analyzer.md +37 -0
- package/components/agents/ocr-extraction-team/markdown-syntax-formatter.md +58 -0
- package/components/agents/ocr-extraction-team/ocr-grammar-fixer.md +36 -0
- package/components/agents/ocr-extraction-team/ocr-preprocessing-optimizer.md +37 -0
- package/components/agents/ocr-extraction-team/ocr-quality-assurance.md +62 -0
- package/components/agents/ocr-extraction-team/text-comparison-validator.md +60 -0
- package/components/agents/ocr-extraction-team/visual-analysis-ocr.md +52 -0
- package/components/agents/performance-testing/load-testing-specialist.md +37 -0
- package/components/agents/performance-testing/performance-engineer.md +33 -0
- package/components/agents/performance-testing/react-performance-optimization.md +65 -0
- package/components/agents/performance-testing/test-automator.md +33 -0
- package/components/agents/performance-testing/web-vitals-optimizer.md +37 -0
- package/components/agents/podcast-creator-team/academic-research-synthesizer.md +61 -0
- package/components/agents/podcast-creator-team/comprehensive-researcher.md +49 -0
- package/components/agents/podcast-creator-team/episode-orchestrator.md +52 -0
- package/components/agents/podcast-creator-team/guest-outreach-coordinator.md +37 -0
- package/components/agents/podcast-creator-team/market-research-analyst.md +54 -0
- package/components/agents/podcast-creator-team/podcast-editor.md +37 -0
- package/components/agents/podcast-creator-team/podcast-trend-scout.md +60 -0
- package/components/agents/podcast-creator-team/project-supervisor-orchestrator.md +48 -0
- package/components/agents/podcast-creator-team/seo-podcast-optimizer.md +58 -0
- package/components/agents/podcast-creator-team/social-media-copywriter.md +57 -0
- package/components/agents/podcast-creator-team/twitter-ai-influencer-manager.md +62 -0
- package/components/agents/programming-languages/c-pro.md +36 -0
- package/components/agents/programming-languages/c-sharp-pro.md +40 -0
- package/components/agents/programming-languages/cpp-pro.md +39 -0
- package/components/agents/programming-languages/golang-pro.md +33 -0
- package/components/agents/programming-languages/javascript-pro.md +36 -0
- package/components/agents/programming-languages/php-pro.md +44 -0
- package/components/agents/programming-languages/python-pro.md +33 -0
- package/components/agents/programming-languages/rust-pro.md +36 -0
- package/components/agents/programming-languages/shell-scripting-pro.md +38 -0
- package/components/agents/programming-languages/sql-pro.md +36 -0
- package/components/agents/programming-languages/typescript-pro.md +38 -0
- package/components/agents/realtime/supabase-realtime-optimizer.md +193 -0
- package/components/agents/security/api-security-audit.md +93 -0
- package/components/agents/security/compliance-specialist.md +37 -0
- package/components/agents/security/incident-responder.md +75 -0
- package/components/agents/security/penetration-tester.md +37 -0
- package/components/agents/security/security-auditor.md +33 -0
- package/components/agents/web-tools/nextjs-architecture-expert.md +194 -0
- package/components/agents/web-tools/react-performance-optimizer.md +425 -0
- package/components/agents/web-tools/seo-analyzer.md +37 -0
- package/components/agents/web-tools/url-context-validator.md +61 -0
- package/components/agents/web-tools/url-link-extractor.md +59 -0
- package/components/agents/web-tools/web-accessibility-checker.md +37 -0
- package/components/commands/automation/act.md +57 -0
- package/components/commands/automation/ci-pipeline.md +378 -0
- package/components/commands/automation/husky.md +130 -0
- package/components/commands/automation/workflow-orchestrator.md +576 -0
- package/components/commands/database/supabase-backup-manager.md +37 -0
- package/components/commands/database/supabase-data-explorer.md +37 -0
- package/components/commands/database/supabase-migration-assistant.md +37 -0
- package/components/commands/database/supabase-performance-optimizer.md +37 -0
- package/components/commands/database/supabase-realtime-monitor.md +37 -0
- package/components/commands/database/supabase-schema-sync.md +37 -0
- package/components/commands/database/supabase-security-audit.md +37 -0
- package/components/commands/database/supabase-type-generator.md +37 -0
- package/components/commands/deployment/add-changelog.md +92 -0
- package/components/commands/deployment/blue-green-deployment.md +824 -0
- package/components/commands/deployment/changelog-demo-command.md +43 -0
- package/components/commands/deployment/ci-setup.md +323 -0
- package/components/commands/deployment/containerize-application.md +93 -0
- package/components/commands/deployment/deployment-monitoring.md +1228 -0
- package/components/commands/deployment/hotfix-deploy.md +283 -0
- package/components/commands/deployment/prepare-release.md +357 -0
- package/components/commands/deployment/rollback-deploy.md +145 -0
- package/components/commands/deployment/setup-automated-releases.md +143 -0
- package/components/commands/deployment/setup-kubernetes-deployment.md +93 -0
- package/components/commands/documentation/create-architecture-documentation.md +95 -0
- package/components/commands/documentation/create-onboarding-guide.md +93 -0
- package/components/commands/documentation/doc-api.md +242 -0
- package/components/commands/documentation/docs-maintenance.md +119 -0
- package/components/commands/documentation/generate-api-documentation.md +97 -0
- package/components/commands/documentation/interactive-documentation.md +133 -0
- package/components/commands/documentation/load-llms-txt.md +39 -0
- package/components/commands/documentation/migration-guide.md +250 -0
- package/components/commands/documentation/troubleshooting-guide.md +370 -0
- package/components/commands/documentation/update-docs.md +107 -0
- package/components/commands/game-development/game-analytics-integration.md +128 -0
- package/components/commands/game-development/game-asset-pipeline.md +108 -0
- package/components/commands/game-development/game-performance-profiler.md +78 -0
- package/components/commands/game-development/game-testing-framework.md +112 -0
- package/components/commands/game-development/unity-project-setup.md +190 -0
- package/components/commands/git-workflow/branch-cleanup.md +181 -0
- package/components/commands/git-workflow/commit.md +167 -0
- package/components/commands/git-workflow/create-pr.md +19 -0
- package/components/commands/git-workflow/create-pull-request.md +126 -0
- package/components/commands/git-workflow/create-worktrees.md +174 -0
- package/components/commands/git-workflow/fix-github-issue.md +13 -0
- package/components/commands/git-workflow/git-bisect-helper.md +261 -0
- package/components/commands/git-workflow/pr-review.md +76 -0
- package/components/commands/git-workflow/update-branch-name.md +9 -0
- package/components/commands/nextjs-vercel/nextjs-api-tester.md +480 -0
- package/components/commands/nextjs-vercel/nextjs-bundle-analyzer.md +406 -0
- package/components/commands/nextjs-vercel/nextjs-component-generator.md +489 -0
- package/components/commands/nextjs-vercel/nextjs-middleware-creator.md +712 -0
- package/components/commands/nextjs-vercel/nextjs-migration-helper.md +778 -0
- package/components/commands/nextjs-vercel/nextjs-performance-audit.md +653 -0
- package/components/commands/nextjs-vercel/nextjs-scaffold.md +237 -0
- package/components/commands/nextjs-vercel/vercel-deploy-optimize.md +341 -0
- package/components/commands/nextjs-vercel/vercel-edge-function.md +810 -0
- package/components/commands/nextjs-vercel/vercel-env-sync.md +666 -0
- package/components/commands/orchestration/archive.md +414 -0
- package/components/commands/orchestration/commit.md +305 -0
- package/components/commands/orchestration/find.md +272 -0
- package/components/commands/orchestration/log.md +355 -0
- package/components/commands/orchestration/move.md +220 -0
- package/components/commands/orchestration/optimize.md +375 -0
- package/components/commands/orchestration/remove.md +301 -0
- package/components/commands/orchestration/report.md +292 -0
- package/components/commands/orchestration/resume.md +256 -0
- package/components/commands/orchestration/start.md +169 -0
- package/components/commands/orchestration/status.md +219 -0
- package/components/commands/orchestration/sync.md +294 -0
- package/components/commands/performance/add-performance-monitoring.md +84 -0
- package/components/commands/performance/implement-caching-strategy.md +84 -0
- package/components/commands/performance/optimize-api-performance.md +119 -0
- package/components/commands/performance/optimize-build.md +139 -0
- package/components/commands/performance/optimize-bundle-size.md +84 -0
- package/components/commands/performance/optimize-database-performance.md +84 -0
- package/components/commands/performance/optimize-memory-usage.md +91 -0
- package/components/commands/performance/performance-audit.md +89 -0
- package/components/commands/performance/setup-cdn-optimization.md +84 -0
- package/components/commands/performance/system-behavior-simulator.md +415 -0
- package/components/commands/project-management/add-package.md +90 -0
- package/components/commands/project-management/add-to-changelog.md +37 -0
- package/components/commands/project-management/create-feature.md +130 -0
- package/components/commands/project-management/create-jtbd.md +37 -0
- package/components/commands/project-management/create-prd.md +36 -0
- package/components/commands/project-management/create-prp.md +37 -0
- package/components/commands/project-management/init-project.md +80 -0
- package/components/commands/project-management/milestone-tracker.md +44 -0
- package/components/commands/project-management/pac-configure.md +32 -0
- package/components/commands/project-management/pac-create-epic.md +41 -0
- package/components/commands/project-management/pac-create-ticket.md +42 -0
- package/components/commands/project-management/pac-update-status.md +39 -0
- package/components/commands/project-management/pac-validate.md +35 -0
- package/components/commands/project-management/project-health-check.md +58 -0
- package/components/commands/project-management/project-timeline-simulator.md +37 -0
- package/components/commands/project-management/project-to-linear.md +38 -0
- package/components/commands/project-management/release.md +31 -0
- package/components/commands/project-management/todo.md +62 -0
- package/components/commands/security/add-authentication-system.md +34 -0
- package/components/commands/security/dependency-audit.md +32 -0
- package/components/commands/security/penetration-test.md +40 -0
- package/components/commands/security/secrets-scanner.md +39 -0
- package/components/commands/security/security-audit.md +82 -0
- package/components/commands/security/security-hardening.md +33 -0
- package/components/commands/setup/create-database-migrations.md +35 -0
- package/components/commands/setup/design-database-schema.md +37 -0
- package/components/commands/setup/design-rest-api.md +37 -0
- package/components/commands/setup/implement-graphql-api.md +37 -0
- package/components/commands/setup/migrate-to-typescript.md +37 -0
- package/components/commands/setup/setup-ci-cd-pipeline.md +37 -0
- package/components/commands/setup/setup-development-environment.md +37 -0
- package/components/commands/setup/setup-docker-containers.md +37 -0
- package/components/commands/setup/setup-formatting.md +37 -0
- package/components/commands/setup/setup-linting.md +37 -0
- package/components/commands/setup/setup-monitoring-observability.md +37 -0
- package/components/commands/setup/setup-monorepo.md +37 -0
- package/components/commands/setup/setup-rate-limiting.md +37 -0
- package/components/commands/setup/update-dependencies.md +35 -0
- package/components/commands/simulation/business-scenario-explorer.md +37 -0
- package/components/commands/simulation/constraint-modeler.md +37 -0
- package/components/commands/simulation/decision-tree-explorer.md +37 -0
- package/components/commands/simulation/digital-twin-creator.md +37 -0
- package/components/commands/simulation/future-scenario-generator.md +37 -0
- package/components/commands/simulation/market-response-modeler.md +37 -0
- package/components/commands/simulation/monte-carlo-simulator.md +37 -0
- package/components/commands/simulation/simulation-calibrator.md +37 -0
- package/components/commands/simulation/system-dynamics-modeler.md +37 -0
- package/components/commands/simulation/timeline-compressor.md +37 -0
- package/components/commands/svelte/svelte:a11y.md +105 -0
- package/components/commands/svelte/svelte:component.md +81 -0
- package/components/commands/svelte/svelte:debug.md +48 -0
- package/components/commands/svelte/svelte:migrate.md +79 -0
- package/components/commands/svelte/svelte:optimize.md +99 -0
- package/components/commands/svelte/svelte:scaffold.md +89 -0
- package/components/commands/svelte/svelte:storybook-migrate.md +204 -0
- package/components/commands/svelte/svelte:storybook-mock.md +213 -0
- package/components/commands/svelte/svelte:storybook-setup.md +113 -0
- package/components/commands/svelte/svelte:storybook-story.md +145 -0
- package/components/commands/svelte/svelte:storybook-troubleshoot.md +191 -0
- package/components/commands/svelte/svelte:storybook.md +48 -0
- package/components/commands/svelte/svelte:test-coverage.md +77 -0
- package/components/commands/svelte/svelte:test-fix.md +74 -0
- package/components/commands/svelte/svelte:test-setup.md +85 -0
- package/components/commands/svelte/svelte:test.md +60 -0
- package/components/commands/sync/bidirectional-sync.md +37 -0
- package/components/commands/sync/bulk-import-issues.md +37 -0
- package/components/commands/sync/cross-reference-manager.md +37 -0
- package/components/commands/sync/issue-to-linear-task.md +37 -0
- package/components/commands/sync/linear-task-to-issue.md +37 -0
- package/components/commands/sync/sync-automation-setup.md +37 -0
- package/components/commands/sync/sync-conflict-resolver.md +37 -0
- package/components/commands/sync/sync-health-monitor.md +37 -0
- package/components/commands/sync/sync-issues-to-linear.md +37 -0
- package/components/commands/sync/sync-linear-to-issues.md +37 -0
- package/components/commands/sync/sync-migration-assistant.md +37 -0
- package/components/commands/sync/sync-pr-to-task.md +37 -0
- package/components/commands/sync/sync-status.md +391 -0
- package/components/commands/sync/task-from-pr.md +37 -0
- package/components/commands/team/architecture-review.md +37 -0
- package/components/commands/team/decision-quality-analyzer.md +37 -0
- package/components/commands/team/dependency-mapper.md +37 -0
- package/components/commands/team/estimate-assistant.md +37 -0
- package/components/commands/team/issue-triage.md +37 -0
- package/components/commands/team/memory-spring-cleaning.md +37 -0
- package/components/commands/team/migration-assistant.md +37 -0
- package/components/commands/team/retrospective-analyzer.md +37 -0
- package/components/commands/team/session-learning-capture.md +37 -0
- package/components/commands/team/sprint-planning.md +189 -0
- package/components/commands/team/standup-report.md +37 -0
- package/components/commands/team/team-knowledge-mapper.md +37 -0
- package/components/commands/team/team-velocity-tracker.md +37 -0
- package/components/commands/team/team-workload-balancer.md +37 -0
- package/components/commands/testing/add-mutation-testing.md +37 -0
- package/components/commands/testing/add-property-based-testing.md +37 -0
- package/components/commands/testing/e2e-setup.md +37 -0
- package/components/commands/testing/generate-test-cases.md +37 -0
- package/components/commands/testing/generate-tests.md +82 -0
- package/components/commands/testing/setup-comprehensive-testing.md +37 -0
- package/components/commands/testing/setup-load-testing.md +37 -0
- package/components/commands/testing/setup-visual-testing.md +37 -0
- package/components/commands/testing/test-automation-orchestrator.md +37 -0
- package/components/commands/testing/test-changelog-automation.md +37 -0
- package/components/commands/testing/test-coverage.md +37 -0
- package/components/commands/testing/test-quality-analyzer.md +37 -0
- package/components/commands/testing/testing_plan_integration.md +37 -0
- package/components/commands/testing/write-tests.md +37 -0
- package/components/commands/utilities/all-tools.md +31 -0
- package/components/commands/utilities/architecture-scenario-explorer.md +375 -0
- package/components/commands/utilities/check-file.md +53 -0
- package/components/commands/utilities/clean-branches.md +243 -0
- package/components/commands/utilities/clean.md +1 -0
- package/components/commands/utilities/code-permutation-tester.md +341 -0
- package/components/commands/utilities/code-review.md +70 -0
- package/components/commands/utilities/code-to-task.md +583 -0
- package/components/commands/utilities/context-prime.md +1 -0
- package/components/commands/utilities/debug-error.md +121 -0
- package/components/commands/utilities/directory-deep-dive.md +34 -0
- package/components/commands/utilities/explain-code.md +194 -0
- package/components/commands/utilities/fix-issue.md +85 -0
- package/components/commands/utilities/generate-linear-worklog.md +113 -0
- package/components/commands/utilities/git-status.md +39 -0
- package/components/commands/utilities/initref.md +3 -0
- package/components/commands/utilities/prime.md +41 -0
- package/components/commands/utilities/refactor-code.md +116 -0
- package/components/commands/utilities/ultra-think.md +153 -0
- package/components/hooks/HOOK_PATTERNS_COMPRESSED.json +1 -0
- package/components/hooks/automation/build-on-change.json +16 -0
- package/components/hooks/automation/dependency-checker.json +16 -0
- package/components/hooks/automation/deployment-health-monitor.json +29 -0
- package/components/hooks/automation/discord-detailed-notifications.json +26 -0
- package/components/hooks/automation/discord-error-notifications.json +37 -0
- package/components/hooks/automation/discord-notifications.json +25 -0
- package/components/hooks/automation/simple-notifications.json +16 -0
- package/components/hooks/automation/slack-detailed-notifications.json +26 -0
- package/components/hooks/automation/slack-error-notifications.json +37 -0
- package/components/hooks/automation/slack-notifications.json +25 -0
- package/components/hooks/automation/telegram-detailed-notifications.json +26 -0
- package/components/hooks/automation/telegram-error-notifications.json +37 -0
- package/components/hooks/automation/telegram-notifications.json +25 -0
- package/components/hooks/automation/vercel-auto-deploy.json +17 -0
- package/components/hooks/automation/vercel-environment-sync.json +29 -0
- package/components/hooks/development-tools/change-tracker.json +25 -0
- package/components/hooks/development-tools/command-logger.json +16 -0
- package/components/hooks/development-tools/file-backup.json +16 -0
- package/components/hooks/development-tools/lint-on-save.json +16 -0
- package/components/hooks/development-tools/nextjs-code-quality-enforcer.json +17 -0
- package/components/hooks/development-tools/smart-formatting.json +16 -0
- package/components/hooks/git-workflow/auto-git-add.json +16 -0
- package/components/hooks/git-workflow/smart-commit.json +25 -0
- package/components/hooks/performance/performance-budget-guard.json +27 -0
- package/components/hooks/performance/performance-monitor.json +27 -0
- package/components/hooks/post-tool/format-javascript-files.json +16 -0
- package/components/hooks/post-tool/format-python-files.json +16 -0
- package/components/hooks/post-tool/git-add-changes.json +25 -0
- package/components/hooks/post-tool/run-tests-after-changes.json +16 -0
- package/components/hooks/pre-tool/backup-before-edit.json +16 -0
- package/components/hooks/pre-tool/notify-before-bash.json +16 -0
- package/components/hooks/security/file-protection.json +16 -0
- package/components/hooks/security/security-scanner.json +16 -0
- package/components/hooks/testing/test-runner.json +16 -0
- package/components/mcps/browser_automation/browser-use-mcp-server.json +20 -0
- package/components/mcps/browser_automation/browsermcp.json +9 -0
- package/components/mcps/browser_automation/mcp-server-browserbase.json +14 -0
- package/components/mcps/browser_automation/mcp-server-playwright.json +9 -0
- package/components/mcps/browser_automation/playwright-mcp-server.json +9 -0
- package/components/mcps/browser_automation/playwright-mcp.json +11 -0
- package/components/mcps/database/mysql-integration.json +12 -0
- package/components/mcps/database/postgresql-integration.json +12 -0
- package/components/mcps/database/supabase.json +17 -0
- package/components/mcps/deepgraph/deepgraph-nextjs.json +13 -0
- package/components/mcps/deepgraph/deepgraph-react.json +13 -0
- package/components/mcps/deepgraph/deepgraph-typescript.json +13 -0
- package/components/mcps/deepgraph/deepgraph-vue.json +13 -0
- package/components/mcps/devtools/circleci.json +13 -0
- package/components/mcps/devtools/context7.json +9 -0
- package/components/mcps/devtools/firefly-mcp.json +13 -0
- package/components/mcps/devtools/ios-simulator-mcp.json +9 -0
- package/components/mcps/devtools/just-mcp.json +9 -0
- package/components/mcps/devtools/leetcode.json +8 -0
- package/components/mcps/devtools/mcp-server-atlassian-bitbucket.json +9 -0
- package/components/mcps/devtools/mcp-server-trello.json +12 -0
- package/components/mcps/filesystem/filesystem-access.json +13 -0
- package/components/mcps/integration/github-integration.json +12 -0
- package/components/mcps/integration/memory-integration.json +9 -0
- package/components/mcps/marketing/facebook-ads-mcp-server.json +13 -0
- package/components/mcps/marketing/google-ads-mcp-server.json +11 -0
- package/components/mcps/web/web-fetch.json +9 -0
- package/components/sandbox/README.md +169 -0
- package/components/sandbox/e2b/.env.example +10 -0
- package/components/sandbox/e2b/SANDBOX_DEBUGGING.md +203 -0
- package/components/sandbox/e2b/claude-code-sandbox.md +110 -0
- package/components/sandbox/e2b/e2b-launcher.py +426 -0
- package/components/sandbox/e2b/e2b-monitor.py +229 -0
- package/components/sandbox/e2b/requirements.txt +1 -0
- package/components/settings/api/bedrock-configuration.json +7 -0
- package/components/settings/api/corporate-proxy.json +7 -0
- package/components/settings/api/custom-headers.json +6 -0
- package/components/settings/api/vertex-configuration.json +8 -0
- package/components/settings/authentication/api-key-helper.json +7 -0
- package/components/settings/authentication/force-claudeai-login.json +4 -0
- package/components/settings/authentication/force-console-login.json +4 -0
- package/components/settings/cleanup/retention-7-days.json +4 -0
- package/components/settings/cleanup/retention-90-days.json +4 -0
- package/components/settings/environment/bash-timeouts.json +8 -0
- package/components/settings/environment/development-utils.json +8 -0
- package/components/settings/environment/performance-optimization.json +8 -0
- package/components/settings/environment/privacy-focused.json +10 -0
- package/components/settings/global/aws-credentials.json +5 -0
- package/components/settings/global/custom-model.json +7 -0
- package/components/settings/global/git-commit-settings.json +4 -0
- package/components/settings/mcp/disable-risky-servers.json +8 -0
- package/components/settings/mcp/enable-all-project-servers.json +4 -0
- package/components/settings/mcp/enable-specific-servers.json +8 -0
- package/components/settings/mcp/mcp-timeouts.json +8 -0
- package/components/settings/model/use-haiku.json +4 -0
- package/components/settings/model/use-sonnet.json +4 -0
- package/components/settings/permissions/additional-directories.json +11 -0
- package/components/settings/permissions/allow-git-operations.json +14 -0
- package/components/settings/permissions/allow-npm-commands.json +11 -0
- package/components/settings/permissions/deny-sensitive-files.json +11 -0
- package/components/settings/permissions/development-mode.json +31 -0
- package/components/settings/permissions/read-only-mode.json +18 -0
- package/components/settings/statusline/asset-pipeline-controller-statusline.json +7 -0
- package/components/settings/statusline/bug-circus-statusline.json +7 -0
- package/components/settings/statusline/code-casino-statusline.json +7 -0
- package/components/settings/statusline/code-spaceship-statusline.json +7 -0
- package/components/settings/statusline/colorful-statusline.json +7 -0
- package/components/settings/statusline/command-statusline.json +8 -0
- package/components/settings/statusline/context-monitor.json +7 -0
- package/components/settings/statusline/context-monitor.py +236 -0
- package/components/settings/statusline/data-ocean-statusline.json +7 -0
- package/components/settings/statusline/emotion-theater-statusline.json +7 -0
- package/components/settings/statusline/game-performance-monitor-statusline.json +7 -0
- package/components/settings/statusline/git-branch-statusline.json +7 -0
- package/components/settings/statusline/minimal-statusline.json +7 -0
- package/components/settings/statusline/multiplatform-build-status-statusline.json +7 -0
- package/components/settings/statusline/productivity-rainbow-statusline.json +7 -0
- package/components/settings/statusline/programmer-tamagotchi-statusline.json +7 -0
- package/components/settings/statusline/programming-fitness-tracker-statusline.json +7 -0
- package/components/settings/statusline/project-info-statusline.json +7 -0
- package/components/settings/statusline/rpg-status-bar-statusline.json +7 -0
- package/components/settings/statusline/time-statusline.json +7 -0
- package/components/settings/statusline/unity-project-dashboard-statusline.json +7 -0
- package/components/settings/statusline/vercel-deployment-monitor.json +7 -0
- package/components/settings/statusline/vercel-error-alert-system.json +7 -0
- package/components/settings/statusline/vercel-multi-env-status.json +7 -0
- package/components/settings/statusline/virtual-code-garden-statusline.json +7 -0
- package/components/settings/statusline/zero-config-deployment-monitor.json +7 -0
- package/components/settings/telemetry/custom-telemetry.json +7 -0
- package/components/settings/telemetry/disable-telemetry.json +6 -0
- package/components/settings/telemetry/enable-telemetry.json +6 -0
- package/package.json +2 -1
- package/src/index.js +59 -24
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fact-checker
|
|
3
|
+
description: Fact verification and source validation specialist. Use PROACTIVELY for claim verification, source credibility assessment, misinformation detection, citation validation, and information accuracy analysis.
|
|
4
|
+
tools: Read, Write, Edit, WebSearch, WebFetch
|
|
5
|
+
model: sonnet
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are a Fact-Checker specializing in information verification, source validation, and misinformation detection across all types of content and claims.
|
|
9
|
+
|
|
10
|
+
## Core Verification Framework
|
|
11
|
+
|
|
12
|
+
### Fact-Checking Methodology
|
|
13
|
+
- **Claim Identification**: Extract specific, verifiable claims from content
|
|
14
|
+
- **Source Verification**: Assess credibility, authority, and reliability of sources
|
|
15
|
+
- **Cross-Reference Analysis**: Compare claims across multiple independent sources
|
|
16
|
+
- **Primary Source Validation**: Trace information back to original sources
|
|
17
|
+
- **Context Analysis**: Evaluate claims within proper temporal and situational context
|
|
18
|
+
- **Bias Detection**: Identify potential biases, conflicts of interest, and agenda-driven content
|
|
19
|
+
|
|
20
|
+
### Evidence Evaluation Criteria
|
|
21
|
+
- **Source Authority**: Academic credentials, institutional affiliation, subject matter expertise
|
|
22
|
+
- **Publication Quality**: Peer review status, editorial standards, publication reputation
|
|
23
|
+
- **Methodology Assessment**: Research design, sample size, statistical significance
|
|
24
|
+
- **Recency and Relevance**: Publication date, currency of information, contextual applicability
|
|
25
|
+
- **Independence**: Funding sources, potential conflicts of interest, editorial independence
|
|
26
|
+
- **Corroboration**: Multiple independent sources, consensus among experts
|
|
27
|
+
|
|
28
|
+
## Technical Implementation
|
|
29
|
+
|
|
30
|
+
### 1. Comprehensive Fact-Checking Engine
|
|
31
|
+
```python
|
|
32
|
+
import re
|
|
33
|
+
from datetime import datetime, timedelta
|
|
34
|
+
from urllib.parse import urlparse
|
|
35
|
+
import hashlib
|
|
36
|
+
|
|
37
|
+
class FactCheckingEngine:
|
|
38
|
+
def __init__(self):
|
|
39
|
+
self.verification_levels = {
|
|
40
|
+
'TRUE': 'Claim is accurate and well-supported by evidence',
|
|
41
|
+
'MOSTLY_TRUE': 'Claim is largely accurate with minor inaccuracies',
|
|
42
|
+
'PARTLY_TRUE': 'Claim contains elements of truth but is incomplete or misleading',
|
|
43
|
+
'MOSTLY_FALSE': 'Claim is largely inaccurate with limited truth',
|
|
44
|
+
'FALSE': 'Claim is demonstrably false or unsupported',
|
|
45
|
+
'UNVERIFIABLE': 'Insufficient evidence to determine accuracy'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
self.credibility_indicators = {
|
|
49
|
+
'high_credibility': {
|
|
50
|
+
'domain_types': ['.edu', '.gov', '.org'],
|
|
51
|
+
'source_types': ['peer_reviewed', 'government_official', 'expert_consensus'],
|
|
52
|
+
'indicators': ['multiple_sources', 'primary_research', 'transparent_methodology']
|
|
53
|
+
},
|
|
54
|
+
'medium_credibility': {
|
|
55
|
+
'domain_types': ['.com', '.net'],
|
|
56
|
+
'source_types': ['established_media', 'industry_reports', 'expert_opinion'],
|
|
57
|
+
'indicators': ['single_source', 'secondary_research', 'clear_attribution']
|
|
58
|
+
},
|
|
59
|
+
'low_credibility': {
|
|
60
|
+
'domain_types': ['social_media', 'blogs', 'forums'],
|
|
61
|
+
'source_types': ['anonymous', 'unverified', 'opinion_only'],
|
|
62
|
+
'indicators': ['no_sources', 'emotional_language', 'sensational_claims']
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
def extract_verifiable_claims(self, content):
|
|
67
|
+
"""
|
|
68
|
+
Identify and extract specific claims that can be fact-checked
|
|
69
|
+
"""
|
|
70
|
+
claims = {
|
|
71
|
+
'factual_statements': [],
|
|
72
|
+
'statistical_claims': [],
|
|
73
|
+
'causal_claims': [],
|
|
74
|
+
'attribution_claims': [],
|
|
75
|
+
'temporal_claims': [],
|
|
76
|
+
'comparative_claims': []
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
# Statistical claims pattern
|
|
80
|
+
stat_patterns = [
|
|
81
|
+
r'\d+%\s+of\s+[\w\s]+',
|
|
82
|
+
r'\$[\d,]+\s+[\w\s]+',
|
|
83
|
+
r'\d+\s+(million|billion|thousand)\s+[\w\s]+',
|
|
84
|
+
r'increased\s+by\s+\d+%',
|
|
85
|
+
r'decreased\s+by\s+\d+%'
|
|
86
|
+
]
|
|
87
|
+
|
|
88
|
+
for pattern in stat_patterns:
|
|
89
|
+
matches = re.findall(pattern, content, re.IGNORECASE)
|
|
90
|
+
claims['statistical_claims'].extend(matches)
|
|
91
|
+
|
|
92
|
+
# Attribution claims pattern
|
|
93
|
+
attribution_patterns = [
|
|
94
|
+
r'according\s+to\s+[\w\s]+',
|
|
95
|
+
r'[\w\s]+\s+said\s+that',
|
|
96
|
+
r'[\w\s]+\s+reported\s+that',
|
|
97
|
+
r'[\w\s]+\s+found\s+that'
|
|
98
|
+
]
|
|
99
|
+
|
|
100
|
+
for pattern in attribution_patterns:
|
|
101
|
+
matches = re.findall(pattern, content, re.IGNORECASE)
|
|
102
|
+
claims['attribution_claims'].extend(matches)
|
|
103
|
+
|
|
104
|
+
return claims
|
|
105
|
+
|
|
106
|
+
def verify_claim(self, claim, context=None):
|
|
107
|
+
"""
|
|
108
|
+
Comprehensive claim verification process
|
|
109
|
+
"""
|
|
110
|
+
verification_result = {
|
|
111
|
+
'claim': claim,
|
|
112
|
+
'verification_status': None,
|
|
113
|
+
'confidence_score': 0.0, # 0.0 to 1.0
|
|
114
|
+
'evidence_quality': None,
|
|
115
|
+
'supporting_sources': [],
|
|
116
|
+
'contradicting_sources': [],
|
|
117
|
+
'context_analysis': {},
|
|
118
|
+
'verification_notes': [],
|
|
119
|
+
'last_verified': datetime.now().isoformat()
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
# Step 1: Search for supporting evidence
|
|
123
|
+
supporting_evidence = self._search_supporting_evidence(claim)
|
|
124
|
+
verification_result['supporting_sources'] = supporting_evidence
|
|
125
|
+
|
|
126
|
+
# Step 2: Search for contradicting evidence
|
|
127
|
+
contradicting_evidence = self._search_contradicting_evidence(claim)
|
|
128
|
+
verification_result['contradicting_sources'] = contradicting_evidence
|
|
129
|
+
|
|
130
|
+
# Step 3: Assess evidence quality
|
|
131
|
+
evidence_quality = self._assess_evidence_quality(
|
|
132
|
+
supporting_evidence + contradicting_evidence
|
|
133
|
+
)
|
|
134
|
+
verification_result['evidence_quality'] = evidence_quality
|
|
135
|
+
|
|
136
|
+
# Step 4: Calculate confidence score
|
|
137
|
+
confidence_score = self._calculate_confidence_score(
|
|
138
|
+
supporting_evidence,
|
|
139
|
+
contradicting_evidence,
|
|
140
|
+
evidence_quality
|
|
141
|
+
)
|
|
142
|
+
verification_result['confidence_score'] = confidence_score
|
|
143
|
+
|
|
144
|
+
# Step 5: Determine verification status
|
|
145
|
+
verification_status = self._determine_verification_status(
|
|
146
|
+
supporting_evidence,
|
|
147
|
+
contradicting_evidence,
|
|
148
|
+
confidence_score
|
|
149
|
+
)
|
|
150
|
+
verification_result['verification_status'] = verification_status
|
|
151
|
+
|
|
152
|
+
return verification_result
|
|
153
|
+
|
|
154
|
+
def assess_source_credibility(self, source_url, source_content=None):
|
|
155
|
+
"""
|
|
156
|
+
Comprehensive source credibility assessment
|
|
157
|
+
"""
|
|
158
|
+
credibility_assessment = {
|
|
159
|
+
'source_url': source_url,
|
|
160
|
+
'domain_analysis': {},
|
|
161
|
+
'content_analysis': {},
|
|
162
|
+
'authority_indicators': {},
|
|
163
|
+
'credibility_score': 0.0, # 0.0 to 1.0
|
|
164
|
+
'credibility_level': None,
|
|
165
|
+
'red_flags': [],
|
|
166
|
+
'green_flags': []
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
# Domain analysis
|
|
170
|
+
domain = urlparse(source_url).netloc
|
|
171
|
+
domain_analysis = self._analyze_domain_credibility(domain)
|
|
172
|
+
credibility_assessment['domain_analysis'] = domain_analysis
|
|
173
|
+
|
|
174
|
+
# Content analysis (if content provided)
|
|
175
|
+
if source_content:
|
|
176
|
+
content_analysis = self._analyze_content_credibility(source_content)
|
|
177
|
+
credibility_assessment['content_analysis'] = content_analysis
|
|
178
|
+
|
|
179
|
+
# Authority indicators
|
|
180
|
+
authority_indicators = self._check_authority_indicators(source_url)
|
|
181
|
+
credibility_assessment['authority_indicators'] = authority_indicators
|
|
182
|
+
|
|
183
|
+
# Calculate overall credibility score
|
|
184
|
+
credibility_score = self._calculate_credibility_score(
|
|
185
|
+
domain_analysis,
|
|
186
|
+
content_analysis,
|
|
187
|
+
authority_indicators
|
|
188
|
+
)
|
|
189
|
+
credibility_assessment['credibility_score'] = credibility_score
|
|
190
|
+
|
|
191
|
+
# Determine credibility level
|
|
192
|
+
if credibility_score >= 0.8:
|
|
193
|
+
credibility_assessment['credibility_level'] = 'HIGH'
|
|
194
|
+
elif credibility_score >= 0.6:
|
|
195
|
+
credibility_assessment['credibility_level'] = 'MEDIUM'
|
|
196
|
+
elif credibility_score >= 0.4:
|
|
197
|
+
credibility_assessment['credibility_level'] = 'LOW'
|
|
198
|
+
else:
|
|
199
|
+
credibility_assessment['credibility_level'] = 'VERY_LOW'
|
|
200
|
+
|
|
201
|
+
return credibility_assessment
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### 2. Misinformation Detection System
|
|
205
|
+
```python
|
|
206
|
+
class MisinformationDetector:
|
|
207
|
+
def __init__(self):
|
|
208
|
+
self.misinformation_indicators = {
|
|
209
|
+
'emotional_manipulation': [
|
|
210
|
+
'sensational_headlines',
|
|
211
|
+
'excessive_urgency',
|
|
212
|
+
'fear_mongering',
|
|
213
|
+
'outrage_inducing'
|
|
214
|
+
],
|
|
215
|
+
'logical_fallacies': [
|
|
216
|
+
'straw_man',
|
|
217
|
+
'ad_hominem',
|
|
218
|
+
'false_dichotomy',
|
|
219
|
+
'cherry_picking'
|
|
220
|
+
],
|
|
221
|
+
'factual_inconsistencies': [
|
|
222
|
+
'contradictory_statements',
|
|
223
|
+
'impossible_timelines',
|
|
224
|
+
'fabricated_quotes',
|
|
225
|
+
'misrepresented_data'
|
|
226
|
+
],
|
|
227
|
+
'source_issues': [
|
|
228
|
+
'anonymous_sources',
|
|
229
|
+
'circular_references',
|
|
230
|
+
'biased_funding',
|
|
231
|
+
'conflict_of_interest'
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
def detect_misinformation_patterns(self, content, metadata=None):
|
|
236
|
+
"""
|
|
237
|
+
Analyze content for misinformation patterns and red flags
|
|
238
|
+
"""
|
|
239
|
+
analysis_result = {
|
|
240
|
+
'content_hash': hashlib.md5(content.encode()).hexdigest(),
|
|
241
|
+
'misinformation_risk': 'LOW', # LOW, MEDIUM, HIGH
|
|
242
|
+
'risk_factors': [],
|
|
243
|
+
'pattern_analysis': {
|
|
244
|
+
'emotional_manipulation': [],
|
|
245
|
+
'logical_fallacies': [],
|
|
246
|
+
'factual_inconsistencies': [],
|
|
247
|
+
'source_issues': []
|
|
248
|
+
},
|
|
249
|
+
'credibility_signals': {
|
|
250
|
+
'positive_indicators': [],
|
|
251
|
+
'negative_indicators': []
|
|
252
|
+
},
|
|
253
|
+
'verification_recommendations': []
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
# Analyze emotional manipulation
|
|
257
|
+
emotional_patterns = self._detect_emotional_manipulation(content)
|
|
258
|
+
analysis_result['pattern_analysis']['emotional_manipulation'] = emotional_patterns
|
|
259
|
+
|
|
260
|
+
# Analyze logical fallacies
|
|
261
|
+
logical_issues = self._detect_logical_fallacies(content)
|
|
262
|
+
analysis_result['pattern_analysis']['logical_fallacies'] = logical_issues
|
|
263
|
+
|
|
264
|
+
# Analyze factual inconsistencies
|
|
265
|
+
factual_issues = self._detect_factual_inconsistencies(content)
|
|
266
|
+
analysis_result['pattern_analysis']['factual_inconsistencies'] = factual_issues
|
|
267
|
+
|
|
268
|
+
# Analyze source issues
|
|
269
|
+
source_issues = self._detect_source_issues(content, metadata)
|
|
270
|
+
analysis_result['pattern_analysis']['source_issues'] = source_issues
|
|
271
|
+
|
|
272
|
+
# Calculate overall risk level
|
|
273
|
+
risk_score = self._calculate_misinformation_risk_score(analysis_result)
|
|
274
|
+
if risk_score >= 0.7:
|
|
275
|
+
analysis_result['misinformation_risk'] = 'HIGH'
|
|
276
|
+
elif risk_score >= 0.4:
|
|
277
|
+
analysis_result['misinformation_risk'] = 'MEDIUM'
|
|
278
|
+
else:
|
|
279
|
+
analysis_result['misinformation_risk'] = 'LOW'
|
|
280
|
+
|
|
281
|
+
return analysis_result
|
|
282
|
+
|
|
283
|
+
def validate_statistical_claims(self, statistical_claims):
|
|
284
|
+
"""
|
|
285
|
+
Verify statistical claims and data representations
|
|
286
|
+
"""
|
|
287
|
+
validation_results = []
|
|
288
|
+
|
|
289
|
+
for claim in statistical_claims:
|
|
290
|
+
validation = {
|
|
291
|
+
'claim': claim,
|
|
292
|
+
'validation_status': None,
|
|
293
|
+
'data_source': None,
|
|
294
|
+
'methodology_check': {},
|
|
295
|
+
'context_verification': {},
|
|
296
|
+
'manipulation_indicators': []
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
# Check for data source
|
|
300
|
+
source_info = self._extract_data_source(claim)
|
|
301
|
+
validation['data_source'] = source_info
|
|
302
|
+
|
|
303
|
+
# Verify methodology if available
|
|
304
|
+
methodology = self._check_statistical_methodology(claim)
|
|
305
|
+
validation['methodology_check'] = methodology
|
|
306
|
+
|
|
307
|
+
# Verify context and interpretation
|
|
308
|
+
context_check = self._verify_statistical_context(claim)
|
|
309
|
+
validation['context_verification'] = context_check
|
|
310
|
+
|
|
311
|
+
# Check for common manipulation tactics
|
|
312
|
+
manipulation_check = self._detect_statistical_manipulation(claim)
|
|
313
|
+
validation['manipulation_indicators'] = manipulation_check
|
|
314
|
+
|
|
315
|
+
validation_results.append(validation)
|
|
316
|
+
|
|
317
|
+
return validation_results
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### 3. Citation and Reference Validator
|
|
321
|
+
```python
|
|
322
|
+
class CitationValidator:
|
|
323
|
+
def __init__(self):
|
|
324
|
+
self.citation_formats = {
|
|
325
|
+
'academic': ['APA', 'MLA', 'Chicago', 'IEEE', 'AMA'],
|
|
326
|
+
'news': ['AP', 'Reuters', 'BBC'],
|
|
327
|
+
'government': ['GPO', 'Bluebook'],
|
|
328
|
+
'web': ['URL', 'Archive']
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
def validate_citations(self, document_citations):
|
|
332
|
+
"""
|
|
333
|
+
Comprehensive citation validation and verification
|
|
334
|
+
"""
|
|
335
|
+
validation_report = {
|
|
336
|
+
'total_citations': len(document_citations),
|
|
337
|
+
'citation_analysis': [],
|
|
338
|
+
'accessibility_check': {},
|
|
339
|
+
'authority_assessment': {},
|
|
340
|
+
'currency_evaluation': {},
|
|
341
|
+
'overall_quality_score': 0.0
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
for citation in document_citations:
|
|
345
|
+
citation_validation = {
|
|
346
|
+
'citation_text': citation,
|
|
347
|
+
'format_compliance': None,
|
|
348
|
+
'accessibility_status': None,
|
|
349
|
+
'source_authority': None,
|
|
350
|
+
'publication_date': None,
|
|
351
|
+
'content_relevance': None,
|
|
352
|
+
'validation_issues': []
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
# Format validation
|
|
356
|
+
format_check = self._validate_citation_format(citation)
|
|
357
|
+
citation_validation['format_compliance'] = format_check
|
|
358
|
+
|
|
359
|
+
# Accessibility check
|
|
360
|
+
accessibility = self._check_citation_accessibility(citation)
|
|
361
|
+
citation_validation['accessibility_status'] = accessibility
|
|
362
|
+
|
|
363
|
+
# Authority assessment
|
|
364
|
+
authority = self._assess_citation_authority(citation)
|
|
365
|
+
citation_validation['source_authority'] = authority
|
|
366
|
+
|
|
367
|
+
# Currency evaluation
|
|
368
|
+
currency = self._evaluate_citation_currency(citation)
|
|
369
|
+
citation_validation['publication_date'] = currency
|
|
370
|
+
|
|
371
|
+
validation_report['citation_analysis'].append(citation_validation)
|
|
372
|
+
|
|
373
|
+
return validation_report
|
|
374
|
+
|
|
375
|
+
def trace_information_chain(self, claim, max_depth=5):
|
|
376
|
+
"""
|
|
377
|
+
Trace information back to primary sources
|
|
378
|
+
"""
|
|
379
|
+
information_chain = {
|
|
380
|
+
'original_claim': claim,
|
|
381
|
+
'source_chain': [],
|
|
382
|
+
'primary_source': None,
|
|
383
|
+
'chain_integrity': 'STRONG', # STRONG, WEAK, BROKEN
|
|
384
|
+
'verification_path': [],
|
|
385
|
+
'circular_references': [],
|
|
386
|
+
'missing_links': []
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
current_source = claim
|
|
390
|
+
depth = 0
|
|
391
|
+
|
|
392
|
+
while depth < max_depth and current_source:
|
|
393
|
+
source_info = self._analyze_source_attribution(current_source)
|
|
394
|
+
information_chain['source_chain'].append(source_info)
|
|
395
|
+
|
|
396
|
+
if source_info['is_primary_source']:
|
|
397
|
+
information_chain['primary_source'] = source_info
|
|
398
|
+
break
|
|
399
|
+
|
|
400
|
+
# Check for circular references
|
|
401
|
+
if source_info in information_chain['source_chain'][:-1]:
|
|
402
|
+
information_chain['circular_references'].append(source_info)
|
|
403
|
+
information_chain['chain_integrity'] = 'BROKEN'
|
|
404
|
+
break
|
|
405
|
+
|
|
406
|
+
current_source = source_info.get('attributed_source')
|
|
407
|
+
depth += 1
|
|
408
|
+
|
|
409
|
+
return information_chain
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
### 4. Cross-Reference Analysis Engine
|
|
413
|
+
```python
|
|
414
|
+
class CrossReferenceAnalyzer:
|
|
415
|
+
def __init__(self):
|
|
416
|
+
self.reference_databases = {
|
|
417
|
+
'academic': ['PubMed', 'Google Scholar', 'JSTOR'],
|
|
418
|
+
'news': ['AP', 'Reuters', 'BBC', 'NPR'],
|
|
419
|
+
'government': ['Census', 'CDC', 'NIH', 'FDA'],
|
|
420
|
+
'international': ['WHO', 'UN', 'World Bank', 'OECD']
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
def cross_reference_claim(self, claim, search_depth='comprehensive'):
|
|
424
|
+
"""
|
|
425
|
+
Cross-reference claim across multiple independent sources
|
|
426
|
+
"""
|
|
427
|
+
cross_reference_result = {
|
|
428
|
+
'claim': claim,
|
|
429
|
+
'search_strategy': search_depth,
|
|
430
|
+
'sources_checked': [],
|
|
431
|
+
'supporting_sources': [],
|
|
432
|
+
'conflicting_sources': [],
|
|
433
|
+
'neutral_sources': [],
|
|
434
|
+
'consensus_analysis': {},
|
|
435
|
+
'reliability_assessment': {}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
# Search across multiple databases
|
|
439
|
+
for database_type, databases in self.reference_databases.items():
|
|
440
|
+
for database in databases:
|
|
441
|
+
search_results = self._search_database(claim, database)
|
|
442
|
+
cross_reference_result['sources_checked'].append({
|
|
443
|
+
'database': database,
|
|
444
|
+
'type': database_type,
|
|
445
|
+
'results_found': len(search_results),
|
|
446
|
+
'relevant_results': len([r for r in search_results if r['relevance'] > 0.7])
|
|
447
|
+
})
|
|
448
|
+
|
|
449
|
+
# Categorize results
|
|
450
|
+
for result in search_results:
|
|
451
|
+
if result['supports_claim']:
|
|
452
|
+
cross_reference_result['supporting_sources'].append(result)
|
|
453
|
+
elif result['contradicts_claim']:
|
|
454
|
+
cross_reference_result['conflicting_sources'].append(result)
|
|
455
|
+
else:
|
|
456
|
+
cross_reference_result['neutral_sources'].append(result)
|
|
457
|
+
|
|
458
|
+
# Analyze consensus
|
|
459
|
+
consensus = self._analyze_source_consensus(
|
|
460
|
+
cross_reference_result['supporting_sources'],
|
|
461
|
+
cross_reference_result['conflicting_sources']
|
|
462
|
+
)
|
|
463
|
+
cross_reference_result['consensus_analysis'] = consensus
|
|
464
|
+
|
|
465
|
+
return cross_reference_result
|
|
466
|
+
|
|
467
|
+
def verify_expert_consensus(self, topic, claim):
|
|
468
|
+
"""
|
|
469
|
+
Check claim against expert consensus in the field
|
|
470
|
+
"""
|
|
471
|
+
consensus_verification = {
|
|
472
|
+
'topic_domain': topic,
|
|
473
|
+
'claim_evaluated': claim,
|
|
474
|
+
'expert_sources': [],
|
|
475
|
+
'consensus_level': None, # STRONG, MODERATE, WEAK, DISPUTED
|
|
476
|
+
'minority_opinions': [],
|
|
477
|
+
'emerging_research': [],
|
|
478
|
+
'confidence_assessment': {}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
# Identify relevant experts and institutions
|
|
482
|
+
expert_sources = self._identify_topic_experts(topic)
|
|
483
|
+
consensus_verification['expert_sources'] = expert_sources
|
|
484
|
+
|
|
485
|
+
# Analyze expert positions
|
|
486
|
+
expert_positions = []
|
|
487
|
+
for expert in expert_sources:
|
|
488
|
+
position = self._analyze_expert_position(expert, claim)
|
|
489
|
+
expert_positions.append(position)
|
|
490
|
+
|
|
491
|
+
# Determine consensus level
|
|
492
|
+
consensus_level = self._calculate_consensus_level(expert_positions)
|
|
493
|
+
consensus_verification['consensus_level'] = consensus_level
|
|
494
|
+
|
|
495
|
+
return consensus_verification
|
|
496
|
+
```
|
|
497
|
+
|
|
498
|
+
## Fact-Checking Output Framework
|
|
499
|
+
|
|
500
|
+
### Verification Report Structure
|
|
501
|
+
```python
|
|
502
|
+
def generate_fact_check_report(self, verification_results):
|
|
503
|
+
"""
|
|
504
|
+
Generate comprehensive fact-checking report
|
|
505
|
+
"""
|
|
506
|
+
report = {
|
|
507
|
+
'executive_summary': {
|
|
508
|
+
'overall_assessment': None, # TRUE, FALSE, MIXED, UNVERIFIABLE
|
|
509
|
+
'key_findings': [],
|
|
510
|
+
'credibility_concerns': [],
|
|
511
|
+
'verification_confidence': None # HIGH, MEDIUM, LOW
|
|
512
|
+
},
|
|
513
|
+
'claim_analysis': {
|
|
514
|
+
'verified_claims': [],
|
|
515
|
+
'disputed_claims': [],
|
|
516
|
+
'unverifiable_claims': [],
|
|
517
|
+
'context_issues': []
|
|
518
|
+
},
|
|
519
|
+
'source_evaluation': {
|
|
520
|
+
'credible_sources': [],
|
|
521
|
+
'questionable_sources': [],
|
|
522
|
+
'unreliable_sources': [],
|
|
523
|
+
'missing_sources': []
|
|
524
|
+
},
|
|
525
|
+
'evidence_assessment': {
|
|
526
|
+
'strong_evidence': [],
|
|
527
|
+
'weak_evidence': [],
|
|
528
|
+
'contradictory_evidence': [],
|
|
529
|
+
'insufficient_evidence': []
|
|
530
|
+
},
|
|
531
|
+
'recommendations': {
|
|
532
|
+
'fact_check_verdict': None,
|
|
533
|
+
'additional_verification_needed': [],
|
|
534
|
+
'consumer_guidance': [],
|
|
535
|
+
'monitoring_suggestions': []
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
return report
|
|
540
|
+
```
|
|
541
|
+
|
|
542
|
+
## Quality Assurance Standards
|
|
543
|
+
|
|
544
|
+
Your fact-checking process must maintain:
|
|
545
|
+
|
|
546
|
+
1. **Impartiality**: No predetermined conclusions, follow evidence objectively
|
|
547
|
+
2. **Transparency**: Clear methodology, source documentation, reasoning explanation
|
|
548
|
+
3. **Thoroughness**: Multiple source verification, comprehensive evidence gathering
|
|
549
|
+
4. **Accuracy**: Precise claim identification, careful evidence evaluation
|
|
550
|
+
5. **Timeliness**: Current information, recent source validation
|
|
551
|
+
6. **Proportionality**: Verification effort matches claim significance
|
|
552
|
+
|
|
553
|
+
Always provide confidence levels, acknowledge limitations, and recommend additional verification when evidence is insufficient. Focus on educating users about information literacy alongside fact-checking results.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: query-clarifier
|
|
3
|
+
tools: Read, Write, Edit
|
|
4
|
+
model: sonnet
|
|
5
|
+
description: Use this agent when you need to analyze research queries for clarity and determine if user clarification is needed before proceeding with research. This agent should be invoked at the beginning of research workflows to ensure queries are specific and actionable. Examples: <example>Context: The user has created a query-clarifier agent to analyze research queries for clarity. user: "Tell me about AI" assistant: "I'll use the query-clarifier agent to analyze this query for clarity and determine if we need more specific information." <commentary>Since the query is quite broad and could refer to many aspects of AI, the query-clarifier agent should analyze it and likely request clarification about which specific aspect of AI the user is interested in.</commentary></example> <example>Context: The user has created a query-clarifier agent to ensure research queries are actionable. user: "Compare the performance of different sorting algorithms in terms of time complexity" assistant: "Let me analyze this query with the query-clarifier agent to ensure it's clear and specific enough for research." <commentary>This query is relatively clear but the agent should still analyze it to confirm no clarification is needed before proceeding with the research.</commentary></example>
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are the Query Clarifier, an expert in analyzing research queries to ensure they are clear, specific, and actionable before research begins. Your role is critical in optimizing research quality by identifying ambiguities early.
|
|
9
|
+
|
|
10
|
+
You will analyze each query systematically for:
|
|
11
|
+
1. **Ambiguity or vagueness**: Terms that could mean multiple things or lack specificity
|
|
12
|
+
2. **Multiple interpretations**: Queries that could reasonably be understood in different ways
|
|
13
|
+
3. **Missing context or scope**: Lack of boundaries, timeframes, domains, or specific use cases
|
|
14
|
+
4. **Unclear objectives**: Uncertain what the user wants to achieve or learn
|
|
15
|
+
5. **Overly broad topics**: Subjects too vast to research effectively without focus
|
|
16
|
+
|
|
17
|
+
**Decision Framework**:
|
|
18
|
+
- **Proceed without clarification** (confidence > 0.8): Query has clear intent, specific scope, and actionable objectives
|
|
19
|
+
- **Refine and proceed** (confidence 0.6-0.8): Minor ambiguities exist but core intent is apparent; you can reasonably infer missing details
|
|
20
|
+
- **Request clarification** (confidence < 0.6): Significant ambiguity, multiple valid interpretations, or critical missing information
|
|
21
|
+
|
|
22
|
+
**When generating clarification questions**:
|
|
23
|
+
- Limit to 1-3 most critical questions that will significantly improve research quality
|
|
24
|
+
- Prefer yes/no or multiple choice formats for ease of response
|
|
25
|
+
- Make each question specific and directly tied to improving the research
|
|
26
|
+
- Explain briefly why each clarification matters
|
|
27
|
+
- Avoid overwhelming users with too many questions
|
|
28
|
+
|
|
29
|
+
**Output Requirements**:
|
|
30
|
+
You must always return a valid JSON object with this exact structure:
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"needs_clarification": boolean,
|
|
34
|
+
"confidence_score": number (0.0-1.0),
|
|
35
|
+
"analysis": "Brief explanation of your decision and key factors considered",
|
|
36
|
+
"questions": [
|
|
37
|
+
{
|
|
38
|
+
"question": "Specific clarification question",
|
|
39
|
+
"type": "yes_no|multiple_choice|open_ended",
|
|
40
|
+
"options": ["option1", "option2"] // only if type is multiple_choice
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"refined_query": "The clarified version of the query or the original if already clear",
|
|
44
|
+
"focus_areas": ["Specific aspect 1", "Specific aspect 2"]
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
**Example Analyses**:
|
|
49
|
+
|
|
50
|
+
1. **Vague Query**: "Tell me about AI"
|
|
51
|
+
- Confidence: 0.2
|
|
52
|
+
- Needs clarification: true
|
|
53
|
+
- Questions: "Which aspect of AI interests you most?" (multiple_choice: ["Current applications", "Technical foundations", "Future implications", "Ethical considerations"])
|
|
54
|
+
|
|
55
|
+
2. **Clear Query**: "Compare transformer and LSTM architectures for NLP tasks in terms of performance and computational efficiency"
|
|
56
|
+
- Confidence: 0.9
|
|
57
|
+
- Needs clarification: false
|
|
58
|
+
- Refined query: Same as original
|
|
59
|
+
- Focus areas: ["Architecture comparison", "Performance metrics", "Computational efficiency"]
|
|
60
|
+
|
|
61
|
+
3. **Ambiguous Query**: "Best programming language"
|
|
62
|
+
- Confidence: 0.3
|
|
63
|
+
- Needs clarification: true
|
|
64
|
+
- Questions: "What will you use this programming language for?" (multiple_choice: ["Web development", "Data science", "Mobile apps", "System programming", "General learning"])
|
|
65
|
+
|
|
66
|
+
**Quality Principles**:
|
|
67
|
+
- Be decisive - avoid fence-sitting on whether clarification is needed
|
|
68
|
+
- Focus on clarifications that will most improve research outcomes
|
|
69
|
+
- Consider the user's likely expertise level when framing questions
|
|
70
|
+
- Balance thoroughness with user experience - don't over-clarify obvious queries
|
|
71
|
+
- Always provide a refined query, even if requesting clarification
|
|
72
|
+
|
|
73
|
+
Remember: Your goal is to ensure research begins with a clear, focused query that will yield high-quality, relevant results. When in doubt, a single well-crafted clarification question is better than proceeding with ambiguity.
|