@jhm1909/ag-kit 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/ARCHITECTURE.md +189 -0
- package/.agent/known-registries.json +181 -0
- package/.agent/mcp_config.json +19 -0
- package/.agent/rules/clean-code.md +107 -0
- package/.agent/rules/documents.md +177 -0
- package/.agent/rules/git-workflow.md +68 -0
- package/.agent/rules/nano-banana.md +46 -0
- package/.agent/rules/research.md +35 -0
- package/.agent/rules/skill-loading.md +100 -0
- package/.agent/rules/skill-suggestion.md +47 -0
- package/.agent/rules/testing.md +52 -0
- package/.agent/rules/workflow-advisor.md +108 -0
- package/.agent/rules/workflow-skill-convention.md +127 -0
- package/.agent/skills/ai-engineer/SKILL.md +824 -0
- package/.agent/skills/ai-engineer/references/agentic-patterns.md +329 -0
- package/.agent/skills/ai-engineer/references/evaluation.md +493 -0
- package/.agent/skills/ai-engineer/references/llm.md +490 -0
- package/.agent/skills/ai-engineer/references/rag-advanced.md +444 -0
- package/.agent/skills/ai-engineer/references/serving-optimization.md +531 -0
- package/.agent/skills/ai-engineer/vector-db/README.md +137 -0
- package/.agent/skills/app-builder/SKILL.md +75 -0
- package/.agent/skills/app-builder/agent-coordination.md +71 -0
- package/.agent/skills/app-builder/feature-building.md +53 -0
- package/.agent/skills/app-builder/project-detection.md +34 -0
- package/.agent/skills/app-builder/scaffolding.md +118 -0
- package/.agent/skills/app-builder/tech-stack.md +41 -0
- package/.agent/skills/app-builder/templates/SKILL.md +39 -0
- package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
- package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
- package/.agent/skills/backend-developer/SKILL.md +763 -0
- package/.agent/skills/backend-developer/references/general-patterns.md +65 -0
- package/.agent/skills/backend-developer/references/go-echo.md +68 -0
- package/.agent/skills/backend-developer/references/go-gin.md +76 -0
- package/.agent/skills/backend-developer/references/java-springboot.md +83 -0
- package/.agent/skills/backend-developer/references/node-express.md +64 -0
- package/.agent/skills/backend-developer/references/node-nestjs.md +69 -0
- package/.agent/skills/backend-developer/references/python-django.md +67 -0
- package/.agent/skills/backend-developer/references/python-fastapi.md +80 -0
- package/.agent/skills/blockchain-engineer/SKILL.md +975 -0
- package/.agent/skills/blockchain-engineer/references/deployment.md +28 -0
- package/.agent/skills/blockchain-engineer/references/evm.md +14 -0
- package/.agent/skills/blockchain-engineer/references/mechanisms.md +32 -0
- package/.agent/skills/blockchain-engineer/references/solidity.md +32 -0
- package/.agent/skills/business-analysis/SKILL.md +85 -0
- package/.agent/skills/business-analysis/references/best-practices/diagrams.md +141 -0
- package/.agent/skills/business-analysis/references/domains/ai-agent.md +94 -0
- package/.agent/skills/business-analysis/references/domains/blockchain-dapp.md +86 -0
- package/.agent/skills/business-analysis/references/domains/ecommerce.md +77 -0
- package/.agent/skills/business-analysis/references/domains/education.md +42 -0
- package/.agent/skills/business-analysis/references/domains/fintech.md +44 -0
- package/.agent/skills/business-analysis/references/domains/fnb.md +82 -0
- package/.agent/skills/business-analysis/references/domains/healthtech.md +44 -0
- package/.agent/skills/business-analysis/references/domains/internal-tools.md +38 -0
- package/.agent/skills/business-analysis/references/domains/marketplace.md +52 -0
- package/.agent/skills/business-analysis/references/domains/saas.md +36 -0
- package/.agent/skills/business-analysis/references/workflows/collaboration.md +41 -0
- package/.agent/skills/business-analysis/scripts/verify_mermaid.py +86 -0
- package/.agent/skills/business-analysis/templates/brd.md +46 -0
- package/.agent/skills/business-analysis/templates/change-request.md +41 -0
- package/.agent/skills/business-analysis/templates/prd-functional.md +38 -0
- package/.agent/skills/business-analysis/templates/use-case.md +40 -0
- package/.agent/skills/business-analysis/templates/user-story-detailed.md +36 -0
- package/.agent/skills/code-review/SKILL.md +113 -0
- package/.agent/skills/code-review/references/code-review-reception.md +209 -0
- package/.agent/skills/code-review/references/differential_review.md +59 -0
- package/.agent/skills/code-review/references/requesting-code-review.md +105 -0
- package/.agent/skills/code-review/references/spec_compliance.md +43 -0
- package/.agent/skills/code-review/references/verification-before-completion.md +139 -0
- package/.agent/skills/context-engineering/SKILL.md +68 -0
- package/.agent/skills/context-engineering/references/context-compression.md +84 -0
- package/.agent/skills/context-engineering/references/context-degradation.md +93 -0
- package/.agent/skills/context-engineering/references/context-fundamentals.md +75 -0
- package/.agent/skills/context-engineering/references/context-optimization.md +82 -0
- package/.agent/skills/context-engineering/references/evaluation.md +89 -0
- package/.agent/skills/context-engineering/references/memory-systems.md +88 -0
- package/.agent/skills/context-engineering/references/multi-agent-patterns.md +90 -0
- package/.agent/skills/context-engineering/references/project-development.md +97 -0
- package/.agent/skills/context-engineering/references/tool-design.md +86 -0
- package/.agent/skills/debugging/SKILL.md +60 -0
- package/.agent/skills/debugging/references/defense-in-depth.md +130 -0
- package/.agent/skills/debugging/references/root-cause-tracing.md +177 -0
- package/.agent/skills/debugging/references/systematic-debugging.md +295 -0
- package/.agent/skills/debugging/references/verification-before-completion.md +142 -0
- package/.agent/skills/designer/SKILL.md +159 -0
- package/.agent/skills/designer/concepts/apple-glass.md +48 -0
- package/.agent/skills/designer/concepts/aurora-gradients.md +26 -0
- package/.agent/skills/designer/concepts/bento-grids.md +14 -0
- package/.agent/skills/designer/concepts/claymorphism.md +27 -0
- package/.agent/skills/designer/concepts/neo-brutalism.md +32 -0
- package/.agent/skills/designer/data/app-interface.csv +31 -0
- package/.agent/skills/designer/data/charts.csv +26 -0
- package/.agent/skills/designer/data/colors.csv +162 -0
- package/.agent/skills/designer/data/design.csv +1776 -0
- package/.agent/skills/designer/data/icons.csv +106 -0
- package/.agent/skills/designer/data/landing.csv +35 -0
- package/.agent/skills/designer/data/products.csv +162 -0
- package/.agent/skills/designer/data/react-performance.csv +45 -0
- package/.agent/skills/designer/data/styles.csv +85 -0
- package/.agent/skills/designer/data/typography.csv +74 -0
- package/.agent/skills/designer/data/ui-reasoning.csv +162 -0
- package/.agent/skills/designer/data/ux-guidelines.csv +100 -0
- package/.agent/skills/designer/references/accessibility.md +172 -0
- package/.agent/skills/designer/references/branding.md +88 -0
- package/.agent/skills/designer/references/color-theory.md +139 -0
- package/.agent/skills/designer/references/creation.md +118 -0
- package/.agent/skills/designer/references/design-systems.md +219 -0
- package/.agent/skills/designer/references/frontend_design_aesthetics.md +57 -0
- package/.agent/skills/designer/references/layout.md +200 -0
- package/.agent/skills/designer/references/motion.md +92 -0
- package/.agent/skills/designer/references/review.md +100 -0
- package/.agent/skills/designer/references/trends.md +209 -0
- package/.agent/skills/designer/references/typography.md +190 -0
- package/.agent/skills/designer/scripts/remove_background.py +135 -0
- package/.agent/skills/designer/scripts/ui-search/__pycache__/core.cpython-314.pyc +0 -0
- package/.agent/skills/designer/scripts/ui-search/__pycache__/design_system.cpython-314.pyc +0 -0
- package/.agent/skills/designer/scripts/ui-search/core.py +217 -0
- package/.agent/skills/designer/scripts/ui-search/design_system.py +1067 -0
- package/.agent/skills/designer/scripts/ui-search/search.py +114 -0
- package/.agent/skills/designer/templates/design-motion-spec.md +30 -0
- package/.agent/skills/devops-engineer/SKILL.md +90 -0
- package/.agent/skills/devops-engineer/docker-compose/README.md +47 -0
- package/.agent/skills/devops-engineer/references/ci-cd-pipelines.md +76 -0
- package/.agent/skills/devops-engineer/references/cloud-providers.md +57 -0
- package/.agent/skills/devops-engineer/references/codebase-normalization.md +104 -0
- package/.agent/skills/devops-engineer/references/container-orchestration.md +69 -0
- package/.agent/skills/devops-engineer/references/iac-tools.md +63 -0
- package/.agent/skills/devops-engineer/references/observability-security.md +45 -0
- package/.agent/skills/devops-engineer/references/vercel-supabase.md +17 -0
- package/.agent/skills/devops-engineer/templates/release-notes.md +8 -0
- package/.agent/skills/frontend-developer/SKILL.md +125 -0
- package/.agent/skills/frontend-developer/react-nextjs/README.md +90 -0
- package/.agent/skills/frontend-developer/references/angular.md +52 -0
- package/.agent/skills/frontend-developer/references/composition_patterns.md +60 -0
- package/.agent/skills/frontend-developer/references/core-performance.md +68 -0
- package/.agent/skills/frontend-developer/references/modern-signals.md +43 -0
- package/.agent/skills/frontend-developer/references/react_performance_rules.md +55 -0
- package/.agent/skills/frontend-developer/references/vue-nuxt.md +55 -0
- package/.agent/skills/frontend-developer/scripts/validate_compliance.py +65 -0
- package/.agent/skills/frontend-developer/threejs/README.md +89 -0
- package/.agent/skills/frontend-developer/threejs/animation.md +552 -0
- package/.agent/skills/frontend-developer/threejs/fundamentals.md +488 -0
- package/.agent/skills/frontend-developer/threejs/geometry.md +548 -0
- package/.agent/skills/frontend-developer/threejs/interaction.md +660 -0
- package/.agent/skills/frontend-developer/threejs/lighting.md +481 -0
- package/.agent/skills/frontend-developer/threejs/loaders.md +623 -0
- package/.agent/skills/frontend-developer/threejs/materials.md +520 -0
- package/.agent/skills/frontend-developer/threejs/postprocessing.md +602 -0
- package/.agent/skills/frontend-developer/threejs/router.json +181 -0
- package/.agent/skills/frontend-developer/threejs/shaders.md +642 -0
- package/.agent/skills/frontend-developer/threejs/textures.md +628 -0
- package/.agent/skills/game-development/2d-games/SKILL.md +119 -0
- package/.agent/skills/game-development/3d-games/SKILL.md +135 -0
- package/.agent/skills/game-development/SKILL.md +167 -0
- package/.agent/skills/game-development/game-art/SKILL.md +185 -0
- package/.agent/skills/game-development/game-audio/SKILL.md +190 -0
- package/.agent/skills/game-development/game-design/SKILL.md +129 -0
- package/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
- package/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
- package/.agent/skills/game-development/pc-games/SKILL.md +144 -0
- package/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
- package/.agent/skills/game-development/web-games/SKILL.md +150 -0
- package/.agent/skills/lead-architect/SKILL.md +85 -0
- package/.agent/skills/lead-architect/references/application-architecture.md +70 -0
- package/.agent/skills/lead-architect/references/infrastructure.md +51 -0
- package/.agent/skills/lead-architect/references/process.md +42 -0
- package/.agent/skills/lead-architect/references/system-architecture.md +62 -0
- package/.agent/skills/lead-architect/references/web-fullstack.md +82 -0
- package/.agent/skills/lead-architect/templates/adr.md +62 -0
- package/.agent/skills/lead-architect/templates/rfc.md +46 -0
- package/.agent/skills/lead-architect/templates/sdd.md +62 -0
- package/.agent/skills/lead-architect/templates/technical-spec.md +61 -0
- package/.agent/skills/marketer/SKILL.md +66 -0
- package/.agent/skills/marketer/remotion-best-practices/SKILL.md +58 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/3d.md +86 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/animations.md +29 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/assets/charts-bar-chart.tsx +173 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/assets/text-animations-typewriter.tsx +100 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/assets/text-animations-word-highlight.tsx +108 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/assets.md +78 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/audio.md +172 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/calculate-metadata.md +104 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/can-decode.md +75 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/charts.md +58 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/compositions.md +146 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/display-captions.md +126 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/extract-frames.md +229 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/fonts.md +152 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/get-audio-duration.md +58 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/get-video-dimensions.md +68 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/get-video-duration.md +58 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/gifs.md +138 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/images.md +130 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/import-srt-captions.md +67 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/lottie.md +68 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/measuring-dom-nodes.md +35 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/measuring-text.md +143 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/sequencing.md +106 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/tailwind.md +11 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/text-animations.md +20 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/timing.md +179 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/transcribe-captions.md +19 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/transitions.md +122 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/trimming.md +53 -0
- package/.agent/skills/marketer/remotion-best-practices/rules/videos.md +171 -0
- package/.agent/skills/mcp-builder/SKILL.md +76 -0
- package/.agent/skills/mcp-builder/references/evaluation.md +602 -0
- package/.agent/skills/mcp-builder/references/mcp_best_practices.md +249 -0
- package/.agent/skills/mcp-builder/references/node_mcp_server.md +970 -0
- package/.agent/skills/mcp-builder/references/python_mcp_server.md +719 -0
- package/.agent/skills/mobile-developer/SKILL.md +83 -0
- package/.agent/skills/mobile-developer/api-routes/SKILL.md +389 -0
- package/.agent/skills/mobile-developer/building-ui/SKILL.md +335 -0
- package/.agent/skills/mobile-developer/building-ui/references/animations.md +220 -0
- package/.agent/skills/mobile-developer/building-ui/references/controls.md +270 -0
- package/.agent/skills/mobile-developer/building-ui/references/form-sheet.md +227 -0
- package/.agent/skills/mobile-developer/building-ui/references/gradients.md +106 -0
- package/.agent/skills/mobile-developer/building-ui/references/icons.md +213 -0
- package/.agent/skills/mobile-developer/building-ui/references/media.md +198 -0
- package/.agent/skills/mobile-developer/building-ui/references/route-structure.md +229 -0
- package/.agent/skills/mobile-developer/building-ui/references/search.md +248 -0
- package/.agent/skills/mobile-developer/building-ui/references/storage.md +121 -0
- package/.agent/skills/mobile-developer/building-ui/references/tabs.md +368 -0
- package/.agent/skills/mobile-developer/building-ui/references/visual-effects.md +197 -0
- package/.agent/skills/mobile-developer/building-ui/references/webgpu-three.md +605 -0
- package/.agent/skills/mobile-developer/cicd-workflows/SKILL.md +107 -0
- package/.agent/skills/mobile-developer/cicd-workflows/scripts/fetch.js +109 -0
- package/.agent/skills/mobile-developer/cicd-workflows/scripts/package.json +11 -0
- package/.agent/skills/mobile-developer/cicd-workflows/scripts/validate.js +84 -0
- package/.agent/skills/mobile-developer/data-fetching/SKILL.md +508 -0
- package/.agent/skills/mobile-developer/deployment/SKILL.md +207 -0
- package/.agent/skills/mobile-developer/deployment/references/app-store-metadata.md +479 -0
- package/.agent/skills/mobile-developer/deployment/references/ios-app-store.md +355 -0
- package/.agent/skills/mobile-developer/deployment/references/play-store.md +246 -0
- package/.agent/skills/mobile-developer/deployment/references/testflight.md +58 -0
- package/.agent/skills/mobile-developer/deployment/references/workflows.md +200 -0
- package/.agent/skills/mobile-developer/dev-client/SKILL.md +181 -0
- package/.agent/skills/mobile-developer/tailwind-setup/SKILL.md +501 -0
- package/.agent/skills/mobile-developer/upgrading-expo/SKILL.md +116 -0
- package/.agent/skills/mobile-developer/upgrading-expo/references/new-architecture.md +79 -0
- package/.agent/skills/mobile-developer/upgrading-expo/references/react-19.md +79 -0
- package/.agent/skills/mobile-developer/upgrading-expo/references/react-compiler.md +59 -0
- package/.agent/skills/mobile-developer/use-dom/SKILL.md +434 -0
- package/.agent/skills/modern-python/SKILL.md +122 -0
- package/.agent/skills/project-manager/SKILL.md +110 -0
- package/.agent/skills/project-manager/references/ba-collaboration.md +62 -0
- package/.agent/skills/project-manager/references/discovery_process.md +52 -0
- package/.agent/skills/project-manager/references/jobs_to_be_done.md +51 -0
- package/.agent/skills/project-manager/references/prd_development.md +52 -0
- package/.agent/skills/project-manager/references/rules-guide.md +55 -0
- package/.agent/skills/project-manager/references/skill-creation.md +98 -0
- package/.agent/skills/project-manager/references/strategic-frameworks.md +62 -0
- package/.agent/skills/project-manager/references/task-decomposition.md +194 -0
- package/.agent/skills/project-manager/references/workflows-guide.md +44 -0
- package/.agent/skills/project-manager/router.json +160 -0
- package/.agent/skills/project-manager/scripts/compare_skill.py +177 -0
- package/.agent/skills/project-manager/scripts/encoding_utils.py +36 -0
- package/.agent/skills/project-manager/scripts/init_skill.py +190 -0
- package/.agent/skills/project-manager/scripts/quick_validate.py +123 -0
- package/.agent/skills/project-manager/templates/pm-strategy-one-pager.md +6 -0
- package/.agent/skills/project-manager/templates/prd-strategic.md +38 -0
- package/.agent/skills/project-manager/templates/skill-questionnaire.md +118 -0
- package/.agent/skills/project-manager/templates/user-story-simple.md +14 -0
- package/.agent/skills/prompt-engineer/SKILL.md +319 -0
- package/.agent/skills/prompt-engineer/skill-creator/README.md +47 -0
- package/.agent/skills/qa-tester/SKILL.md +142 -0
- package/.agent/skills/qa-tester/assets/README.md +8 -0
- package/.agent/skills/qa-tester/references/accessibility_testing.md +35 -0
- package/.agent/skills/qa-tester/references/agent_browser.md +38 -0
- package/.agent/skills/qa-tester/references/automation/api_testing.md +23 -0
- package/.agent/skills/qa-tester/references/automation/best_practices.md +14 -0
- package/.agent/skills/qa-tester/references/automation/jest_vitest.md +26 -0
- package/.agent/skills/qa-tester/references/automation/playwright.md +30 -0
- package/.agent/skills/qa-tester/references/e2e_testing.md +46 -0
- package/.agent/skills/qa-tester/references/integration_testing.md +39 -0
- package/.agent/skills/qa-tester/references/performance_testing.md +44 -0
- package/.agent/skills/qa-tester/references/property_based_testing.md +44 -0
- package/.agent/skills/qa-tester/references/security_audit.md +53 -0
- package/.agent/skills/qa-tester/references/security_testing.md +30 -0
- package/.agent/skills/qa-tester/references/sharp_edges.md +49 -0
- package/.agent/skills/qa-tester/references/static_analysis.md +52 -0
- package/.agent/skills/qa-tester/references/supply_chain_audit.md +54 -0
- package/.agent/skills/qa-tester/references/test_case_standards.md +96 -0
- package/.agent/skills/qa-tester/references/test_report_template.md +32 -0
- package/.agent/skills/qa-tester/references/unit_testing.md +50 -0
- package/.agent/skills/qa-tester/references/visual_testing.md +32 -0
- package/.agent/skills/qa-tester/templates/uat-plan.md +34 -0
- package/.agent/skills/research-first/SKILL.md +118 -0
- package/.agent/skills-manifest.json +264 -0
- package/.agent/workflows/absorb.md +176 -0
- package/.agent/workflows/bootstrap.md +91 -0
- package/.agent/workflows/brainstorm.md +168 -0
- package/.agent/workflows/break-tasks.md +77 -0
- package/.agent/workflows/commit.md +349 -0
- package/.agent/workflows/custom-behavior.md +64 -0
- package/.agent/workflows/debug.md +65 -0
- package/.agent/workflows/development.md +49 -0
- package/.agent/workflows/documentation.md +221 -0
- package/.agent/workflows/gen-tests.md +53 -0
- package/.agent/workflows/guide.md +196 -0
- package/.agent/workflows/implement-feature.md +182 -0
- package/.agent/workflows/install-skill.md +193 -0
- package/.agent/workflows/qa.md +54 -0
- package/.agent/workflows/ui-ux-design.md +108 -0
- package/LICENSE +21 -0
- package/README.md +258 -0
- package/cli/index.js +345 -0
- package/cli/migrate-skills.js +113 -0
- package/cli/verify.js +291 -0
- package/package.json +49 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Tech: Smart Contract Deployment
|
|
2
|
+
|
|
3
|
+
## Strategies
|
|
4
|
+
|
|
5
|
+
- **Immutable**: Simple deployment. Code cannot be changed. High trust, low flexibility.
|
|
6
|
+
- **Upgradeable Proxies**:
|
|
7
|
+
- **Transparent Upgradeable Proxy**: Admin logic separated. High gas overhead.
|
|
8
|
+
- **UUPS (Universal Upgradeable Proxy Standard)**: Upgrade logic in implementation. Cheaper gas.
|
|
9
|
+
- **Diamond (EIP-2535)**: Modular system, unlimited size, complex management.
|
|
10
|
+
|
|
11
|
+
## Automation & Tooling
|
|
12
|
+
|
|
13
|
+
- **Hardhat Ignition**: Declarative deployment modules. Handles dependency management and recovery.
|
|
14
|
+
- **Foundry Script**: Solidity-based scripting (`forge script`). Fast and integrated with Forge tests.
|
|
15
|
+
- **Deterministic Deployment**:
|
|
16
|
+
- Use `CREATE2` to deploy to the same address across multiple chains.
|
|
17
|
+
- Tool: `Nick's Method` factory / `Arachnid/deterministic-deployment-proxy`.
|
|
18
|
+
|
|
19
|
+
## Verification
|
|
20
|
+
|
|
21
|
+
- **Etherscan/Block Explorers**: ALWAYs verify source code.
|
|
22
|
+
- **Sourcify**: Decentralized verification based on metadata hash.
|
|
23
|
+
|
|
24
|
+
## Operational Safety
|
|
25
|
+
|
|
26
|
+
- **Multisig (Gnosis Safe)**: Never deploy or manage admin keys with a single EOA (Externally Owned Account).
|
|
27
|
+
- **Timelocks**: Enforce a delay (e.g., 48h) between proposing and executing sensitive admin actions.
|
|
28
|
+
- **Access Control Rotation**: Plan for key rotation procedures.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Tech: EVM (Ethereum Virtual Machine)
|
|
2
|
+
|
|
3
|
+
## Stack
|
|
4
|
+
|
|
5
|
+
- **Solidty**: v0.8.20+
|
|
6
|
+
- **Framework**: Hardhat or Foundry.
|
|
7
|
+
- **Client**: Viem + Wagmi.
|
|
8
|
+
|
|
9
|
+
## Security Checklist
|
|
10
|
+
|
|
11
|
+
- [ ] Reentrancy Guards present?
|
|
12
|
+
- [ ] Access Control (Ownable/AccessControl)?
|
|
13
|
+
- [ ] Checked for math overflows (if <0.8.0)?
|
|
14
|
+
- [ ] Validated all external calls?
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Tech: Blockchain Mechanisms & Internals
|
|
2
|
+
|
|
3
|
+
## Consensus
|
|
4
|
+
|
|
5
|
+
- **PoS (Proof of Stake)**: Validators stake tokens to propose/attest blocks. (Ethereum, Solana).
|
|
6
|
+
- **PoW (Proof of Work)**: Miners solve cryptographic puzzles. (Bitcoin).
|
|
7
|
+
- **Finality**:
|
|
8
|
+
- **Probabilistic**: Bitcoin (wait ~6 blocks).
|
|
9
|
+
- **Deterministic**: Ethereum (after finalized epoch), Tendermint (instant).
|
|
10
|
+
|
|
11
|
+
## State Management
|
|
12
|
+
|
|
13
|
+
- **Account Model (Ethereum/Solana)**: Global state tracks account balances and nonce.
|
|
14
|
+
- **UTXO (Bitcoin/Cardano)**: Unspent Transaction Outputs. State is the set of all unspent outputs.
|
|
15
|
+
- **Data Structures**:
|
|
16
|
+
- **Merkle Patricia Trie (Ethereum)**: Storage, State, Transactions, Receipts.
|
|
17
|
+
- **Verkle Trees**: Future upgrade for stateless clients.
|
|
18
|
+
|
|
19
|
+
## Transaction Lifecycle
|
|
20
|
+
|
|
21
|
+
1. **Creation**: User signs tx with private key.
|
|
22
|
+
2. **Propagation**: Gossip protocol sends tx to Mempool.
|
|
23
|
+
3. **Ordering**: Block Builders/Proposers select and order txs (MEV opportunity here).
|
|
24
|
+
4. **Execution**: EVM executes logic, updates state trie.
|
|
25
|
+
5. **Finalization**: Block is added to chain and finalized by consensus.
|
|
26
|
+
|
|
27
|
+
## EVM Internals
|
|
28
|
+
|
|
29
|
+
- **Stack**: 1024 depth, 256-bit words. Most gas efficient.
|
|
30
|
+
- **Memory**: Linear, byte-addressable. Expanded in 32-byte chunks.
|
|
31
|
+
- **Storage**: Key-value store (256-bit -> 256-bit). Most expensive. SLOAD/SSTORE.
|
|
32
|
+
- **Logs**: Bloom filters used for event indexing. Cheaper than storage but not accessible by contracts.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Tech: Solidity Development
|
|
2
|
+
|
|
3
|
+
## Best Practices
|
|
4
|
+
|
|
5
|
+
- **Layout**: Follow [Solidty Style Guide](https://docs.soliditylang.org/en/latest/style-guide.html).
|
|
6
|
+
- Order: Pragma -> Import -> Interfaces -> Libraries -> Contracts.
|
|
7
|
+
- Inside Contract: Type declarations -> State vars -> Events -> Modifiers -> Functions.
|
|
8
|
+
- **Naming**: `camelCase` for variables/functions, `CapWords` for contracts/structs/events, `UPPER_CASE` for constants.
|
|
9
|
+
- **Error Handling**: Use custom errors (`error InsufficientFunds()`) instead of strings for gas efficiency.
|
|
10
|
+
|
|
11
|
+
## Advanced Concepts
|
|
12
|
+
|
|
13
|
+
- **Storage Layout**: Understand slot packing to minimize storage costs.
|
|
14
|
+
- Pack `uint128`, `address`, `bool` into single 256-bit slots where possible.
|
|
15
|
+
- **Delegatecall**: Execution in the context of the caller (crucial for proxies).
|
|
16
|
+
- **Assembly (Yul)**: Use `assembly { ... }` for low-level memory manipulation and gas optimization.
|
|
17
|
+
- **EIP Standards**:
|
|
18
|
+
- **ERC-20/721/1155**: Token standards.
|
|
19
|
+
- **ERC-4626**: Tokenized Vaults.
|
|
20
|
+
- **ERC-2535**: Diamond Standard.
|
|
21
|
+
|
|
22
|
+
## Security Patterns
|
|
23
|
+
|
|
24
|
+
- **Checks-Effects-Interactions**: Update state _before_ making external calls to prevent reentrancy.
|
|
25
|
+
- **Pull over Push**: Let users withdraw funds rather than pushing them to arrays of addresses (avoids DoS).
|
|
26
|
+
- **Access Control**: Use `OwnableTwoStep` or `AccessControl` (RBAC).
|
|
27
|
+
|
|
28
|
+
## Gas Optimization
|
|
29
|
+
|
|
30
|
+
- **Calldata**: Use `calldata` instead of `memory` for read-only function arguments.
|
|
31
|
+
- **Unchecked Math**: Use `unchecked { ... }` when overflow/underflow is impossible (Solidity 0.8+ default checks cost gas).
|
|
32
|
+
- **Constants/Immutable**: Use `constant` for literal values and `immutable` for constructor-set values.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: business-analysis
|
|
3
|
+
description: >
|
|
4
|
+
Requirements analysis, technical specs, agile documentation. Use for bridging business goals to technical implementation.
|
|
5
|
+
license: MIT
|
|
6
|
+
compatibility: Claude Code, Cursor, Gemini CLI, GitHub Copilot
|
|
7
|
+
metadata:
|
|
8
|
+
author: jhm1909
|
|
9
|
+
version: "2.0.0"
|
|
10
|
+
domain: analysis
|
|
11
|
+
estimated_tokens: 8000
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# Business Analysis
|
|
15
|
+
|
|
16
|
+
Bridge the gap between abstract business goals and concrete technical implementation.
|
|
17
|
+
|
|
18
|
+
## Knowledge Graph
|
|
19
|
+
|
|
20
|
+
- **extends**: []
|
|
21
|
+
- **requires**: []
|
|
22
|
+
- **suggests**: [[project-manager]], [[lead-architect]], [[designer]], [[frontend-developer]], [[backend-developer]]
|
|
23
|
+
- **conflicts**: []
|
|
24
|
+
- **enhances**: [[qa-tester]] (acceptance criteria), [[lead-architect]] (technical specs)
|
|
25
|
+
- **moc**: [[product-development-moc]]
|
|
26
|
+
|
|
27
|
+
## Core Philosophy
|
|
28
|
+
|
|
29
|
+
1. **Gap Analysis First** — Analyze constraint conflicts before solutions
|
|
30
|
+
2. **Sequential Thinking** — Break down step-by-step, don't guess
|
|
31
|
+
3. **Visuals First** — Diagrams are truth (text is ambiguous)
|
|
32
|
+
4. **Obsidian Native** — Graph-ready docs with `[[Wiki-links]]`
|
|
33
|
+
5. **Agile Orthodoxy** — User Stories (INVEST), Acceptance Criteria (Gherkin)
|
|
34
|
+
6. **Multiple Perspectives** — Strategic, Product, Technical
|
|
35
|
+
|
|
36
|
+
## Perspectives
|
|
37
|
+
|
|
38
|
+
| Perspective | Focus | Output |
|
|
39
|
+
|:------------|:------|:-------|
|
|
40
|
+
| 🎩 **Strategic** | ROI, KPIs, Roadmap | BRD |
|
|
41
|
+
| 🎩 **Product** | UX, Features, Flows | PRD, User Stories |
|
|
42
|
+
| 🎩 **Technical** | Schema, APIs, States | Technical Spec |
|
|
43
|
+
|
|
44
|
+
## Workflow
|
|
45
|
+
|
|
46
|
+
1. **Market & Domain Research** — `search_web` for validation
|
|
47
|
+
2. **Requirement Gathering** — Specific constraints, not "what do you want?"
|
|
48
|
+
3. **Logic & Flow Analysis** — Happy path, negative path, edge cases
|
|
49
|
+
4. **Diagramming** — Mermaid diagrams (state, sequence, class)
|
|
50
|
+
5. **Documentation** — PRD, Specs, User Stories
|
|
51
|
+
6. **Link** — Update MOCs with new documents
|
|
52
|
+
|
|
53
|
+
## Domain Knowledge
|
|
54
|
+
|
|
55
|
+
| Domain | Path |
|
|
56
|
+
|:-------|:-----|
|
|
57
|
+
| SaaS | `references/domains/saas.md` |
|
|
58
|
+
| FinTech | `references/domains/fintech.md` |
|
|
59
|
+
| E-Commerce | `references/domains/ecommerce.md` |
|
|
60
|
+
| HealthTech | `references/domains/healthtech.md` |
|
|
61
|
+
| EdTech | `references/domains/education.md` |
|
|
62
|
+
| Blockchain | `references/domains/blockchain-dapp.md` |
|
|
63
|
+
| AI/ML | `references/domains/ai-agent.md` |
|
|
64
|
+
| Marketplace | `references/domains/marketplace.md` |
|
|
65
|
+
|
|
66
|
+
## Templates
|
|
67
|
+
|
|
68
|
+
| Template | Purpose |
|
|
69
|
+
|:---------|:--------|
|
|
70
|
+
| `prd-functional.md` | Detailed PRD |
|
|
71
|
+
| `user-story-detailed.md` | Gherkin syntax, dev notes |
|
|
72
|
+
| `brd.md` | Business Requirements |
|
|
73
|
+
| `use-case.md` | Actor flows, exceptions |
|
|
74
|
+
| `change-request.md` | Impact analysis |
|
|
75
|
+
|
|
76
|
+
## Related Skills
|
|
77
|
+
|
|
78
|
+
- [[project-manager]] — Planning and coordination
|
|
79
|
+
- [[lead-architect]] — Technical design
|
|
80
|
+
- [[designer]] — UX implementation
|
|
81
|
+
- [[qa-tester]] — Acceptance criteria validation
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
*Requirements to implementation | Domain expertise hub*
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# Mermaid Diagramming Best Practices
|
|
2
|
+
|
|
3
|
+
## "Visuals First"
|
|
4
|
+
|
|
5
|
+
Diagrams are not decorations. They are **specifications**.
|
|
6
|
+
|
|
7
|
+
## 1. Syntax Verification
|
|
8
|
+
|
|
9
|
+
**ALWAYS** check `verify_mermaid.py` or use `context7` to confirm syntax if unsure. Mermaid syntax evolves.
|
|
10
|
+
|
|
11
|
+
## 2. Diagram Selection Guide
|
|
12
|
+
|
|
13
|
+
| Requirement Type | Diagram Type | Mermaid Key | Why? |
|
|
14
|
+
| :--------------------- | :------------ | :---------------- | :--------------------------------- |
|
|
15
|
+
| **Logic/Workflow** | Flowchart | `flowchart TD` | Decision trees, yes/no paths. |
|
|
16
|
+
| **System Interaction** | Sequence | `sequenceDiagram` | Who calls whom? APIreq/res cycles. |
|
|
17
|
+
| **Data Structure** | Class Diagram | `classDiagram` | OOP relationships. |
|
|
18
|
+
| **Database Schema** | ER Diagram | `erDiagram` | SQL tables and cardinality. |
|
|
19
|
+
| **Lifecycle** | State Diagram | `stateDiagram-v2` | Status transitions. |
|
|
20
|
+
| **User Journey** | User Journey | `journey` | User sentiment/steps overlay. |
|
|
21
|
+
| **Architecture** | C4 Context | `C4Context` | High-level system overview. |
|
|
22
|
+
| **Project Plan** | Gantt | `gantt` | Timeline and milestones. |
|
|
23
|
+
|
|
24
|
+
## 3. Style Guidelines
|
|
25
|
+
|
|
26
|
+
- **Left-to-Right** (`LR`) for long processes.
|
|
27
|
+
- **Top-Down** (`TD`) for hierarchies.
|
|
28
|
+
- **Subgraphs**: Use to group related components (e.g., `subgraph Database`).
|
|
29
|
+
|
|
30
|
+
## 4. Examples Library
|
|
31
|
+
|
|
32
|
+
### Sequence Diagram (API Call)
|
|
33
|
+
|
|
34
|
+
_Use for: API endpoints, service-to-service communication._
|
|
35
|
+
|
|
36
|
+
```mermaid
|
|
37
|
+
sequenceDiagram
|
|
38
|
+
autonumber
|
|
39
|
+
participant Client
|
|
40
|
+
participant Server
|
|
41
|
+
participant DB
|
|
42
|
+
|
|
43
|
+
Client->>Server: POST /login
|
|
44
|
+
Server->>DB: SELECT * FROM users
|
|
45
|
+
DB-->>Server: User Data
|
|
46
|
+
alt Valid Password
|
|
47
|
+
Server-->>Client: 200 OK (Token)
|
|
48
|
+
else Invalid
|
|
49
|
+
Server-->>Client: 401 Unauthorized
|
|
50
|
+
end
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### State Diagram (Lifecycle)
|
|
54
|
+
|
|
55
|
+
_Use for: Order status, Auth state, Ticket workflows._
|
|
56
|
+
|
|
57
|
+
```mermaid
|
|
58
|
+
stateDiagram-v2
|
|
59
|
+
[*] --> Pending
|
|
60
|
+
Pending --> Paid: Payment Success
|
|
61
|
+
Pending --> Failed: Payment Fail
|
|
62
|
+
Paid --> Shipped
|
|
63
|
+
Shipped --> [*]
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Class Diagram (OOP/Data)
|
|
67
|
+
|
|
68
|
+
_Use for: Domain entities, Code architecture._
|
|
69
|
+
|
|
70
|
+
```mermaid
|
|
71
|
+
classDiagram
|
|
72
|
+
class User {
|
|
73
|
+
+String username
|
|
74
|
+
+login()
|
|
75
|
+
}
|
|
76
|
+
class Order {
|
|
77
|
+
+int id
|
|
78
|
+
+Date created
|
|
79
|
+
}
|
|
80
|
+
User "1" *-- "many" Order : places
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### ER Diagram (Database)
|
|
84
|
+
|
|
85
|
+
_Use for: SQL Schema, Relationships._
|
|
86
|
+
|
|
87
|
+
```mermaid
|
|
88
|
+
erDiagram
|
|
89
|
+
USER ||--o{ ORDER : places
|
|
90
|
+
USER {
|
|
91
|
+
string username
|
|
92
|
+
string email
|
|
93
|
+
}
|
|
94
|
+
ORDER ||--|{ LINE-ITEM : contains
|
|
95
|
+
ORDER {
|
|
96
|
+
int id
|
|
97
|
+
float total
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### User Journey Map
|
|
102
|
+
|
|
103
|
+
_Use for: UX Flows, Customer experience._
|
|
104
|
+
|
|
105
|
+
```mermaid
|
|
106
|
+
journey
|
|
107
|
+
title Buying a Coffee
|
|
108
|
+
section Application
|
|
109
|
+
Log In: 5: Me, Cat
|
|
110
|
+
Find Product: 3: Me
|
|
111
|
+
section Checkout
|
|
112
|
+
Pay: 5: Me
|
|
113
|
+
Receive Receipt: 5: Me
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### C4 Context (Architecture)
|
|
117
|
+
|
|
118
|
+
_Use for: High-level System Landscape. Requires `C4Context` library support._
|
|
119
|
+
|
|
120
|
+
```mermaid
|
|
121
|
+
C4Context
|
|
122
|
+
title System Context for Banking App
|
|
123
|
+
Person(customer, "Customer", "A customer of the bank.")
|
|
124
|
+
System(banking_system, "Internet Banking System", "Allows customers to view information.")
|
|
125
|
+
SystemExt(mainframe, "Mainframe Banking System", "Stores all customer information.")
|
|
126
|
+
Rel(customer, banking_system, "Uses")
|
|
127
|
+
Rel(banking_system, mainframe, "Uses")
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Flowchart (Logic Tree)
|
|
131
|
+
|
|
132
|
+
_Use for: Business rules, Algorithms._
|
|
133
|
+
|
|
134
|
+
```mermaid
|
|
135
|
+
flowchart TD
|
|
136
|
+
A[Start] --> B{Is it valid?}
|
|
137
|
+
B -- Yes --> C[Process]
|
|
138
|
+
B -- No --> D[Error]
|
|
139
|
+
C --> E[End]
|
|
140
|
+
D --> E
|
|
141
|
+
```
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# AI Agent Domain Reference
|
|
2
|
+
|
|
3
|
+
## Core Concepts
|
|
4
|
+
|
|
5
|
+
### Agent Types
|
|
6
|
+
|
|
7
|
+
- **Conversational**: Chat-based interaction (ChatGPT, Claude)
|
|
8
|
+
- **Autonomous**: Execute tasks independently
|
|
9
|
+
- **Multi-agent**: Multiple agents collaborating
|
|
10
|
+
- **Tool-using**: Agents with access to external tools
|
|
11
|
+
|
|
12
|
+
### LLM Foundations
|
|
13
|
+
|
|
14
|
+
- **Models**: GPT-4, Claude, Gemini, Llama, Mistral
|
|
15
|
+
- **Context window**: Input token limits
|
|
16
|
+
- **Temperature**: Creativity vs. determinism
|
|
17
|
+
- **System prompts**: Agent behavior definition
|
|
18
|
+
|
|
19
|
+
### Agent Architecture
|
|
20
|
+
|
|
21
|
+
- **Memory**: Short-term (conversation), Long-term (knowledge base)
|
|
22
|
+
- **Planning**: Task decomposition, goal setting
|
|
23
|
+
- **Tools**: Code execution, web search, API calls
|
|
24
|
+
- **Reflection**: Self-evaluation, error correction
|
|
25
|
+
|
|
26
|
+
## Building Blocks
|
|
27
|
+
|
|
28
|
+
### Prompt Engineering
|
|
29
|
+
|
|
30
|
+
- System prompts (role, behavior, constraints)
|
|
31
|
+
- Few-shot examples
|
|
32
|
+
- Chain-of-thought reasoning
|
|
33
|
+
- Output formatting (JSON, structured)
|
|
34
|
+
|
|
35
|
+
### Tool Integration
|
|
36
|
+
|
|
37
|
+
- Function calling / Tool use
|
|
38
|
+
- API integrations
|
|
39
|
+
- Code interpreters
|
|
40
|
+
- Web browsing, search
|
|
41
|
+
|
|
42
|
+
### Memory Systems
|
|
43
|
+
|
|
44
|
+
- Conversation history
|
|
45
|
+
- Vector databases (embeddings)
|
|
46
|
+
- Knowledge graphs
|
|
47
|
+
- Long-term memory persistence
|
|
48
|
+
|
|
49
|
+
### Orchestration
|
|
50
|
+
|
|
51
|
+
- Agent frameworks: LangChain, LlamaIndex, AutoGen
|
|
52
|
+
- Workflow engines
|
|
53
|
+
- Multi-agent coordination
|
|
54
|
+
- Human-in-the-loop
|
|
55
|
+
|
|
56
|
+
## Common Patterns
|
|
57
|
+
|
|
58
|
+
### RAG (Retrieval Augmented Generation)
|
|
59
|
+
|
|
60
|
+
- Document ingestion
|
|
61
|
+
- Chunking strategies
|
|
62
|
+
- Embedding models
|
|
63
|
+
- Vector similarity search
|
|
64
|
+
- Context injection
|
|
65
|
+
|
|
66
|
+
### Agents with Tools
|
|
67
|
+
|
|
68
|
+
- Tool definition and registration
|
|
69
|
+
- Tool selection logic
|
|
70
|
+
- Error handling and retries
|
|
71
|
+
- Result parsing
|
|
72
|
+
|
|
73
|
+
### Multi-Agent Systems
|
|
74
|
+
|
|
75
|
+
- Agent roles and specialization
|
|
76
|
+
- Communication protocols
|
|
77
|
+
- Supervisor/router patterns
|
|
78
|
+
- Parallel vs. sequential execution
|
|
79
|
+
|
|
80
|
+
## Safety & Guardrails
|
|
81
|
+
|
|
82
|
+
- Input validation
|
|
83
|
+
- Output filtering
|
|
84
|
+
- Rate limiting
|
|
85
|
+
- Prompt injection prevention
|
|
86
|
+
- Content moderation
|
|
87
|
+
|
|
88
|
+
## Key Metrics
|
|
89
|
+
|
|
90
|
+
- Response quality (human eval, LLM-as-judge)
|
|
91
|
+
- Latency (time to first token, total time)
|
|
92
|
+
- Token usage, cost
|
|
93
|
+
- Task completion rate
|
|
94
|
+
- User satisfaction
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# Blockchain & dApp Domain Reference
|
|
2
|
+
|
|
3
|
+
## Core Concepts
|
|
4
|
+
|
|
5
|
+
### Blockchain Fundamentals
|
|
6
|
+
|
|
7
|
+
- **Consensus mechanisms**: PoW, PoS, DPoS, PBFT
|
|
8
|
+
- **Networks**: Mainnet, Testnet, Devnet
|
|
9
|
+
- **Chains**: Ethereum, Solana, Polygon, BNB Chain, Arbitrum, Base
|
|
10
|
+
|
|
11
|
+
### Smart Contracts
|
|
12
|
+
|
|
13
|
+
- Self-executing code on blockchain
|
|
14
|
+
- Immutable after deployment (upgradeable patterns available)
|
|
15
|
+
- Gas fees for execution
|
|
16
|
+
- Common languages: Solidity (EVM), Rust (Solana), Move
|
|
17
|
+
|
|
18
|
+
### Wallets
|
|
19
|
+
|
|
20
|
+
- **Types**: Hot (MetaMask, Phantom), Cold (Ledger, Trezor)
|
|
21
|
+
- **Connection**: WalletConnect, browser extensions
|
|
22
|
+
- **Multi-sig**: Multiple signatures required for transactions
|
|
23
|
+
|
|
24
|
+
## dApp Architecture
|
|
25
|
+
|
|
26
|
+
### Frontend
|
|
27
|
+
|
|
28
|
+
- React/Next.js with wallet adapters
|
|
29
|
+
- Web3 libraries: ethers.js, web3.js, @solana/web3.js
|
|
30
|
+
- State management for wallet connection
|
|
31
|
+
|
|
32
|
+
### Backend (if needed)
|
|
33
|
+
|
|
34
|
+
- Indexers for blockchain data
|
|
35
|
+
- Caching layer for performance
|
|
36
|
+
- Off-chain storage (IPFS, Arweave)
|
|
37
|
+
|
|
38
|
+
### Smart Contract Layer
|
|
39
|
+
|
|
40
|
+
- Core business logic on-chain
|
|
41
|
+
- Upgradeable proxy patterns
|
|
42
|
+
- Access control (roles, permissions)
|
|
43
|
+
|
|
44
|
+
## Common dApp Types
|
|
45
|
+
|
|
46
|
+
### DeFi (Decentralized Finance)
|
|
47
|
+
|
|
48
|
+
- DEX (decentralized exchanges): AMM, order book
|
|
49
|
+
- Lending/borrowing protocols
|
|
50
|
+
- Yield farming, staking
|
|
51
|
+
- Liquidity pools
|
|
52
|
+
|
|
53
|
+
### NFT (Non-Fungible Tokens)
|
|
54
|
+
|
|
55
|
+
- Minting, burning
|
|
56
|
+
- Marketplaces, auctions
|
|
57
|
+
- Royalties, creator fees
|
|
58
|
+
- Metadata (on-chain vs. off-chain)
|
|
59
|
+
|
|
60
|
+
### GameFi / Play-to-Earn
|
|
61
|
+
|
|
62
|
+
- In-game assets as NFTs
|
|
63
|
+
- Token rewards
|
|
64
|
+
- Staking mechanics
|
|
65
|
+
|
|
66
|
+
### DAO (Decentralized Autonomous Organizations)
|
|
67
|
+
|
|
68
|
+
- Governance tokens
|
|
69
|
+
- Proposal and voting systems
|
|
70
|
+
- Treasury management
|
|
71
|
+
|
|
72
|
+
## Security Considerations
|
|
73
|
+
|
|
74
|
+
- Smart contract audits
|
|
75
|
+
- Reentrancy attacks
|
|
76
|
+
- Flash loan attacks
|
|
77
|
+
- Oracle manipulation
|
|
78
|
+
- Private key management
|
|
79
|
+
|
|
80
|
+
## Key Metrics
|
|
81
|
+
|
|
82
|
+
- TVL (Total Value Locked)
|
|
83
|
+
- Daily Active Users (DAU)
|
|
84
|
+
- Transaction volume
|
|
85
|
+
- Gas efficiency
|
|
86
|
+
- Token price, market cap
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# E-commerce Domain Reference
|
|
2
|
+
|
|
3
|
+
## Core Modules
|
|
4
|
+
|
|
5
|
+
### Product Management
|
|
6
|
+
|
|
7
|
+
- Product catalog (name, SKU, description, images, variants)
|
|
8
|
+
- Categories and collections
|
|
9
|
+
- Inventory management (stock, warehouses, reorder points)
|
|
10
|
+
- Pricing (base price, sale price, tiered pricing, bulk discounts)
|
|
11
|
+
|
|
12
|
+
### Order Management
|
|
13
|
+
|
|
14
|
+
- Shopping cart and checkout flow
|
|
15
|
+
- Order lifecycle: pending → confirmed → processing → shipped → delivered
|
|
16
|
+
- Order modifications, cancellations, returns
|
|
17
|
+
- Multi-currency, multi-language support
|
|
18
|
+
|
|
19
|
+
### Customer Management
|
|
20
|
+
|
|
21
|
+
- User registration, authentication (email, social, phone)
|
|
22
|
+
- Customer profiles, addresses, preferences
|
|
23
|
+
- Loyalty programs, points, rewards
|
|
24
|
+
- Customer segmentation
|
|
25
|
+
|
|
26
|
+
### Payment Processing
|
|
27
|
+
|
|
28
|
+
- Payment gateways (Stripe, PayPal, local gateways)
|
|
29
|
+
- Payment methods (card, bank transfer, COD, e-wallets)
|
|
30
|
+
- Refunds, partial refunds
|
|
31
|
+
- Recurring payments, subscriptions
|
|
32
|
+
|
|
33
|
+
### Shipping & Fulfillment
|
|
34
|
+
|
|
35
|
+
- Shipping carriers integration
|
|
36
|
+
- Shipping zones, rates calculation
|
|
37
|
+
- Order tracking
|
|
38
|
+
- Returns and exchanges
|
|
39
|
+
|
|
40
|
+
## Common Features
|
|
41
|
+
|
|
42
|
+
### Search & Discovery
|
|
43
|
+
|
|
44
|
+
- Full-text search, filters, facets
|
|
45
|
+
- Recommendations engine
|
|
46
|
+
- Recently viewed, wishlists
|
|
47
|
+
- Compare products
|
|
48
|
+
|
|
49
|
+
### Marketing
|
|
50
|
+
|
|
51
|
+
- Promotions, coupons, discount codes
|
|
52
|
+
- Flash sales, limited-time offers
|
|
53
|
+
- Email marketing integration
|
|
54
|
+
- Abandoned cart recovery
|
|
55
|
+
|
|
56
|
+
### Analytics
|
|
57
|
+
|
|
58
|
+
- Sales reports, revenue tracking
|
|
59
|
+
- Customer behavior analytics
|
|
60
|
+
- Conversion funnel analysis
|
|
61
|
+
- Inventory reports
|
|
62
|
+
|
|
63
|
+
## User Roles
|
|
64
|
+
|
|
65
|
+
- **Guest**: Browse, add to cart
|
|
66
|
+
- **Customer**: Full checkout, order history, profile
|
|
67
|
+
- **Staff**: Order management, inventory
|
|
68
|
+
- **Admin**: Full access, settings, reports
|
|
69
|
+
|
|
70
|
+
## Key Metrics
|
|
71
|
+
|
|
72
|
+
- GMV (Gross Merchandise Value)
|
|
73
|
+
- AOV (Average Order Value)
|
|
74
|
+
- Conversion rate
|
|
75
|
+
- Cart abandonment rate
|
|
76
|
+
- Customer lifetime value (CLV)
|
|
77
|
+
- Return rate
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Domain Knowledge: Education (EdTech) / LMS
|
|
2
|
+
|
|
3
|
+
## Core Entities (Ontology)
|
|
4
|
+
|
|
5
|
+
- **Institution/School**: Top-level tenant.
|
|
6
|
+
- **Curriculum**:
|
|
7
|
+
- **Program**: E.g., "Computer Science BS".
|
|
8
|
+
- **Course**: E.g., "CS101 - Intro to Programming".
|
|
9
|
+
- **Section/Class**: Specific instance (e.g., "Fall 2026, Section A").
|
|
10
|
+
- **People**:
|
|
11
|
+
- **Student**: Consumer of content. Constraints: COPPA/FERPA compliance.
|
|
12
|
+
- **Instructor**: Creator/Grader.
|
|
13
|
+
- **Admin**: Scheduler/Manager.
|
|
14
|
+
- **Assessment**:
|
|
15
|
+
- **Assignment**: Submission based (File, Text).
|
|
16
|
+
- **Quiz**: Automated grading (MCQ, True/False).
|
|
17
|
+
- **Rubric**: Criteria-based grading matrix.
|
|
18
|
+
- **Gradebook**:
|
|
19
|
+
- **Weighted Categories**: (Homework 20%, Exam 80%).
|
|
20
|
+
- **Letter Grading**: (A > 90%).
|
|
21
|
+
|
|
22
|
+
## Common Workflows
|
|
23
|
+
|
|
24
|
+
### 1. Enrollment Flow
|
|
25
|
+
|
|
26
|
+
- Student adds course -> Check prerequisites -> Check seat capacity -> Payment (if applicable) -> Active Enrollment.
|
|
27
|
+
- _Edge Cases_: Waitlists, Holds (financial/academic), Time conflicts.
|
|
28
|
+
|
|
29
|
+
### 2. Assignment Submission
|
|
30
|
+
|
|
31
|
+
- Student uploads file -> Antivirus scan -> Timestamp log -> Status: "Submitted".
|
|
32
|
+
- _Edge Cases_: Late submission (grace period?), File size limit, Unsupported format.
|
|
33
|
+
|
|
34
|
+
### 3. Grading Flow
|
|
35
|
+
|
|
36
|
+
- Instructor views submission -> Attaches Rubric scores -> Calculates total -> Publishes grade -> Student Notified.
|
|
37
|
+
|
|
38
|
+
## Key Regulations
|
|
39
|
+
|
|
40
|
+
- **FERPA (USA)**: Student records privacy.
|
|
41
|
+
- **LTI (Learning Tools Interoperability)**: Standard for plugging external tools (e.g., Zoom, Turnitin) into LMS.
|
|
42
|
+
- **SCORM/xAPI**: Content standards for courseware.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Domain: FinTech (Financial Technology)
|
|
2
|
+
|
|
3
|
+
## 1. Core Mindset
|
|
4
|
+
|
|
5
|
+
- **Precision**: Integers for money (cents), never floats.
|
|
6
|
+
- **Auditability**: Every action needs a trace. Immutable logs.
|
|
7
|
+
- **Security**: PCI-DSS compliance, Data encryption at rest/transit.
|
|
8
|
+
|
|
9
|
+
## 2. Key Terminology (Glossary)
|
|
10
|
+
|
|
11
|
+
- **KYC (Know Your Customer)**: Mandatory identity verification.
|
|
12
|
+
- **AML (Anti-Money Laundering)**: Monitoring for suspicious transaction patterns.
|
|
13
|
+
- **Ledger**: The source of truth. Double-entry bookkeeping (Debits = Credits).
|
|
14
|
+
- **PSP (Payment Service Provider)**: Stripe, PayPal, Adyen.
|
|
15
|
+
- **PCI-DSS**: Security standards for handling credit card info.
|
|
16
|
+
|
|
17
|
+
## 3. Common Entities (Data Models)
|
|
18
|
+
|
|
19
|
+
- **Wallet**: Holds balance. `user_id`, `currency`, `balance_cents`.
|
|
20
|
+
- **Transaction**: A movement of funds. `id`, `amount`, `source_wallet`, `dest_wallet`, `type` (deposit, withdrawal, transfer).
|
|
21
|
+
- **KYCprofile**: Verification status. `document_url`, `status` (pending, approved, rejected).
|
|
22
|
+
|
|
23
|
+
## 4. Key Workflows
|
|
24
|
+
|
|
25
|
+
### A. Deposit Funds (Mock)
|
|
26
|
+
|
|
27
|
+
1. User initiates deposit $50.
|
|
28
|
+
2. System creates `Transaction` (status: pending).
|
|
29
|
+
3. User redirected to PSP.
|
|
30
|
+
4. Webhook received -> Update `Transaction` (success).
|
|
31
|
+
5. Credit User `Wallet` (+5000 cents).
|
|
32
|
+
|
|
33
|
+
### B. Peer-to-Peer Transfer
|
|
34
|
+
|
|
35
|
+
1. **Check Balance**: Ensure Sender has > Amount.
|
|
36
|
+
2. **Lock Funds**: Prevent double-spend (Database transaction).
|
|
37
|
+
3. **Debit Sender**: `Wallet A` -= Amount.
|
|
38
|
+
4. **Credit Receiver**: `Wallet B` += Amount.
|
|
39
|
+
5. **Audit Log**: Record immutable entry.
|
|
40
|
+
|
|
41
|
+
## 5. Regulatory Compliance Checklist
|
|
42
|
+
|
|
43
|
+
- [ ] **GDPR/CCPA**: Right to be forgotten (BUT financial records must be kept for X years).
|
|
44
|
+
- [ ] **SCA (Strong Customer Authentication)**: 2FA for payments (PSD2 in Europe).
|