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.
Files changed (141) hide show
  1. tapps_agents/__init__.py +2 -2
  2. tapps_agents/agents/reviewer/scoring.py +1566 -1566
  3. tapps_agents/agents/reviewer/tools/__init__.py +41 -41
  4. tapps_agents/cli/commands/health.py +665 -665
  5. tapps_agents/cli/commands/top_level.py +3586 -3586
  6. tapps_agents/core/artifact_context_builder.py +293 -0
  7. tapps_agents/core/config.py +33 -0
  8. tapps_agents/health/orchestrator.py +271 -271
  9. tapps_agents/resources/__init__.py +5 -0
  10. tapps_agents/resources/claude/__init__.py +1 -0
  11. tapps_agents/resources/claude/commands/README.md +156 -0
  12. tapps_agents/resources/claude/commands/__init__.py +1 -0
  13. tapps_agents/resources/claude/commands/build-fix.md +22 -0
  14. tapps_agents/resources/claude/commands/build.md +77 -0
  15. tapps_agents/resources/claude/commands/debug.md +53 -0
  16. tapps_agents/resources/claude/commands/design.md +68 -0
  17. tapps_agents/resources/claude/commands/docs.md +53 -0
  18. tapps_agents/resources/claude/commands/e2e.md +22 -0
  19. tapps_agents/resources/claude/commands/fix.md +54 -0
  20. tapps_agents/resources/claude/commands/implement.md +53 -0
  21. tapps_agents/resources/claude/commands/improve.md +53 -0
  22. tapps_agents/resources/claude/commands/library-docs.md +64 -0
  23. tapps_agents/resources/claude/commands/lint.md +52 -0
  24. tapps_agents/resources/claude/commands/plan.md +65 -0
  25. tapps_agents/resources/claude/commands/refactor-clean.md +21 -0
  26. tapps_agents/resources/claude/commands/refactor.md +55 -0
  27. tapps_agents/resources/claude/commands/review.md +67 -0
  28. tapps_agents/resources/claude/commands/score.md +60 -0
  29. tapps_agents/resources/claude/commands/security-review.md +22 -0
  30. tapps_agents/resources/claude/commands/security-scan.md +54 -0
  31. tapps_agents/resources/claude/commands/tdd.md +24 -0
  32. tapps_agents/resources/claude/commands/test-coverage.md +21 -0
  33. tapps_agents/resources/claude/commands/test.md +54 -0
  34. tapps_agents/resources/claude/commands/update-codemaps.md +20 -0
  35. tapps_agents/resources/claude/commands/update-docs.md +21 -0
  36. tapps_agents/resources/claude/skills/__init__.py +1 -0
  37. tapps_agents/resources/claude/skills/analyst/SKILL.md +272 -0
  38. tapps_agents/resources/claude/skills/analyst/__init__.py +1 -0
  39. tapps_agents/resources/claude/skills/architect/SKILL.md +282 -0
  40. tapps_agents/resources/claude/skills/architect/__init__.py +1 -0
  41. tapps_agents/resources/claude/skills/backend-patterns/SKILL.md +30 -0
  42. tapps_agents/resources/claude/skills/backend-patterns/__init__.py +1 -0
  43. tapps_agents/resources/claude/skills/coding-standards/SKILL.md +29 -0
  44. tapps_agents/resources/claude/skills/coding-standards/__init__.py +1 -0
  45. tapps_agents/resources/claude/skills/debugger/SKILL.md +203 -0
  46. tapps_agents/resources/claude/skills/debugger/__init__.py +1 -0
  47. tapps_agents/resources/claude/skills/designer/SKILL.md +243 -0
  48. tapps_agents/resources/claude/skills/designer/__init__.py +1 -0
  49. tapps_agents/resources/claude/skills/documenter/SKILL.md +252 -0
  50. tapps_agents/resources/claude/skills/documenter/__init__.py +1 -0
  51. tapps_agents/resources/claude/skills/enhancer/SKILL.md +307 -0
  52. tapps_agents/resources/claude/skills/enhancer/__init__.py +1 -0
  53. tapps_agents/resources/claude/skills/evaluator/SKILL.md +204 -0
  54. tapps_agents/resources/claude/skills/evaluator/__init__.py +1 -0
  55. tapps_agents/resources/claude/skills/frontend-patterns/SKILL.md +29 -0
  56. tapps_agents/resources/claude/skills/frontend-patterns/__init__.py +1 -0
  57. tapps_agents/resources/claude/skills/implementer/SKILL.md +188 -0
  58. tapps_agents/resources/claude/skills/implementer/__init__.py +1 -0
  59. tapps_agents/resources/claude/skills/improver/SKILL.md +218 -0
  60. tapps_agents/resources/claude/skills/improver/__init__.py +1 -0
  61. tapps_agents/resources/claude/skills/ops/SKILL.md +281 -0
  62. tapps_agents/resources/claude/skills/ops/__init__.py +1 -0
  63. tapps_agents/resources/claude/skills/orchestrator/SKILL.md +390 -0
  64. tapps_agents/resources/claude/skills/orchestrator/__init__.py +1 -0
  65. tapps_agents/resources/claude/skills/planner/SKILL.md +254 -0
  66. tapps_agents/resources/claude/skills/planner/__init__.py +1 -0
  67. tapps_agents/resources/claude/skills/reviewer/SKILL.md +434 -0
  68. tapps_agents/resources/claude/skills/reviewer/__init__.py +1 -0
  69. tapps_agents/resources/claude/skills/security-review/SKILL.md +31 -0
  70. tapps_agents/resources/claude/skills/security-review/__init__.py +1 -0
  71. tapps_agents/resources/claude/skills/simple-mode/SKILL.md +695 -0
  72. tapps_agents/resources/claude/skills/simple-mode/__init__.py +1 -0
  73. tapps_agents/resources/claude/skills/tester/SKILL.md +219 -0
  74. tapps_agents/resources/claude/skills/tester/__init__.py +1 -0
  75. tapps_agents/resources/cursor/.cursorignore +35 -0
  76. tapps_agents/resources/cursor/__init__.py +1 -0
  77. tapps_agents/resources/cursor/commands/__init__.py +1 -0
  78. tapps_agents/resources/cursor/commands/build-fix.md +11 -0
  79. tapps_agents/resources/cursor/commands/build.md +11 -0
  80. tapps_agents/resources/cursor/commands/e2e.md +11 -0
  81. tapps_agents/resources/cursor/commands/fix.md +11 -0
  82. tapps_agents/resources/cursor/commands/refactor-clean.md +11 -0
  83. tapps_agents/resources/cursor/commands/review.md +11 -0
  84. tapps_agents/resources/cursor/commands/security-review.md +11 -0
  85. tapps_agents/resources/cursor/commands/tdd.md +11 -0
  86. tapps_agents/resources/cursor/commands/test-coverage.md +11 -0
  87. tapps_agents/resources/cursor/commands/test.md +11 -0
  88. tapps_agents/resources/cursor/commands/update-codemaps.md +10 -0
  89. tapps_agents/resources/cursor/commands/update-docs.md +11 -0
  90. tapps_agents/resources/cursor/rules/__init__.py +1 -0
  91. tapps_agents/resources/cursor/rules/agent-capabilities.mdc +687 -0
  92. tapps_agents/resources/cursor/rules/coding-style.mdc +31 -0
  93. tapps_agents/resources/cursor/rules/command-reference.mdc +2081 -0
  94. tapps_agents/resources/cursor/rules/cursor-mode-usage.mdc +125 -0
  95. tapps_agents/resources/cursor/rules/git-workflow.mdc +29 -0
  96. tapps_agents/resources/cursor/rules/performance.mdc +29 -0
  97. tapps_agents/resources/cursor/rules/project-context.mdc +163 -0
  98. tapps_agents/resources/cursor/rules/project-profiling.mdc +197 -0
  99. tapps_agents/resources/cursor/rules/quick-reference.mdc +630 -0
  100. tapps_agents/resources/cursor/rules/security.mdc +32 -0
  101. tapps_agents/resources/cursor/rules/simple-mode.mdc +500 -0
  102. tapps_agents/resources/cursor/rules/testing.mdc +31 -0
  103. tapps_agents/resources/cursor/rules/when-to-use.mdc +156 -0
  104. tapps_agents/resources/cursor/rules/workflow-presets.mdc +179 -0
  105. tapps_agents/resources/customizations/__init__.py +1 -0
  106. tapps_agents/resources/customizations/example-custom.yaml +83 -0
  107. tapps_agents/resources/hooks/__init__.py +1 -0
  108. tapps_agents/resources/hooks/templates/README.md +5 -0
  109. tapps_agents/resources/hooks/templates/__init__.py +1 -0
  110. tapps_agents/resources/hooks/templates/add-project-context.yaml +8 -0
  111. tapps_agents/resources/hooks/templates/auto-format-js.yaml +10 -0
  112. tapps_agents/resources/hooks/templates/auto-format-python.yaml +10 -0
  113. tapps_agents/resources/hooks/templates/git-commit-check.yaml +7 -0
  114. tapps_agents/resources/hooks/templates/notify-on-complete.yaml +8 -0
  115. tapps_agents/resources/hooks/templates/quality-gate.yaml +8 -0
  116. tapps_agents/resources/hooks/templates/security-scan-on-edit.yaml +10 -0
  117. tapps_agents/resources/hooks/templates/session-end-log.yaml +7 -0
  118. tapps_agents/resources/hooks/templates/show-beads-ready.yaml +8 -0
  119. tapps_agents/resources/hooks/templates/test-on-edit.yaml +10 -0
  120. tapps_agents/resources/hooks/templates/update-docs-on-complete.yaml +8 -0
  121. tapps_agents/resources/hooks/templates/user-prompt-log.yaml +7 -0
  122. tapps_agents/resources/scripts/__init__.py +1 -0
  123. tapps_agents/resources/scripts/set_bd_path.ps1 +51 -0
  124. tapps_agents/resources/workflows/__init__.py +1 -0
  125. tapps_agents/resources/workflows/presets/__init__.py +1 -0
  126. tapps_agents/resources/workflows/presets/brownfield-analysis.yaml +235 -0
  127. tapps_agents/resources/workflows/presets/fix.yaml +78 -0
  128. tapps_agents/resources/workflows/presets/full-sdlc.yaml +122 -0
  129. tapps_agents/resources/workflows/presets/quality.yaml +82 -0
  130. tapps_agents/resources/workflows/presets/rapid-dev.yaml +84 -0
  131. tapps_agents/simple_mode/orchestrators/base.py +185 -185
  132. tapps_agents/simple_mode/orchestrators/build_orchestrator.py +2700 -2667
  133. tapps_agents/simple_mode/orchestrators/fix_orchestrator.py +723 -723
  134. tapps_agents/workflow/cursor_executor.py +2337 -2337
  135. tapps_agents/workflow/message_formatter.py +188 -188
  136. {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/METADATA +6 -6
  137. {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/RECORD +141 -18
  138. {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/WHEEL +0 -0
  139. {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/entry_points.txt +0 -0
  140. {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/licenses/LICENSE +0 -0
  141. {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,125 @@
1
+ ---
2
+ description: Critical guidance on using CLI commands vs Cursor Skills in Cursor IDE. Prevents common mistakes when running tapps-agents commands.
3
+ globs: []
4
+ alwaysApply: true
5
+ ---
6
+
7
+ # Cursor Mode Usage Guide - CLI vs Cursor Skills
8
+
9
+ ## ⚠️ CRITICAL: CLI Workflow Commands Not Recommended in Cursor Mode
10
+
11
+ **If you see this warning:**
12
+ ```
13
+ ⚠️ CLI Workflow Commands Not Recommended in Cursor Mode
14
+ ```
15
+
16
+ **This means:** You're trying to run a CLI workflow command (`tapps-agents workflow ...`) inside Cursor IDE, which is not recommended.
17
+
18
+ ## Quick Fix
19
+
20
+ ### ✅ Use Cursor Skills Instead (Recommended)
21
+
22
+ **In Cursor IDE chat, use:**
23
+ ```cursor
24
+ @simple-mode *fix <file> "description"
25
+ @simple-mode *build "description"
26
+ @simple-mode *review <file>
27
+ @simple-mode *test <file>
28
+ ```
29
+
30
+ **NOT:**
31
+ ```bash
32
+ # ❌ Don't use CLI workflow commands in Cursor IDE
33
+ tapps-agents workflow fix --file <file> --auto
34
+ ```
35
+
36
+ ### ✅ Use CLI Commands in Terminal/CI (Outside Cursor)
37
+
38
+ **CLI commands work perfectly in:**
39
+ - ✅ Standalone terminal (outside Cursor IDE)
40
+ - ✅ CI/CD pipelines
41
+ - ✅ Shell scripts
42
+ - ✅ Automated workflows
43
+
44
+ ```bash
45
+ # ✅ This works in terminal/CI
46
+ tapps-agents workflow fix --file <file> --auto
47
+ tapps-agents workflow rapid --prompt "description" --auto
48
+ ```
49
+
50
+ ## Why This Matters
51
+
52
+ ### Cursor Mode vs CLI Mode
53
+
54
+ **Cursor Mode** (when running in Cursor IDE):
55
+ - Uses Cursor Skills (`@agent-name *command`)
56
+ - Leverages Cursor's native integration
57
+ - Better context awareness
58
+ - Skill-based execution
59
+ - **Recommended for interactive development**
60
+
61
+ **CLI Mode** (when running in terminal/CI):
62
+ - Uses direct CLI commands (`tapps-agents <agent> <command>`)
63
+ - Designed for automation and scripting
64
+ - Structured output (JSON, text)
65
+ - **Recommended for batch processing and CI/CD**
66
+
67
+ ### The Problem
68
+
69
+ When you run CLI workflow commands in Cursor IDE:
70
+ - ❌ May fail due to dependency issues
71
+ - ❌ Bypasses Cursor's skill orchestration
72
+ - ❌ Doesn't leverage workspace context
73
+ - ❌ Poorer integration experience
74
+
75
+ ## Command Mapping
76
+
77
+ | What You Want | In Cursor IDE | In Terminal/CI |
78
+ |--------------|---------------|----------------|
79
+ | Fix a bug | `@simple-mode *fix <file> "desc"` | `tapps-agents workflow fix --file <file> --auto` |
80
+ | Build feature | `@simple-mode *build "desc"` | `tapps-agents workflow rapid --prompt "desc" --auto` |
81
+ | Review code | `@simple-mode *review <file>` | `tapps-agents reviewer review <file>` |
82
+ | Generate tests | `@simple-mode *test <file>` | `tapps-agents tester test <file>` |
83
+ | Full SDLC | `@simple-mode *full "desc"` | `tapps-agents workflow full --prompt "desc" --auto` |
84
+
85
+ ## How to Verify Your Setup
86
+
87
+ ### Check if Simple Mode is Ready
88
+
89
+ ```bash
90
+ tapps-agents simple-mode status
91
+ tapps-agents cursor verify
92
+ ```
93
+
94
+ ### If Not Set Up, Run Init
95
+
96
+ ```bash
97
+ tapps-agents init
98
+ ```
99
+
100
+ This installs:
101
+ - ✅ Cursor Rules (`.cursor/rules/`)
102
+ - ✅ Cursor Skills (`.claude/skills/`) - **Required for `@simple-mode`**
103
+ - ✅ Configuration (`.tapps-agents/config.yaml`)
104
+ - ✅ Workflow presets
105
+
106
+ ## Override (Not Recommended)
107
+
108
+ If you absolutely must use CLI commands in Cursor mode:
109
+
110
+ ```bash
111
+ tapps-agents workflow fix --file <file> --auto --cli-mode
112
+ ```
113
+
114
+ **Why this is not recommended:**
115
+ - May fail due to dependency issues
116
+ - Doesn't leverage Cursor's native capabilities
117
+ - Poorer integration with workspace context
118
+ - Better to use `@simple-mode` commands instead
119
+
120
+ ## Related Documentation
121
+
122
+ - `.cursor/rules/simple-mode.mdc` - Simple Mode usage guide
123
+ - `.cursor/rules/quick-reference.mdc` - Quick command reference
124
+ - `.cursor/rules/command-reference.mdc` - Complete command reference
125
+ - `docs/CURSOR_MODE_CLI_WORKFLOW_WARNING_ANALYSIS.md` - Detailed analysis
@@ -0,0 +1,29 @@
1
+ ---
2
+ description: Commit format, when to use *build/*fix branches, PR flow
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Git Workflow Rules
7
+
8
+ ## Commit Format
9
+
10
+ - Use clear, imperative subject lines (e.g. "Add auth endpoint", "Fix null check in validator")
11
+ - Optionally include scope: `feat(auth): add login endpoint`
12
+ - Keep the body concise when needed; reference issues or PRs
13
+
14
+ ## Branching for Agent Workflows
15
+
16
+ - **`*build` and `*full`**: when `human_oversight.branch_for_agent_changes` is true, work runs on `tapps-agents/build-{workflow_id}`; merge to main only after human review
17
+ - **`*fix`**: typically on a short-lived branch or main, depending on project policy
18
+ - Use `checkpoints_before_steps` (e.g. before implementer, designer) to review before large changes
19
+
20
+ ## PR Flow
21
+
22
+ - Run `@simple-mode *review` on changed files before opening a PR
23
+ - Use `@simple-mode *pr {title}` to generate PR description and quality summary
24
+ - Ensure tests pass and quality gates meet thresholds (e.g. overall ≥70, security ≥6.5)
25
+
26
+ ## References
27
+
28
+ - `tapps_agents/experts/knowledge/development-workflow/git-workflows.md`
29
+ - `.cursor/rules/simple-mode.mdc` for workflow and human oversight options
@@ -0,0 +1,29 @@
1
+ ---
2
+ description: Context and MCP usage - MCP/tool limits, when to delegate, model selection
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Performance and Context Rules
7
+
8
+ ## Context Window and MCP Usage
9
+
10
+ - **MCPs**: Prefer ~20–30 MCPs configured total; enable **&lt;10 per project** to avoid shrinking the effective context
11
+ - **Tools**: Keep **&lt;80 tools** active; disable unused MCPs via `disabledMcpServers` or project/local MCP config (e.g. `.cursor/mcp.json`)
12
+ - Enable only MCPs needed for the current project (e.g. Context7 for docs; Playwright for E2E)
13
+
14
+ ## When to Delegate
15
+
16
+ - Use `@simple-mode *build` for features; `*fix` for bugs; `*review` for quality—avoids ad-hoc context bloat
17
+ - Prefer targeted agents (`@reviewer *score`, `@tester *test`) over loading many skills at once
18
+ - For large codebases, narrow scope (file, module) before inviting broad search
19
+
20
+ ## Model and Resource Selection
21
+
22
+ - Skills reference `model_profile` (e.g. `reviewer_profile`, `implementer_profile`); override in `requirements/model_profiles.yaml` or project config
23
+ - Use higher-accuracy models for reviewer and security-review; lighter models for lint/score when acceptable
24
+ - See `docs/MODEL_SELECTION.md` (or agent-capabilities) for profile resolution and overrides
25
+
26
+ ## References
27
+
28
+ - `tapps_agents/core/doctor.py` - run `tapps-agents doctor` to check MCP and tool setup
29
+ - `.cursor/mcp.json` and project MCP configuration for `disabledMcpServers` and enabled servers
@@ -0,0 +1,163 @@
1
+ # TappsCodingAgents Project Context
2
+
3
+ ## Important: Dual Nature of This Project
4
+
5
+ **This project has TWO distinct roles:**
6
+
7
+ ### 1. Framework Development (Primary Role)
8
+ **TappsCodingAgents is a framework** that provides:
9
+ - 14 workflow agents (analyst, planner, architect, implementer, tester, reviewer, evaluator, etc.)
10
+ - Industry Experts system
11
+ - Cursor Skills integration (model-agnostic)
12
+ - Code quality analysis tools
13
+ - Workflow orchestration with CLI flags for control
14
+
15
+ **When working on framework development:**
16
+ - You're modifying the framework code itself (`tapps_agents/` package)
17
+ - You're adding new agents, features, or capabilities
18
+ - You're fixing bugs or improving the framework
19
+ - Focus on: `tapps_agents/`, `tests/`, `requirements/`, `docs/`
20
+
21
+ **⚠️ CRITICAL: Framework Changes MUST Use Full SDLC Workflow**
22
+
23
+ When modifying the TappsCodingAgents framework itself, you **MUST** use Simple Mode Full SDLC workflow:
24
+
25
+ ```bash
26
+ # CLI
27
+ tapps-agents simple-mode full --prompt "Implement [enhancement description]" --auto
28
+
29
+ # Or in Cursor chat
30
+ @simple-mode *full "Implement [enhancement description]"
31
+ ```
32
+
33
+ **Why?** The full SDLC workflow ensures:
34
+ - ✅ Proper requirements analysis (analyst)
35
+ - ✅ Architecture design (architect)
36
+ - ✅ Quality gates with automatic loopbacks (reviewer)
37
+ - ✅ Test generation and execution (tester)
38
+ - ✅ Security validation (ops)
39
+ - ✅ Complete documentation (documenter)
40
+ - ✅ Full traceability (requirements → stories → architecture → implementation)
41
+
42
+ **DO NOT:**
43
+ - ❌ Directly implement code without using the workflow
44
+ - ❌ Skip planning, design, or architecture phases
45
+ - ❌ Validate only afterward (use quality gates during development)
46
+ - ❌ Skip test generation (tests should be part of workflow)
47
+
48
+ **Example:**
49
+ ```
50
+ ❌ WRONG: Directly implement Context7 enhancements
51
+ ✅ CORRECT: @simple-mode *full "Implement Context7 automatic integration enhancements"
52
+ ```
53
+
54
+ ### 2. Self-Hosting (Secondary Role)
55
+ **TappsCodingAgents uses its own framework** for its own development:
56
+ - Configuration: `.tapps-agents/` directory
57
+ - 5 Industry Experts configured (AI frameworks, code quality, architecture, DevOps, documentation)
58
+ - Enhancer Agent used for prompt enhancement
59
+ - Context7 integration for library documentation
60
+
61
+ **When working on self-hosted development:**
62
+ - You're using the framework to develop the framework itself
63
+ - You're using agents via CLI or Python API
64
+ - You're configuring experts and knowledge bases
65
+ - Focus on: `.tapps-agents/`, `workflows/`, project-specific tasks
66
+
67
+ ## Context Awareness
68
+
69
+ **When AI assistants work in this project, they should:**
70
+
71
+ 1. **Understand the dual context:**
72
+ - Framework code (`tapps_agents/`) = developing the framework
73
+ - Project configuration (`.tapps-agents/`) = using the framework
74
+
75
+ 2. **Distinguish between:**
76
+ - **Framework users**: People who install and use TappsCodingAgents in their projects
77
+ - **Framework developers**: People working on TappsCodingAgents itself (us)
78
+
79
+ 3. **Documentation clarity:**
80
+ - User-facing docs should focus on "how to use the framework"
81
+ - Developer docs should focus on "how to develop the framework"
82
+ - Self-hosting docs should explain "how we use our own framework"
83
+
84
+ ## Current Self-Hosting Configuration
85
+
86
+ **Version**: 2.0.0 (self-hosting)
87
+
88
+ **Configured Experts:**
89
+ - `expert-ai-frameworks` - AI agent orchestration, workflow management
90
+ - `expert-code-quality` - Static analysis, code scoring, quality metrics
91
+ - `expert-software-architecture` - System design patterns, architecture decisions
92
+ - `expert-devops` - CI/CD integration, testing strategies, deployment
93
+ - `expert-documentation` - Technical documentation, knowledge bases
94
+
95
+ **Active Usage:**
96
+ - Enhancer Agent: 23+ enhancement sessions in `.tapps-agents/sessions/`
97
+ - Context7: KB cache in `.tapps-agents/kb/context7-cache/`
98
+ - Workflows: `workflows/prompt-enhancement.yaml`
99
+
100
+ ## Guidelines for AI Assistants
101
+
102
+ 1. **When asked about "using TappsCodingAgents":**
103
+ - Explain how to use the framework in a user's project
104
+ - Reference user-facing documentation (QUICK_START.md, DEVELOPER_GUIDE.md)
105
+ - Show CLI and Python API examples
106
+
107
+ 2. **When asked about "developing TappsCodingAgents":**
108
+ - Explain how to modify the framework code
109
+ - Reference developer documentation (ARCHITECTURE.md, API.md)
110
+ - Show how to add agents, extend functionality
111
+
112
+ 3. **When asked about "this project's setup":**
113
+ - Explain the self-hosting configuration
114
+ - Reference `.tapps-agents/` configuration
115
+ - Show how the framework is used internally
116
+
117
+ 4. **Always clarify context:**
118
+ - If unclear, ask: "Are you asking about using the framework or developing it?"
119
+ - Provide examples for both contexts when relevant
120
+
121
+ 5. **When asked for feedback on tapps-agents effectiveness** (e.g. "provide feedback on how well tapps-agents helps you as an LLM"):
122
+ - **Include health metrics in the feedback report or document.** Run `tapps-agents health overview` (or `tapps-agents health usage dashboard`) and include the output or a summary.
123
+ - This ensures feedback is actionable and comparable (subsystem health, usage, top agents/workflows). See `docs/feedback/README.md` for placement.
124
+
125
+ ## File Organization
126
+
127
+ ```
128
+ TappsCodingAgents/
129
+ ├── tapps_agents/ # Framework code (developing the framework)
130
+ │ ├── agents/ # Agent implementations
131
+ │ ├── core/ # Core framework components
132
+ │ └── ...
133
+
134
+ ├── .tapps-agents/ # Self-hosting configuration (using the framework)
135
+ │ ├── experts.yaml # Our project's experts
136
+ │ ├── domains.md # Our project's domains
137
+ │ └── sessions/ # Enhancement sessions
138
+
139
+ ├── docs/ # User-facing documentation (how to use)
140
+ ├── requirements/ # Framework specifications (developing)
141
+ └── docs/implementation/ # Implementation notes and EPIC/PHASE docs
142
+ ```
143
+
144
+ ## Examples
145
+
146
+ ### Example 1: User Question
147
+ **Q: "How do I use the reviewer agent?"**
148
+ **A:** Explain CLI usage, Python API, configuration - focus on user perspective
149
+
150
+ ### Example 2: Developer Question
151
+ **Q: "How do I add a new agent?"**
152
+ **A:** Explain framework architecture, BaseAgent class, agent registration - focus on development
153
+
154
+ ### Example 3: Self-Hosting Question
155
+ **Q: "What experts are configured in this project?"**
156
+ **A:** Explain `.tapps-agents/experts.yaml`, the 5 experts, how they're used internally
157
+
158
+ ## References
159
+
160
+ - **Self-Hosting Setup**: `docs/implementation/SELF_HOSTING_SETUP_COMPLETE.md`
161
+ - **User Guide**: `QUICK_START.md`, `docs/DEVELOPER_GUIDE.md`
162
+ - **Framework Architecture**: `docs/ARCHITECTURE.md`
163
+ - **Configuration**: `.tapps-agents/` directory
@@ -0,0 +1,197 @@
1
+ ---
2
+ description: Documentation of TappsCodingAgents automatic project profiling system for context-aware recommendations
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Project Profiling System
7
+
8
+ ## Overview
9
+
10
+ TappsCodingAgents automatically detects and profiles project characteristics to provide context-aware recommendations and ensure compliance with project constraints. This profiling happens automatically during workflow execution and requires no manual configuration.
11
+
12
+ ## Automatic Detection
13
+
14
+ The profiling system analyzes your codebase to detect:
15
+
16
+ ### Deployment Type
17
+ - **Cloud**: AWS, Azure, GCP, or other cloud providers
18
+ - **On-Premise**: Self-hosted infrastructure
19
+ - **Hybrid**: Combination of cloud and on-premise
20
+ - **Serverless**: Function-as-a-Service (Lambda, Cloud Functions, etc.)
21
+ - **Container**: Docker, Kubernetes, or container orchestration
22
+
23
+ ### Tenancy Model
24
+ - **Single-Tenant**: One customer per instance
25
+ - **Multi-Tenant**: Multiple customers share resources
26
+ - **Hybrid**: Mix of single and multi-tenant components
27
+
28
+ ### User Scale
29
+ - **Small**: < 1,000 users
30
+ - **Medium**: 1,000 - 100,000 users
31
+ - **Large**: 100,000 - 1,000,000 users
32
+ - **Enterprise**: > 1,000,000 users
33
+
34
+ ### Compliance Requirements
35
+ - **HIPAA**: Healthcare data protection
36
+ - **GDPR**: European data privacy
37
+ - **PCI DSS**: Payment card industry
38
+ - **SOC 2**: Security and availability
39
+ - **ISO 27001**: Information security management
40
+ - **None**: No specific compliance requirements
41
+
42
+ ### Security Level
43
+ - **Low**: Basic security requirements
44
+ - **Medium**: Standard security practices
45
+ - **High**: Enhanced security controls
46
+ - **Critical**: Maximum security requirements
47
+
48
+ ## Profile Storage
49
+
50
+ **Location:** `.tapps-agents/project-profile.yaml`
51
+
52
+ **Format:**
53
+ ```yaml
54
+ deployment_type: cloud
55
+ tenancy: multi-tenant
56
+ user_scale: large
57
+ compliance:
58
+ - GDPR
59
+ - SOC 2
60
+ security_level: high
61
+ detected_at: 2025-12-13T10:00:00Z
62
+ ```
63
+
64
+ ## How It Works
65
+
66
+ ### Detection Process
67
+
68
+ 1. **Codebase Analysis**: Scans project files for indicators
69
+ - Infrastructure as Code (Terraform, CloudFormation)
70
+ - Deployment configurations (Docker, Kubernetes)
71
+ - Database schemas and data models
72
+ - Security configurations
73
+ - Compliance documentation
74
+
75
+ 2. **Pattern Matching**: Identifies patterns that indicate:
76
+ - Deployment type (cloud provider configs, serverless functions)
77
+ - Tenancy model (tenant_id fields, isolation patterns)
78
+ - Scale indicators (caching, load balancing, scaling configs)
79
+ - Compliance (privacy policies, security docs, compliance mentions)
80
+ - Security level (encryption, authentication, authorization patterns)
81
+
82
+ 3. **Profile Generation**: Creates profile YAML file with detected characteristics
83
+
84
+ 4. **Context Injection**: Automatically includes profile in all agent commands
85
+
86
+ ### When Detection Happens
87
+
88
+ - **First Workflow Run**: Profile is created during initial workflow execution
89
+ - **Project Initialization**: Can be generated during `tapps-agents init` (optional)
90
+ - **Manual Refresh**: Profile can be regenerated by deleting the file
91
+
92
+ ## Usage in Workflows
93
+
94
+ ### Automatic Inclusion
95
+
96
+ Project profile is **automatically included** in all agent commands:
97
+
98
+ - **Analyst**: Uses profile for requirements analysis and risk assessment
99
+ - **Planner**: Ensures stories align with project constraints
100
+ - **Architect**: Designs architecture matching deployment and tenancy model
101
+ - **Designer**: Creates APIs and data models with compliance in mind
102
+ - **Implementer**: Generates code following security and compliance requirements
103
+ - **Ops**: Performs audits based on compliance and security level
104
+
105
+ ### Example Impact
106
+
107
+ **Multi-Tenant Project:**
108
+ - Architect designs tenant isolation patterns
109
+ - Designer creates APIs with tenant context
110
+ - Implementer adds tenant_id to all data models
111
+ - Ops ensures tenant data isolation
112
+
113
+ **GDPR-Compliant Project:**
114
+ - Designer includes data privacy fields (consent, right to deletion)
115
+ - Implementer adds data export and deletion endpoints
116
+ - Ops verifies GDPR compliance in audit
117
+
118
+ **High-Security Project:**
119
+ - Architect designs defense-in-depth security
120
+ - Implementer adds encryption, authentication, authorization
121
+ - Reviewer checks for security vulnerabilities
122
+ - Ops performs comprehensive security audit
123
+
124
+ ## Manual Override
125
+
126
+ If automatic detection is incorrect, you can manually edit `.tapps-agents/project-profile.yaml`:
127
+
128
+ ```yaml
129
+ deployment_type: cloud # Override detected value
130
+ tenancy: multi-tenant
131
+ user_scale: large
132
+ compliance:
133
+ - GDPR
134
+ - HIPAA # Add additional compliance
135
+ security_level: critical # Increase security level
136
+ ```
137
+
138
+ **Note:** Manual edits are preserved and not overwritten by automatic detection.
139
+
140
+ ## Best Practices
141
+
142
+ 1. **Review Profile**: Check `.tapps-agents/project-profile.yaml` after first workflow run
143
+ 2. **Update as Needed**: Manually update if project characteristics change
144
+ 3. **Share with Team**: Commit profile to version control for team consistency
145
+ 4. **Use in CI/CD**: Reference profile in CI/CD pipelines for compliance checks
146
+
147
+ ## Integration with Agents
148
+
149
+ ### Analyst Agent
150
+ - Uses profile for requirements analysis
151
+ - Considers compliance requirements in risk assessment
152
+ - Adjusts effort estimates based on security level
153
+
154
+ ### Planner Agent
155
+ - Creates stories aligned with project constraints
156
+ - Prioritizes compliance-related stories
157
+ - Estimates effort considering security requirements
158
+
159
+ ### Architect Agent
160
+ - Designs architecture matching deployment type
161
+ - Implements tenant isolation for multi-tenant projects
162
+ - Includes security architecture for high-security projects
163
+
164
+ ### Designer Agent
165
+ - Creates APIs with tenant context (multi-tenant)
166
+ - Includes compliance fields (GDPR, HIPAA)
167
+ - Designs data models with security in mind
168
+
169
+ ### Implementer Agent
170
+ - Generates code following security best practices
171
+ - Adds compliance-related functionality
172
+ - Implements tenant isolation patterns
173
+
174
+ ### Ops Agent
175
+ - Performs audits based on compliance requirements
176
+ - Verifies security controls match security level
177
+ - Checks deployment configuration matches deployment type
178
+
179
+ ## Troubleshooting
180
+
181
+ ### Profile Not Detected
182
+ - **Issue**: Profile file doesn't exist
183
+ - **Solution**: Run a workflow - profile is created automatically
184
+
185
+ ### Incorrect Detection
186
+ - **Issue**: Profile shows wrong characteristics
187
+ - **Solution**: Manually edit `.tapps-agents/project-profile.yaml`
188
+
189
+ ### Profile Not Used
190
+ - **Issue**: Agents don't seem to use profile
191
+ - **Solution**: Ensure profile file exists and is valid YAML
192
+
193
+ ## Related Documentation
194
+
195
+ - [Quick Reference](quick-reference.mdc) - Command reference
196
+ - [Agent Capabilities](agent-capabilities.mdc) - Agent documentation
197
+ - [Cursor Native Integration](../../../CURSOR_NATIVE_INTEGRATION_DESIGN.md) - Integration details