Add TypeScript and Python language support to plugin

- Created kieran-typescript-reviewer and kieran-python-reviewer agents
- Updated review.md command to detect project type and route to appropriate reviewers
- Added TypeScript/Python examples to framework-docs-researcher and best-practices-researcher
- Enhanced security-sentinel with TypeScript/Python security checks
- Added TypeScript/Python performance guidance to performance-oracle
- Updated generate_command.md with TypeScript/Python test and linter commands

The plugin now supports Rails, TypeScript, and Python projects with language-specific reviewers and best practices.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Kieran Klaassen
2025-10-09 14:16:37 -07:00
parent 3c49fc05b5
commit 9009a42f59
8 changed files with 279 additions and 21 deletions

View File

@@ -93,8 +93,14 @@ Implement #$ARGUMENTS following these steps:
- Ensure code follows CLAUDE.md conventions
4. Verify
- Run tests: `bin/rails test`
- Run linter: `bundle exec standardrb`
- Run tests:
- Rails: `bin/rails test` or `bundle exec rspec`
- TypeScript: `npm test` or `yarn test` (Jest/Vitest)
- Python: `pytest` or `python -m pytest`
- Run linter:
- Rails: `bundle exec standardrb` or `bundle exec rubocop`
- TypeScript: `npm run lint` or `eslint .`
- Python: `ruff check .` or `flake8`
- Check changes with git diff
5. Commit (optional)

View File

@@ -46,15 +46,56 @@ Ensure that the worktree is set up correctly and that the PR is checked out. ONL
</task_list>
#### Detect Project Type
<thinking>
Determine the project type by analyzing the codebase structure and files.
This will inform which language-specific reviewers to use.
</thinking>
<project_type_detection>
Check for these indicators to determine project type:
**Rails Project**:
- `Gemfile` with `rails` gem
- `config/application.rb`
- `app/` directory structure
**TypeScript Project**:
- `tsconfig.json`
- `package.json` with TypeScript dependencies
- `.ts` or `.tsx` files
**Python Project**:
- `requirements.txt` or `pyproject.toml`
- `.py` files
- `setup.py` or `poetry.lock`
Based on detection, set appropriate reviewers for parallel execution.
</project_type_detection>
#### Parallel Agents to review the PR:
<parallel_tasks>
Run ALL or most of these agents at the same time:
Run ALL or most of these agents at the same time, adjusting language-specific reviewers based on project type:
**Language-Specific Reviewers (choose based on project type)**:
For Rails projects:
1. Task kieran-rails-reviewer(PR content)
2. Task dhh-rails-reviewer(PR title)
3. If turbo is used: Task rails-turbo-expert(PR content)
For TypeScript projects:
1. Task kieran-typescript-reviewer(PR content)
For Python projects:
1. Task kieran-python-reviewer(PR content)
**Universal Reviewers (run for all project types)**:
4. Task git-history-analyzer(PR content)
5. Task dependency-detective(PR content)
6. Task pattern-recognition-specialist(PR content)