moai-adk 0.3.13__py3-none-any.whl → 0.4.0__py3-none-any.whl
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.
Potentially problematic release.
This version of moai-adk might be problematic. Click here for more details.
- moai_adk/__init__.py +8 -1
- moai_adk/__main__.py +1 -1
- moai_adk/cli/commands/__init__.py +1 -1
- moai_adk/cli/commands/doctor.py +2 -2
- moai_adk/cli/commands/status.py +1 -1
- moai_adk/cli/commands/update.py +136 -90
- moai_adk/cli/prompts/init_prompts.py +1 -1
- moai_adk/core/__init__.py +1 -1
- moai_adk/core/git/branch.py +1 -1
- moai_adk/core/git/manager.py +1 -1
- moai_adk/core/quality/__init__.py +1 -1
- moai_adk/core/quality/trust_checker.py +1 -1
- moai_adk/core/quality/validators/__init__.py +1 -1
- moai_adk/core/quality/validators/base_validator.py +1 -1
- moai_adk/core/template/__init__.py +1 -1
- moai_adk/core/template/backup.py +2 -1
- moai_adk/core/template/config.py +24 -0
- moai_adk/core/template/languages.py +1 -1
- moai_adk/core/template/merger.py +58 -1
- moai_adk/core/template/processor.py +41 -12
- moai_adk/templates/.claude/agents/alfred/cc-manager.md +558 -3
- moai_adk/templates/.claude/commands/alfred/0-project.md +480 -12
- moai_adk/templates/.claude/commands/alfred/1-plan.md +563 -0
- moai_adk/templates/.claude/commands/alfred/1-spec.md +15 -516
- moai_adk/templates/.claude/commands/alfred/2-build.md +15 -417
- moai_adk/templates/.claude/commands/alfred/2-run.md +460 -0
- moai_adk/templates/.claude/hooks/alfred/handlers/session.py +10 -31
- moai_adk/templates/.claude/skills/moai-claude-code/SKILL.md +67 -0
- moai_adk/templates/.claude/skills/moai-claude-code/examples.md +513 -0
- moai_adk/templates/.claude/skills/moai-claude-code/reference.md +419 -0
- moai_adk/templates/.claude/skills/moai-claude-code/templates/agent-full.md +332 -0
- moai_adk/templates/.claude/skills/moai-claude-code/templates/command-full.md +384 -0
- moai_adk/templates/.claude/skills/moai-claude-code/templates/plugin-full.json +349 -0
- moai_adk/templates/.claude/skills/moai-claude-code/templates/settings-full.json +552 -0
- moai_adk/templates/.claude/skills/moai-claude-code/templates/skill-full.md +499 -0
- moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +68 -0
- moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +64 -0
- moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +67 -0
- moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +69 -0
- moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +69 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +68 -0
- moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +67 -0
- moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +62 -0
- moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +74 -0
- moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +66 -0
- moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +66 -0
- moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +68 -0
- moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +59 -0
- moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +76 -0
- moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +61 -0
- moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +63 -0
- moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +64 -0
- moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +61 -0
- moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +54 -0
- moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +46 -0
- moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +68 -0
- moai_adk/templates/.claude/skills/moai-lang-clojure/SKILL.md +68 -0
- moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +69 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +67 -0
- moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +66 -0
- moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +66 -0
- moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +67 -0
- moai_adk/templates/.claude/skills/moai-lang-haskell/SKILL.md +67 -0
- moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +66 -0
- moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +64 -0
- moai_adk/templates/.claude/skills/moai-lang-julia/SKILL.md +66 -0
- moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +67 -0
- moai_adk/templates/.claude/skills/moai-lang-lua/SKILL.md +65 -0
- moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +65 -0
- moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +64 -0
- moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +66 -0
- moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +66 -0
- moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +68 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +68 -0
- moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +67 -0
- moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +68 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +67 -0
- moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +64 -0
- moai_adk/templates/.claude/skills/scripts/standardize_skills.py +166 -0
- moai_adk/templates/.claude/skills/scripts/verify_standardization.sh +43 -0
- moai_adk/templates/CLAUDE.md +153 -0
- moai_adk/templates/__init__.py +1 -1
- moai_adk/utils/__init__.py +1 -1
- moai_adk/utils/banner.py +7 -7
- moai_adk/utils/logger.py +1 -1
- {moai_adk-0.3.13.dist-info → moai_adk-0.4.0.dist-info}/METADATA +231 -1
- moai_adk-0.4.0.dist-info/RECORD +145 -0
- moai_adk-0.3.13.dist-info/RECORD +0 -90
- {moai_adk-0.3.13.dist-info → moai_adk-0.4.0.dist-info}/WHEEL +0 -0
- {moai_adk-0.3.13.dist-info → moai_adk-0.4.0.dist-info}/entry_points.txt +0 -0
- {moai_adk-0.3.13.dist-info → moai_adk-0.4.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: moai-domain-database
|
|
3
|
+
description: Database design, schema optimization, indexing strategies, and migration
|
|
4
|
+
management
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Database Expert
|
|
11
|
+
|
|
12
|
+
## What it does
|
|
13
|
+
|
|
14
|
+
Provides expertise in database design, schema normalization, indexing strategies, query optimization, and safe migration management for SQL and NoSQL databases.
|
|
15
|
+
|
|
16
|
+
## When to use
|
|
17
|
+
|
|
18
|
+
- "데이터베이스 설계", "스키마 최적화", "인덱스 전략", "마이그레이션"
|
|
19
|
+
- Automatically invoked when working with database projects
|
|
20
|
+
- Database SPEC implementation (`/alfred:2-build`)
|
|
21
|
+
|
|
22
|
+
## How it works
|
|
23
|
+
|
|
24
|
+
**Schema Design**:
|
|
25
|
+
- **Normalization**: 1NF, 2NF, 3NF, BCNF
|
|
26
|
+
- **Denormalization**: Performance trade-offs
|
|
27
|
+
- **Constraints**: Primary keys, foreign keys, unique, check
|
|
28
|
+
- **Data types**: Choosing appropriate types
|
|
29
|
+
|
|
30
|
+
**Indexing Strategies**:
|
|
31
|
+
- **B-tree indices**: General-purpose indexing
|
|
32
|
+
- **Hash indices**: Exact match queries
|
|
33
|
+
- **Full-text indices**: Text search
|
|
34
|
+
- **Composite indices**: Multi-column indexing
|
|
35
|
+
- **Index maintenance**: REINDEX, VACUUM
|
|
36
|
+
|
|
37
|
+
**Query Optimization**:
|
|
38
|
+
- **EXPLAIN/EXPLAIN ANALYZE**: Query plan analysis
|
|
39
|
+
- **JOIN optimization**: INNER, LEFT, RIGHT, FULL
|
|
40
|
+
- **Subquery vs JOIN**: Performance comparison
|
|
41
|
+
- **N+1 query problem**: Eager loading
|
|
42
|
+
- **Query caching**: Redis, Memcached
|
|
43
|
+
|
|
44
|
+
**Migration Management**:
|
|
45
|
+
- **Version control**: Flyway, Liquibase, Alembic
|
|
46
|
+
- **Rollback strategies**: Backward compatibility
|
|
47
|
+
- **Zero-downtime migrations**: Expand-contract pattern
|
|
48
|
+
- **Data migrations**: Safe data transformations
|
|
49
|
+
|
|
50
|
+
**Database Types**:
|
|
51
|
+
- **SQL**: PostgreSQL, MySQL, SQLite
|
|
52
|
+
- **NoSQL**: MongoDB, Redis, Cassandra
|
|
53
|
+
- **NewSQL**: CockroachDB, Vitess
|
|
54
|
+
|
|
55
|
+
## Examples
|
|
56
|
+
|
|
57
|
+
### Example 1: Schema design with normalization
|
|
58
|
+
User: "/alfred:2-build DB-SCHEMA-001"
|
|
59
|
+
Claude: (creates RED schema test, GREEN implementation with constraints, REFACTOR with indices)
|
|
60
|
+
|
|
61
|
+
### Example 2: Query optimization
|
|
62
|
+
User: "쿼리 성능 개선"
|
|
63
|
+
Claude: (analyzes EXPLAIN output and suggests index creation)
|
|
64
|
+
|
|
65
|
+
## Works well with
|
|
66
|
+
|
|
67
|
+
- alfred-trust-validation (migration testing)
|
|
68
|
+
- sql-expert (SQL implementation)
|
|
69
|
+
- backend-expert (ORM integration)
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: moai-domain-devops
|
|
3
|
+
description: CI/CD pipelines, Docker containerization, Kubernetes orchestration, and
|
|
4
|
+
infrastructure as code
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# DevOps Expert
|
|
11
|
+
|
|
12
|
+
## What it does
|
|
13
|
+
|
|
14
|
+
Provides expertise in continuous integration/deployment (CI/CD), Docker containerization, Kubernetes orchestration, and infrastructure as code (IaC) for automated deployment workflows.
|
|
15
|
+
|
|
16
|
+
## When to use
|
|
17
|
+
|
|
18
|
+
- "CI/CD 파이프라인", "Docker 컨테이너화", "Kubernetes 배포", "인프라 코드"
|
|
19
|
+
- Automatically invoked when working with DevOps projects
|
|
20
|
+
- DevOps SPEC implementation (`/alfred:2-build`)
|
|
21
|
+
|
|
22
|
+
## How it works
|
|
23
|
+
|
|
24
|
+
**CI/CD Pipelines**:
|
|
25
|
+
- **GitHub Actions**: Workflow automation (.github/workflows)
|
|
26
|
+
- **GitLab CI**: .gitlab-ci.yml configuration
|
|
27
|
+
- **Jenkins**: Pipeline as code (Jenkinsfile)
|
|
28
|
+
- **CircleCI**: .circleci/config.yml
|
|
29
|
+
- **Pipeline stages**: Build → Test → Deploy
|
|
30
|
+
|
|
31
|
+
**Docker Containerization**:
|
|
32
|
+
- **Dockerfile**: Multi-stage builds for optimization
|
|
33
|
+
- **docker-compose**: Local development environments
|
|
34
|
+
- **Image optimization**: Layer caching, alpine base images
|
|
35
|
+
- **Container registries**: Docker Hub, GitHub Container Registry
|
|
36
|
+
|
|
37
|
+
**Kubernetes Orchestration**:
|
|
38
|
+
- **Deployments**: Rolling updates, rollbacks
|
|
39
|
+
- **Services**: LoadBalancer, ClusterIP, NodePort
|
|
40
|
+
- **ConfigMaps/Secrets**: Configuration management
|
|
41
|
+
- **Helm charts**: Package management
|
|
42
|
+
- **Ingress**: Traffic routing
|
|
43
|
+
|
|
44
|
+
**Infrastructure as Code (IaC)**:
|
|
45
|
+
- **Terraform**: Cloud-agnostic provisioning
|
|
46
|
+
- **Ansible**: Configuration management
|
|
47
|
+
- **CloudFormation**: AWS-specific IaC
|
|
48
|
+
- **Pulumi**: Programmatic infrastructure
|
|
49
|
+
|
|
50
|
+
**Monitoring & Logging**:
|
|
51
|
+
- **Prometheus**: Metrics collection
|
|
52
|
+
- **Grafana**: Visualization
|
|
53
|
+
- **ELK Stack**: Logging (Elasticsearch, Logstash, Kibana)
|
|
54
|
+
|
|
55
|
+
## Examples
|
|
56
|
+
|
|
57
|
+
### Example 1: GitHub Actions CI/CD
|
|
58
|
+
User: "/alfred:2-build CICD-001"
|
|
59
|
+
Claude: (creates RED workflow test, GREEN GitHub Actions workflow, REFACTOR)
|
|
60
|
+
|
|
61
|
+
### Example 2: Kubernetes deployment
|
|
62
|
+
User: "Kubernetes 배포 설정"
|
|
63
|
+
Claude: (creates deployment.yaml, service.yaml, ingress.yaml)
|
|
64
|
+
|
|
65
|
+
## Works well with
|
|
66
|
+
|
|
67
|
+
- alfred-trust-validation (deployment validation)
|
|
68
|
+
- shell-expert (shell scripting for automation)
|
|
69
|
+
- security-expert (secure deployments)
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: moai-domain-frontend
|
|
3
|
+
description: React/Vue/Angular development with state management, performance optimization,
|
|
4
|
+
and accessibility
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Frontend Expert
|
|
11
|
+
|
|
12
|
+
## What it does
|
|
13
|
+
|
|
14
|
+
Provides expertise in modern frontend development using React, Vue, or Angular, including state management patterns, performance optimization techniques, and accessibility (a11y) best practices.
|
|
15
|
+
|
|
16
|
+
## When to use
|
|
17
|
+
|
|
18
|
+
- "프론트엔드 개발", "React 컴포넌트", "상태 관리", "성능 최적화"
|
|
19
|
+
- Automatically invoked when working with frontend projects
|
|
20
|
+
- Frontend SPEC implementation (`/alfred:2-build`)
|
|
21
|
+
|
|
22
|
+
## How it works
|
|
23
|
+
|
|
24
|
+
**React Development**:
|
|
25
|
+
- **Functional components**: Hooks (useState, useEffect, useMemo)
|
|
26
|
+
- **State management**: Redux, Zustand, Jotai
|
|
27
|
+
- **Performance**: React.memo, useCallback, code splitting
|
|
28
|
+
- **Testing**: React Testing Library
|
|
29
|
+
|
|
30
|
+
**Vue Development**:
|
|
31
|
+
- **Composition API**: setup(), reactive(), computed()
|
|
32
|
+
- **State management**: Pinia, Vuex
|
|
33
|
+
- **Performance**: Virtual scrolling, lazy loading
|
|
34
|
+
- **Testing**: Vue Test Utils
|
|
35
|
+
|
|
36
|
+
**Angular Development**:
|
|
37
|
+
- **Components**: TypeScript classes with decorators
|
|
38
|
+
- **State management**: NgRx, Akita
|
|
39
|
+
- **Performance**: OnPush change detection, lazy loading
|
|
40
|
+
- **Testing**: Jasmine, Karma
|
|
41
|
+
|
|
42
|
+
**Performance Optimization**:
|
|
43
|
+
- **Code splitting**: Dynamic imports, route-based splitting
|
|
44
|
+
- **Lazy loading**: Images, components
|
|
45
|
+
- **Bundle optimization**: Tree shaking, minification
|
|
46
|
+
- **Web Vitals**: LCP, FID, CLS optimization
|
|
47
|
+
|
|
48
|
+
**Accessibility (a11y)**:
|
|
49
|
+
- **Semantic HTML**: Proper use of HTML5 elements
|
|
50
|
+
- **ARIA attributes**: Roles, labels, descriptions
|
|
51
|
+
- **Keyboard navigation**: Focus management
|
|
52
|
+
- **Screen reader support**: Alt text, aria-live
|
|
53
|
+
|
|
54
|
+
## Examples
|
|
55
|
+
|
|
56
|
+
### Example 1: React component with performance optimization
|
|
57
|
+
User: "/alfred:2-build UI-001"
|
|
58
|
+
Claude: (creates RED component test, GREEN implementation with React.memo, REFACTOR)
|
|
59
|
+
|
|
60
|
+
### Example 2: Accessibility audit
|
|
61
|
+
User: "접근성 검사"
|
|
62
|
+
Claude: (runs axe-core or Lighthouse and reports issues)
|
|
63
|
+
|
|
64
|
+
## Works well with
|
|
65
|
+
|
|
66
|
+
- alfred-trust-validation (frontend testing)
|
|
67
|
+
- typescript-expert (type-safe React/Vue)
|
|
68
|
+
- alfred-performance-optimizer (performance profiling)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: moai-domain-ml
|
|
3
|
+
description: Machine learning model training, evaluation, deployment, and MLOps workflows
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Bash
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# ML Expert
|
|
10
|
+
|
|
11
|
+
## What it does
|
|
12
|
+
|
|
13
|
+
Provides expertise in machine learning model development, training, evaluation, hyperparameter tuning, deployment, and MLOps workflows for production ML systems.
|
|
14
|
+
|
|
15
|
+
## When to use
|
|
16
|
+
|
|
17
|
+
- "머신러닝 모델 개발", "모델 학습", "모델 배포", "MLOps"
|
|
18
|
+
- Automatically invoked when working with ML projects
|
|
19
|
+
- ML SPEC implementation (`/alfred:2-build`)
|
|
20
|
+
|
|
21
|
+
## How it works
|
|
22
|
+
|
|
23
|
+
**Model Training**:
|
|
24
|
+
- **scikit-learn**: Classical ML (RandomForest, SVM, KNN)
|
|
25
|
+
- **TensorFlow/Keras**: Deep learning (CNN, RNN, Transformers)
|
|
26
|
+
- **PyTorch**: Research-oriented deep learning
|
|
27
|
+
- **XGBoost/LightGBM**: Gradient boosting
|
|
28
|
+
|
|
29
|
+
**Model Evaluation**:
|
|
30
|
+
- **Classification**: Accuracy, precision, recall, F1, ROC-AUC
|
|
31
|
+
- **Regression**: RMSE, MAE, R²
|
|
32
|
+
- **Cross-validation**: k-fold, stratified k-fold
|
|
33
|
+
- **Confusion matrix**: Error analysis
|
|
34
|
+
|
|
35
|
+
**Hyperparameter Tuning**:
|
|
36
|
+
- **Grid search**: Exhaustive search
|
|
37
|
+
- **Random search**: Stochastic search
|
|
38
|
+
- **Bayesian optimization**: Optuna, Hyperopt
|
|
39
|
+
- **AutoML**: Auto-sklearn, TPOT
|
|
40
|
+
|
|
41
|
+
**Model Deployment**:
|
|
42
|
+
- **Serialization**: pickle, joblib, ONNX
|
|
43
|
+
- **Serving**: FastAPI, TensorFlow Serving, TorchServe
|
|
44
|
+
- **Containerization**: Docker for reproducibility
|
|
45
|
+
- **Versioning**: MLflow, DVC
|
|
46
|
+
|
|
47
|
+
**MLOps Workflows**:
|
|
48
|
+
- **Experiment tracking**: MLflow, Weights & Biases
|
|
49
|
+
- **Feature store**: Feast, Tecton
|
|
50
|
+
- **Model registry**: Centralized model management
|
|
51
|
+
- **Monitoring**: Data drift detection, model performance
|
|
52
|
+
|
|
53
|
+
## Examples
|
|
54
|
+
|
|
55
|
+
### Example 1: Model training with scikit-learn
|
|
56
|
+
User: "/alfred:2-build ML-001"
|
|
57
|
+
Claude: (creates RED model test, GREEN training pipeline, REFACTOR with cross-validation)
|
|
58
|
+
|
|
59
|
+
### Example 2: Model deployment
|
|
60
|
+
User: "모델 API 배포"
|
|
61
|
+
Claude: (creates FastAPI endpoint with model serving)
|
|
62
|
+
|
|
63
|
+
## Works well with
|
|
64
|
+
|
|
65
|
+
- alfred-trust-validation (model testing)
|
|
66
|
+
- python-expert (ML implementation)
|
|
67
|
+
- data-science-expert (data preparation)
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: moai-domain-mobile-app
|
|
3
|
+
description: Mobile app development with Flutter and React Native, state management,
|
|
4
|
+
and native integration
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Mobile App Expert
|
|
11
|
+
|
|
12
|
+
## What it does
|
|
13
|
+
|
|
14
|
+
Provides expertise in cross-platform mobile app development using Flutter (Dart) and React Native (TypeScript), including state management patterns and native module integration.
|
|
15
|
+
|
|
16
|
+
## When to use
|
|
17
|
+
|
|
18
|
+
- "모바일 앱 개발", "Flutter 위젯", "React Native 컴포넌트", "상태 관리"
|
|
19
|
+
- Automatically invoked when working with mobile app projects
|
|
20
|
+
- Mobile app SPEC implementation (`/alfred:2-build`)
|
|
21
|
+
|
|
22
|
+
## How it works
|
|
23
|
+
|
|
24
|
+
**Flutter Development**:
|
|
25
|
+
- **Widget tree**: StatelessWidget, StatefulWidget
|
|
26
|
+
- **State management**: Provider, Riverpod, BLoC
|
|
27
|
+
- **Navigation**: Navigator 2.0, go_router
|
|
28
|
+
- **Platform-specific code**: MethodChannel
|
|
29
|
+
|
|
30
|
+
**React Native Development**:
|
|
31
|
+
- **Components**: Functional components with hooks
|
|
32
|
+
- **State management**: Redux, MobX, Zustand
|
|
33
|
+
- **Navigation**: React Navigation
|
|
34
|
+
- **Native modules**: Turbo modules, JSI
|
|
35
|
+
|
|
36
|
+
**Cross-Platform Patterns**:
|
|
37
|
+
- **Responsive design**: Adaptive layouts for phone/tablet
|
|
38
|
+
- **Performance optimization**: Lazy loading, memoization
|
|
39
|
+
- **Offline support**: Local storage, sync strategies
|
|
40
|
+
- **Testing**: Widget tests (Flutter), component tests (RN)
|
|
41
|
+
|
|
42
|
+
**Native Integration**:
|
|
43
|
+
- **Plugins**: Platform channels, native modules
|
|
44
|
+
- **Permissions**: Camera, location, notifications
|
|
45
|
+
- **Deep linking**: Universal links, app links
|
|
46
|
+
- **Push notifications**: FCM, APNs
|
|
47
|
+
|
|
48
|
+
## Examples
|
|
49
|
+
|
|
50
|
+
### Example 1: Flutter app with BLoC
|
|
51
|
+
User: "/alfred:2-build MOBILE-001"
|
|
52
|
+
Claude: (creates RED widget test, GREEN implementation with BLoC, REFACTOR)
|
|
53
|
+
|
|
54
|
+
### Example 2: React Native state management
|
|
55
|
+
User: "React Native Redux 설정"
|
|
56
|
+
Claude: (sets up Redux with TypeScript and async actions)
|
|
57
|
+
|
|
58
|
+
## Works well with
|
|
59
|
+
|
|
60
|
+
- alfred-trust-validation (mobile testing)
|
|
61
|
+
- dart-expert (Flutter development)
|
|
62
|
+
- typescript-expert (React Native development)
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: moai-domain-security
|
|
3
|
+
description: OWASP Top 10, static analysis (SAST), dependency security, and secrets
|
|
4
|
+
management
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Security Expert
|
|
11
|
+
|
|
12
|
+
## What it does
|
|
13
|
+
|
|
14
|
+
Provides expertise in application security, including OWASP Top 10 vulnerabilities, static application security testing (SAST), dependency vulnerability scanning, and secrets management.
|
|
15
|
+
|
|
16
|
+
## When to use
|
|
17
|
+
|
|
18
|
+
- "보안 취약점 분석", "OWASP 검증", "시크릿 관리", "의존성 보안"
|
|
19
|
+
- Automatically invoked when security concerns arise
|
|
20
|
+
- Security SPEC implementation (`/alfred:2-build`)
|
|
21
|
+
|
|
22
|
+
## How it works
|
|
23
|
+
|
|
24
|
+
**OWASP Top 10 (2021)**:
|
|
25
|
+
1. **Broken Access Control**: Authorization checks
|
|
26
|
+
2. **Cryptographic Failures**: Encryption at rest/transit
|
|
27
|
+
3. **Injection**: SQL injection, XSS prevention
|
|
28
|
+
4. **Insecure Design**: Threat modeling
|
|
29
|
+
5. **Security Misconfiguration**: Secure defaults
|
|
30
|
+
6. **Vulnerable Components**: Dependency scanning
|
|
31
|
+
7. **Identification/Authentication Failures**: MFA, password policies
|
|
32
|
+
8. **Software/Data Integrity Failures**: Code signing
|
|
33
|
+
9. **Security Logging/Monitoring Failures**: Audit logs
|
|
34
|
+
10. **Server-Side Request Forgery (SSRF)**: Input validation
|
|
35
|
+
|
|
36
|
+
**Static Analysis (SAST)**:
|
|
37
|
+
- **Semgrep**: Multi-language static analysis
|
|
38
|
+
- **SonarQube**: Code quality + security
|
|
39
|
+
- **Bandit**: Python security linter
|
|
40
|
+
- **ESLint security plugins**: JavaScript security
|
|
41
|
+
|
|
42
|
+
**Dependency Security**:
|
|
43
|
+
- **Snyk**: Vulnerability scanning
|
|
44
|
+
- **Dependabot**: Automated dependency updates
|
|
45
|
+
- **npm audit**: Node.js vulnerabilities
|
|
46
|
+
- **safety**: Python dependency checker
|
|
47
|
+
|
|
48
|
+
**Secrets Management**:
|
|
49
|
+
- **Never commit secrets**: .gitignore for .env files
|
|
50
|
+
- **Vault**: Secrets storage (HashiCorp Vault)
|
|
51
|
+
- **Environment variables**: Runtime configuration
|
|
52
|
+
- **Secret scanning**: git-secrets, trufflehog
|
|
53
|
+
|
|
54
|
+
**Secure Coding Practices**:
|
|
55
|
+
- Input validation and sanitization
|
|
56
|
+
- Parameterized queries (SQL injection prevention)
|
|
57
|
+
- CSP (Content Security Policy) headers
|
|
58
|
+
- HTTPS enforcement
|
|
59
|
+
|
|
60
|
+
## Examples
|
|
61
|
+
|
|
62
|
+
### Example 1: OWASP compliance check
|
|
63
|
+
User: "/alfred:2-build SEC-001"
|
|
64
|
+
Claude: (creates RED security test, GREEN implementation with input validation, REFACTOR)
|
|
65
|
+
|
|
66
|
+
### Example 2: Dependency vulnerability scan
|
|
67
|
+
User: "의존성 보안 스캔"
|
|
68
|
+
Claude: (runs npm audit or snyk test and reports vulnerabilities)
|
|
69
|
+
|
|
70
|
+
## Works well with
|
|
71
|
+
|
|
72
|
+
- alfred-trust-validation (security validation)
|
|
73
|
+
- web-api-expert (API security)
|
|
74
|
+
- devops-expert (secure deployments)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: moai-domain-web-api
|
|
3
|
+
description: REST API and GraphQL design patterns with authentication, versioning,
|
|
4
|
+
and OpenAPI documentation
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Web API Expert
|
|
11
|
+
|
|
12
|
+
## What it does
|
|
13
|
+
|
|
14
|
+
Provides expertise in designing and implementing RESTful APIs and GraphQL services, including authentication mechanisms (JWT, OAuth2), API versioning strategies, and OpenAPI documentation.
|
|
15
|
+
|
|
16
|
+
## When to use
|
|
17
|
+
|
|
18
|
+
- "API 설계", "REST API 패턴", "GraphQL 스키마", "JWT 인증"
|
|
19
|
+
- Automatically invoked when working with API projects
|
|
20
|
+
- Web API SPEC implementation (`/alfred:2-build`)
|
|
21
|
+
|
|
22
|
+
## How it works
|
|
23
|
+
|
|
24
|
+
**REST API Design**:
|
|
25
|
+
- **RESTful principles**: Resource-based URLs, HTTP verbs (GET, POST, PUT, DELETE)
|
|
26
|
+
- **Status codes**: Proper use of 2xx, 4xx, 5xx codes
|
|
27
|
+
- **HATEOAS**: Hypermedia links in responses
|
|
28
|
+
- **Pagination**: Cursor-based or offset-based
|
|
29
|
+
|
|
30
|
+
**GraphQL Design**:
|
|
31
|
+
- **Schema definition**: Types, queries, mutations, subscriptions
|
|
32
|
+
- **Resolver implementation**: Data fetching logic
|
|
33
|
+
- **N+1 problem**: DataLoader for batching
|
|
34
|
+
- **Schema stitching**: Federated GraphQL
|
|
35
|
+
|
|
36
|
+
**Authentication & Authorization**:
|
|
37
|
+
- **JWT (JSON Web Token)**: Stateless authentication
|
|
38
|
+
- **OAuth2**: Authorization framework (flows: authorization code, client credentials)
|
|
39
|
+
- **API keys**: Simple authentication
|
|
40
|
+
- **RBAC/ABAC**: Role/Attribute-based access control
|
|
41
|
+
|
|
42
|
+
**API Versioning**:
|
|
43
|
+
- **URL versioning**: /v1/users, /v2/users
|
|
44
|
+
- **Header versioning**: Accept: application/vnd.api.v2+json
|
|
45
|
+
- **Deprecation strategy**: Sunset header
|
|
46
|
+
|
|
47
|
+
**Documentation**:
|
|
48
|
+
- **OpenAPI (Swagger)**: API specification
|
|
49
|
+
- **API documentation**: Auto-generated docs
|
|
50
|
+
- **Postman collections**: Request examples
|
|
51
|
+
|
|
52
|
+
## Examples
|
|
53
|
+
|
|
54
|
+
### Example 1: REST API with JWT
|
|
55
|
+
User: "/alfred:2-build API-AUTH-001"
|
|
56
|
+
Claude: (creates RED API test, GREEN implementation with JWT middleware, REFACTOR)
|
|
57
|
+
|
|
58
|
+
### Example 2: GraphQL schema design
|
|
59
|
+
User: "GraphQL 스키마 설계"
|
|
60
|
+
Claude: (designs schema with proper types and resolvers)
|
|
61
|
+
|
|
62
|
+
## Works well with
|
|
63
|
+
|
|
64
|
+
- alfred-trust-validation (API security validation)
|
|
65
|
+
- backend-expert (server implementation)
|
|
66
|
+
- security-expert (authentication patterns)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: moai-essentials-debug
|
|
3
|
+
description: Advanced debugging with stack trace analysis, error pattern detection,
|
|
4
|
+
and fix suggestions
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Write
|
|
9
|
+
- Edit
|
|
10
|
+
- TodoWrite
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Alfred Debugger Pro
|
|
14
|
+
|
|
15
|
+
## What it does
|
|
16
|
+
|
|
17
|
+
Advanced debugging support with stack trace analysis, common error pattern detection, and actionable fix suggestions.
|
|
18
|
+
|
|
19
|
+
## When to use
|
|
20
|
+
|
|
21
|
+
- "에러 해결해줘", "이 오류 원인은?", "스택 트레이스 분석"
|
|
22
|
+
- Automatically invoked on runtime errors (via debug-helper sub-agent)
|
|
23
|
+
- "왜 안 돼?", "NullPointerException 해결"
|
|
24
|
+
|
|
25
|
+
## How it works
|
|
26
|
+
|
|
27
|
+
**Stack Trace Analysis**:
|
|
28
|
+
```python
|
|
29
|
+
# Error example
|
|
30
|
+
jwt.exceptions.ExpiredSignatureError: Signature has expired
|
|
31
|
+
|
|
32
|
+
# Alfred Analysis
|
|
33
|
+
📍 Error Location: src/auth/service.py:142
|
|
34
|
+
🔍 Root Cause: JWT token has expired
|
|
35
|
+
💡 Fix Suggestion:
|
|
36
|
+
1. Implement token refresh logic
|
|
37
|
+
2. Check expiration before validation
|
|
38
|
+
3. Handle ExpiredSignatureError gracefully
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**Common Error Patterns**:
|
|
42
|
+
- `NullPointerException` → Optional usage, guard clauses
|
|
43
|
+
- `IndexError` → Boundary checks
|
|
44
|
+
- `KeyError` → `.get()` with defaults
|
|
45
|
+
- `TypeError` → Type hints, input validation
|
|
46
|
+
- `ConnectionError` → Retry logic, timeouts
|
|
47
|
+
|
|
48
|
+
**Debugging Checklist**:
|
|
49
|
+
- [ ] Reproducible?
|
|
50
|
+
- [ ] Log messages?
|
|
51
|
+
- [ ] Input data?
|
|
52
|
+
- [ ] Recent changes?
|
|
53
|
+
- [ ] Dependency versions?
|
|
54
|
+
|
|
55
|
+
**Language-specific Tips**:
|
|
56
|
+
- **Python**: Logging, type guards
|
|
57
|
+
- **TypeScript**: Type guards, null checks
|
|
58
|
+
- **Java**: Optional, try-with-resources
|
|
59
|
+
|
|
60
|
+
## Examples
|
|
61
|
+
|
|
62
|
+
User: "JWT ExpiredSignatureError 해결해줘"
|
|
63
|
+
Claude: (analyzes stack trace, identifies root cause, suggests fix)
|
|
64
|
+
## Works well with
|
|
65
|
+
|
|
66
|
+
- moai-essentials-refactor
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: moai-essentials-perf
|
|
3
|
+
description: Performance optimization with profiling, bottleneck detection, and tuning
|
|
4
|
+
strategies
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Write
|
|
9
|
+
- Edit
|
|
10
|
+
- TodoWrite
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Alfred Performance Optimizer
|
|
14
|
+
|
|
15
|
+
## What it does
|
|
16
|
+
|
|
17
|
+
Performance analysis and optimization with profiling tools, bottleneck detection, and language-specific optimization techniques.
|
|
18
|
+
|
|
19
|
+
## When to use
|
|
20
|
+
|
|
21
|
+
- "성능 개선해줘", "느린 부분 찾아줘", "최적화 방법은?"
|
|
22
|
+
- "프로파일링", "병목 지점", "메모리 누수"
|
|
23
|
+
|
|
24
|
+
## How it works
|
|
25
|
+
|
|
26
|
+
**Profiling Tools**:
|
|
27
|
+
- **Python**: cProfile, memory_profiler
|
|
28
|
+
- **TypeScript**: Chrome DevTools, clinic.js
|
|
29
|
+
- **Java**: JProfiler, VisualVM
|
|
30
|
+
- **Go**: pprof
|
|
31
|
+
- **Rust**: flamegraph, criterion
|
|
32
|
+
|
|
33
|
+
**Common Performance Issues**:
|
|
34
|
+
- **N+1 Query Problem**: Use eager loading/joins
|
|
35
|
+
- **Inefficient Loop**: O(n²) → O(n) with Set/Map
|
|
36
|
+
- **Memory Leak**: Remove event listeners, close connections
|
|
37
|
+
|
|
38
|
+
**Optimization Checklist**:
|
|
39
|
+
- [ ] Current performance benchmark
|
|
40
|
+
- [ ] Bottleneck identification
|
|
41
|
+
- [ ] Profiling data collected
|
|
42
|
+
- [ ] Algorithm complexity improved (O(n²) → O(n))
|
|
43
|
+
- [ ] Unnecessary operations removed
|
|
44
|
+
- [ ] Caching applied
|
|
45
|
+
- [ ] Async processing introduced
|
|
46
|
+
- [ ] Post-optimization benchmark
|
|
47
|
+
- [ ] Side effects checked
|
|
48
|
+
|
|
49
|
+
**Language-specific Optimizations**:
|
|
50
|
+
- **Python**: List comprehension, generators, @lru_cache
|
|
51
|
+
- **TypeScript**: Memoization, lazy loading, code splitting
|
|
52
|
+
- **Java**: Stream API, parallel processing
|
|
53
|
+
- **Go**: Goroutines, buffered channels
|
|
54
|
+
- **Rust**: Zero-cost abstractions, borrowing
|
|
55
|
+
|
|
56
|
+
**Performance Targets**:
|
|
57
|
+
- API response time: <200ms (P95)
|
|
58
|
+
- Page load time: <2s
|
|
59
|
+
- Memory usage: <512MB
|
|
60
|
+
- CPU usage: <70%
|
|
61
|
+
|
|
62
|
+
## Examples
|
|
63
|
+
|
|
64
|
+
User: "N+1 query 문제 해결해줘"
|
|
65
|
+
Claude: (identifies N+1 queries, suggests eager loading, provides optimized code)
|
|
66
|
+
## Works well with
|
|
67
|
+
|
|
68
|
+
- moai-essentials-refactor
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: moai-essentials-refactor
|
|
3
|
+
description: Refactoring guidance with design patterns and code improvement strategies
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Bash
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- TodoWrite
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Alfred Refactoring Coach
|
|
13
|
+
|
|
14
|
+
## What it does
|
|
15
|
+
|
|
16
|
+
Refactoring guidance with design pattern recommendations, code smell detection, and step-by-step improvement plans.
|
|
17
|
+
|
|
18
|
+
## When to use
|
|
19
|
+
|
|
20
|
+
- "리팩토링 도와줘", "이 코드 개선 방법은?", "디자인 패턴 적용"
|
|
21
|
+
- "코드 정리", "중복 제거", "함수 분리"
|
|
22
|
+
|
|
23
|
+
## How it works
|
|
24
|
+
|
|
25
|
+
**Refactoring Techniques**:
|
|
26
|
+
- **Extract Method**: 긴 메서드 분리
|
|
27
|
+
- **Replace Conditional with Polymorphism**: 조건문 제거
|
|
28
|
+
- **Introduce Parameter Object**: 매개변수 그룹화
|
|
29
|
+
- **Extract Class**: 거대한 클래스 분리
|
|
30
|
+
|
|
31
|
+
**Design Pattern Recommendations**:
|
|
32
|
+
- Complex object creation → **Builder Pattern**
|
|
33
|
+
- Type-specific behavior → **Strategy Pattern**
|
|
34
|
+
- Global state → **Singleton Pattern**
|
|
35
|
+
- Incompatible interfaces → **Adapter Pattern**
|
|
36
|
+
- Delayed object creation → **Factory Pattern**
|
|
37
|
+
|
|
38
|
+
**3-Strike Rule**:
|
|
39
|
+
```
|
|
40
|
+
1st occurrence: Just implement
|
|
41
|
+
2nd occurrence: Notice similarity (leave as-is)
|
|
42
|
+
3rd occurrence: Pattern confirmed → Refactor! 🔧
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Refactoring Checklist**:
|
|
46
|
+
- [ ] All tests passing before refactoring
|
|
47
|
+
- [ ] Code smells identified
|
|
48
|
+
- [ ] Refactoring goal clear
|
|
49
|
+
- [ ] Change one thing at a time
|
|
50
|
+
- [ ] Run tests after each change
|
|
51
|
+
- [ ] Commit frequently
|
|
52
|
+
|
|
53
|
+
## Examples
|
|
54
|
+
|
|
55
|
+
User: "중복 코드 제거해줘"
|
|
56
|
+
Claude: (identifies duplicates, suggests Extract Method, provides step-by-step plan)
|
|
57
|
+
## Works well with
|
|
58
|
+
|
|
59
|
+
- moai-essentials-review
|