codexspec 0.5.2__tar.gz → 0.5.4__tar.gz

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.
Files changed (61) hide show
  1. {codexspec-0.5.2 → codexspec-0.5.4}/PKG-INFO +8 -1
  2. {codexspec-0.5.2 → codexspec-0.5.4}/README.md +7 -0
  3. {codexspec-0.5.2 → codexspec-0.5.4}/pyproject.toml +1 -1
  4. {codexspec-0.5.2 → codexspec-0.5.4}/src/codexspec/__init__.py +1 -0
  5. {codexspec-0.5.2 → codexspec-0.5.4}/src/codexspec/commands/installer.py +17 -2
  6. {codexspec-0.5.2 → codexspec-0.5.4}/src/codexspec/translator.py +2 -0
  7. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/pr.md +73 -4
  8. codexspec-0.5.4/templates/commands/review-python-code.md +225 -0
  9. codexspec-0.5.4/templates/commands/review-react-code.md +233 -0
  10. {codexspec-0.5.2 → codexspec-0.5.4}/templates/translations/de.json +10 -0
  11. {codexspec-0.5.2 → codexspec-0.5.4}/templates/translations/en.json +10 -0
  12. {codexspec-0.5.2 → codexspec-0.5.4}/templates/translations/es.json +10 -0
  13. {codexspec-0.5.2 → codexspec-0.5.4}/templates/translations/fr.json +10 -0
  14. {codexspec-0.5.2 → codexspec-0.5.4}/templates/translations/ja.json +10 -0
  15. {codexspec-0.5.2 → codexspec-0.5.4}/templates/translations/ko.json +10 -0
  16. {codexspec-0.5.2 → codexspec-0.5.4}/templates/translations/pt-BR.json +10 -0
  17. {codexspec-0.5.2 → codexspec-0.5.4}/templates/translations/zh-CN.json +10 -0
  18. {codexspec-0.5.2 → codexspec-0.5.4}/.gitignore +0 -0
  19. {codexspec-0.5.2 → codexspec-0.5.4}/LICENSE +0 -0
  20. {codexspec-0.5.2 → codexspec-0.5.4}/codexspec-icon.svg +0 -0
  21. {codexspec-0.5.2 → codexspec-0.5.4}/codexspec-logo-dark.svg +0 -0
  22. {codexspec-0.5.2 → codexspec-0.5.4}/codexspec-logo-light.svg +0 -0
  23. {codexspec-0.5.2 → codexspec-0.5.4}/scripts/bash/check-i18n-completeness.sh +0 -0
  24. {codexspec-0.5.2 → codexspec-0.5.4}/scripts/bash/check-i18n-structure.sh +0 -0
  25. {codexspec-0.5.2 → codexspec-0.5.4}/scripts/bash/check-prerequisites.sh +0 -0
  26. {codexspec-0.5.2 → codexspec-0.5.4}/scripts/bash/common.sh +0 -0
  27. {codexspec-0.5.2 → codexspec-0.5.4}/scripts/bash/create-new-feature.sh +0 -0
  28. {codexspec-0.5.2 → codexspec-0.5.4}/scripts/powershell/check-prerequisites.ps1 +0 -0
  29. {codexspec-0.5.2 → codexspec-0.5.4}/scripts/powershell/common.ps1 +0 -0
  30. {codexspec-0.5.2 → codexspec-0.5.4}/scripts/powershell/create-new-feature.ps1 +0 -0
  31. {codexspec-0.5.2 → codexspec-0.5.4}/scripts/python/README.md +0 -0
  32. {codexspec-0.5.2 → codexspec-0.5.4}/scripts/python/claude_ctl.py +0 -0
  33. {codexspec-0.5.2 → codexspec-0.5.4}/scripts/python/claude_monitor.py +0 -0
  34. {codexspec-0.5.2 → codexspec-0.5.4}/scripts/python/notify_telegram.py +0 -0
  35. {codexspec-0.5.2 → codexspec-0.5.4}/src/codexspec/commands/__init__.py +0 -0
  36. {codexspec-0.5.2 → codexspec-0.5.4}/src/codexspec/i18n.py +0 -0
  37. {codexspec-0.5.2 → codexspec-0.5.4}/src/codexspec/idea.md +0 -0
  38. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/analyze.md +0 -0
  39. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/check-i18n-semantics.md +0 -0
  40. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/checklist.md +0 -0
  41. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/clarify.md +0 -0
  42. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/commit-staged.md +0 -0
  43. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/constitution.md +0 -0
  44. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/generate-spec.md +0 -0
  45. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/implement-tasks.md +0 -0
  46. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/plan-to-tasks.md +0 -0
  47. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/review-plan.md +0 -0
  48. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/review-spec.md +0 -0
  49. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/review-tasks.md +0 -0
  50. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/spec-to-plan.md +0 -0
  51. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/specify.md +0 -0
  52. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/tasks-to-issues.md +0 -0
  53. {codexspec-0.5.2 → codexspec-0.5.4}/templates/commands/translate-docs.md +0 -0
  54. {codexspec-0.5.2 → codexspec-0.5.4}/templates/docs/checklist-template.md +0 -0
  55. {codexspec-0.5.2 → codexspec-0.5.4}/templates/docs/constitution-template.md +0 -0
  56. {codexspec-0.5.2 → codexspec-0.5.4}/templates/docs/plan-template-detailed.md +0 -0
  57. {codexspec-0.5.2 → codexspec-0.5.4}/templates/docs/plan-template-simple.md +0 -0
  58. {codexspec-0.5.2 → codexspec-0.5.4}/templates/docs/spec-template-detailed.md +0 -0
  59. {codexspec-0.5.2 → codexspec-0.5.4}/templates/docs/spec-template-simple.md +0 -0
  60. {codexspec-0.5.2 → codexspec-0.5.4}/templates/docs/tasks-template-detailed.md +0 -0
  61. {codexspec-0.5.2 → codexspec-0.5.4}/templates/docs/tasks-template-simple.md +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codexspec
3
- Version: 0.5.2
3
+ Version: 0.5.4
4
4
  Summary: CodexSpec - A Spec-Driven Development (SDD) toolkit for Claude Code
5
5
  Project-URL: Homepage, https://github.com/Zts0hg/codexspec
6
6
  Project-URL: Repository, https://github.com/Zts0hg/codexspec
@@ -485,6 +485,13 @@ After initialization, these slash commands are available in Claude Code:
485
485
  | `/codexspec:commit-staged` | Generate commit message from staged changes with session context awareness |
486
486
  | `/codexspec:pr` | Generate structured PR (GitHub) or MR (GitLab) descriptions with platform auto-detection |
487
487
 
488
+ #### Code Review Commands
489
+
490
+ | Command | Description |
491
+ |---------|-------------|
492
+ | `/codexspec:review-python-code` | Review Python code for PEP 8 compliance, type safety, engineering robustness, and constitution alignment |
493
+ | `/codexspec:review-react-code` | Review React/TypeScript code for component architecture, hooks compliance, state management, performance, and constitution alignment |
494
+
488
495
  ## Workflow Overview
489
496
 
490
497
  ```
@@ -440,6 +440,13 @@ After initialization, these slash commands are available in Claude Code:
440
440
  | `/codexspec:commit-staged` | Generate commit message from staged changes with session context awareness |
441
441
  | `/codexspec:pr` | Generate structured PR (GitHub) or MR (GitLab) descriptions with platform auto-detection |
442
442
 
443
+ #### Code Review Commands
444
+
445
+ | Command | Description |
446
+ |---------|-------------|
447
+ | `/codexspec:review-python-code` | Review Python code for PEP 8 compliance, type safety, engineering robustness, and constitution alignment |
448
+ | `/codexspec:review-react-code` | Review React/TypeScript code for component architecture, hooks compliance, state management, performance, and constitution alignment |
449
+
443
450
  ## Workflow Overview
444
451
 
445
452
  ```
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "codexspec"
3
- version = "0.5.2"
3
+ version = "0.5.4"
4
4
  description = "CodexSpec - A Spec-Driven Development (SDD) toolkit for Claude Code"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -348,6 +348,7 @@ def list_commands() -> None:
348
348
  "core": [],
349
349
  "enhanced": [],
350
350
  "git": [],
351
+ "review": [],
351
352
  }
352
353
  for cmd in metadata:
353
354
  cat = cmd["category"]
@@ -22,7 +22,7 @@ class CommandMetadata(TypedDict):
22
22
  name: Command name without prefix (e.g., "constitution")
23
23
  display_name: Full display name (e.g., "/codexspec:constitution")
24
24
  description: Command description for list-commands output
25
- category: Command category ("core", "enhanced", or "git")
25
+ category: Command category ("core", "enhanced", "git", or "review")
26
26
  file_name: Template file name (e.g., "constitution.md")
27
27
  """
28
28
 
@@ -42,7 +42,7 @@ def get_commands_metadata() -> list[CommandMetadata]:
42
42
 
43
43
  Returns:
44
44
  List of CommandMetadata dictionaries sorted by category priority:
45
- core (9) -> enhanced (4) -> git (3)
45
+ core (9) -> enhanced (4) -> git (2) -> review (2)
46
46
  """
47
47
  return [
48
48
  # Core Commands (9)
@@ -153,6 +153,21 @@ def get_commands_metadata() -> list[CommandMetadata]:
153
153
  "category": "git",
154
154
  "file_name": "pr.md",
155
155
  },
156
+ # Code Review Commands (2)
157
+ {
158
+ "name": "review-python-code",
159
+ "display_name": "/codexspec:review-python-code",
160
+ "description": "审查 Python 代码的 PEP 8 合规性、类型安全、工程健壮性和宪法一致性",
161
+ "category": "review",
162
+ "file_name": "review-python-code.md",
163
+ },
164
+ {
165
+ "name": "review-react-code",
166
+ "display_name": "/codexspec:review-react-code",
167
+ "description": "审查 React/TypeScript 代码的组件架构、Hooks 规范、状态管理、性能表现和宪法一致性",
168
+ "category": "review",
169
+ "file_name": "review-react-code.md",
170
+ },
156
171
  ]
157
172
 
158
173
 
@@ -55,6 +55,7 @@ _CLI_MESSAGES_EN = {
55
55
  "category_core": "Core Commands ({count})",
56
56
  "category_enhanced": "Enhanced Commands ({count})",
57
57
  "category_git": "Git Workflow ({count})",
58
+ "category_review": "Code Review ({count})",
58
59
  # Success panel
59
60
  "success_title": "Success",
60
61
  "success_message": "CodexSpec project initialized successfully!",
@@ -92,6 +93,7 @@ _CLI_MESSAGES_EN = {
92
93
  "category_core": "Core Commands ({count})",
93
94
  "category_enhanced": "Enhanced Commands ({count})",
94
95
  "category_git": "Git Workflow ({count})",
96
+ "category_review": "Code Review ({count})",
95
97
  "no_project": "No CodexSpec project found in current directory.",
96
98
  "run_init": "Run codexspec init to create a new project.",
97
99
  "usage_hint": "Use /codexspec:<command> to invoke these commands",
@@ -341,9 +341,65 @@ Example: `--sections summary,changes,testing`
341
341
  8. **Links**: Use `[text](url)` format for references
342
342
  9. **Task Lists**: Use `- [ ]` and `- [x]` for verification checklists
343
343
 
344
- ### GitHub PR Format
344
+ ### Code Block Nesting Rules (CRITICAL)
345
+
346
+ When the PR content itself contains code blocks (e.g., showing command examples, code snippets, or diff output), you **MUST** handle nesting correctly to prevent unclosed code blocks:
347
+
348
+ **Rule 1: Use more backticks for outer blocks**
349
+ When nesting code blocks, the outer block must use more backticks than the inner block:
350
+
351
+ - Outer: 4+ backticks (````)
352
+ - Inner: 3 backticks (```)
345
353
 
354
+ **Rule 2: Never mix same-level backticks**
355
+ Using 3 backticks for both outer and inner blocks will cause premature closing and broken formatting.
356
+
357
+ **Example - Correct Nesting:**
358
+
359
+ ````markdown
360
+ ### How to Verify
361
+
362
+ Run the following command:
363
+ ```bash
364
+ pytest tests/auth/
365
+ ```
366
+
367
+ Expected output:
368
+ ```
369
+ === test session starts ===
370
+ collected 5 items
371
+ ```
372
+ ````
373
+
374
+ **Example - Incorrect (will break):**
375
+
376
+ ```markdown
377
+ ### How to Verify
378
+ ```bash
379
+ pytest tests/auth/
380
+ ```
381
+
382
+ ``` ← This closes the first block, leaving rest orphaned
383
+ ```
384
+
385
+ **Rule 3: For terminal output mode**
386
+ When outputting to terminal, wrap the entire PR in a code block with 4+ backticks:
387
+
388
+ ````text
346
389
  ```markdown
390
+ [PR content with internal ``` code blocks ```]
391
+ ```
392
+ ````
393
+
394
+ **Rule 4: Backtick escaping in content**
395
+ If you need to display literal backticks (`` ` ``) in PR content without starting a code block:
396
+
397
+ - For single backtick: Use inline code syntax `` ` `` (wrap in single backticks)
398
+ - For multiple backticks: Use HTML entity `&#96;` or wrap in more backticks than displayed
399
+
400
+ ### GitHub PR Format
401
+
402
+ ````markdown
347
403
  ## type(scope): description
348
404
 
349
405
  > Brief summary of what this PR accomplishes (1-2 sentences)
@@ -397,11 +453,11 @@ Example: `--sections summary,changes,testing`
397
453
  ---
398
454
  *Related: #[issue-number]* (if applicable)
399
455
 
400
- ```
456
+ ````
401
457
 
402
458
  ### GitLab MR Format
403
459
 
404
- ```markdown
460
+ ````markdown
405
461
  ## type(scope): description
406
462
 
407
463
  > Brief summary of what this MR accomplishes (1-2 sentences)
@@ -448,37 +504,43 @@ Example: `--sections summary,changes,testing`
448
504
 
449
505
  /label ~"[label]" @reviewer (if applicable)
450
506
 
451
- ```
507
+ ````
452
508
 
453
509
  ### Section Content Guidelines
454
510
 
455
511
  #### Summary Section
512
+
456
513
  - Keep to 2-3 sentences maximum
457
514
  - Answer "What" and "Why" (not "How")
458
515
  - Use plain language accessible to all reviewers
459
516
 
460
517
  #### Changes Section
518
+
461
519
  - Use tables for file changes (improves readability)
462
520
  - Group related changes logically
463
521
  - Include change type: Added, Modified, Deleted, Renamed
464
522
 
465
523
  #### Testing Section
524
+
466
525
  - Use task lists for test coverage status
467
526
  - Include exact commands to run tests
468
527
  - Note any special test requirements
469
528
 
470
529
  #### How to Verify Section
530
+
471
531
  - Use numbered list for step-by-step verification
472
532
  - Include specific commands to run
473
533
  - Be precise and actionable (e.g., "Run `pytest tests/auth/`")
474
534
  - Include expected outcomes where helpful
475
535
 
476
536
  #### Checklist Section
537
+
477
538
  - Use GitHub/GitLab task list syntax `- [ ]`
478
539
  - Include project-specific checklist items
479
540
  - Focus on author self-confirmation before merge
480
541
 
481
542
  #### Notes Section
543
+
482
544
  - Highlight breaking changes with `**Breaking Change:**` prefix
483
545
  - Include migration instructions if needed
484
546
  - Link to related issues/PRs
@@ -497,26 +559,32 @@ Example: `--sections summary,changes,testing`
497
559
  ## Edge Cases
498
560
 
499
561
  ### EC-001: Branch Up to Date with Target
562
+
500
563
  **Scenario**: No commits ahead of target branch
501
564
  **Response**: "No changes detected between current branch and [target]. Nothing to generate."
502
565
 
503
566
  ### EC-002: Invalid Target Branch
567
+
504
568
  **Scenario**: Target branch doesn't exist
505
569
  **Response**: "Target branch '[branch]' not found. Please verify the branch name."
506
570
 
507
571
  ### EC-003: Not a Git Repository
572
+
508
573
  **Scenario**: Command run outside git repo
509
574
  **Response**: "Not a git repository. Please run this command from within a git repository."
510
575
 
511
576
  ### EC-004b: Invalid Spec Path
577
+
512
578
  **Scenario**: `--spec` path doesn't exist
513
579
  **Response**: "Spec '[path]' not found. Available specs: [list specs in .codexspec/specs/]"
514
580
 
515
581
  ### EC-005: Detached HEAD State
582
+
516
583
  **Scenario**: Repository in detached HEAD
517
584
  **Response**: "Cannot determine current branch. Please checkout a branch before generating PR description."
518
585
 
519
586
  ### EC-006: No Remote Configured
587
+
520
588
  **Scenario**: No git remote configured
521
589
  **Handling**: Use GitHub terminology with warning: "No remote configured. Defaulting to GitHub terminology."
522
590
 
@@ -546,6 +614,7 @@ Example: `--sections summary,changes,testing`
546
614
  This ensures users see the raw markdown source code, not the rendered output. Users can then copy the content inside the code block and paste it directly into GitHub/GitLab.
547
615
 
548
616
  ### File Output (`--output`)
617
+
549
618
  When saving to a file, output the raw markdown content directly (without code block wrapper). The file will contain the actual PR description ready for use.
550
619
 
551
620
  ## Important Notes
@@ -0,0 +1,225 @@
1
+ ---
2
+ description: Review Python code for PEP 8 compliance, type safety, engineering robustness, and constitution alignment
3
+ argument-hint: |
4
+ Path to Python file or directory to review
5
+
6
+ Examples:
7
+ - `src/codexspec/` - Review entire package
8
+ - `src/codexspec/__init__.py` - Review single file
9
+ - `src/ tests/` - Review multiple paths
10
+ allowed-tools: Read, Grep, Glob, Bash(ruff check:*), Bash(mypy:*), Bash(python -m py_compile:*)
11
+ ---
12
+
13
+ # Python Code Reviewer
14
+
15
+ ## Language Preference
16
+
17
+ **IMPORTANT**: Before proceeding, read the project's language configuration from `.codexspec/config.yml`.
18
+
19
+ - If `language.output` is set to a language other than "en", respond and generate all content in that language
20
+ - If not configured or set to "en", use English as default
21
+ - Technical terms (e.g., API, Type Hints, PEP 8) may remain in English when appropriate
22
+ - All user-facing messages, questions, and generated documents should use the configured language
23
+
24
+ ## User Input
25
+
26
+ ```text
27
+ $ARGUMENTS
28
+ ```
29
+
30
+ You **MUST** consider the user input before proceeding (if not empty).
31
+
32
+ ## Role
33
+
34
+ You are the **Chief Architect** for this Python project. Your responsibility is to conduct rigorous code reviews that identify logic defects, performance bottlenecks, type safety issues, and violations of engineering best practices.
35
+
36
+ ## Instructions
37
+
38
+ Perform a comprehensive code review of Python files at the specified path. This command combines static analysis tools with architectural review to provide actionable feedback.
39
+
40
+ ### File Resolution
41
+
42
+ - **With argument**: Treat `$ARGUMENTS` as the path(s) to review (supports space-separated multiple paths)
43
+ - **Without argument**: Review the main source directory (default: `src/`)
44
+
45
+ ### Execution Steps
46
+
47
+ 1. **Initialize Review Context**
48
+ - [ ] Parse target paths from user input
49
+ - [ ] Verify paths exist and contain Python files
50
+ - [ ] Load `.codexspec/memory/constitution.md` for project quality standards (if exists)
51
+
52
+ 2. **Run Static Analysis**
53
+ - [ ] Execute `ruff check {paths}` for linting results
54
+ - [ ] Execute `mypy {paths}` for type checking results
55
+ - [ ] Capture and categorize all tool outputs
56
+
57
+ 3. **Load and Analyze Code**
58
+ - [ ] Read all Python files in target paths
59
+ - [ ] Identify module structure and dependencies
60
+ - [ ] Map code patterns against review dimensions
61
+
62
+ 4. **Review Dimension 1: Pythonic & KISS Principle**
63
+ - [ ] Detect over-engineering (unnecessary classes when functions suffice)
64
+ - [ ] Verify preference for built-in functions and standard library (`pathlib`, `itertools`, `collections`)
65
+ - [ ] Check adherence to "Simple is better than complex"
66
+ - [ ] Validate docstring usage (module/function docstrings vs. inline comments)
67
+
68
+ 5. **Review Dimension 2: Type Safety & Explicitness**
69
+ - [ ] Check type annotation completeness (function parameters, return types)
70
+ - [ ] Identify overly broad exception handling (`except Exception:`)
71
+ - [ ] Verify exception context preservation (`raise ... from err`)
72
+ - [ ] Assess dependency injection patterns for testability
73
+
74
+ 6. **Review Dimension 3: Engineering Robustness**
75
+ - [ ] Verify resource management (`with` context managers for files/connections)
76
+ - [ ] Check async/await usage patterns (blocking event loop risks)
77
+ - [ ] Validate logging practices (`logging` module vs. `print` statements)
78
+ - [ ] Review log level appropriateness
79
+
80
+ 7. **Constitution Alignment** (if constitution exists)
81
+ - [ ] Cross-reference findings against constitution MUST principles
82
+ - [ ] Identify violations of project-specific quality standards
83
+ - [ ] Flag deviations from established coding conventions
84
+
85
+ 8. **Assign Severity Levels**
86
+ - [ ] **CRITICAL**: Constitution MUST violations, logic bugs, security vulnerabilities
87
+ - [ ] **HIGH**: Type safety gaps, ruff/mypy errors, resource leaks
88
+ - [ ] **MEDIUM**: Design pattern improvements, refactoring long functions, missing type annotations
89
+ - [ ] **LOW**: Readability improvements, Pythonic syntax sugar
90
+
91
+ 9. **Generate Report**
92
+ - [ ] Compile all findings into structured report
93
+ - [ ] Include specific code locations and refactoring suggestions
94
+ - [ ] Calculate quality scores per dimension
95
+
96
+ ### Report Template
97
+
98
+ ````markdown
99
+ # Python Code Review Report
100
+
101
+ ## Meta Information
102
+ - **Target**: {paths}
103
+ - **Review Date**: {date}
104
+ - **Reviewer Role**: Chief Architect
105
+
106
+ ## Summary
107
+ - **Overall Status**: ✅ Pass / ⚠️ Needs Work / ❌ Fail
108
+ - **Quality Score**: X/100
109
+ - **One-line Assessment**: {concise quality summary}
110
+
111
+ ## Static Analysis Results
112
+
113
+ | Tool | Status | Issues | Details |
114
+ |------|--------|--------|---------|
115
+ | ruff | ✅/⚠️/❌ | {count} | {summary or "No issues found"} |
116
+ | mypy | ✅/⚠️/❌ | {count} | {summary or "No issues found"} |
117
+
118
+ ## Dimension Analysis
119
+
120
+ | Dimension | Score | Status | Key Findings |
121
+ |-----------|-------|--------|--------------|
122
+ | Pythonic & KISS | X/100 | ✅/⚠️/❌ | {summary} |
123
+ | Type Safety & Explicitness | X/100 | ✅/⚠️/❌ | {summary} |
124
+ | Engineering Robustness | X/100 | ✅/⚠️/❌ | {summary} |
125
+
126
+ ## Constitution Alignment
127
+
128
+ > [!NOTE]
129
+ > If no constitution exists, state "No project constitution found - using general Python best practices."
130
+
131
+ | Principle | Status | Notes |
132
+ |-----------|--------|-------|
133
+ | {principle name} | ✅/⚠️/❌ | {alignment assessment} |
134
+
135
+ ## Detailed Findings
136
+
137
+ ### Critical Issues (CRITICAL)
138
+ *Must fix before merge - Constitution violations, logic bugs, security vulnerabilities*
139
+
140
+ - [ ] **[CODE-001]**: `{filename}:{line_number}` - {issue description}
141
+ - **Impact**: {why this matters}
142
+ - **Suggestion**:
143
+ ```python
144
+ {refactored code snippet}
145
+ ```
146
+
147
+ ### Warnings (HIGH)
148
+ *Should fix - Type safety, tool errors, resource management*
149
+
150
+ - [ ] **[CODE-002]**: `{filename}:{line_number}` - {issue description}
151
+ - **Impact**: {potential risk}
152
+ - **Suggestion**:
153
+ ```python
154
+ {refactored code snippet}
155
+ ```
156
+
157
+ ### Warnings (MEDIUM)
158
+ *Consider fixing - Design improvements, refactoring opportunities*
159
+
160
+ - [ ] **[CODE-003]**: `{filename}:{line_number}` - {issue description}
161
+ - **Suggestion**: {improvement recommendation}
162
+
163
+ ### Suggestions (LOW)
164
+ *Nice to have - Readability, Pythonic enhancements*
165
+
166
+ - [ ] **[CODE-004]**: `{filename}:{line_number}` - {enhancement description}
167
+ - **Benefit**: {value of this change}
168
+
169
+ ## Strengths
170
+ - {highlight 1-2 positive findings in the codebase}
171
+
172
+ ## Recommendations
173
+
174
+ ### Priority 1: Must Fix (Before Merge)
175
+ 1. {most critical action}
176
+ 2. {second most critical}
177
+
178
+ ### Priority 2: Should Fix (This Sprint)
179
+ 1. {important improvement}
180
+ 2. {another improvement}
181
+
182
+ ### Priority 3: Nice to Have (Future)
183
+ 1. {optional enhancement}
184
+
185
+ ## Scoring Breakdown
186
+
187
+ | Category | Weight | Score | Weighted |
188
+ |----------|--------|-------|----------|
189
+ | Pythonic & KISS | 30% | X/100 | X |
190
+ | Type Safety | 30% | X/100 | X |
191
+ | Engineering Robustness | 25% | X/100 | X |
192
+ | Constitution Alignment | 15% | X/100 | X |
193
+ | **Total** | **100%** | | **X/100** |
194
+
195
+ ## Available Follow-up Commands
196
+
197
+ Based on the review result, consider:
198
+
199
+ ### If Issues Found
200
+ - **Direct Fix**: Describe the changes you want (e.g., "Fix CODE-001 and CODE-002") and I will apply the fixes
201
+ - **Re-run Review**: `/codexspec:review-python-code {paths}` - verify fixes after changes
202
+ - **Proceed Anyway**: If issues are acceptable for current iteration
203
+
204
+ ### Next Steps Based on Review Result
205
+ - **Pass**: Code is ready for commit/merge
206
+ - **Needs Work**: Fix HIGH/CRITICAL issues, then re-run review
207
+ - **Fail**: Significant rework required - consider `/codexspec:clarify` for design discussion
208
+ ````
209
+
210
+ ### Quality Criteria
211
+
212
+ Before completing the review, verify:
213
+
214
+ - [ ] Static analysis tools (ruff, mypy) have been executed
215
+ - [ ] All three review dimensions have been assessed
216
+ - [ ] Constitution alignment has been checked (if constitution exists)
217
+ - [ ] Issues are categorized by severity (CRITICAL/HIGH/MEDIUM/LOW)
218
+ - [ ] Each CRITICAL/HIGH issue has specific code refactoring suggestions
219
+ - [ ] Score reflects actual code quality accurately
220
+ - [ ] Strengths section highlights positive aspects
221
+ - [ ] Recommendations are prioritized and actionable
222
+
223
+ ### Output
224
+
225
+ Display the review report in the conversation. Optionally save to `.codexspec/reviews/python-code-review-{timestamp}.md` if requested.
@@ -0,0 +1,233 @@
1
+ ---
2
+ description: Review React/TypeScript code for component architecture, hooks compliance, state management, performance, and constitution alignment
3
+ argument-hint: |
4
+ Path to React/TypeScript file or directory to review
5
+
6
+ Examples:
7
+ - `src/components/` - Review entire components directory
8
+ - `src/components/Button.tsx` - Review single file
9
+ - `src/hooks/ src/components/` - Review multiple paths
10
+ allowed-tools: Read, Grep, Glob, Bash(npm run lint:*), Bash(npx eslint:*), Bash(npx tsc --noEmit:*)
11
+ ---
12
+
13
+ # React Code Reviewer
14
+
15
+ ## Language Preference
16
+
17
+ **IMPORTANT**: Before proceeding, read the project's language configuration from `.codexspec/config.yml`.
18
+
19
+ - If `language.output` is set to a language other than "en", respond and generate all content in that language
20
+ - If not configured or set to "en", use English as default
21
+ - Technical terms (e.g., JSX, Hooks, Props, State) may remain in English when appropriate
22
+ - All user-facing messages, questions, and generated documents should use the configured language
23
+
24
+ ## User Input
25
+
26
+ ```text
27
+ $ARGUMENTS
28
+ ```
29
+
30
+ You **MUST** consider the user input before proceeding (if not empty).
31
+
32
+ ## Role
33
+
34
+ You are the **Frontend Chief Architect** for this React/TypeScript project. Your responsibility is to conduct rigorous code reviews that identify component architecture issues, hooks violations, state management problems, performance bottlenecks, and violations of React best practices.
35
+
36
+ ## Instructions
37
+
38
+ Perform a comprehensive code review of React/TypeScript files at the specified path. This command combines static analysis tools with architectural review to provide actionable feedback.
39
+
40
+ ### File Resolution
41
+
42
+ - **With argument**: Treat `$ARGUMENTS` as the path(s) to review (supports space-separated multiple paths)
43
+ - **Without argument**: Review the main source directory (default: `src/`)
44
+
45
+ ### Execution Steps
46
+
47
+ 1. **Initialize Review Context**
48
+ - [ ] Parse target paths from user input
49
+ - [ ] Verify paths exist and contain React/TypeScript files (`.tsx`, `.ts`, `.jsx`, `.js`)
50
+ - [ ] Load `.codexspec/memory/constitution.md` for project quality standards (if exists)
51
+
52
+ 2. **Run Static Analysis**
53
+ - [ ] Execute `npx eslint {paths}` for linting results (if eslint config exists)
54
+ - [ ] Execute `npx tsc --noEmit` for TypeScript type checking results (if tsconfig exists)
55
+ - [ ] Capture and categorize all tool outputs
56
+
57
+ 3. **Load and Analyze Code**
58
+ - [ ] Read all React/TypeScript files in target paths
59
+ - [ ] Identify component structure and dependencies
60
+ - [ ] Map code patterns against review dimensions
61
+
62
+ 4. **Review Dimension 1: Component Atomicity & Single Responsibility (SRP)**
63
+ - [ ] Check if each file contains only one primary component
64
+ - [ ] Identify components exceeding 200 lines (potential refactoring candidates)
65
+ - [ ] Verify complex business logic is extracted into custom Hooks
66
+ - [ ] Validate separation between UI presentation and business logic
67
+
68
+ 5. **Review Dimension 2: Hooks Compliance & Side Effects Management**
69
+ - [ ] Verify `useEffect` has explicit and complete dependency arrays
70
+ - [ ] Detect "over-synchronized state" misuse (derived state that should be computed)
71
+ - [ ] Identify unnecessary `useEffect` usage (when `useMemo` or direct computation suffices)
72
+ - [ ] Assess stale closure risks in event handlers and async operations
73
+
74
+ 6. **Review Dimension 3: State Management & Data Flow**
75
+ - [ ] Validate state is "as local as possible" (avoid unnecessary global state)
76
+ - [ ] Check for excessive prop drilling (consider context or composition)
77
+ - [ ] Verify props destructuring and default value handling
78
+ - [ ] Assess async request handling (loading states, error handling, race condition protection)
79
+
80
+ 7. **Review Dimension 4: Performance & Robustness**
81
+ - [ ] Identify potential unnecessary re-render issues
82
+ - [ ] Check if functions/objects in render are properly memoized (`useCallback`, `useMemo`)
83
+ - [ ] Verify null/undefined safety (optional chaining, nullish coalescing)
84
+ - [ ] Assess usage of `React.memo`, `useMemo`, `useCallback` for optimization
85
+
86
+ 8. **Constitution Alignment** (if constitution exists)
87
+ - [ ] Cross-reference findings against constitution MUST principles
88
+ - [ ] Identify violations of project-specific quality standards
89
+ - [ ] Flag deviations from established coding conventions
90
+
91
+ 9. **Assign Severity Levels**
92
+ - [ ] **CRITICAL**: Constitution MUST violations, logic bugs, security vulnerabilities, memory leaks
93
+ - [ ] **HIGH**: Hooks violations, ESLint/TypeScript errors, performance hazards
94
+ - [ ] **MEDIUM**: Design pattern improvements, refactoring large components, state management improvements
95
+ - [ ] **LOW**: Readability improvements, code style enhancements
96
+
97
+ 10. **Generate Report**
98
+ - [ ] Compile all findings into structured report
99
+ - [ ] Include specific code locations and refactoring suggestions
100
+ - [ ] Calculate quality scores per dimension
101
+
102
+ ### Report Template
103
+
104
+ ````markdown
105
+ # React Code Review Report
106
+
107
+ ## Meta Information
108
+ - **Target**: {paths}
109
+ - **Review Date**: {date}
110
+ - **Reviewer Role**: Frontend Chief Architect
111
+
112
+ ## Summary
113
+ - **Overall Status**: ✅ Pass / ⚠️ Needs Work / ❌ Fail
114
+ - **Quality Score**: X/100
115
+ - **One-line Assessment**: {concise quality summary}
116
+
117
+ ## Static Analysis Results
118
+
119
+ | Tool | Status | Issues | Details |
120
+ |------|--------|--------|---------|
121
+ | ESLint | ✅/⚠️/❌ | {count} | {summary or "No issues found"} |
122
+ | TypeScript | ✅/⚠️/❌ | {count} | {summary or "No issues found"} |
123
+
124
+ ## Dimension Analysis
125
+
126
+ | Dimension | Score | Status | Key Findings |
127
+ |-----------|-------|--------|--------------|
128
+ | Component Atomicity & SRP | X/100 | ✅/⚠️/❌ | {summary} |
129
+ | Hooks Compliance | X/100 | ✅/⚠️/❌ | {summary} |
130
+ | State Management | X/100 | ✅/⚠️/❌ | {summary} |
131
+ | Performance & Robustness | X/100 | ✅/⚠️/❌ | {summary} |
132
+
133
+ ## Constitution Alignment
134
+
135
+ > [!NOTE]
136
+ > If no constitution exists, state "No project constitution found - using general React best practices."
137
+
138
+ | Principle | Status | Notes |
139
+ |-----------|--------|-------|
140
+ | {principle name} | ✅/⚠️/❌ | {alignment assessment} |
141
+
142
+ ## Detailed Findings
143
+
144
+ ### Critical Issues (CRITICAL)
145
+ *Must fix before merge - Constitution violations, logic bugs, memory leaks, security vulnerabilities*
146
+
147
+ - [ ] **[REACT-001]**: `{filename}:{line_number}` - {issue description}
148
+ - **Impact**: {why this matters}
149
+ - **Suggestion**:
150
+ ```tsx
151
+ {refactored code snippet}
152
+ ```
153
+
154
+ ### Warnings (HIGH)
155
+ *Should fix - Hooks violations, tool errors, performance issues*
156
+
157
+ - [ ] **[REACT-002]**: `{filename}:{line_number}` - {issue description}
158
+ - **Impact**: {potential risk}
159
+ - **Suggestion**:
160
+ ```tsx
161
+ {refactored code snippet}
162
+ ```
163
+
164
+ ### Warnings (MEDIUM)
165
+ *Consider fixing - Design improvements, refactoring opportunities*
166
+
167
+ - [ ] **[REACT-003]**: `{filename}:{line_number}` - {issue description}
168
+ - **Suggestion**: {improvement recommendation}
169
+
170
+ ### Suggestions (LOW)
171
+ *Nice to have - Readability, style enhancements*
172
+
173
+ - [ ] **[REACT-004]**: `{filename}:{line_number}` - {enhancement description}
174
+ - **Benefit**: {value of this change}
175
+
176
+ ## Strengths
177
+ - {highlight 1-2 positive findings in the codebase}
178
+
179
+ ## Recommendations
180
+
181
+ ### Priority 1: Must Fix (Before Merge)
182
+ 1. {most critical action}
183
+ 2. {second most critical}
184
+
185
+ ### Priority 2: Should Fix (This Sprint)
186
+ 1. {important improvement}
187
+ 2. {another improvement}
188
+
189
+ ### Priority 3: Nice to Have (Future)
190
+ 1. {optional enhancement}
191
+
192
+ ## Scoring Breakdown
193
+
194
+ | Category | Weight | Score | Weighted |
195
+ |----------|--------|-------|----------|
196
+ | Component Atomicity & SRP | 25% | X/100 | X |
197
+ | Hooks Compliance | 25% | X/100 | X |
198
+ | State Management | 25% | X/100 | X |
199
+ | Performance & Robustness | 20% | X/100 | X |
200
+ | Constitution Alignment | 5% | X/100 | X |
201
+ | **Total** | **100%** | | **X/100** |
202
+
203
+ ## Available Follow-up Commands
204
+
205
+ Based on the review result, consider:
206
+
207
+ ### If Issues Found
208
+ - **Direct Fix**: Describe the changes you want (e.g., "Fix REACT-001 and REACT-002") and I will apply the fixes
209
+ - **Re-run Review**: `/codexspec:review-react-code {paths}` - verify fixes after changes
210
+ - **Proceed Anyway**: If issues are acceptable for current iteration
211
+
212
+ ### Next Steps Based on Review Result
213
+ - **Pass**: Code is ready for commit/merge
214
+ - **Needs Work**: Fix HIGH/CRITICAL issues, then re-run review
215
+ - **Fail**: Significant rework required - consider `/codexspec:clarify` for design discussion
216
+ ````
217
+
218
+ ### Quality Criteria
219
+
220
+ Before completing the review, verify:
221
+
222
+ - [ ] Static analysis tools (ESLint, TypeScript) have been executed (if config exists)
223
+ - [ ] All four review dimensions have been assessed
224
+ - [ ] Constitution alignment has been checked (if constitution exists)
225
+ - [ ] Issues are categorized by severity (CRITICAL/HIGH/MEDIUM/LOW)
226
+ - [ ] Each CRITICAL/HIGH issue has specific code refactoring suggestions
227
+ - [ ] Score reflects actual code quality accurately
228
+ - [ ] Strengths section highlights positive aspects
229
+ - [ ] Recommendations are prioritized and actionable
230
+
231
+ ### Output
232
+
233
+ Display the review report in the conversation. Optionally save to `.codexspec/reviews/react-code-review-{timestamp}.md` if requested.
@@ -30,6 +30,7 @@
30
30
  "category_core": "Kernbefehle ({count})",
31
31
  "category_enhanced": "Erweiterte Befehle ({count})",
32
32
  "category_git": "Git-Workflow ({count})",
33
+ "category_review": "Code-Überprüfung ({count})",
33
34
  "success_title": "Erfolg",
34
35
  "success_message": "CodexSpec-Projekt erfolgreich initialisiert!",
35
36
  "success_project_dir": "Projektverzeichnis: {path}",
@@ -58,6 +59,7 @@
58
59
  "category_core": "Kernbefehle ({count})",
59
60
  "category_enhanced": "Erweiterte Befehle ({count})",
60
61
  "category_git": "Git-Workflow ({count})",
62
+ "category_review": "Code-Überprüfung ({count})",
61
63
  "no_project": "Kein CodexSpec-Projekt im aktuellen Verzeichnis gefunden.",
62
64
  "run_init": "Führen Sie codexspec init aus, um ein neues Projekt zu erstellen.",
63
65
  "usage_hint": "Verwenden Sie /codexspec:<befehl>, um diese Befehle aufzurufen"
@@ -136,5 +138,13 @@
136
138
  "translate-docs": {
137
139
  "description": "Projektdokumentation in die angegebene Sprache übersetzen",
138
140
  "argument-hint": "--lang <sprachcodes> (z.B. 'zh,ja,ko') oder 'all' für alle Sprachen"
141
+ },
142
+ "review-python-code": {
143
+ "description": "Python-Code auf PEP 8-Konformität, Typsicherheit, Engineering-Robustheit und Verfassungsübereinstimmung überprüfen",
144
+ "argument-hint": "Pfad zur Python-Datei oder zum Verzeichnis zur Überprüfung\n\nBeispiele:\n- `src/codexspec/` - Gesamtes Paket überprüfen\n- `src/codexspec/__init__.py` - Einzelne Datei überprüfen\n- `src/ tests/` - Mehrere Pfade überprüfen"
145
+ },
146
+ "review-react-code": {
147
+ "description": "React/TypeScript-Code auf Komponentenarchitektur, Hooks-Compliance, Zustandsverwaltung, Performance und Verfassungsübereinstimmung überprüfen",
148
+ "argument-hint": "Pfad zur React/TypeScript-Datei oder zum Verzeichnis zur Überprüfung\n\nBeispiele:\n- `src/components/` - Gesamtes Komponentenverzeichnis überprüfen\n- `src/components/Button.tsx` - Einzelne Datei überprüfen\n- `src/hooks/ src/components/` - Mehrere Pfade überprüfen"
139
149
  }
140
150
  }
@@ -30,6 +30,7 @@
30
30
  "category_core": "Core Commands ({count})",
31
31
  "category_enhanced": "Enhanced Commands ({count})",
32
32
  "category_git": "Git Workflow ({count})",
33
+ "category_review": "Code Review ({count})",
33
34
  "success_title": "Success",
34
35
  "success_message": "CodexSpec project initialized successfully!",
35
36
  "success_project_dir": "Project directory: {path}",
@@ -58,6 +59,7 @@
58
59
  "category_core": "Core Commands ({count})",
59
60
  "category_enhanced": "Enhanced Commands ({count})",
60
61
  "category_git": "Git Workflow ({count})",
62
+ "category_review": "Code Review ({count})",
61
63
  "no_project": "No CodexSpec project found in current directory.",
62
64
  "run_init": "Run codexspec init to create a new project.",
63
65
  "usage_hint": "Use /codexspec:<command> to invoke these commands"
@@ -136,5 +138,13 @@
136
138
  "translate-docs": {
137
139
  "description": "Translate project documentation to specified language",
138
140
  "argument-hint": "--lang <language_codes> (e.g. 'zh,ja,ko') or 'all' for all languages"
141
+ },
142
+ "review-python-code": {
143
+ "description": "Review Python code for PEP 8 compliance, type safety, engineering robustness, and constitution alignment",
144
+ "argument-hint": "Path to Python file or directory to review\n\nExamples:\n- `src/codexspec/` - Review entire package\n- `src/codexspec/__init__.py` - Review single file\n- `src/ tests/` - Review multiple paths"
145
+ },
146
+ "review-react-code": {
147
+ "description": "Review React/TypeScript code for component architecture, hooks compliance, state management, performance, and constitution alignment",
148
+ "argument-hint": "Path to React/TypeScript file or directory to review\n\nExamples:\n- `src/components/` - Review entire components directory\n- `src/components/Button.tsx` - Review single file\n- `src/hooks/ src/components/` - Review multiple paths"
139
149
  }
140
150
  }
@@ -30,6 +30,7 @@
30
30
  "category_core": "Comandos principales ({count})",
31
31
  "category_enhanced": "Comandos mejorados ({count})",
32
32
  "category_git": "Flujo de trabajo Git ({count})",
33
+ "category_review": "Revisión de código ({count})",
33
34
  "success_title": "Éxito",
34
35
  "success_message": "¡Proyecto CodexSpec inicializado exitosamente!",
35
36
  "success_project_dir": "Directorio del proyecto: {path}",
@@ -58,6 +59,7 @@
58
59
  "category_core": "Comandos principales ({count})",
59
60
  "category_enhanced": "Comandos mejorados ({count})",
60
61
  "category_git": "Flujo de trabajo Git ({count})",
62
+ "category_review": "Revisión de código ({count})",
61
63
  "no_project": "No se encontró un proyecto CodexSpec en el directorio actual.",
62
64
  "run_init": "Ejecute codexspec init para crear un nuevo proyecto.",
63
65
  "usage_hint": "Use /codexspec:<comando> para invocar estos comandos"
@@ -136,5 +138,13 @@
136
138
  "translate-docs": {
137
139
  "description": "Traducir documentación del proyecto al idioma especificado",
138
140
  "argument-hint": "--lang <códigos_idioma> (ej: 'zh,ja,ko') o 'all' para todos los idiomas"
141
+ },
142
+ "review-python-code": {
143
+ "description": "Revisar código Python por conformidad PEP 8, seguridad de tipos, robustez de ingeniería y alineación con la constitución",
144
+ "argument-hint": "Ruta al archivo o directorio Python a revisar\n\nEjemplos:\n- `src/codexspec/` - Revisar paquete completo\n- `src/codexspec/__init__.py` - Revisar archivo único\n- `src/ tests/` - Revisar múltiples rutas"
145
+ },
146
+ "review-react-code": {
147
+ "description": "Revisar código React/TypeScript por arquitectura de componentes, cumplimiento de Hooks, gestión de estado, rendimiento y alineación con la constitución",
148
+ "argument-hint": "Ruta al archivo o directorio React/TypeScript a revisar\n\nEjemplos:\n- `src/components/` - Revisar directorio completo de componentes\n- `src/components/Button.tsx` - Revisar archivo único\n- `src/hooks/ src/components/` - Revisar múltiples rutas"
139
149
  }
140
150
  }
@@ -30,6 +30,7 @@
30
30
  "category_core": "Commandes principales ({count})",
31
31
  "category_enhanced": "Commandes avancées ({count})",
32
32
  "category_git": "Flux de travail Git ({count})",
33
+ "category_review": "Revue de code ({count})",
33
34
  "success_title": "Succès",
34
35
  "success_message": "Projet CodexSpec initialisé avec succès !",
35
36
  "success_project_dir": "Répertoire du projet: {path}",
@@ -58,6 +59,7 @@
58
59
  "category_core": "Commandes principales ({count})",
59
60
  "category_enhanced": "Commandes avancées ({count})",
60
61
  "category_git": "Flux de travail Git ({count})",
62
+ "category_review": "Revue de code ({count})",
61
63
  "no_project": "Aucun projet CodexSpec trouvé dans le répertoire actuel.",
62
64
  "run_init": "Exécutez codexspec init pour créer un nouveau projet.",
63
65
  "usage_hint": "Utilisez /codexspec:<commande> pour invoquer ces commandes"
@@ -136,5 +138,13 @@
136
138
  "translate-docs": {
137
139
  "description": "Traduire la documentation du projet dans la langue spécifiée",
138
140
  "argument-hint": "--lang <codes_langue> (ex: 'zh,ja,ko') ou 'all' pour toutes les langues"
141
+ },
142
+ "review-python-code": {
143
+ "description": "Réviser le code Python pour la conformité PEP 8, la sécurité des types, la robustesse d'ingénierie et l'alignement avec la constitution",
144
+ "argument-hint": "Chemin vers le fichier ou répertoire Python à réviser\n\nExemples:\n- `src/codexspec/` - Réviser le paquet complet\n- `src/codexspec/__init__.py` - Réviser un seul fichier\n- `src/ tests/` - Réviser plusieurs chemins"
145
+ },
146
+ "review-react-code": {
147
+ "description": "Réviser le code React/TypeScript pour l'architecture des composants, la conformité Hooks, la gestion d'état, la performance et l'alignement avec la constitution",
148
+ "argument-hint": "Chemin vers le fichier ou répertoire React/TypeScript à réviser\n\nExemples:\n- `src/components/` - Réviser le répertoire entier des composants\n- `src/components/Button.tsx` - Réviser un seul fichier\n- `src/hooks/ src/components/` - Réviser plusieurs chemins"
139
149
  }
140
150
  }
@@ -30,6 +30,7 @@
30
30
  "category_core": "コアコマンド ({count})",
31
31
  "category_enhanced": "拡張コマンド ({count})",
32
32
  "category_git": "Git ワークフロー ({count})",
33
+ "category_review": "コードレビュー ({count})",
33
34
  "success_title": "成功",
34
35
  "success_message": "CodexSpec プロジェクトが正常に初期化されました!",
35
36
  "success_project_dir": "プロジェクトディレクトリ: {path}",
@@ -58,6 +59,7 @@
58
59
  "category_core": "コアコマンド ({count})",
59
60
  "category_enhanced": "拡張コマンド ({count})",
60
61
  "category_git": "Git ワークフロー ({count})",
62
+ "category_review": "コードレビュー ({count})",
61
63
  "no_project": "現在のディレクトリにCodexSpecプロジェクトが見つかりません。",
62
64
  "run_init": "codexspec init を実行して新しいプロジェクトを作成してください。",
63
65
  "usage_hint": "/codexspec:<コマンド> を使用してこれらのコマンドを呼び出します"
@@ -136,5 +138,13 @@
136
138
  "translate-docs": {
137
139
  "description": "プロジェクトドキュメントを指定言語に翻訳",
138
140
  "argument-hint": "--lang <言語コード> (例: 'zh,ja,ko') または 'all' ですべての言語"
141
+ },
142
+ "review-python-code": {
143
+ "description": "PythonコードのPEP 8準拠、型安全性、エンジニアリングの堅牢性、憲法整合性をレビュー",
144
+ "argument-hint": "レビューするPythonファイルまたはディレクトリへのパス\n\n例:\n- `src/codexspec/` - パッケージ全体をレビュー\n- `src/codexspec/__init__.py` - 単一ファイルをレビュー\n- `src/ tests/` - 複数パスをレビュー"
145
+ },
146
+ "review-react-code": {
147
+ "description": "React/TypeScript コードをコンポーネントアーキテクチャ、Hooks 準拠、状態管理、パフォーマンス、憲法整合性についてレビュー",
148
+ "argument-hint": "レビューする React/TypeScript ファイルまたはディレクトリへのパス\n\n例:\n- `src/components/` - コンポーネントディレクトリ全体をレビュー\n- `src/components/Button.tsx` - 単一ファイルをレビュー\n- `src/hooks/ src/components/` - 複数パスをレビュー"
139
149
  }
140
150
  }
@@ -30,6 +30,7 @@
30
30
  "category_core": "핵심 명령 ({count})",
31
31
  "category_enhanced": "확장 명령 ({count})",
32
32
  "category_git": "Git 워크플로우 ({count})",
33
+ "category_review": "코드 리뷰 ({count})",
33
34
  "success_title": "성공",
34
35
  "success_message": "CodexSpec 프로젝트가 성공적으로 초기화되었습니다!",
35
36
  "success_project_dir": "프로젝트 디렉토리: {path}",
@@ -58,6 +59,7 @@
58
59
  "category_core": "핵심 명령 ({count})",
59
60
  "category_enhanced": "확장 명령 ({count})",
60
61
  "category_git": "Git 워크플로우 ({count})",
62
+ "category_review": "코드 리뷰 ({count})",
61
63
  "no_project": "현재 디렉토리에서 CodexSpec 프로젝트를 찾을 수 없습니다.",
62
64
  "run_init": "codexspec init을 실행하여 새 프로젝트를 생성하세요.",
63
65
  "usage_hint": "/codexspec:<명령>을 사용하여 이 명령들을 호출하세요"
@@ -136,5 +138,13 @@
136
138
  "translate-docs": {
137
139
  "description": "프로젝트 문서를 지정된 언어로 번역",
138
140
  "argument-hint": "--lang <언어_코드> (예: 'zh,ja,ko') 또는 'all'로 모든 언어"
141
+ },
142
+ "review-python-code": {
143
+ "description": "Python 코드의 PEP 8 준수, 타입 안전성, 엔지니어링 견고성 및 헌법 정렬 검토",
144
+ "argument-hint": "검토할 Python 파일 또는 디렉토리 경로\n\n예시:\n- `src/codexspec/` - 전체 패키지 검토\n- `src/codexspec/__init__.py` - 단일 파일 검토\n- `src/ tests/` - 여러 경로 검토"
145
+ },
146
+ "review-react-code": {
147
+ "description": "React/TypeScript 코드의 컴포넌트 아키텍처, Hooks 준수, 상태 관리, 성능 및 헌법 정렬 검토",
148
+ "argument-hint": "검토할 React/TypeScript 파일 또는 디렉토리 경로\n\n예시:\n- `src/components/` - 전체 컴포넌트 디렉토리 검토\n- `src/components/Button.tsx` - 단일 파일 검토\n- `src/hooks/ src/components/` - 여러 경로 검토"
139
149
  }
140
150
  }
@@ -30,6 +30,7 @@
30
30
  "category_core": "Comandos principais ({count})",
31
31
  "category_enhanced": "Comandos avançados ({count})",
32
32
  "category_git": "Fluxo de trabalho Git ({count})",
33
+ "category_review": "Revisão de código ({count})",
33
34
  "success_title": "Sucesso",
34
35
  "success_message": "Projeto CodexSpec inicializado com sucesso!",
35
36
  "success_project_dir": "Diretório do projeto: {path}",
@@ -58,6 +59,7 @@
58
59
  "category_core": "Comandos principais ({count})",
59
60
  "category_enhanced": "Comandos avançados ({count})",
60
61
  "category_git": "Fluxo de trabalho Git ({count})",
62
+ "category_review": "Revisão de código ({count})",
61
63
  "no_project": "Nenhum projeto CodexSpec encontrado no diretório atual.",
62
64
  "run_init": "Execute codexspec init para criar um novo projeto.",
63
65
  "usage_hint": "Use /codexspec:<comando> para invocar estes comandos"
@@ -136,5 +138,13 @@
136
138
  "translate-docs": {
137
139
  "description": "Traduzir documentação do projeto para o idioma especificado",
138
140
  "argument-hint": "--lang <códigos_idioma> (ex: 'zh,ja,ko') ou 'all' para todos os idiomas"
141
+ },
142
+ "review-python-code": {
143
+ "description": "Revisar código Python por conformidade PEP 8, segurança de tipos, robustez de engenharia e alinhamento com a constituição",
144
+ "argument-hint": "Caminho para arquivo ou diretório Python a revisar\n\nExemplos:\n- `src/codexspec/` - Revisar pacote completo\n- `src/codexspec/__init__.py` - Revisar arquivo único\n- `src/ tests/` - Revisar múltiplos caminhos"
145
+ },
146
+ "review-react-code": {
147
+ "description": "Revisar código React/TypeScript por arquitetura de componentes, conformidade com Hooks, gerenciamento de estado, performance e alinhamento com a constituição",
148
+ "argument-hint": "Caminho para arquivo ou diretório React/TypeScript a revisar\n\nExemplos:\n- `src/components/` - Revisar diretório inteiro de componentes\n- `src/components/Button.tsx` - Revisar arquivo único\n- `src/hooks/ src/components/` - Revisar múltiplos caminhos"
139
149
  }
140
150
  }
@@ -30,6 +30,7 @@
30
30
  "category_core": "核心命令 ({count})",
31
31
  "category_enhanced": "增强命令 ({count})",
32
32
  "category_git": "Git 工作流 ({count})",
33
+ "category_review": "代码审查 ({count})",
33
34
  "success_title": "成功",
34
35
  "success_message": "CodexSpec 项目初始化成功!",
35
36
  "success_project_dir": "项目目录: {path}",
@@ -58,6 +59,7 @@
58
59
  "category_core": "核心命令 ({count})",
59
60
  "category_enhanced": "增强命令 ({count})",
60
61
  "category_git": "Git 工作流 ({count})",
62
+ "category_review": "代码审查 ({count})",
61
63
  "no_project": "当前目录未找到 CodexSpec 项目。",
62
64
  "run_init": "运行 codexspec init 创建新项目。",
63
65
  "usage_hint": "使用 /codexspec:<命令> 来调用这些命令"
@@ -136,5 +138,13 @@
136
138
  "translate-docs": {
137
139
  "description": "翻译项目文档到指定语言",
138
140
  "argument-hint": "--lang <语言代码> (如 'zh,ja,ko') 或 'all' 翻译所有语言"
141
+ },
142
+ "review-python-code": {
143
+ "description": "审查 Python 代码的 PEP 8 合规性、类型安全、工程健壮性和宪法一致性",
144
+ "argument-hint": "要审查的 Python 文件或目录路径\n\n示例:\n- `src/codexspec/` - 审查整个包\n- `src/codexspec/__init__.py` - 审查单个文件\n- `src/ tests/` - 审查多个路径"
145
+ },
146
+ "review-react-code": {
147
+ "description": "审查 React/TypeScript 代码的组件架构、Hooks 规范、状态管理、性能表现和宪法一致性",
148
+ "argument-hint": "要审查的 React/TypeScript 文件或目录路径\n\n示例:\n- `src/components/` - 审查整个组件目录\n- `src/components/Button.tsx` - 审查单个文件\n- `src/hooks/ src/components/` - 审查多个路径"
139
149
  }
140
150
  }
File without changes
File without changes
File without changes