moai-adk 0.4.0__py3-none-any.whl → 0.4.1__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.

Files changed (125) hide show
  1. moai_adk/__init__.py +1 -8
  2. moai_adk/cli/commands/init.py +10 -5
  3. moai_adk/cli/commands/update.py +274 -118
  4. moai_adk/cli/prompts/init_prompts.py +14 -18
  5. moai_adk/core/diagnostics/slash_commands.py +1 -1
  6. moai_adk/core/project/backup_utils.py +1 -0
  7. moai_adk/core/project/phase_executor.py +3 -1
  8. moai_adk/core/project/validator.py +3 -2
  9. moai_adk/core/template/backup.py +11 -3
  10. moai_adk/core/template/merger.py +16 -3
  11. moai_adk/core/template/processor.py +22 -3
  12. moai_adk/templates/.claude/agents/alfred/cc-manager.md +443 -424
  13. moai_adk/templates/.claude/agents/alfred/debug-helper.md +116 -103
  14. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +130 -116
  15. moai_adk/templates/.claude/agents/alfred/git-manager.md +186 -174
  16. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +227 -213
  17. moai_adk/templates/.claude/agents/alfred/project-manager.md +205 -125
  18. moai_adk/templates/.claude/agents/alfred/quality-gate.md +224 -209
  19. moai_adk/templates/.claude/agents/alfred/spec-builder.md +174 -160
  20. moai_adk/templates/.claude/agents/alfred/tag-agent.md +151 -139
  21. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +209 -196
  22. moai_adk/templates/.claude/agents/alfred/trust-checker.md +247 -233
  23. moai_adk/templates/.claude/commands/alfred/0-project.md +673 -640
  24. moai_adk/templates/.claude/commands/alfred/1-plan.md +342 -333
  25. moai_adk/templates/.claude/commands/alfred/2-run.md +295 -285
  26. moai_adk/templates/.claude/commands/alfred/3-sync.md +366 -356
  27. moai_adk/templates/.claude/hooks/alfred/README.md +52 -52
  28. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +44 -48
  29. moai_adk/templates/.claude/hooks/alfred/core/__init__.py +17 -17
  30. moai_adk/templates/.claude/hooks/alfred/core/checkpoint.py +59 -59
  31. moai_adk/templates/.claude/hooks/alfred/core/context.py +19 -19
  32. moai_adk/templates/.claude/hooks/alfred/core/project.py +52 -52
  33. moai_adk/templates/.claude/hooks/alfred/handlers/__init__.py +1 -1
  34. moai_adk/templates/.claude/hooks/alfred/handlers/notification.py +4 -4
  35. moai_adk/templates/.claude/hooks/alfred/handlers/session.py +27 -27
  36. moai_adk/templates/.claude/hooks/alfred/handlers/tool.py +16 -17
  37. moai_adk/templates/.claude/hooks/alfred/handlers/user.py +11 -11
  38. moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +308 -307
  39. moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +297 -296
  40. moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +191 -190
  41. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/SKILL.md +112 -0
  42. moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/SKILL.md +103 -0
  43. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +103 -0
  44. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +95 -0
  45. moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +99 -0
  46. moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/SKILL.md +105 -0
  47. moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/SKILL.md +97 -0
  48. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +97 -0
  49. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +90 -0
  50. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +99 -0
  51. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/SKILL.md +87 -0
  52. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/examples.md +62 -0
  53. moai_adk/templates/.claude/skills/moai-claude-code/SKILL.md +70 -43
  54. moai_adk/templates/.claude/skills/moai-claude-code/examples.md +141 -141
  55. moai_adk/templates/.claude/skills/moai-claude-code/reference.md +179 -165
  56. moai_adk/templates/.claude/skills/moai-claude-code/templates/agent-full.md +78 -78
  57. moai_adk/templates/.claude/skills/moai-claude-code/templates/command-full.md +90 -90
  58. moai_adk/templates/.claude/skills/moai-claude-code/templates/plugin-full.json +39 -25
  59. moai_adk/templates/.claude/skills/moai-claude-code/templates/settings-full.json +117 -74
  60. moai_adk/templates/.claude/skills/moai-claude-code/templates/skill-full.md +131 -134
  61. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +43 -12
  62. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +43 -12
  63. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +43 -12
  64. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +43 -12
  65. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +43 -12
  66. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +43 -12
  67. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +43 -11
  68. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +43 -12
  69. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +43 -12
  70. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +43 -12
  71. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +47 -11
  72. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +47 -11
  73. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +51 -14
  74. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +46 -10
  75. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +62 -25
  76. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +44 -17
  77. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +44 -14
  78. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +45 -13
  79. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +46 -14
  80. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +48 -8
  81. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +44 -12
  82. moai_adk/templates/.claude/skills/moai-lang-clojure/SKILL.md +44 -12
  83. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +44 -11
  84. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +44 -11
  85. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +44 -12
  86. moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +44 -11
  87. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +44 -11
  88. moai_adk/templates/.claude/skills/moai-lang-haskell/SKILL.md +44 -11
  89. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +44 -12
  90. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +44 -12
  91. moai_adk/templates/.claude/skills/moai-lang-julia/SKILL.md +44 -12
  92. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +44 -12
  93. moai_adk/templates/.claude/skills/moai-lang-lua/SKILL.md +44 -11
  94. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +44 -11
  95. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +44 -12
  96. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +44 -11
  97. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +44 -11
  98. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +44 -12
  99. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +44 -12
  100. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +44 -11
  101. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +44 -12
  102. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +44 -12
  103. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +44 -12
  104. moai_adk/templates/.github/PULL_REQUEST_TEMPLATE.md +44 -43
  105. moai_adk/templates/.github/workflows/moai-gitflow.yml +36 -35
  106. moai_adk/templates/.moai/config.json +9 -6
  107. moai_adk/templates/.moai/memory/development-guide.md +220 -221
  108. moai_adk/templates/.moai/memory/gitflow-protection-policy.md +85 -85
  109. moai_adk/templates/.moai/memory/spec-metadata.md +149 -150
  110. moai_adk/templates/.moai/project/product.md +90 -90
  111. moai_adk/templates/.moai/project/structure.md +85 -85
  112. moai_adk/templates/.moai/project/tech.md +117 -117
  113. moai_adk/templates/CLAUDE.md +350 -722
  114. moai_adk-0.4.1.dist-info/METADATA +303 -0
  115. moai_adk-0.4.1.dist-info/RECORD +152 -0
  116. moai_adk/templates/.claude/commands/alfred/1-spec.md +0 -31
  117. moai_adk/templates/.claude/commands/alfred/2-build.md +0 -30
  118. moai_adk/templates/.claude/skills/scripts/standardize_skills.py +0 -166
  119. moai_adk/templates/.claude/skills/scripts/verify_standardization.sh +0 -43
  120. moai_adk/templates/.moai/hooks/pre-push.sample +0 -88
  121. moai_adk-0.4.0.dist-info/METADATA +0 -1816
  122. moai_adk-0.4.0.dist-info/RECORD +0 -145
  123. {moai_adk-0.4.0.dist-info → moai_adk-0.4.1.dist-info}/WHEEL +0 -0
  124. {moai_adk-0.4.0.dist-info → moai_adk-0.4.1.dist-info}/entry_points.txt +0 -0
  125. {moai_adk-0.4.0.dist-info → moai_adk-0.4.1.dist-info}/licenses/LICENSE +0 -0
@@ -1,22 +1,32 @@
1
1
  ---
2
+
2
3
  name: moai-lang-ruby
3
- description: Ruby best practices with RSpec, RuboCop, Bundler, and Rails patterns
4
+ description: Ruby best practices with RSpec, RuboCop, Bundler, and Rails patterns. Use when writing or reviewing Ruby code in project workflows.
4
5
  allowed-tools:
5
- - Read
6
- - Bash
6
+ - Read
7
+ - Bash
7
8
  ---
8
9
 
9
10
  # Ruby Expert
10
11
 
12
+ ## Skill Metadata
13
+ | Field | Value |
14
+ | ----- | ----- |
15
+ | Allowed tools | Read (read_file), Bash (terminal) |
16
+ | Auto-load | On demand when language keywords are detected |
17
+ | Trigger cues | Ruby code discussions, framework guidance, or file extensions such as .rb. |
18
+ | Tier | 3 |
19
+
11
20
  ## What it does
12
21
 
13
22
  Provides Ruby-specific expertise for TDD development, including RSpec BDD testing, RuboCop linting, Bundler package management, and Rails framework patterns.
14
23
 
15
24
  ## When to use
16
25
 
17
- - "Ruby 테스트 작성", "RSpec 사용법", "Rails 패턴"
26
+ - Engages when the conversation references Ruby work, frameworks, or files like .rb.
27
+ - “Writing Ruby tests”, “How to use RSpec”, “Rails patterns”
18
28
  - Automatically invoked when working with Ruby/Rails projects
19
- - Ruby SPEC implementation (`/alfred:2-build`)
29
+ - Ruby SPEC implementation (`/alfred:2-run`)
20
30
 
21
31
  ## How it works
22
32
 
@@ -50,17 +60,40 @@ Provides Ruby-specific expertise for TDD development, including RSpec BDD testin
50
60
  - Duck typing over explicit type checking
51
61
 
52
62
  ## Examples
63
+ ```bash
64
+ bundle exec rubocop && bundle exec rspec
65
+ ```
66
+
67
+ ## Inputs
68
+ - Language-specific source directories (e.g. `src/`, `app/`).
69
+ - Language-specific build/test configuration files (e.g. `package.json`, `pyproject.toml`, `go.mod`).
70
+ - Relevant test suites and sample data.
71
+
72
+ ## Outputs
73
+ - Test/lint execution plan tailored to the selected language.
74
+ - List of key language idioms and review checkpoints.
53
75
 
54
- ### Example 1: TDD with RSpec
55
- User: "/alfred:2-build USER-001"
56
- Claude: (creates RED test with RSpec BDD style, GREEN implementation, REFACTOR)
76
+ ## Failure Modes
77
+ - When the language runtime or package manager is not installed.
78
+ - When the main language cannot be determined in a multilingual project.
57
79
 
58
- ### Example 2: RuboCop check
59
- User: "RuboCop 실행"
60
- Claude: (runs rubocop and reports style violations)
80
+ ## Dependencies
81
+ - Access to the project file is required using the Read/Grep tool.
82
+ - When used with `Skill("moai-foundation-langs")`, it is easy to share cross-language conventions.
83
+
84
+ ## References
85
+ - Ruby Lang. "Ruby Programming Language." https://www.ruby-lang.org/en/documentation/ (accessed 2025-03-29).
86
+ - RuboCop. "RuboCop Documentation." https://docs.rubocop.org/rubocop/ (accessed 2025-03-29).
87
+
88
+ ## Changelog
89
+ - 2025-03-29: Input/output/failure response/reference information for each language has been specified.
61
90
 
62
91
  ## Works well with
63
92
 
64
93
  - alfred-trust-validation (coverage verification)
65
94
  - alfred-code-reviewer (Ruby-specific review)
66
95
  - web-api-expert (Rails API development)
96
+
97
+ ## Best Practices
98
+ - Enable automatic validation by matching your linter with the language's official style guide.
99
+ - Fix test/build pipelines with reproducible commands in CI.
@@ -1,23 +1,32 @@
1
1
  ---
2
+
2
3
  name: moai-lang-rust
3
- description: Rust best practices with cargo test, clippy, rustfmt, and ownership/borrow
4
- checker mastery
4
+ description: Rust best practices with cargo test, clippy, rustfmt, and ownership/borrow checker mastery. Use when writing or reviewing Rust code in project workflows.
5
5
  allowed-tools:
6
- - Read
7
- - Bash
6
+ - Read
7
+ - Bash
8
8
  ---
9
9
 
10
10
  # Rust Expert
11
11
 
12
+ ## Skill Metadata
13
+ | Field | Value |
14
+ | ----- | ----- |
15
+ | Allowed tools | Read (read_file), Bash (terminal) |
16
+ | Auto-load | On demand when language keywords are detected |
17
+ | Trigger cues | Rust code discussions, framework guidance, or file extensions such as .rs. |
18
+ | Tier | 3 |
19
+
12
20
  ## What it does
13
21
 
14
22
  Provides Rust-specific expertise for TDD development, including cargo test, clippy linting, rustfmt formatting, and ownership/borrow checker compliance.
15
23
 
16
24
  ## When to use
17
25
 
18
- - "Rust 테스트 작성", "cargo test 사용법", "소유권 규칙"
26
+ - Engages when the conversation references Rust work, frameworks, or files like .rs.
27
+ - “Writing Rust tests”, “How to use cargo tests”, “Ownership rules”
19
28
  - Automatically invoked when working with Rust projects
20
- - Rust SPEC implementation (`/alfred:2-build`)
29
+ - Rust SPEC implementation (`/alfred:2-run`)
21
30
 
22
31
  ## How it works
23
32
 
@@ -52,17 +61,40 @@ Provides Rust-specific expertise for TDD development, including cargo test, clip
52
61
  - Avoid `unwrap()` in production code, use proper error handling
53
62
 
54
63
  ## Examples
64
+ ```bash
65
+ cargo test && cargo clippy -- -D warnings
66
+ ```
67
+
68
+ ## Inputs
69
+ - Language-specific source directories (e.g. `src/`, `app/`).
70
+ - Language-specific build/test configuration files (e.g. `package.json`, `pyproject.toml`, `go.mod`).
71
+ - Relevant test suites and sample data.
72
+
73
+ ## Outputs
74
+ - Test/lint execution plan tailored to the selected language.
75
+ - List of key language idioms and review checkpoints.
55
76
 
56
- ### Example 1: TDD with cargo test
57
- User: "/alfred:2-build PARSER-001"
58
- Claude: (creates RED test, GREEN implementation with Result<T, E>, REFACTOR with lifetimes)
77
+ ## Failure Modes
78
+ - When the language runtime or package manager is not installed.
79
+ - When the main language cannot be determined in a multilingual project.
59
80
 
60
- ### Example 2: Clippy check
61
- User: "clippy 린트 실행"
62
- Claude: (runs cargo clippy -- -D warnings and reports issues)
81
+ ## Dependencies
82
+ - Access to the project file is required using the Read/Grep tool.
83
+ - When used with `Skill("moai-foundation-langs")`, it is easy to share cross-language conventions.
84
+
85
+ ## References
86
+ - Rust Project Developers. "The Rust Programming Language." https://doc.rust-lang.org/book/ (accessed 2025-03-29).
87
+ - Rust Project Developers. "Clippy." https://doc.rust-lang.org/clippy/ (accessed 2025-03-29).
88
+
89
+ ## Changelog
90
+ - 2025-03-29: Input/output/failure response/reference information for each language has been specified.
63
91
 
64
92
  ## Works well with
65
93
 
66
94
  - alfred-trust-validation (coverage verification)
67
95
  - alfred-code-reviewer (Rust-specific review)
68
96
  - alfred-performance-optimizer (Rust benchmarking)
97
+
98
+ ## Best Practices
99
+ - Enable automatic validation by matching your linter with the language's official style guide.
100
+ - Fix test/build pipelines with reproducible commands in CI.
@@ -1,23 +1,32 @@
1
1
  ---
2
+
2
3
  name: moai-lang-scala
3
- description: Scala best practices with ScalaTest, sbt, and functional programming
4
- patterns
4
+ description: Scala best practices with ScalaTest, sbt, and functional programming patterns. Use when writing or reviewing Scala code in project workflows.
5
5
  allowed-tools:
6
- - Read
7
- - Bash
6
+ - Read
7
+ - Bash
8
8
  ---
9
9
 
10
10
  # Scala Expert
11
11
 
12
+ ## Skill Metadata
13
+ | Field | Value |
14
+ | ----- | ----- |
15
+ | Allowed tools | Read (read_file), Bash (terminal) |
16
+ | Auto-load | On demand when language keywords are detected |
17
+ | Trigger cues | Scala code discussions, framework guidance, or file extensions such as .scala. |
18
+ | Tier | 3 |
19
+
12
20
  ## What it does
13
21
 
14
22
  Provides Scala-specific expertise for TDD development, including ScalaTest framework, sbt build tool, and functional programming patterns.
15
23
 
16
24
  ## When to use
17
25
 
18
- - "Scala 테스트 작성", "ScalaTest 사용법", "함수형 프로그래밍"
26
+ - Engages when the conversation references Scala work, frameworks, or files like .scala.
27
+ - “Writing Scala tests”, “How to use ScalaTest”, “Functional programming”
19
28
  - Automatically invoked when working with Scala projects
20
- - Scala SPEC implementation (`/alfred:2-build`)
29
+ - Scala SPEC implementation (`/alfred:2-run`)
21
30
 
22
31
  ## How it works
23
32
 
@@ -52,17 +61,40 @@ Provides Scala-specific expertise for TDD development, including ScalaTest frame
52
61
  - Avoid null, use Option
53
62
 
54
63
  ## Examples
64
+ ```bash
65
+ sbt test && sbt scalafmtCheck
66
+ ```
67
+
68
+ ## Inputs
69
+ - Language-specific source directories (e.g. `src/`, `app/`).
70
+ - Language-specific build/test configuration files (e.g. `package.json`, `pyproject.toml`, `go.mod`).
71
+ - Relevant test suites and sample data.
72
+
73
+ ## Outputs
74
+ - Test/lint execution plan tailored to the selected language.
75
+ - List of key language idioms and review checkpoints.
55
76
 
56
- ### Example 1: TDD with ScalaTest
57
- User: "/alfred:2-build PARSER-001"
58
- Claude: (creates RED test with ScalaTest, GREEN implementation with immutability, REFACTOR)
77
+ ## Failure Modes
78
+ - When the language runtime or package manager is not installed.
79
+ - When the main language cannot be determined in a multilingual project.
59
80
 
60
- ### Example 2: Property testing
61
- User: "ScalaCheck 속성 테스트 작성"
62
- Claude: (creates property-based tests for edge cases)
81
+ ## Dependencies
82
+ - Access to the project file is required using the Read/Grep tool.
83
+ - When used with `Skill("moai-foundation-langs")`, it is easy to share cross-language conventions.
84
+
85
+ ## References
86
+ - Lightbend. "Scala Documentation." https://docs.scala-lang.org/ (accessed 2025-03-29).
87
+ - Scalameta. "scalafmt." https://scalameta.org/scalafmt/ (accessed 2025-03-29).
88
+
89
+ ## Changelog
90
+ - 2025-03-29: Input/output/failure response/reference information for each language has been specified.
63
91
 
64
92
  ## Works well with
65
93
 
66
94
  - alfred-trust-validation (coverage verification)
67
95
  - alfred-code-reviewer (Scala-specific review)
68
96
  - alfred-refactoring-coach (functional refactoring)
97
+
98
+ ## Best Practices
99
+ - Enable automatic validation by matching your linter with the language's official style guide.
100
+ - Fix test/build pipelines with reproducible commands in CI.
@@ -1,22 +1,32 @@
1
1
  ---
2
+
2
3
  name: moai-lang-shell
3
- description: Shell scripting best practices with bats, shellcheck, and POSIX compliance
4
+ description: Shell scripting best practices with bats, shellcheck, and POSIX compliance. Use when writing or reviewing Shell scripts code in project workflows.
4
5
  allowed-tools:
5
- - Read
6
- - Bash
6
+ - Read
7
+ - Bash
7
8
  ---
8
9
 
9
10
  # Shell Expert
10
11
 
12
+ ## Skill Metadata
13
+ | Field | Value |
14
+ | ----- | ----- |
15
+ | Allowed tools | Read (read_file), Bash (terminal) |
16
+ | Auto-load | On demand when language keywords are detected |
17
+ | Trigger cues | Shell code discussions, framework guidance, or file extensions such as .sh/.bash. |
18
+ | Tier | 3 |
19
+
11
20
  ## What it does
12
21
 
13
22
  Provides shell scripting expertise for TDD development, including bats testing framework, shellcheck linting, and POSIX compliance for portable scripts.
14
23
 
15
24
  ## When to use
16
25
 
17
- - "Shell 스크립트 작성", "bats 테스트", "POSIX 호환성"
26
+ - Engages when the conversation references Shell work, frameworks, or files like .sh/.bash.
27
+ - "Writing shell scripts", "bats testing", "POSIX compatibility"
18
28
  - Automatically invoked when working with shell script projects
19
- - Shell SPEC implementation (`/alfred:2-build`)
29
+ - Shell SPEC implementation (`/alfred:2-run`)
20
30
 
21
31
  ## How it works
22
32
 
@@ -51,17 +61,40 @@ Provides shell scripting expertise for TDD development, including bats testing f
51
61
  - Validate input arguments
52
62
 
53
63
  ## Examples
64
+ ```bash
65
+ bats tests && shellcheck scripts/*.sh
66
+ ```
67
+
68
+ ## Inputs
69
+ - Language-specific source directories (e.g. `src/`, `app/`).
70
+ - Language-specific build/test configuration files (e.g. `package.json`, `pyproject.toml`, `go.mod`).
71
+ - Relevant test suites and sample data.
72
+
73
+ ## Outputs
74
+ - Test/lint execution plan tailored to the selected language.
75
+ - List of key language idioms and review checkpoints.
54
76
 
55
- ### Example 1: TDD with bats
56
- User: "/alfred:2-build DEPLOY-001"
57
- Claude: (creates RED test with bats, GREEN implementation, REFACTOR with error handling)
77
+ ## Failure Modes
78
+ - When the language runtime or package manager is not installed.
79
+ - When the main language cannot be determined in a multilingual project.
58
80
 
59
- ### Example 2: Shellcheck validation
60
- User: "shellcheck 실행"
61
- Claude: (runs shellcheck *.sh and reports issues)
81
+ ## Dependencies
82
+ - Access to the project file is required using the Read/Grep tool.
83
+ - When used with `Skill("moai-foundation-langs")`, it is easy to share cross-language conventions.
84
+
85
+ ## References
86
+ - GNU. "Bash Reference Manual." https://www.gnu.org/software/bash/manual/bash.html (accessed 2025-03-29).
87
+ - koalaman. "ShellCheck." https://www.shellcheck.net/ (accessed 2025-03-29).
88
+
89
+ ## Changelog
90
+ - 2025-03-29: Input/output/failure response/reference information for each language has been specified.
62
91
 
63
92
  ## Works well with
64
93
 
65
94
  - alfred-trust-validation (coverage verification)
66
95
  - alfred-code-reviewer (Shell-specific review)
67
96
  - devops-expert (Deployment scripts)
97
+
98
+ ## Best Practices
99
+ - Enable automatic validation by matching your linter with the language's official style guide.
100
+ - Fix test/build pipelines with reproducible commands in CI.
@@ -1,23 +1,32 @@
1
1
  ---
2
+
2
3
  name: moai-lang-sql
3
- description: SQL best practices with testing frameworks, query optimization, and migration
4
- management
4
+ description: SQL best practices with testing frameworks, query optimization, and migration management. Use when writing or reviewing SQL code in project workflows.
5
5
  allowed-tools:
6
- - Read
7
- - Bash
6
+ - Read
7
+ - Bash
8
8
  ---
9
9
 
10
10
  # SQL Expert
11
11
 
12
+ ## Skill Metadata
13
+ | Field | Value |
14
+ | ----- | ----- |
15
+ | Allowed tools | Read (read_file), Bash (terminal) |
16
+ | Auto-load | On demand when language keywords are detected |
17
+ | Trigger cues | SQL code discussions, framework guidance, or file extensions such as .sql. |
18
+ | Tier | 3 |
19
+
12
20
  ## What it does
13
21
 
14
22
  Provides SQL-specific expertise for database development, including SQL testing strategies, query optimization techniques, and migration management best practices.
15
23
 
16
24
  ## When to use
17
25
 
18
- - "SQL 테스트 작성", "쿼리 최적화", "마이그레이션 관리"
26
+ - Engages when the conversation references SQL work, frameworks, or files like .sql.
27
+ - “Writing SQL tests”, “Query optimization”, “Migration management”
19
28
  - Automatically invoked when working with database projects
20
- - SQL SPEC implementation (`/alfred:2-build`)
29
+ - SQL SPEC implementation (`/alfred:2-run`)
21
30
 
22
31
  ## How it works
23
32
 
@@ -52,17 +61,40 @@ Provides SQL-specific expertise for database development, including SQL testing
52
61
  - Use parameterized queries
53
62
 
54
63
  ## Examples
64
+ ```bash
65
+ sqlfluff lint sql/ && sqlfluff fix sql/
66
+ ```
67
+
68
+ ## Inputs
69
+ - Language-specific source directories (e.g. `src/`, `app/`).
70
+ - Language-specific build/test configuration files (e.g. `package.json`, `pyproject.toml`, `go.mod`).
71
+ - Relevant test suites and sample data.
72
+
73
+ ## Outputs
74
+ - Test/lint execution plan tailored to the selected language.
75
+ - List of key language idioms and review checkpoints.
55
76
 
56
- ### Example 1: TDD with pgTAP
57
- User: "/alfred:2-build SCHEMA-001"
58
- Claude: (creates RED test with pgTAP, GREEN schema implementation, REFACTOR with indices)
77
+ ## Failure Modes
78
+ - When the language runtime or package manager is not installed.
79
+ - When the main language cannot be determined in a multilingual project.
59
80
 
60
- ### Example 2: Query optimization
61
- User: "쿼리 성능 분석"
62
- Claude: (runs EXPLAIN ANALYZE and suggests optimization)
81
+ ## Dependencies
82
+ - Access to the project file is required using the Read/Grep tool.
83
+ - When used with `Skill("moai-foundation-langs")`, it is easy to share cross-language conventions.
84
+
85
+ ## References
86
+ - PostgreSQL Global Development Group. "PostgreSQL Documentation." https://www.postgresql.org/docs/ (accessed 2025-03-29).
87
+ - SQLFluff. "SQLFluff Documentation." https://docs.sqlfluff.com/en/stable/ (accessed 2025-03-29).
88
+
89
+ ## Changelog
90
+ - 2025-03-29: Input/output/failure response/reference information for each language has been specified.
63
91
 
64
92
  ## Works well with
65
93
 
66
94
  - alfred-trust-validation (migration validation)
67
95
  - alfred-code-reviewer (SQL review)
68
96
  - database-expert (database design)
97
+
98
+ ## Best Practices
99
+ - Enable automatic validation by matching your linter with the language's official style guide.
100
+ - Fix test/build pipelines with reproducible commands in CI.
@@ -1,23 +1,32 @@
1
1
  ---
2
+
2
3
  name: moai-lang-swift
3
- description: Swift best practices with XCTest, SwiftLint, and iOS/macOS development
4
- patterns
4
+ description: Swift best practices with XCTest, SwiftLint, and iOS/macOS development patterns. Use when writing or reviewing Swift code in project workflows.
5
5
  allowed-tools:
6
- - Read
7
- - Bash
6
+ - Read
7
+ - Bash
8
8
  ---
9
9
 
10
10
  # Swift Expert
11
11
 
12
+ ## Skill Metadata
13
+ | Field | Value |
14
+ | ----- | ----- |
15
+ | Allowed tools | Read (read_file), Bash (terminal) |
16
+ | Auto-load | On demand when language keywords are detected |
17
+ | Trigger cues | Swift code discussions, framework guidance, or file extensions such as .swift. |
18
+ | Tier | 3 |
19
+
12
20
  ## What it does
13
21
 
14
22
  Provides Swift-specific expertise for TDD development, including XCTest framework, SwiftLint linting, Swift Package Manager, and iOS/macOS platform patterns.
15
23
 
16
24
  ## When to use
17
25
 
18
- - "Swift 테스트 작성", "XCTest 사용법", "iOS 패턴"
26
+ - Engages when the conversation references Swift work, frameworks, or files like .swift.
27
+ - “Writing Swift tests”, “How to use XCTest”, “iOS patterns”
19
28
  - Automatically invoked when working with Swift/iOS projects
20
- - Swift SPEC implementation (`/alfred:2-build`)
29
+ - Swift SPEC implementation (`/alfred:2-run`)
21
30
 
22
31
  ## How it works
23
32
 
@@ -51,17 +60,40 @@ Provides Swift-specific expertise for TDD development, including XCTest framewor
51
60
  - **MVVM/MVC**: Architecture patterns
52
61
 
53
62
  ## Examples
63
+ ```bash
64
+ swift test && swift-format --lint --recursive Sources
65
+ ```
66
+
67
+ ## Inputs
68
+ - Language-specific source directories (e.g. `src/`, `app/`).
69
+ - Language-specific build/test configuration files (e.g. `package.json`, `pyproject.toml`, `go.mod`).
70
+ - Relevant test suites and sample data.
71
+
72
+ ## Outputs
73
+ - Test/lint execution plan tailored to the selected language.
74
+ - List of key language idioms and review checkpoints.
54
75
 
55
- ### Example 1: TDD with XCTest
56
- User: "/alfred:2-build AUTH-001"
57
- Claude: (creates RED test with XCTest, GREEN implementation with optionals, REFACTOR)
76
+ ## Failure Modes
77
+ - When the language runtime or package manager is not installed.
78
+ - When the main language cannot be determined in a multilingual project.
58
79
 
59
- ### Example 2: SwiftLint check
60
- User: "SwiftLint 실행"
61
- Claude: (runs swiftlint and reports style violations)
80
+ ## Dependencies
81
+ - Access to the project file is required using the Read/Grep tool.
82
+ - When used with `Skill("moai-foundation-langs")`, it is easy to share cross-language conventions.
83
+
84
+ ## References
85
+ - Apple. "Swift Programming Language Guide." https://docs.swift.org/swift-book/ (accessed 2025-03-29).
86
+ - Apple. "Swift Package Manager." https://developer.apple.com/documentation/swift_packages (accessed 2025-03-29).
87
+
88
+ ## Changelog
89
+ - 2025-03-29: Input/output/failure response/reference information for each language has been specified.
62
90
 
63
91
  ## Works well with
64
92
 
65
93
  - alfred-trust-validation (coverage verification)
66
94
  - alfred-code-reviewer (Swift-specific review)
67
95
  - mobile-app-expert (iOS app development)
96
+
97
+ ## Best Practices
98
+ - Enable automatic validation by matching your linter with the language's official style guide.
99
+ - Fix test/build pipelines with reproducible commands in CI.
@@ -1,23 +1,32 @@
1
1
  ---
2
+
2
3
  name: moai-lang-typescript
3
- description: TypeScript best practices with Vitest, Biome, strict typing, and npm/pnpm
4
- package management
4
+ description: TypeScript best practices with Vitest, Biome, strict typing, and npm/pnpm package management. Use when writing or reviewing TypeScript code in project workflows.
5
5
  allowed-tools:
6
- - Read
7
- - Bash
6
+ - Read
7
+ - Bash
8
8
  ---
9
9
 
10
10
  # TypeScript Expert
11
11
 
12
+ ## Skill Metadata
13
+ | Field | Value |
14
+ | ----- | ----- |
15
+ | Allowed tools | Read (read_file), Bash (terminal) |
16
+ | Auto-load | On demand when language keywords are detected |
17
+ | Trigger cues | TypeScript code discussions, framework guidance, or file extensions such as .ts/.tsx. |
18
+ | Tier | 3 |
19
+
12
20
  ## What it does
13
21
 
14
22
  Provides TypeScript-specific expertise for TDD development, including Vitest testing, Biome linting/formatting, strict type checking, and modern npm/pnpm package management.
15
23
 
16
24
  ## When to use
17
25
 
18
- - "TypeScript 테스트 작성", "Vitest 사용법", "타입 안전성"
26
+ - Engages when the conversation references TypeScript work, frameworks, or files like .ts/.tsx.
27
+ - "Writing TypeScript tests", "How to use Vitest", "Type safety"
19
28
  - Automatically invoked when working with TypeScript projects
20
- - TypeScript SPEC implementation (`/alfred:2-build`)
29
+ - TypeScript SPEC implementation (`/alfred:2-run`)
21
30
 
22
31
  ## How it works
23
32
 
@@ -48,17 +57,40 @@ Provides TypeScript-specific expertise for TDD development, including Vitest tes
48
57
  - Avoid `any`, prefer `unknown` or proper types
49
58
 
50
59
  ## Examples
60
+ ```bash
61
+ npm run lint && npm test
62
+ ```
63
+
64
+ ## Inputs
65
+ - Language-specific source directories (e.g. `src/`, `app/`).
66
+ - Language-specific build/test configuration files (e.g. `package.json`, `pyproject.toml`, `go.mod`).
67
+ - Relevant test suites and sample data.
68
+
69
+ ## Outputs
70
+ - Test/lint execution plan tailored to the selected language.
71
+ - List of key language idioms and review checkpoints.
51
72
 
52
- ### Example 1: TDD with Vitest
53
- User: "/alfred:2-build USER-001"
54
- Claude: (creates RED test with Vitest, GREEN implementation with strict types, REFACTOR)
73
+ ## Failure Modes
74
+ - When the language runtime or package manager is not installed.
75
+ - When the main language cannot be determined in a multilingual project.
55
76
 
56
- ### Example 2: Type checking
57
- User: "TypeScript 타입 오류 확인"
58
- Claude: (runs tsc --noEmit and reports type errors)
77
+ ## Dependencies
78
+ - Access to the project file is required using the Read/Grep tool.
79
+ - When used with `Skill("moai-foundation-langs")`, it is easy to share cross-language conventions.
80
+
81
+ ## References
82
+ - Microsoft. "TypeScript Handbook." https://www.typescriptlang.org/docs/ (accessed 2025-03-29).
83
+ - OpenJS Foundation. "ESLint User Guide." https://eslint.org/docs/latest/ (accessed 2025-03-29).
84
+
85
+ ## Changelog
86
+ - 2025-03-29: Input/output/failure response/reference information for each language has been specified.
59
87
 
60
88
  ## Works well with
61
89
 
62
90
  - alfred-trust-validation (coverage verification)
63
91
  - alfred-code-reviewer (TypeScript-specific review)
64
92
  - alfred-refactoring-coach (type-safe refactoring)
93
+
94
+ ## Best Practices
95
+ - Enable automatic validation by matching your linter with the language's official style guide.
96
+ - Fix test/build pipelines with reproducible commands in CI.