tapps-agents 3.5.41__py3-none-any.whl → 3.6.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.
- tapps_agents/__init__.py +2 -2
- tapps_agents/agents/reviewer/scoring.py +1566 -1566
- tapps_agents/agents/reviewer/tools/__init__.py +41 -41
- tapps_agents/cli/commands/health.py +665 -665
- tapps_agents/cli/commands/top_level.py +3586 -3586
- tapps_agents/core/artifact_context_builder.py +293 -0
- tapps_agents/core/config.py +33 -0
- tapps_agents/health/orchestrator.py +271 -271
- tapps_agents/resources/__init__.py +5 -0
- tapps_agents/resources/claude/__init__.py +1 -0
- tapps_agents/resources/claude/commands/README.md +156 -0
- tapps_agents/resources/claude/commands/__init__.py +1 -0
- tapps_agents/resources/claude/commands/build-fix.md +22 -0
- tapps_agents/resources/claude/commands/build.md +77 -0
- tapps_agents/resources/claude/commands/debug.md +53 -0
- tapps_agents/resources/claude/commands/design.md +68 -0
- tapps_agents/resources/claude/commands/docs.md +53 -0
- tapps_agents/resources/claude/commands/e2e.md +22 -0
- tapps_agents/resources/claude/commands/fix.md +54 -0
- tapps_agents/resources/claude/commands/implement.md +53 -0
- tapps_agents/resources/claude/commands/improve.md +53 -0
- tapps_agents/resources/claude/commands/library-docs.md +64 -0
- tapps_agents/resources/claude/commands/lint.md +52 -0
- tapps_agents/resources/claude/commands/plan.md +65 -0
- tapps_agents/resources/claude/commands/refactor-clean.md +21 -0
- tapps_agents/resources/claude/commands/refactor.md +55 -0
- tapps_agents/resources/claude/commands/review.md +67 -0
- tapps_agents/resources/claude/commands/score.md +60 -0
- tapps_agents/resources/claude/commands/security-review.md +22 -0
- tapps_agents/resources/claude/commands/security-scan.md +54 -0
- tapps_agents/resources/claude/commands/tdd.md +24 -0
- tapps_agents/resources/claude/commands/test-coverage.md +21 -0
- tapps_agents/resources/claude/commands/test.md +54 -0
- tapps_agents/resources/claude/commands/update-codemaps.md +20 -0
- tapps_agents/resources/claude/commands/update-docs.md +21 -0
- tapps_agents/resources/claude/skills/__init__.py +1 -0
- tapps_agents/resources/claude/skills/analyst/SKILL.md +272 -0
- tapps_agents/resources/claude/skills/analyst/__init__.py +1 -0
- tapps_agents/resources/claude/skills/architect/SKILL.md +282 -0
- tapps_agents/resources/claude/skills/architect/__init__.py +1 -0
- tapps_agents/resources/claude/skills/backend-patterns/SKILL.md +30 -0
- tapps_agents/resources/claude/skills/backend-patterns/__init__.py +1 -0
- tapps_agents/resources/claude/skills/coding-standards/SKILL.md +29 -0
- tapps_agents/resources/claude/skills/coding-standards/__init__.py +1 -0
- tapps_agents/resources/claude/skills/debugger/SKILL.md +203 -0
- tapps_agents/resources/claude/skills/debugger/__init__.py +1 -0
- tapps_agents/resources/claude/skills/designer/SKILL.md +243 -0
- tapps_agents/resources/claude/skills/designer/__init__.py +1 -0
- tapps_agents/resources/claude/skills/documenter/SKILL.md +252 -0
- tapps_agents/resources/claude/skills/documenter/__init__.py +1 -0
- tapps_agents/resources/claude/skills/enhancer/SKILL.md +307 -0
- tapps_agents/resources/claude/skills/enhancer/__init__.py +1 -0
- tapps_agents/resources/claude/skills/evaluator/SKILL.md +204 -0
- tapps_agents/resources/claude/skills/evaluator/__init__.py +1 -0
- tapps_agents/resources/claude/skills/frontend-patterns/SKILL.md +29 -0
- tapps_agents/resources/claude/skills/frontend-patterns/__init__.py +1 -0
- tapps_agents/resources/claude/skills/implementer/SKILL.md +188 -0
- tapps_agents/resources/claude/skills/implementer/__init__.py +1 -0
- tapps_agents/resources/claude/skills/improver/SKILL.md +218 -0
- tapps_agents/resources/claude/skills/improver/__init__.py +1 -0
- tapps_agents/resources/claude/skills/ops/SKILL.md +281 -0
- tapps_agents/resources/claude/skills/ops/__init__.py +1 -0
- tapps_agents/resources/claude/skills/orchestrator/SKILL.md +390 -0
- tapps_agents/resources/claude/skills/orchestrator/__init__.py +1 -0
- tapps_agents/resources/claude/skills/planner/SKILL.md +254 -0
- tapps_agents/resources/claude/skills/planner/__init__.py +1 -0
- tapps_agents/resources/claude/skills/reviewer/SKILL.md +434 -0
- tapps_agents/resources/claude/skills/reviewer/__init__.py +1 -0
- tapps_agents/resources/claude/skills/security-review/SKILL.md +31 -0
- tapps_agents/resources/claude/skills/security-review/__init__.py +1 -0
- tapps_agents/resources/claude/skills/simple-mode/SKILL.md +695 -0
- tapps_agents/resources/claude/skills/simple-mode/__init__.py +1 -0
- tapps_agents/resources/claude/skills/tester/SKILL.md +219 -0
- tapps_agents/resources/claude/skills/tester/__init__.py +1 -0
- tapps_agents/resources/cursor/.cursorignore +35 -0
- tapps_agents/resources/cursor/__init__.py +1 -0
- tapps_agents/resources/cursor/commands/__init__.py +1 -0
- tapps_agents/resources/cursor/commands/build-fix.md +11 -0
- tapps_agents/resources/cursor/commands/build.md +11 -0
- tapps_agents/resources/cursor/commands/e2e.md +11 -0
- tapps_agents/resources/cursor/commands/fix.md +11 -0
- tapps_agents/resources/cursor/commands/refactor-clean.md +11 -0
- tapps_agents/resources/cursor/commands/review.md +11 -0
- tapps_agents/resources/cursor/commands/security-review.md +11 -0
- tapps_agents/resources/cursor/commands/tdd.md +11 -0
- tapps_agents/resources/cursor/commands/test-coverage.md +11 -0
- tapps_agents/resources/cursor/commands/test.md +11 -0
- tapps_agents/resources/cursor/commands/update-codemaps.md +10 -0
- tapps_agents/resources/cursor/commands/update-docs.md +11 -0
- tapps_agents/resources/cursor/rules/__init__.py +1 -0
- tapps_agents/resources/cursor/rules/agent-capabilities.mdc +687 -0
- tapps_agents/resources/cursor/rules/coding-style.mdc +31 -0
- tapps_agents/resources/cursor/rules/command-reference.mdc +2081 -0
- tapps_agents/resources/cursor/rules/cursor-mode-usage.mdc +125 -0
- tapps_agents/resources/cursor/rules/git-workflow.mdc +29 -0
- tapps_agents/resources/cursor/rules/performance.mdc +29 -0
- tapps_agents/resources/cursor/rules/project-context.mdc +163 -0
- tapps_agents/resources/cursor/rules/project-profiling.mdc +197 -0
- tapps_agents/resources/cursor/rules/quick-reference.mdc +630 -0
- tapps_agents/resources/cursor/rules/security.mdc +32 -0
- tapps_agents/resources/cursor/rules/simple-mode.mdc +500 -0
- tapps_agents/resources/cursor/rules/testing.mdc +31 -0
- tapps_agents/resources/cursor/rules/when-to-use.mdc +156 -0
- tapps_agents/resources/cursor/rules/workflow-presets.mdc +179 -0
- tapps_agents/resources/customizations/__init__.py +1 -0
- tapps_agents/resources/customizations/example-custom.yaml +83 -0
- tapps_agents/resources/hooks/__init__.py +1 -0
- tapps_agents/resources/hooks/templates/README.md +5 -0
- tapps_agents/resources/hooks/templates/__init__.py +1 -0
- tapps_agents/resources/hooks/templates/add-project-context.yaml +8 -0
- tapps_agents/resources/hooks/templates/auto-format-js.yaml +10 -0
- tapps_agents/resources/hooks/templates/auto-format-python.yaml +10 -0
- tapps_agents/resources/hooks/templates/git-commit-check.yaml +7 -0
- tapps_agents/resources/hooks/templates/notify-on-complete.yaml +8 -0
- tapps_agents/resources/hooks/templates/quality-gate.yaml +8 -0
- tapps_agents/resources/hooks/templates/security-scan-on-edit.yaml +10 -0
- tapps_agents/resources/hooks/templates/session-end-log.yaml +7 -0
- tapps_agents/resources/hooks/templates/show-beads-ready.yaml +8 -0
- tapps_agents/resources/hooks/templates/test-on-edit.yaml +10 -0
- tapps_agents/resources/hooks/templates/update-docs-on-complete.yaml +8 -0
- tapps_agents/resources/hooks/templates/user-prompt-log.yaml +7 -0
- tapps_agents/resources/scripts/__init__.py +1 -0
- tapps_agents/resources/scripts/set_bd_path.ps1 +51 -0
- tapps_agents/resources/workflows/__init__.py +1 -0
- tapps_agents/resources/workflows/presets/__init__.py +1 -0
- tapps_agents/resources/workflows/presets/brownfield-analysis.yaml +235 -0
- tapps_agents/resources/workflows/presets/fix.yaml +78 -0
- tapps_agents/resources/workflows/presets/full-sdlc.yaml +122 -0
- tapps_agents/resources/workflows/presets/quality.yaml +82 -0
- tapps_agents/resources/workflows/presets/rapid-dev.yaml +84 -0
- tapps_agents/simple_mode/orchestrators/base.py +185 -185
- tapps_agents/simple_mode/orchestrators/build_orchestrator.py +2700 -2667
- tapps_agents/simple_mode/orchestrators/fix_orchestrator.py +723 -723
- tapps_agents/workflow/cursor_executor.py +2337 -2337
- tapps_agents/workflow/message_formatter.py +188 -188
- {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/METADATA +6 -6
- {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/RECORD +141 -18
- {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/WHEEL +0 -0
- {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/entry_points.txt +0 -0
- {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/licenses/LICENSE +0 -0
- {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Lint Command
|
|
2
|
+
|
|
3
|
+
Run code linting with Ruff (10-100x faster than alternatives).
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
@lint <file-path>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or with natural language:
|
|
12
|
+
```
|
|
13
|
+
Lint src/api/auth.py
|
|
14
|
+
Check code style in src/utils/helpers.py
|
|
15
|
+
Run linting on the authentication module
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## What It Does
|
|
19
|
+
|
|
20
|
+
1. **Runs Ruff**: Executes Ruff linting (Python's fastest linter)
|
|
21
|
+
2. **Finds Issues**: Identifies code style and quality issues
|
|
22
|
+
3. **Provides Fixes**: Suggests specific fixes for each issue
|
|
23
|
+
4. **Scores Code**: Calculates linting score (0-10)
|
|
24
|
+
|
|
25
|
+
## Examples
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
@lint src/api/auth.py
|
|
29
|
+
@lint src/utils/helpers.py
|
|
30
|
+
@lint src/ --fix
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Features
|
|
34
|
+
|
|
35
|
+
- **Fast**: Ruff is 10-100x faster than alternatives
|
|
36
|
+
- **Comprehensive**: Checks style, quality, and best practices
|
|
37
|
+
- **Auto-Fix**: Can automatically fix many issues (with --fix flag)
|
|
38
|
+
- **Scoring**: Provides linting score for quality gates
|
|
39
|
+
|
|
40
|
+
## Output
|
|
41
|
+
|
|
42
|
+
- Linting report with issues
|
|
43
|
+
- Line numbers and error codes
|
|
44
|
+
- Fix recommendations
|
|
45
|
+
- Linting score
|
|
46
|
+
|
|
47
|
+
## Integration
|
|
48
|
+
|
|
49
|
+
- **Cursor**: Use `@reviewer *lint <file>` (Cursor Skill)
|
|
50
|
+
- **Claude Desktop**: Use `@lint <file>` (this command)
|
|
51
|
+
- **CLI**: Use `tapps-agents reviewer lint <file>`
|
|
52
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Plan Command
|
|
2
|
+
|
|
3
|
+
Create development plan with user stories, acceptance criteria, and estimates.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
@plan "<description>"
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or with natural language:
|
|
12
|
+
```
|
|
13
|
+
Plan a user authentication feature
|
|
14
|
+
Create a plan for a REST API for products
|
|
15
|
+
Plan the implementation of user registration
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## What It Does
|
|
19
|
+
|
|
20
|
+
1. **Analyzes Requirements**: Understands the feature description
|
|
21
|
+
2. **Creates User Stories**: Breaks down into user stories
|
|
22
|
+
3. **Defines Acceptance Criteria**: Adds acceptance criteria for each story
|
|
23
|
+
4. **Estimates Effort**: Provides story point estimates
|
|
24
|
+
5. **Identifies Dependencies**: Maps dependencies between stories
|
|
25
|
+
|
|
26
|
+
## Examples
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
@plan "Create a user authentication API with JWT tokens"
|
|
30
|
+
@plan "Add CRUD operations for products"
|
|
31
|
+
@plan "Implement user registration with email verification"
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Output
|
|
35
|
+
|
|
36
|
+
- User stories with IDs
|
|
37
|
+
- Acceptance criteria for each story
|
|
38
|
+
- Story point estimates
|
|
39
|
+
- Dependency mapping
|
|
40
|
+
- Priority recommendations
|
|
41
|
+
|
|
42
|
+
## Format
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
## User Story 1: User Registration
|
|
46
|
+
|
|
47
|
+
**Description**: As a user, I want to register with email and password
|
|
48
|
+
|
|
49
|
+
**Acceptance Criteria**:
|
|
50
|
+
- User can register with valid email and password
|
|
51
|
+
- Email validation is performed
|
|
52
|
+
- Password meets security requirements
|
|
53
|
+
- User receives confirmation email
|
|
54
|
+
|
|
55
|
+
**Story Points**: 5
|
|
56
|
+
**Priority**: High
|
|
57
|
+
**Dependencies**: None
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Integration
|
|
61
|
+
|
|
62
|
+
- **Cursor**: Use `@planner *plan "<desc>"` (Cursor Skill)
|
|
63
|
+
- **Claude Desktop**: Use `@plan "<desc>"` (this command)
|
|
64
|
+
- **CLI**: Use `tapps-agents planner plan "<desc>"`
|
|
65
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Refactor Clean Command (Simple Mode)
|
|
2
|
+
|
|
3
|
+
Mechanical cleanup: unused imports, dead code, duplication. Use *refactor for larger design changes.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
@refactor-clean <file>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or: `@simple-mode *refactor-clean {file}`
|
|
12
|
+
|
|
13
|
+
## What It Does
|
|
14
|
+
|
|
15
|
+
1. `@reviewer *duplication` and/or Ruff for unused-import/dead-code
|
|
16
|
+
2. `@implementer *refactor` for mechanical cleanup
|
|
17
|
+
3. Report changes
|
|
18
|
+
|
|
19
|
+
## Integration
|
|
20
|
+
|
|
21
|
+
- **Cursor**: `@simple-mode *refactor-clean {file}`
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Refactor Command
|
|
2
|
+
|
|
3
|
+
Refactor existing code to improve quality, maintainability, and performance.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
@refactor <file-path> "<instructions>"
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or with natural language:
|
|
12
|
+
```
|
|
13
|
+
Refactor src/api/auth.py to improve error handling
|
|
14
|
+
Refactor src/utils/helpers.py to reduce complexity
|
|
15
|
+
Improve the code structure in src/models/user.py
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## What It Does
|
|
19
|
+
|
|
20
|
+
1. **Analyzes Code**: Examines current code structure and patterns
|
|
21
|
+
2. **Applies Refactoring**: Implements improvements based on instructions
|
|
22
|
+
3. **Maintains Functionality**: Ensures refactoring doesn't break existing behavior
|
|
23
|
+
4. **Improves Quality**: Enhances code quality, readability, and maintainability
|
|
24
|
+
5. **Updates Tests**: Updates tests if needed to match refactored code
|
|
25
|
+
|
|
26
|
+
## Examples
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
@refactor src/api/auth.py "Extract helper functions, improve error handling"
|
|
30
|
+
@refactor src/utils/helpers.py "Reduce cyclomatic complexity, add type hints"
|
|
31
|
+
@refactor src/models/user.py "Improve data validation, add docstrings"
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Common Refactoring Patterns
|
|
35
|
+
|
|
36
|
+
- **Extract Functions**: Break down complex functions
|
|
37
|
+
- **Improve Naming**: Use clearer variable and function names
|
|
38
|
+
- **Add Type Hints**: Improve type safety
|
|
39
|
+
- **Reduce Complexity**: Simplify complex logic
|
|
40
|
+
- **Improve Error Handling**: Add proper error handling
|
|
41
|
+
- **Add Documentation**: Improve docstrings and comments
|
|
42
|
+
|
|
43
|
+
## Output
|
|
44
|
+
|
|
45
|
+
- Refactored code file
|
|
46
|
+
- Quality improvement metrics
|
|
47
|
+
- Test updates (if needed)
|
|
48
|
+
- Refactoring summary
|
|
49
|
+
|
|
50
|
+
## Integration
|
|
51
|
+
|
|
52
|
+
- **Cursor**: Use `@implementer *refactor <file> "<instructions>"` (Cursor Skill)
|
|
53
|
+
- **Claude Desktop**: Use `@refactor <file> "<instructions>"` (this command)
|
|
54
|
+
- **CLI**: Use `tapps-agents implementer refactor <file> "<instructions>"`
|
|
55
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Code Review Command
|
|
2
|
+
|
|
3
|
+
Review code files with objective quality metrics, security analysis, and actionable feedback.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
@review <file-path>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or with natural language:
|
|
12
|
+
```
|
|
13
|
+
Review the code in src/api/auth.py
|
|
14
|
+
Check the quality of src/utils/helpers.py
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## What It Does
|
|
18
|
+
|
|
19
|
+
1. **Calculates Objective Scores** (5 metrics):
|
|
20
|
+
- Complexity Score (0-10)
|
|
21
|
+
- Security Score (0-10)
|
|
22
|
+
- Maintainability Score (0-10)
|
|
23
|
+
- Test Coverage Score (0-100%)
|
|
24
|
+
- Performance Score (0-10)
|
|
25
|
+
|
|
26
|
+
2. **Runs Quality Tools**:
|
|
27
|
+
- Ruff linting (Python)
|
|
28
|
+
- mypy type checking
|
|
29
|
+
- Bandit security scanning
|
|
30
|
+
- Code duplication detection
|
|
31
|
+
- Dependency vulnerability audit
|
|
32
|
+
|
|
33
|
+
3. **Provides Actionable Feedback**:
|
|
34
|
+
- Specific line numbers for issues
|
|
35
|
+
- Code examples for fixes
|
|
36
|
+
- Security recommendations
|
|
37
|
+
- Best practice suggestions
|
|
38
|
+
|
|
39
|
+
## Examples
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
@review src/api/auth.py
|
|
43
|
+
@review src/utils/helpers.py
|
|
44
|
+
@review tests/test_auth.py
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Output Format
|
|
48
|
+
|
|
49
|
+
- Quality scores with pass/fail status
|
|
50
|
+
- Detailed issue list with line numbers
|
|
51
|
+
- Security vulnerabilities (if any)
|
|
52
|
+
- Actionable recommendations
|
|
53
|
+
- Code examples for fixes
|
|
54
|
+
|
|
55
|
+
## Quality Gates
|
|
56
|
+
|
|
57
|
+
- Overall score must be ≥ 70
|
|
58
|
+
- Security score must be ≥ 7.0
|
|
59
|
+
- Complexity should be ≤ 8.0
|
|
60
|
+
|
|
61
|
+
## Integration
|
|
62
|
+
|
|
63
|
+
This command works with:
|
|
64
|
+
- **Cursor**: Use `@reviewer *review <file>` (Cursor Skill)
|
|
65
|
+
- **Claude Desktop**: Use `@review <file>` (this command)
|
|
66
|
+
- **CLI**: Use `tapps-agents reviewer review <file>`
|
|
67
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Code Score Command
|
|
2
|
+
|
|
3
|
+
Quick code quality scoring without detailed feedback. Faster than full review.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
@score <file-path>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or with natural language:
|
|
12
|
+
```
|
|
13
|
+
Score src/api/auth.py
|
|
14
|
+
What's the quality score of src/utils/helpers.py?
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## What It Does
|
|
18
|
+
|
|
19
|
+
Calculates objective quality metrics only (no LLM feedback):
|
|
20
|
+
- Complexity Score (0-10)
|
|
21
|
+
- Security Score (0-10)
|
|
22
|
+
- Maintainability Score (0-10)
|
|
23
|
+
- Test Coverage Score (0-100%)
|
|
24
|
+
- Performance Score (0-10)
|
|
25
|
+
- Overall Score (0-100)
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
@score src/api/auth.py
|
|
31
|
+
@score src/utils/helpers.py
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Output Format
|
|
35
|
+
|
|
36
|
+
Quick score summary:
|
|
37
|
+
```
|
|
38
|
+
📊 Code Scores: src/api/auth.py
|
|
39
|
+
|
|
40
|
+
- Complexity: 7.2/10 ✅
|
|
41
|
+
- Security: 8.5/10 ✅
|
|
42
|
+
- Maintainability: 7.8/10 ✅
|
|
43
|
+
- Test Coverage: 85% ✅
|
|
44
|
+
- Performance: 7.0/10 ✅
|
|
45
|
+
- Overall: 76.5/100 ✅ PASS
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## When to Use
|
|
49
|
+
|
|
50
|
+
- Quick quality checks before committing
|
|
51
|
+
- CI/CD quality gates
|
|
52
|
+
- Comparing code quality across files
|
|
53
|
+
- Fast feedback during development
|
|
54
|
+
|
|
55
|
+
## Integration
|
|
56
|
+
|
|
57
|
+
- **Cursor**: Use `@reviewer *score <file>` (Cursor Skill)
|
|
58
|
+
- **Claude Desktop**: Use `@score <file>` (this command)
|
|
59
|
+
- **CLI**: Use `tapps-agents reviewer score <file>`
|
|
60
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Security Review Command (Simple Mode)
|
|
2
|
+
|
|
3
|
+
Structured security check: reviewer + ops + OWASP-style checklist.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
@security-review
|
|
9
|
+
@security-review <path>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Or: `@simple-mode *security-review [path]`
|
|
13
|
+
|
|
14
|
+
## What It Does
|
|
15
|
+
|
|
16
|
+
1. `@reviewer *review` (security score, bandit)
|
|
17
|
+
2. `@ops *audit-security`
|
|
18
|
+
3. Apply OWASP-style checklist; summarize and give remediation hints
|
|
19
|
+
|
|
20
|
+
## Integration
|
|
21
|
+
|
|
22
|
+
- **Cursor**: `@simple-mode *security-review [path]` or `@security-review`
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Security Scan Command
|
|
2
|
+
|
|
3
|
+
Scan code for security vulnerabilities and provide remediation recommendations.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
@security-scan <file-path>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or with natural language:
|
|
12
|
+
```
|
|
13
|
+
Scan src/api/auth.py for security issues
|
|
14
|
+
Check for vulnerabilities in src/utils/helpers.py
|
|
15
|
+
Audit the security of the authentication module
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## What It Does
|
|
19
|
+
|
|
20
|
+
1. **Scans Code**: Analyzes code for security vulnerabilities
|
|
21
|
+
2. **Checks Dependencies**: Audits dependencies for known vulnerabilities
|
|
22
|
+
3. **Identifies Issues**: Finds security issues and weaknesses
|
|
23
|
+
4. **Provides Fixes**: Recommends specific security fixes
|
|
24
|
+
5. **Prioritizes**: Ranks issues by severity
|
|
25
|
+
|
|
26
|
+
## Examples
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
@security-scan src/api/auth.py
|
|
30
|
+
@security-scan src/utils/helpers.py
|
|
31
|
+
@security-scan . --dependencies
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Features
|
|
35
|
+
|
|
36
|
+
- **Vulnerability Detection**: Finds common security issues
|
|
37
|
+
- **Dependency Audit**: Checks for vulnerable dependencies
|
|
38
|
+
- **Severity Ranking**: Prioritizes issues by severity
|
|
39
|
+
- **Fix Recommendations**: Provides specific fixes
|
|
40
|
+
- **Best Practices**: Suggests security best practices
|
|
41
|
+
|
|
42
|
+
## Output
|
|
43
|
+
|
|
44
|
+
- Security scan report
|
|
45
|
+
- Vulnerability list with severity
|
|
46
|
+
- Fix recommendations
|
|
47
|
+
- Dependency audit results
|
|
48
|
+
|
|
49
|
+
## Integration
|
|
50
|
+
|
|
51
|
+
- **Cursor**: Use `@reviewer *security-scan <file>` (Cursor Skill)
|
|
52
|
+
- **Claude Desktop**: Use `@security-scan <file>` (this command)
|
|
53
|
+
- **CLI**: Use `tapps-agents reviewer security-scan <file>`
|
|
54
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# TDD Command (Simple Mode)
|
|
2
|
+
|
|
3
|
+
TDD workflow: Red-Green-Refactor with coverage ≥80%.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
@tdd "<description>"
|
|
9
|
+
@tdd <file>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Or: `@simple-mode *tdd "<description>"` or `*tdd {file}`
|
|
13
|
+
|
|
14
|
+
## What It Does
|
|
15
|
+
|
|
16
|
+
1. Define interfaces/contracts
|
|
17
|
+
2. Write failing tests (RED) via `@tester *generate-tests`
|
|
18
|
+
3. Implement minimal code (GREEN) via `@implementer *implement`
|
|
19
|
+
4. Refactor (IMPROVE) via `@implementer *refactor`
|
|
20
|
+
5. `@tester *test` and ensure coverage ≥80%
|
|
21
|
+
|
|
22
|
+
## Integration
|
|
23
|
+
|
|
24
|
+
- **Cursor**: `@simple-mode *tdd "<desc>"` or `*tdd {file}`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Test Coverage Command (Simple Mode)
|
|
2
|
+
|
|
3
|
+
Coverage-driven test generation. Find gaps and generate tests for uncovered paths.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
@test-coverage <file> [--target 80]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or: `@simple-mode *test-coverage <file> --target 80`
|
|
12
|
+
|
|
13
|
+
## What It Does
|
|
14
|
+
|
|
15
|
+
1. Use coverage.xml/coverage.json to find low/uncovered modules
|
|
16
|
+
2. `@tester *test` for those paths to improve coverage
|
|
17
|
+
3. Report coverage change
|
|
18
|
+
|
|
19
|
+
## Integration
|
|
20
|
+
|
|
21
|
+
- **Cursor**: `@simple-mode *test-coverage <file> --target 80`
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Test Command
|
|
2
|
+
|
|
3
|
+
Generate comprehensive tests for code files with coverage analysis.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
@test <file-path>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or with natural language:
|
|
12
|
+
```
|
|
13
|
+
Generate tests for src/api/auth.py
|
|
14
|
+
Add test coverage for src/utils/helpers.py
|
|
15
|
+
Create tests for the authentication module
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## What It Does
|
|
19
|
+
|
|
20
|
+
1. **Analyzes Code**: Understands the code structure and functionality
|
|
21
|
+
2. **Generates Tests**: Creates unit tests and integration tests
|
|
22
|
+
3. **Runs Tests**: Executes the test suite
|
|
23
|
+
4. **Reports Coverage**: Shows test coverage metrics
|
|
24
|
+
5. **Validates**: Ensures tests pass and cover critical paths
|
|
25
|
+
|
|
26
|
+
## Examples
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
@test src/api/auth.py
|
|
30
|
+
@test src/utils/helpers.py
|
|
31
|
+
@test tests/test_auth.py --integration
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Features
|
|
35
|
+
|
|
36
|
+
- **Unit Tests**: Tests individual functions and methods
|
|
37
|
+
- **Integration Tests**: Tests component interactions (optional)
|
|
38
|
+
- **Coverage Analysis**: Reports code coverage percentage
|
|
39
|
+
- **Test Patterns**: Follows project testing patterns (pytest, unittest, etc.)
|
|
40
|
+
- **Edge Cases**: Includes edge case and error handling tests
|
|
41
|
+
|
|
42
|
+
## Output
|
|
43
|
+
|
|
44
|
+
- Generated test files
|
|
45
|
+
- Test execution results
|
|
46
|
+
- Coverage report
|
|
47
|
+
- Test pass/fail status
|
|
48
|
+
|
|
49
|
+
## Integration
|
|
50
|
+
|
|
51
|
+
- **Cursor**: Use `@tester *test <file>` (Cursor Skill)
|
|
52
|
+
- **Claude Desktop**: Use `@test <file>` (this command)
|
|
53
|
+
- **CLI**: Use `tapps-agents tester test <file>`
|
|
54
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Update Codemaps Command (Simple Mode)
|
|
2
|
+
|
|
3
|
+
Refresh codemap/context index (e.g. Context7 cache).
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
@update-codemaps
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or: `@simple-mode *update-codemaps`
|
|
12
|
+
|
|
13
|
+
## What It Does
|
|
14
|
+
|
|
15
|
+
1. Refresh project codemap or context index
|
|
16
|
+
2. If Context7: `@reviewer *docs-refresh` or project cache refresh flow
|
|
17
|
+
|
|
18
|
+
## Integration
|
|
19
|
+
|
|
20
|
+
- **Cursor**: `@simple-mode *update-codemaps`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Update Docs Command (Simple Mode)
|
|
2
|
+
|
|
3
|
+
Sync documentation with code.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
@update-docs
|
|
9
|
+
@update-docs <path>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Or: `@simple-mode *update-docs [path]`
|
|
13
|
+
|
|
14
|
+
## What It Does
|
|
15
|
+
|
|
16
|
+
1. `@documenter *document` or `*document-api` for target
|
|
17
|
+
2. Sync README or docs/ if project scripts exist
|
|
18
|
+
|
|
19
|
+
## Integration
|
|
20
|
+
|
|
21
|
+
- **Cursor**: `@simple-mode *update-docs [path]`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Claude Desktop skill definitions."""
|