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,630 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Quick reference guide for common TappsCodingAgents commands and workflows. DEFAULT to @simple-mode for all development tasks.
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# TappsCodingAgents Quick Reference
|
|
7
|
+
|
|
8
|
+
## ⚠️ IMPORTANT: Default to @simple-mode
|
|
9
|
+
|
|
10
|
+
**For ALL development tasks, you should DEFAULT to using `@simple-mode` commands.**
|
|
11
|
+
|
|
12
|
+
**New Feature:** Simple Mode now proactively suggests workflows when you request feature implementation, bug fixes, or code reviews. These suggestions help ensure you get automatic test generation, quality gates, and comprehensive documentation.
|
|
13
|
+
|
|
14
|
+
### Quick Decision Guide
|
|
15
|
+
|
|
16
|
+
| User Wants To... | Use This Command |
|
|
17
|
+
|------------------|------------------|
|
|
18
|
+
| Build a new feature | `@simple-mode *build "description"` (includes mandatory tests, 80%+ coverage) |
|
|
19
|
+
| Fix a bug/error | `@simple-mode *fix <file> "description"` |
|
|
20
|
+
| Review code quality | `@simple-mode *review <file>` |
|
|
21
|
+
| Add tests | `@simple-mode *test <file>` |
|
|
22
|
+
| Refactor code | `@simple-mode *refactor <file>` |
|
|
23
|
+
| TDD (Red-Green-Refactor) | `@simple-mode *tdd <file>` or `*tdd "description"` |
|
|
24
|
+
| E2E tests | `@simple-mode *e2e` or `@tester *generate-e2e-tests` |
|
|
25
|
+
| Fix build/compile errors | `@simple-mode *build-fix "output or description"` |
|
|
26
|
+
| Dead code cleanup | `@simple-mode *refactor-clean <file>` |
|
|
27
|
+
| Sync documentation | `@simple-mode *update-docs [path]` |
|
|
28
|
+
| Refresh codemap/Context7 | `@simple-mode *update-codemaps` |
|
|
29
|
+
| Coverage-driven tests | `@simple-mode *test-coverage <file> --target 80` |
|
|
30
|
+
| Security audit | `@simple-mode *security-review [path]` or `@security-review` |
|
|
31
|
+
| Coding standards | `@coding-standards` or `@simple-mode *review` |
|
|
32
|
+
| Backend patterns | `@backend-patterns` |
|
|
33
|
+
| Frontend/a11y patterns | `@frontend-patterns` |
|
|
34
|
+
| Quick score only | `@reviewer *score <file>` (exception) |
|
|
35
|
+
|
|
36
|
+
**Importance and when to use:** See `when-to-use.mdc` for which capabilities matter most (Tier 1–2 first) and when to use each workflow, agent, and command.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## ⚠️ IMPORTANT: CLI Workflow Commands Not Recommended in Cursor Mode
|
|
41
|
+
|
|
42
|
+
**If you see a warning about CLI workflow commands in Cursor mode:**
|
|
43
|
+
|
|
44
|
+
- ✅ **Use `@simple-mode` commands in Cursor chat instead**
|
|
45
|
+
- ✅ **Use CLI commands in terminal/CI (outside Cursor IDE)**
|
|
46
|
+
- ✅ **Run `tapps-agents init` if Simple Mode isn't working**
|
|
47
|
+
|
|
48
|
+
See `.cursor/rules/cursor-mode-usage.mdc` for complete guidance.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Where to Run Commands: Cursor Chat vs Terminal/CI
|
|
53
|
+
|
|
54
|
+
### Use Cursor Chat (Recommended for Interactive Development)
|
|
55
|
+
|
|
56
|
+
**Best for:** Interactive development, natural language, learning, iterative work
|
|
57
|
+
|
|
58
|
+
**Primary Syntax:** `@simple-mode *command` (orchestrates multiple agents)
|
|
59
|
+
**Advanced Syntax:** `@agent-name *command` (single agent operations)
|
|
60
|
+
|
|
61
|
+
**Examples:**
|
|
62
|
+
```cursor
|
|
63
|
+
# Simple Mode (RECOMMENDED - use this by default)
|
|
64
|
+
@simple-mode *build "Add user authentication"
|
|
65
|
+
@simple-mode *review src/api.py
|
|
66
|
+
@simple-mode *fix src/buggy.py "Fix the error"
|
|
67
|
+
@simple-mode *test src/service.py
|
|
68
|
+
@simple-mode *refactor src/legacy.py
|
|
69
|
+
|
|
70
|
+
# Individual agents (use only for targeted operations)
|
|
71
|
+
@reviewer *score src/main.py
|
|
72
|
+
@reviewer *review src/api.py
|
|
73
|
+
@implementer *implement "Add feature" src/feature.py
|
|
74
|
+
@tester *test src/utils.py
|
|
75
|
+
@debugger *debug "KeyError: 'user_id'" --file src/api.py --line 42
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Advantages:**
|
|
79
|
+
- Natural language interaction
|
|
80
|
+
- Context-aware (file open, selection)
|
|
81
|
+
- Integrated with IDE
|
|
82
|
+
- Skill-based execution
|
|
83
|
+
|
|
84
|
+
### Use Terminal/CI (Recommended for Automation)
|
|
85
|
+
|
|
86
|
+
**Best for:** Batch processing, CI/CD pipelines, scripting, headless environments
|
|
87
|
+
|
|
88
|
+
**Syntax:** `tapps-agents <agent> <command> [--flags]`
|
|
89
|
+
|
|
90
|
+
**Global options (all commands; flags can appear before OR after the subcommand):**
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
# Progress UI (modern 2025-style: Rich spinner/progress when interactive)
|
|
94
|
+
tapps-agents doctor --progress rich
|
|
95
|
+
tapps-agents reviewer score README.md --no-progress
|
|
96
|
+
|
|
97
|
+
# Equivalent (flags before subcommand)
|
|
98
|
+
tapps-agents --progress plain doctor
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
- `--quiet` / `-q`: Quiet mode (errors + final results)
|
|
102
|
+
- `--verbose` / `-v`: Verbose diagnostics
|
|
103
|
+
- `--progress {auto,rich,plain,off}`: Progress UI mode
|
|
104
|
+
- `--no-progress`: Disable progress UI (same as `--progress off`)
|
|
105
|
+
- Env: `TAPPS_PROGRESS=auto|rich|plain|off`, `TAPPS_NO_PROGRESS=1` / `NO_PROGRESS=1`
|
|
106
|
+
|
|
107
|
+
**Examples:**
|
|
108
|
+
```bash
|
|
109
|
+
# Workflow presets (automated)
|
|
110
|
+
tapps-agents workflow rapid --prompt "Add feature" --auto
|
|
111
|
+
tapps-agents workflow fix --file src/buggy.py --auto
|
|
112
|
+
|
|
113
|
+
# Batch processing
|
|
114
|
+
tapps-agents reviewer review --pattern "**/*.py" --max-workers 8
|
|
115
|
+
tapps-agents reviewer score src/ --format json > quality-report.json
|
|
116
|
+
|
|
117
|
+
# CI/CD quality gates
|
|
118
|
+
tapps-agents reviewer score src/ --format json
|
|
119
|
+
tapps-agents reviewer lint src/ --format json
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
**Advantages:**
|
|
123
|
+
- Scriptable and automatable
|
|
124
|
+
- Structured output formats (JSON)
|
|
125
|
+
- Batch file processing
|
|
126
|
+
- CI/CD integration
|
|
127
|
+
- Workflow state management
|
|
128
|
+
|
|
129
|
+
### Dual-Mode Commands
|
|
130
|
+
|
|
131
|
+
These commands work in **both** modes with equivalent results:
|
|
132
|
+
|
|
133
|
+
| Task | Cursor Syntax | CLI Syntax |
|
|
134
|
+
|------|---------------|------------|
|
|
135
|
+
| Review | `@reviewer *review <file>` | `tapps-agents reviewer review <file>` |
|
|
136
|
+
| Score | `@reviewer *score <file>` | `tapps-agents reviewer score <file>` |
|
|
137
|
+
| Implement | `@implementer *implement "<spec>" <file>` | `tapps-agents implementer implement "<spec>" <file>` |
|
|
138
|
+
| Test | `@tester *test <file>` | `tapps-agents tester test <file>` |
|
|
139
|
+
| Debug | `@debugger *debug "<error>" --file <file>` | `tapps-agents debugger debug "<error>" --file <file>` |
|
|
140
|
+
|
|
141
|
+
**Choose based on:**
|
|
142
|
+
- **Cursor**: Interactive, context-aware, natural language
|
|
143
|
+
- **CLI**: Batch, automation, structured output, CI/CD
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## Most Common Commands
|
|
148
|
+
|
|
149
|
+
### Code Review & Quality
|
|
150
|
+
```bash
|
|
151
|
+
# Quick code scoring (fast, no LLM)
|
|
152
|
+
python -m tapps_agents.cli reviewer score <file>
|
|
153
|
+
|
|
154
|
+
# Full code review (with LLM feedback)
|
|
155
|
+
python -m tapps_agents.cli reviewer review <file>
|
|
156
|
+
|
|
157
|
+
# Linting (Ruff)
|
|
158
|
+
python -m tapps_agents.cli reviewer lint <file>
|
|
159
|
+
|
|
160
|
+
# Type checking (mypy)
|
|
161
|
+
python -m tapps_agents.cli reviewer type-check <file>
|
|
162
|
+
|
|
163
|
+
# Generate quality reports
|
|
164
|
+
python -m tapps_agents.cli reviewer report <dir> json markdown html
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### Workflow Presets
|
|
168
|
+
```bash
|
|
169
|
+
# List all workflows
|
|
170
|
+
python -m tapps_agents.cli workflow list
|
|
171
|
+
|
|
172
|
+
# Run workflows
|
|
173
|
+
python -m tapps_agents.cli workflow rapid # Feature development
|
|
174
|
+
python -m tapps_agents.cli workflow full # Enterprise SDLC
|
|
175
|
+
python -m tapps_agents.cli workflow quality # Quality improvement
|
|
176
|
+
python -m tapps_agents.cli workflow fix # Bug fixes & refactoring
|
|
177
|
+
python -m tapps_agents.cli workflow hotfix # Urgent fixes
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Workflow Execution Flags
|
|
181
|
+
```bash
|
|
182
|
+
# Pre-flight validation (check before running)
|
|
183
|
+
tapps-agents workflow rapid --dry-run --prompt "Add feature"
|
|
184
|
+
|
|
185
|
+
# Explicit mode control
|
|
186
|
+
tapps-agents workflow rapid --cli-mode --prompt "Add feature" # Force CLI/headless
|
|
187
|
+
tapps-agents workflow rapid --cursor-mode --prompt "Add feature" # Force Cursor Skills
|
|
188
|
+
|
|
189
|
+
# Resume/partial execution
|
|
190
|
+
tapps-agents workflow rapid --continue-from implementation --prompt "Add feature"
|
|
191
|
+
tapps-agents workflow rapid --skip-steps "enhance,plan" --prompt "Add feature"
|
|
192
|
+
|
|
193
|
+
# Output control
|
|
194
|
+
tapps-agents workflow rapid --print-paths --prompt "Add feature" # Show artifact paths (default)
|
|
195
|
+
tapps-agents workflow rapid --no-print-paths --prompt "Add feature"
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Quick Project Creation (Cursor Native)
|
|
199
|
+
```bash
|
|
200
|
+
# Create a complete project from description (uses full SDLC workflow)
|
|
201
|
+
python -m tapps_agents.cli create "Create a modern web application"
|
|
202
|
+
|
|
203
|
+
# This is a shortcut for: workflow full --auto --prompt
|
|
204
|
+
# Automatically runs in Cursor-native mode
|
|
205
|
+
# Uses Cursor Skills
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Code Generation
|
|
209
|
+
```bash
|
|
210
|
+
# Generate code from specification
|
|
211
|
+
python -m tapps_agents.cli implementer implement "description" <file.py>
|
|
212
|
+
|
|
213
|
+
# Refactor existing code
|
|
214
|
+
python -m tapps_agents.cli implementer refactor <file.py> "instruction"
|
|
215
|
+
|
|
216
|
+
# Generate code without writing to file
|
|
217
|
+
python -m tapps_agents.cli implementer generate-code "description"
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### Testing
|
|
221
|
+
```bash
|
|
222
|
+
# Generate and run tests
|
|
223
|
+
python -m tapps_agents.cli tester test <file.py>
|
|
224
|
+
|
|
225
|
+
# Generate tests only
|
|
226
|
+
python -m tapps_agents.cli tester generate-tests <file.py>
|
|
227
|
+
|
|
228
|
+
# Run existing tests
|
|
229
|
+
python -m tapps_agents.cli tester run-tests
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### Environment & Setup
|
|
233
|
+
```bash
|
|
234
|
+
# Check environment status
|
|
235
|
+
python -m tapps_agents.cli doctor
|
|
236
|
+
|
|
237
|
+
# Initialize project
|
|
238
|
+
python -m tapps_agents.cli init
|
|
239
|
+
|
|
240
|
+
# Setup experts
|
|
241
|
+
python -m tapps_agents.cli setup-experts init --yes --non-interactive
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
## Agent Usage Patterns
|
|
245
|
+
|
|
246
|
+
### Reviewer Agent
|
|
247
|
+
**Best for:** Code quality analysis, scoring, linting, type checking
|
|
248
|
+
```bash
|
|
249
|
+
# Quick score (fastest)
|
|
250
|
+
python -m tapps_agents.cli reviewer score <file>
|
|
251
|
+
|
|
252
|
+
# Full review (comprehensive)
|
|
253
|
+
python -m tapps_agents.cli reviewer review <file> --model qwen2.5-coder:7b
|
|
254
|
+
|
|
255
|
+
# Quality tools
|
|
256
|
+
python -m tapps_agents.cli reviewer lint <file>
|
|
257
|
+
python -m tapps_agents.cli reviewer type-check <file>
|
|
258
|
+
python -m tapps_agents.cli reviewer report <dir> json markdown html
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
### Implementer Agent
|
|
262
|
+
**Best for:** Code generation, refactoring, implementation
|
|
263
|
+
```bash
|
|
264
|
+
# Generate new code
|
|
265
|
+
python -m tapps_agents.cli implementer implement "Create a function to calculate factorial" factorial.py
|
|
266
|
+
|
|
267
|
+
# Refactor existing code
|
|
268
|
+
python -m tapps_agents.cli implementer refactor service.py "Add type hints and extract helper functions"
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
### Planner Agent
|
|
272
|
+
**Best for:** Planning features, creating user stories
|
|
273
|
+
```bash
|
|
274
|
+
# Create a plan
|
|
275
|
+
python -m tapps_agents.cli planner plan "Add user authentication system"
|
|
276
|
+
|
|
277
|
+
# Create user story
|
|
278
|
+
python -m tapps_agents.cli planner create-story "User can log in" --epic auth --priority high
|
|
279
|
+
|
|
280
|
+
# List stories
|
|
281
|
+
python -m tapps_agents.cli planner list-stories
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### Tester Agent
|
|
285
|
+
**Best for:** Test generation and execution
|
|
286
|
+
```bash
|
|
287
|
+
# Generate and run tests
|
|
288
|
+
python -m tapps_agents.cli tester test service.py
|
|
289
|
+
|
|
290
|
+
# Generate integration tests
|
|
291
|
+
python -m tapps_agents.cli tester test service.py --integration
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
### Debugger Agent
|
|
295
|
+
**Best for:** Error analysis and debugging
|
|
296
|
+
```bash
|
|
297
|
+
# Debug an error
|
|
298
|
+
python -m tapps_agents.cli debugger debug "ImportError: No module named 'xyz'" --file app.py --line 10
|
|
299
|
+
|
|
300
|
+
# Analyze error
|
|
301
|
+
python -m tapps_agents.cli debugger analyze-error "ValueError: invalid literal" --stack-trace "..."
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
### Enhancer Agent
|
|
305
|
+
**Best for:** Prompt enhancement with expert consultation. Workflow: full-sdlc (optional), rapid-dev, Epic (EnhancerHandler). CLI: `auto_enhancement` (CONFIGURATION.md).
|
|
306
|
+
```bash
|
|
307
|
+
# Full enhancement
|
|
308
|
+
python -m tapps_agents.cli enhancer enhance "Add user authentication"
|
|
309
|
+
|
|
310
|
+
# Quick enhancement
|
|
311
|
+
python -m tapps_agents.cli enhancer enhance-quick "Add user authentication"
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
### Evaluator Agent
|
|
315
|
+
**Best for:** Framework effectiveness evaluation and continuous improvement
|
|
316
|
+
```bash
|
|
317
|
+
# Evaluate framework effectiveness
|
|
318
|
+
@evaluator *evaluate
|
|
319
|
+
@evaluator *evaluate --workflow-id workflow-123
|
|
320
|
+
|
|
321
|
+
# Evaluate specific workflow
|
|
322
|
+
@evaluator *evaluate-workflow workflow-123
|
|
323
|
+
|
|
324
|
+
# CLI equivalent
|
|
325
|
+
tapps-agents evaluator evaluate
|
|
326
|
+
tapps-agents evaluator evaluate --workflow-id workflow-123
|
|
327
|
+
tapps-agents evaluator evaluate-workflow workflow-123
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
**Output:** Structured markdown reports saved to `.tapps-agents/evaluations/`
|
|
331
|
+
|
|
332
|
+
## Development Workflows
|
|
333
|
+
|
|
334
|
+
### Adding a New Feature
|
|
335
|
+
1. **Plan:** `python -m tapps_agents.cli planner plan "Feature description"`
|
|
336
|
+
2. **Enhance prompt:** `python -m tapps_agents.cli enhancer enhance "Feature description"`
|
|
337
|
+
3. **Implement:** `python -m tapps_agents.cli workflow rapid`
|
|
338
|
+
4. **Review:** `python -m tapps_agents.cli reviewer review <new-file>`
|
|
339
|
+
|
|
340
|
+
### Fixing a Bug
|
|
341
|
+
1. **Debug:** `python -m tapps_agents.cli debugger debug "error message" --file <file>`
|
|
342
|
+
2. **Fix:** `python -m tapps_agents.cli workflow hotfix`
|
|
343
|
+
3. **Test:** `python -m tapps_agents.cli tester test <file>`
|
|
344
|
+
|
|
345
|
+
### Refactoring Code
|
|
346
|
+
1. **Analyze:** `python -m tapps_agents.cli reviewer score <file>`
|
|
347
|
+
2. **Refactor:** `python -m tapps_agents.cli workflow fix`
|
|
348
|
+
3. **Verify:** `python -m tapps_agents.cli reviewer review <file>`
|
|
349
|
+
|
|
350
|
+
### Quality Improvement Sprint
|
|
351
|
+
1. **Initial analysis:** `python -m tapps_agents.cli reviewer report . json markdown html`
|
|
352
|
+
2. **Improve:** `python -m tapps_agents.cli workflow quality`
|
|
353
|
+
3. **Validate:** `python -m tapps_agents.cli reviewer report . json markdown html`
|
|
354
|
+
|
|
355
|
+
## Configuration Quick Fixes
|
|
356
|
+
|
|
357
|
+
### Model Configuration
|
|
358
|
+
Edit `.tapps-agents/config.yaml`:
|
|
359
|
+
```yaml
|
|
360
|
+
# MAL configuration removed - framework now uses Cursor Skills exclusively
|
|
361
|
+
# All LLM operations are handled by Cursor via Skills
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
### Quality Thresholds
|
|
365
|
+
```yaml
|
|
366
|
+
agents:
|
|
367
|
+
reviewer:
|
|
368
|
+
quality_threshold: 70 # Minimum overall score
|
|
369
|
+
security_threshold: 7.0
|
|
370
|
+
maintainability_threshold: 7.0
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
### Tool Configuration
|
|
374
|
+
```yaml
|
|
375
|
+
external_tools:
|
|
376
|
+
mode: "soft" # soft, strict, or disabled
|
|
377
|
+
ruff_enabled: true
|
|
378
|
+
mypy_enabled: true
|
|
379
|
+
pytest_enabled: true
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
## Troubleshooting
|
|
383
|
+
|
|
384
|
+
### Tools Not Found on PATH
|
|
385
|
+
**Issue:** Doctor shows tools missing on PATH
|
|
386
|
+
**Solution:** Use Python module syntax:
|
|
387
|
+
- `python -m ruff` instead of `ruff`
|
|
388
|
+
- `python -m mypy` instead of `mypy`
|
|
389
|
+
- `python -m pytest` instead of `pytest`
|
|
390
|
+
|
|
391
|
+
The framework handles this automatically, but you can also add Scripts directory to PATH.
|
|
392
|
+
|
|
393
|
+
### Python Version Warning
|
|
394
|
+
**Issue:** Doctor warns about Python version
|
|
395
|
+
**Solution:** If you're on Python 3.13+, you're fine. The warning is informational. The project requires `>=3.13`.
|
|
396
|
+
|
|
397
|
+
### Playwright Warning
|
|
398
|
+
**Issue:** "Playwright not available" message
|
|
399
|
+
**Solution:** This refers to the **Python Playwright package** not being installed.
|
|
400
|
+
|
|
401
|
+
**Playwright Options:**
|
|
402
|
+
- **Playwright MCP Server** (recommended in Cursor): Browser automation via Cursor's MCP tools
|
|
403
|
+
- Check status: `tapps-agents doctor`
|
|
404
|
+
- Configure in `.cursor/mcp.json`:
|
|
405
|
+
```json
|
|
406
|
+
{
|
|
407
|
+
"mcpServers": {
|
|
408
|
+
"Playwright": {
|
|
409
|
+
"command": "npx",
|
|
410
|
+
"args": ["-y", "@playwright/mcp-server"]
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
```
|
|
415
|
+
- **Python Playwright Package** (for CLI): Install if you need browser automation from CLI:
|
|
416
|
+
```bash
|
|
417
|
+
python -m pip install playwright
|
|
418
|
+
python -m playwright install
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
**Note:** If you're using **Cursor with Playwright MCP configured**, you can ignore the warning (browser automation is available through Cursor tools).
|
|
422
|
+
|
|
423
|
+
### Model Not Available
|
|
424
|
+
**Issue:** Agent operations not executing
|
|
425
|
+
**Solution:**
|
|
426
|
+
- Ensure Cursor Skills are properly installed and configured
|
|
427
|
+
- Verify agents are creating instruction objects correctly
|
|
428
|
+
- Check Cursor integration settings
|
|
429
|
+
|
|
430
|
+
## Quick Examples
|
|
431
|
+
|
|
432
|
+
### Example 1: Review a File
|
|
433
|
+
```bash
|
|
434
|
+
python -m tapps_agents.cli reviewer score tapps_agents/cli.py
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
### Example 2: Generate Code
|
|
438
|
+
```bash
|
|
439
|
+
python -m tapps_agents.cli implementer implement "Create a function to calculate fibonacci numbers" fibonacci.py
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
### Example 3: Run Quality Workflow
|
|
443
|
+
```bash
|
|
444
|
+
python -m tapps_agents.cli workflow quality
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
### Example 4: Generate Tests
|
|
448
|
+
```bash
|
|
449
|
+
python -m tapps_agents.cli tester test tapps_agents/core/config.py
|
|
450
|
+
```
|
|
451
|
+
|
|
452
|
+
### Example 5: Full Project Analysis
|
|
453
|
+
```bash
|
|
454
|
+
python -m tapps_agents.cli reviewer report . json markdown html
|
|
455
|
+
```
|
|
456
|
+
|
|
457
|
+
### Example 6: Evaluate Framework Effectiveness
|
|
458
|
+
```bash
|
|
459
|
+
# Evaluate overall framework effectiveness
|
|
460
|
+
@evaluator *evaluate
|
|
461
|
+
|
|
462
|
+
# Evaluate specific workflow execution
|
|
463
|
+
@evaluator *evaluate-workflow workflow-123
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
## Simple Mode (New Users)
|
|
467
|
+
|
|
468
|
+
**Simple Mode** provides a simplified, task-first interface that hides complexity while showcasing the power of TappsCodingAgents. Use natural language commands instead of agent-specific syntax.
|
|
469
|
+
|
|
470
|
+
### Using Simple Mode
|
|
471
|
+
|
|
472
|
+
Invoke Simple Mode using the `@simple-mode` skill in Cursor chat:
|
|
473
|
+
|
|
474
|
+
```
|
|
475
|
+
@simple-mode Build a user authentication feature
|
|
476
|
+
@simple-mode Review my authentication code
|
|
477
|
+
@simple-mode Fix the error in auth.py
|
|
478
|
+
@simple-mode Add tests for service.py
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
### Natural Language Commands
|
|
482
|
+
|
|
483
|
+
Simple Mode understands natural language intent:
|
|
484
|
+
|
|
485
|
+
- **Build**: "Build a user authentication feature", "Create a REST API for products"
|
|
486
|
+
- **Review**: "Review my authentication code", "Check the quality of auth.py"
|
|
487
|
+
- **Fix**: "Fix the error in auth.py", "Debug the login issue"
|
|
488
|
+
- **Test**: "Add tests for service.py", "Generate tests for auth.py"
|
|
489
|
+
|
|
490
|
+
### Full Lifecycle Workflow
|
|
491
|
+
|
|
492
|
+
Run complete SDLC with automatic quality loopbacks:
|
|
493
|
+
|
|
494
|
+
```
|
|
495
|
+
@simple-mode full --prompt "Build a REST API for a todo app"
|
|
496
|
+
```
|
|
497
|
+
|
|
498
|
+
### Configuration
|
|
499
|
+
|
|
500
|
+
Enable Simple Mode:
|
|
501
|
+
```bash
|
|
502
|
+
tapps-agents simple-mode on
|
|
503
|
+
tapps-agents simple-mode status
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
See `.cursor/rules/simple-mode.mdc` for complete Simple Mode documentation.
|
|
507
|
+
|
|
508
|
+
## Natural Language Commands for Cursor
|
|
509
|
+
|
|
510
|
+
You can use these phrases in Cursor AI conversations:
|
|
511
|
+
|
|
512
|
+
- "Create a [project description]" → Uses `create` command (full SDLC)
|
|
513
|
+
- "Run rapid development workflow"
|
|
514
|
+
- "Set up experts"
|
|
515
|
+
- "Score this file" (when file is open)
|
|
516
|
+
- "Review the code quality"
|
|
517
|
+
- "Generate tests for this file"
|
|
518
|
+
- "Refactor this code"
|
|
519
|
+
- "Run quality improvement workflow"
|
|
520
|
+
- "Check for linting errors"
|
|
521
|
+
- "Type check this file"
|
|
522
|
+
- "Create a plan for [feature]"
|
|
523
|
+
- "Debug this error"
|
|
524
|
+
- "Evaluate framework effectiveness"
|
|
525
|
+
- "How well is TappsCodingAgents working?"
|
|
526
|
+
|
|
527
|
+
**Or use Simple Mode** (recommended for new users): `@simple-mode Build a feature`
|
|
528
|
+
|
|
529
|
+
## File Locations
|
|
530
|
+
|
|
531
|
+
- **Config:** `.tapps-agents/config.yaml`
|
|
532
|
+
- **Project Profile:** `.tapps-agents/project-profile.yaml` (auto-generated)
|
|
533
|
+
- **Workflow State:** `.tapps-agents/workflow-state/` (runtime state)
|
|
534
|
+
- **Workflows:** `workflows/presets/`
|
|
535
|
+
- **Reports:** `reports/quality/` or `.tapps-agents/reports/`
|
|
536
|
+
- **Sessions:** `.tapps-agents/sessions/` (Enhancer sessions)
|
|
537
|
+
- **Cache:** `.tapps-agents/kb/context7-cache/` (Context7 cache)
|
|
538
|
+
- **Cursor Skills:** `.claude/skills/` (15 agent skills including simple-mode)
|
|
539
|
+
|
|
540
|
+
## Context7 MCP Best Practices
|
|
541
|
+
|
|
542
|
+
**Context7** provides library documentation lookup via MCP (Model Context Protocol). These rules help you use Context7 effectively in Cursor.
|
|
543
|
+
|
|
544
|
+
### Automatic Context7 Usage
|
|
545
|
+
|
|
546
|
+
This rule file automatically instructs Cursor to use Context7 MCP when you need library/API documentation, code generation, setup or configuration steps - you don't need to explicitly ask.
|
|
547
|
+
|
|
548
|
+
**Example:**
|
|
549
|
+
```
|
|
550
|
+
User: "How do I use FastAPI routing?"
|
|
551
|
+
AI: [Automatically uses Context7] @reviewer *docs fastapi routing
|
|
552
|
+
```
|
|
553
|
+
|
|
554
|
+
### Use Library ID for Faster Lookups
|
|
555
|
+
|
|
556
|
+
If you already know the exact library you want, use the Context7 library ID syntax to skip library matching:
|
|
557
|
+
|
|
558
|
+
**Syntax:** `use library /library/id`
|
|
559
|
+
|
|
560
|
+
**Example:**
|
|
561
|
+
```
|
|
562
|
+
User: "Implement basic authentication with Supabase. use library /supabase/supabase for API and docs."
|
|
563
|
+
AI: [Directly loads Supabase docs without matching step]
|
|
564
|
+
```
|
|
565
|
+
|
|
566
|
+
The slash syntax (`/library/id`) tells Context7 exactly which library to load, making lookups faster and more precise.
|
|
567
|
+
|
|
568
|
+
### Specify Version for Version-Specific Docs
|
|
569
|
+
|
|
570
|
+
Mention the version in your prompt to get documentation for a specific library version:
|
|
571
|
+
|
|
572
|
+
**Example:**
|
|
573
|
+
```
|
|
574
|
+
User: "How do I set up Next.js 14 middleware? use context7"
|
|
575
|
+
AI: [Automatically matches Next.js 14 version and retrieves appropriate docs]
|
|
576
|
+
```
|
|
577
|
+
|
|
578
|
+
**Best Practices:**
|
|
579
|
+
- ✅ Always use Context7 for library documentation questions
|
|
580
|
+
- ✅ Use library ID syntax (`/library/id`) when you know the exact library
|
|
581
|
+
- ✅ Mention version numbers when you need version-specific documentation
|
|
582
|
+
- ✅ Use `@reviewer *docs <library>` or `@implementer *docs <library>` commands explicitly when needed
|
|
583
|
+
|
|
584
|
+
**Reference:** See [Context7 Best Practices](https://context7.com/docs/tips) for more information.
|
|
585
|
+
|
|
586
|
+
## Getting Help
|
|
587
|
+
|
|
588
|
+
```bash
|
|
589
|
+
# General help
|
|
590
|
+
python -m tapps_agents.cli --help
|
|
591
|
+
|
|
592
|
+
# Agent-specific help
|
|
593
|
+
python -m tapps_agents.cli reviewer help
|
|
594
|
+
python -m tapps_agents.cli implementer help
|
|
595
|
+
python -m tapps_agents.cli planner help
|
|
596
|
+
```
|
|
597
|
+
|
|
598
|
+
## Expert Setup (Cursor/CI-friendly)
|
|
599
|
+
|
|
600
|
+
```bash
|
|
601
|
+
python -m tapps_agents.cli setup-experts init --yes --non-interactive
|
|
602
|
+
```
|
|
603
|
+
|
|
604
|
+
## Version Check
|
|
605
|
+
|
|
606
|
+
```bash
|
|
607
|
+
python -c "import tapps_agents; print(tapps_agents.__version__)"
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
- Security Agent
|
|
611
|
+
- Multi-Service Analyzer
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
### Cursor Native Execution Mode
|
|
615
|
+
|
|
616
|
+
When running in Cursor IDE, workflows automatically use **Cursor Native Execution**:
|
|
617
|
+
- ✅ **No API Key Required** (file-based mode by default)
|
|
618
|
+
- ✅ Uses Cursor Skills (`@agent-name` commands)
|
|
619
|
+
- ✅ Leverages Cursor's configured LLM
|
|
620
|
+
- ✅ Project profiling automatically included
|
|
621
|
+
- ✅ Worktree isolation per workflow step
|
|
622
|
+
|
|
623
|
+
**Execution Modes:**
|
|
624
|
+
1. **File-Based** (default): Creates command files, works immediately
|
|
625
|
+
2. **API-Based** (optional): Programmatic execution with `CURSOR_API_KEY` set
|
|
626
|
+
|
|
627
|
+
**Project Profiling:**
|
|
628
|
+
- Automatically detects project characteristics (deployment type, tenancy, scale, compliance)
|
|
629
|
+
- Profile stored in `.tapps-agents/project-profile.yaml`
|
|
630
|
+
- Automatically included in all agent context
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Mandatory security checks - no hardcoded secrets, input validation, OWASP-style reminders
|
|
3
|
+
alwaysApply: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Security Rules
|
|
7
|
+
|
|
8
|
+
Always-follow security guidelines for code and configuration.
|
|
9
|
+
|
|
10
|
+
## No Hardcoded Secrets
|
|
11
|
+
|
|
12
|
+
- Never commit API keys, passwords, tokens, or credentials to source
|
|
13
|
+
- Use environment variables, secret managers, or project config (e.g. `.tapps-agents/config.yaml` with env overrides)
|
|
14
|
+
- Sanitize logs and error messages to avoid leaking secrets
|
|
15
|
+
|
|
16
|
+
## Input Validation
|
|
17
|
+
|
|
18
|
+
- Validate and sanitize all user input and external data
|
|
19
|
+
- Use allowlists over blocklists where possible
|
|
20
|
+
- Apply length limits and type checks before processing
|
|
21
|
+
|
|
22
|
+
## OWASP and Common Vulnerabilities
|
|
23
|
+
|
|
24
|
+
- **Injection**: parameterize queries; avoid string concatenation for SQL/shell/commands
|
|
25
|
+
- **XSS**: escape output in web UIs; use CSP where applicable
|
|
26
|
+
- **Broken auth**: use proven auth libraries; secure session and token handling
|
|
27
|
+
|
|
28
|
+
## References
|
|
29
|
+
|
|
30
|
+
- `tapps_agents/experts/knowledge/security/` - owasp-top10, secure-coding-practices, threat-modeling, vulnerability-patterns
|
|
31
|
+
- `tapps_agents/experts/knowledge/data-privacy-compliance/` - gdpr, hipaa, encryption-privacy
|
|
32
|
+
- Use `@reviewer *security-scan` and `@ops *audit-security` for structured checks
|