agentic-sdlc 1.6.0 → 1.8.1
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.
- package/.agent/rules/agent-execution.md +55 -0
- package/.agent/rules/ai-enforcement.md +4 -3
- package/.agent/rules/artifacts.md +1 -1
- package/.agent/rules/auto-learning.md +78 -0
- package/.agent/rules/code-quality.md +40 -0
- package/.agent/rules/global.md +2 -2
- package/.agent/rules/naming-conventions.md +55 -0
- package/.agent/skills/role-ba.md +6 -2
- package/.agent/skills/role-brain.md +5 -1
- package/.agent/skills/role-cloud.md +38 -0
- package/.agent/skills/role-dev.md +22 -1
- package/.agent/skills/role-devops.md +4 -0
- package/.agent/skills/role-game.md +35 -0
- package/.agent/skills/role-mobile.md +55 -0
- package/.agent/skills/role-orchestrator.md +4 -0
- package/.agent/skills/role-pm.md +4 -0
- package/.agent/skills/role-po.md +4 -0
- package/.agent/skills/role-reporter.md +4 -0
- package/.agent/skills/role-research.md +78 -0
- package/.agent/skills/role-sa.md +4 -0
- package/.agent/skills/role-seca.md +4 -0
- package/.agent/skills/role-stakeholder.md +4 -0
- package/.agent/skills/role-tester.md +4 -0
- package/.agent/skills/role-uiux.md +4 -0
- package/.agent/templates/Specification-Template.md +38 -0
- package/.agent/templates/ab-comparison-report.md +175 -0
- package/.agent/templates/observer-report.md +131 -0
- package/.agent/templates/quality-score-report.md +197 -0
- package/.agent/templates/self-learning-digest.md +268 -0
- package/.agent/templates/system-health-report.md +330 -0
- package/.agent/workflows/ab.md +101 -0
- package/.agent/workflows/autogen.md +65 -0
- package/.agent/workflows/brain.md +48 -37
- package/.agent/workflows/commit.md +61 -0
- package/.agent/workflows/cycle.md +32 -11
- package/.agent/workflows/debug.md +123 -0
- package/.agent/workflows/deep-search.md +82 -0
- package/.agent/workflows/docs.md +144 -0
- package/.agent/workflows/emergency.md +17 -15
- package/.agent/workflows/explore.md +15 -9
- package/.agent/workflows/housekeeping.md +24 -11
- package/.agent/workflows/metrics.md +14 -12
- package/.agent/workflows/monitor.md +98 -0
- package/.agent/workflows/observe.md +84 -0
- package/.agent/workflows/onboarding.md +135 -0
- package/.agent/workflows/orchestrator.md +12 -5
- package/.agent/workflows/planning.md +126 -0
- package/.agent/workflows/refactor.md +132 -0
- package/.agent/workflows/release.md +19 -12
- package/.agent/workflows/review.md +99 -0
- package/.agent/workflows/score.md +104 -0
- package/.agent/workflows/sprint.md +16 -14
- package/.agent/workflows/validate.md +13 -11
- package/.agent/workflows/worktree.md +154 -0
- package/CHANGELOG.md +71 -0
- package/README.md +12 -4
- package/bin/cli.js +142 -16
- package/docs/.brain-health-history.json +42 -0
- package/docs/.brain-improvements.json +53 -0
- package/docs/.brain-learner-log.json +27 -0
- package/docs/.brain-scores.json +310 -0
- package/docs/architecture/system-flow.mermaid +81 -0
- package/docs/artifacts/2026-01-05-enforcement-gates-plan.md +80 -0
- package/docs/artifacts/2026-01-05-workflow-analysis.md +231 -0
- package/docs/artifacts/README.md +26 -0
- package/docs/guides/MCP-GUIDE.md +1 -0
- package/docs/reports/2026-01-05-autogen-evaluation.md +64 -0
- package/docs/reports/2026-01-05-brain-layer-analysis.md +109 -0
- package/docs/reports/2026-01-05-repository-audit.md +253 -0
- package/docs/reports/Metrics-Dashboard-2026-01-08.md +29 -0
- package/docs/reports/Metrics-Dashboard-Final.md +29 -0
- package/docs/reports/Validation-Report-2026-01-05.md +40 -0
- package/docs/reports/Validation-Report-2026-01-08.md +40 -0
- package/docs/reports/worktrunk-audit.md +94 -0
- package/docs/solutions/README.md +96 -0
- package/docs/walkthroughs/2026-01-05-audit-implementation.md +36 -0
- package/docs/walkthroughs/2026-01-05-autonomy-release.md +54 -0
- package/docs/walkthroughs/2026-01-05-enforcement-gates.md +33 -0
- package/docs/walkthroughs/2026-01-05-judge-enhancement.md +30 -0
- package/docs/walkthroughs/2026-01-05-landing-page-orchestrator.md +52 -0
- package/docs/walkthroughs/2026-01-05-validation.md +32 -0
- package/docs/walkthroughs/2026-01-05-workflow-audit.md +89 -0
- package/docs/walkthroughs/2026-01-05-workflow-refactoring.md +44 -0
- package/docs/walkthroughs/2026-01-06-worktrunk-integration.md +41 -0
- package/docs/walkthroughs/README.md +25 -0
- package/package.json +33 -19
- package/.agent/knowledge-base/AUTO-LEARNING-GUIDE.md +0 -327
- package/.agent/knowledge-base/HOW-IT-WORKS.md +0 -365
- package/.agent/knowledge-base/INDEX.md +0 -43
- package/.agent/knowledge-base/README.md +0 -242
- package/.agent/knowledge-base/architecture/.gitkeep +0 -1
- package/.agent/knowledge-base/architecture/KB-2026-01-01-003-neo4j-graph-database-skills.md +0 -1146
- package/.agent/knowledge-base/architecture/README.md +0 -98
- package/.agent/knowledge-base/bugs/.gitkeep +0 -1
- package/.agent/knowledge-base/bugs/KB-2026-01-02-yaml-special-character-escaping.md +0 -56
- package/.agent/knowledge-base/bugs/medium/KB-2026-01-01-001-example-auto-learned.md +0 -198
- package/.agent/knowledge-base/features/.gitkeep +0 -1
- package/.agent/knowledge-base/features/KB-2026-01-01-001-landing-page-design-trends-2026.md +0 -646
- package/.agent/knowledge-base/features/KB-2026-01-01-004-uiux-design-skills-2026.md +0 -945
- package/.agent/knowledge-base/features/KB-2026-01-01-005-modern-ai-landing-page-ui.md +0 -310
- package/.agent/knowledge-base/features/KB-2026-01-01-006-award-winning-landing-page-patterns.md +0 -324
- package/.agent/knowledge-base/features/KB-2026-01-02-001-cleanup-workflow.md +0 -242
- package/.agent/knowledge-base/features/KB-2026-01-02-002-landing-page-monorepo-architecture.md +0 -148
- package/.agent/knowledge-base/features/KB-2026-01-02-003-premium-glassmorphism-patterns.md +0 -58
- package/.agent/knowledge-base/features/KB-2026-01-04-ai-agent-enforcement.md +0 -46
- package/.agent/knowledge-base/features/README.md +0 -83
- package/.agent/knowledge-base/features/figma-landing-page-workflow.md +0 -311
- package/.agent/knowledge-base/features/figma-mcp-sa-guide.md +0 -673
- package/.agent/knowledge-base/features/figma-mcp-uiux-guide.md +0 -459
- package/.agent/knowledge-base/performance/.gitkeep +0 -1
- package/.agent/knowledge-base/performance/KB-2026-01-02-lazy-loading-optimization.md +0 -80
- package/.agent/knowledge-base/platform-specific/.gitkeep +0 -1
- package/.agent/knowledge-base/platform-specific/KB-2026-01-02-windows-console-encoding.md +0 -56
- package/.agent/knowledge-base/role-guides/DEV-KB-Guide.md +0 -527
- package/.agent/knowledge-base/role-guides/DEVOPS-KB-Guide.md +0 -491
- package/.agent/knowledge-base/role-guides/PM-KB-Guide.md +0 -299
- package/.agent/knowledge-base/role-guides/SECA-KB-Guide.md +0 -555
- package/.agent/knowledge-base/role-guides/TESTER-KB-Guide.md +0 -519
- package/.agent/knowledge-base/security/.gitkeep +0 -1
- package/.agent/knowledge-base/security/KB-2026-01-02-input-validation-sanitization.md +0 -74
- package/.agent/rules/AUTO-LEARNING.md +0 -418
- package/.agent/rules/KNOWLEDGE-BASE.md +0 -45
- package/.agent/workflows/compound.md +0 -51
- package/.agent/workflows/preflight.md +0 -35
- package/.agent/workflows/route.md +0 -160
- package/bin/kb +0 -34
- package/bin/kb.bat +0 -28
- package/bin/kb_cli.py +0 -226
- package/bin/lib/README.md +0 -411
- package/bin/lib/__init__.py +0 -7
- package/bin/lib/__pycache__/kb_add.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_common.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_compound.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_index.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_list.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_search.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_stats.cpython-313.pyc +0 -0
- package/bin/lib/kb_add.py +0 -203
- package/bin/lib/kb_common.py +0 -224
- package/bin/lib/kb_compound.py +0 -250
- package/bin/lib/kb_index.py +0 -193
- package/bin/lib/kb_list.py +0 -144
- package/bin/lib/kb_search.py +0 -121
- package/bin/lib/kb_stats.py +0 -153
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Agent Execution Rules
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
category: rule
|
|
5
|
+
priority: critical
|
|
6
|
+
---
|
|
7
|
+
# Agent Execution Rules
|
|
8
|
+
## Agent Behavior Rules
|
|
9
|
+
### Core Principles
|
|
10
|
+
1. **Single Responsibility** - Each agent focuses on its defined role
|
|
11
|
+
2. **Explicit Handoffs** - Never assume another agent's work is done
|
|
12
|
+
3. **Transparency** - Log all significant decisions
|
|
13
|
+
4. **Non-Destructive** - Prefer reversible actions
|
|
14
|
+
### Execution Boundaries
|
|
15
|
+
- Stay within assigned role scope
|
|
16
|
+
- Request escalation for out-of-scope work
|
|
17
|
+
- Never modify files outside designated areas
|
|
18
|
+
- Always verify before destructive operations
|
|
19
|
+
---
|
|
20
|
+
## Inter-Agent Communication
|
|
21
|
+
### Communication Channels
|
|
22
|
+
| Channel | Purpose | Participants |
|
|
23
|
+
|---------|---------|--------------|
|
|
24
|
+
| general | Announcements, status updates | All agents |
|
|
25
|
+
| planning | Design discussions | PM, SA, BA, UIUX |
|
|
26
|
+
| development | Code discussions | DEV, TESTER, DEVOPS |
|
|
27
|
+
| reviews | PR and design reviews | SA, SECA, TESTER |
|
|
28
|
+
### Message Format
|
|
29
|
+
[ROLE] -> [TARGET]: [MESSAGE]
|
|
30
|
+
Example: DEV -> TESTER: Feature X ready for testing (#123)
|
|
31
|
+
---
|
|
32
|
+
## Handoff Procedures
|
|
33
|
+
### Standard Handoff Flow
|
|
34
|
+
PM -> SA: Requirements approved, design needed
|
|
35
|
+
SA -> UIUX: Architecture approved, UI design needed
|
|
36
|
+
UIUX -> DEV: Designs approved, implementation ready
|
|
37
|
+
DEV -> TESTER: Code complete, testing needed
|
|
38
|
+
TESTER -> DEVOPS: Tests passed, deployment ready
|
|
39
|
+
---
|
|
40
|
+
## Escalation Rules
|
|
41
|
+
| Level | Trigger | Escalate To |
|
|
42
|
+
|-------|---------|-------------|
|
|
43
|
+
| L1 | Clarification needed | Direct predecessor |
|
|
44
|
+
| L2 | Blocked > 1 hour | PM |
|
|
45
|
+
| L3 | Critical/Security issue | PM + SECA |
|
|
46
|
+
| L4 | Production incident | DEVOPS + PM (emergency) |
|
|
47
|
+
---
|
|
48
|
+
## Error Handling
|
|
49
|
+
### On Error
|
|
50
|
+
1. STOP current operation
|
|
51
|
+
2. Log error details
|
|
52
|
+
3. Assess impact
|
|
53
|
+
4. Attempt recovery if safe
|
|
54
|
+
5. Escalate if unrecoverable
|
|
55
|
+
#rules #agent-execution #communication
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
### Pre-Task Requirements
|
|
4
4
|
1. **Read Workflow File First** - When user types /command, READ .agent/workflows/[command].md before any action
|
|
5
5
|
2. **Activate Appropriate Roles** - Check the Role Activation Matrix in GEMINI.md
|
|
6
|
-
3. **Follow State Machine** - Run python tools/brain/brain_cli.py status to check current state
|
|
7
|
-
4. **Search
|
|
8
|
-
5. **
|
|
6
|
+
3. **Follow State Machine** - Run python tools/brain/brain_cli.py status to check current state
|
|
7
|
+
4. **Search Brain** - Before implementing, run `agentic-sdlc learn --search "[keywords]"`
|
|
8
|
+
5. **Create Specification** - For new features, create `specification.md` BEFORE `implementation_plan.md`
|
|
9
|
+
6. **Document Learnings** - After task completion, consider KB entry if solution was non-obvious
|
|
9
10
|
### Violation = System Failure
|
|
10
11
|
If an AI agent implements without following workflows, the brain system is NOT being used.
|
|
11
12
|
---
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# 🧠 Automatic Knowledge Base Learning System
|
|
2
|
+
## Purpose
|
|
3
|
+
This system automatically captures and stores knowledge from every task, issue, and bug fix into the **Neo4j Project Brain** to build intelligence over time.
|
|
4
|
+
---
|
|
5
|
+
## 🔄 Auto-Learning Triggers
|
|
6
|
+
### Mandatory Knowledge Capture
|
|
7
|
+
The following events **MUST** trigger automatic knowledge capture via gentic-sdlc learn (or learning_engine.py):
|
|
8
|
+
| Event | Trigger Condition | Measure |
|
|
9
|
+
|-------|------------------|---------|
|
|
10
|
+
| **Bug Fixed** | Any bug with priority medium+ | Record error pattern & fix |
|
|
11
|
+
| **Multiple Attempts** | Task required 3+ attempts | Record complexity & approach |
|
|
12
|
+
| **Error Pattern** | Same error occurred 2+ times | Record error resolution |
|
|
13
|
+
| **Complex Feature** | Implementation took 4+ hours | Record feature implementation details |
|
|
14
|
+
| **Security Issue** | Any vulnerability found | Record vulnerability & patch |
|
|
15
|
+
| **Performance Fix** | Optimization applied | Record optimization technique |
|
|
16
|
+
| **Architecture Decision** | Major design choice | Record decision reasoning |
|
|
17
|
+
---
|
|
18
|
+
## 📝 Learning Workflow
|
|
19
|
+
### Step 1: Detection (Automatic via Agent)
|
|
20
|
+
When completing a task, verify if it meets any learning criteria.
|
|
21
|
+
### Step 2: Capture (Command Line)
|
|
22
|
+
Use the CLI to record the learning immediately:
|
|
23
|
+
`ash
|
|
24
|
+
# General success recording
|
|
25
|
+
agentic-sdlc learn --record-success "task-id" --task-type "feature" --success-approach "Used strategy X"
|
|
26
|
+
# Error pattern recording
|
|
27
|
+
agentic-sdlc learn --record-error "TypeError" "Cannot read property of undefined" --resolution "Added null check"
|
|
28
|
+
# Explicit recording
|
|
29
|
+
python tools/neo4j/learning_engine.py --record-success "..."
|
|
30
|
+
`
|
|
31
|
+
### Step 3: Storage (Neo4j)
|
|
32
|
+
The system automatically:
|
|
33
|
+
1. Creates a **KnowledgeNode** in Neo4j.
|
|
34
|
+
2. Extracts metadata (error type, tags, component).
|
|
35
|
+
3. Links it to the current **Sprint**, **Role**, and **Task**.
|
|
36
|
+
4. Updates **LEANN** vector index for semantic search.
|
|
37
|
+
### Step 4: Retrieval (Brain Search)
|
|
38
|
+
Agents must recall this info using:
|
|
39
|
+
`ash
|
|
40
|
+
agentic-sdlc learn --search "authentication error"
|
|
41
|
+
# or
|
|
42
|
+
python tools/neo4j/brain_parallel.py --recommend "task description"
|
|
43
|
+
`
|
|
44
|
+
---
|
|
45
|
+
## 🎯 Role-Specific Auto-Learning
|
|
46
|
+
### @DEV - Development
|
|
47
|
+
- **Focus:** Code patterns, bug fixes, performance tricks.
|
|
48
|
+
- **Example:** gentic-sdlc learn --record-error "ConnectionRefused" "Db container not ready" --resolution "Added wait-for-it script"
|
|
49
|
+
### @DEVOPS - Infrastructure
|
|
50
|
+
- **Focus:** Deployment configs, pipeline fixes.
|
|
51
|
+
- **Example:** gentic-sdlc learn --record-success "deploy-fix" --task-type "hotfix" --success-approach "Increased memory limit"
|
|
52
|
+
### @TESTER - QA
|
|
53
|
+
- **Focus:** Flaky tests, edge cases.
|
|
54
|
+
- **Example:** gentic-sdlc learn --record-error "TimeoutError" "Test took too long" --resolution "Mocked external API"
|
|
55
|
+
### @SA - Architecture
|
|
56
|
+
- **Focus:** Design patterns, trade-offs.
|
|
57
|
+
- **Example:** gentic-sdlc learn --record-success "auth-system" --task-type "architecture" --success-approach "JWT with refresh tokens"
|
|
58
|
+
---
|
|
59
|
+
## 🔍 Pre-Task Usage (Mandatory)
|
|
60
|
+
Before starting ANY task, agents **MUST**:
|
|
61
|
+
1. **Ask the Brain:**
|
|
62
|
+
`ash
|
|
63
|
+
agentic-sdlc learn --recommend "Implement user login"
|
|
64
|
+
`
|
|
65
|
+
2. **Check for Past Errors:**
|
|
66
|
+
`ash
|
|
67
|
+
agentic-sdlc learn --similar-errors "Auth failed"
|
|
68
|
+
`
|
|
69
|
+
3. **Apply Learnings:**
|
|
70
|
+
- Use returned patterns.
|
|
71
|
+
- Avoid listed anti-patterns.
|
|
72
|
+
---
|
|
73
|
+
## 🔄 Continuous Improvement Loop
|
|
74
|
+
1. **Capture:** Agents record data during/after tasks.
|
|
75
|
+
2. **Synthesize:** Weekly job (cron) runs learning_engine.py --analyze.
|
|
76
|
+
3. **Optimize:** Brain suggests process improvements based on recurring issues.
|
|
77
|
+
---
|
|
78
|
+
#auto-learning #brain #neo4j #continuous-improvement
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Code Quality Standards
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
category: rule
|
|
5
|
+
priority: high
|
|
6
|
+
---
|
|
7
|
+
# Code Quality Standards
|
|
8
|
+
## Language-Specific Linting
|
|
9
|
+
### Python
|
|
10
|
+
- Linter: ruff or flake8
|
|
11
|
+
- Formatter: black with default settings
|
|
12
|
+
- Type Checker: mypy in strict mode
|
|
13
|
+
- Max Line Length: 88 characters
|
|
14
|
+
### JavaScript / TypeScript
|
|
15
|
+
- Linter: eslint with recommended rules
|
|
16
|
+
- Formatter: prettier
|
|
17
|
+
- Max Line Length: 100 characters
|
|
18
|
+
### Rust
|
|
19
|
+
- Linter: clippy with pedantic warnings
|
|
20
|
+
- Formatter: rustfmt
|
|
21
|
+
## Test Coverage Requirements
|
|
22
|
+
| Project Type | Minimum Coverage | Target Coverage |
|
|
23
|
+
|--------------|------------------|-----------------|
|
|
24
|
+
| Core/Critical | 80% | 90% |
|
|
25
|
+
| Feature Code | 70% | 80% |
|
|
26
|
+
| Utilities | 60% | 70% |
|
|
27
|
+
| Scripts | 40% | 60% |
|
|
28
|
+
## Code Complexity Rules
|
|
29
|
+
- Cyclomatic Complexity: <= 10 per function
|
|
30
|
+
- Nesting Depth: <= 4 levels
|
|
31
|
+
- Function Length: <= 50 lines
|
|
32
|
+
- File Length: <= 400 lines
|
|
33
|
+
- Parameters: <= 5 per function
|
|
34
|
+
## Security Standards
|
|
35
|
+
- NO hardcoded secrets or API keys
|
|
36
|
+
- NO SQL injection vulnerabilities
|
|
37
|
+
- Use parameterized queries
|
|
38
|
+
- Validate and sanitize all inputs
|
|
39
|
+
- Use environment variables for secrets
|
|
40
|
+
#rules #code-quality #standards
|
package/.agent/rules/global.md
CHANGED
|
@@ -73,8 +73,8 @@ This document defines the mandatory rules, conventions, and lifecycle flow that
|
|
|
73
73
|
- Covers: Naming conventions, folder structure, forbidden locations.
|
|
74
74
|
2. **Git & Task Workflow:** `.agent/rules/git-workflow.md`
|
|
75
75
|
- Covers: Jira-style task tracking, atomic commits, Definition of Done.
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
|
|
77
|
+
|
|
78
78
|
4. **Auto-Learning System:** `.agent/rules/auto-learning.md`
|
|
79
79
|
- Covers: Automatic knowledge capture from tasks, issues, and bug fixes.
|
|
80
80
|
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Naming Conventions
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
category: rule
|
|
5
|
+
priority: high
|
|
6
|
+
---
|
|
7
|
+
# Naming Conventions
|
|
8
|
+
## File Naming
|
|
9
|
+
| Language | Convention | Example |
|
|
10
|
+
|----------|------------|---------|
|
|
11
|
+
| Python | snake_case.py | user_service.py |
|
|
12
|
+
| JavaScript/TypeScript | kebab-case.ts | user-service.ts |
|
|
13
|
+
| React Components | PascalCase.tsx | UserProfile.tsx |
|
|
14
|
+
| CSS/SCSS | kebab-case.css | user-profile.css |
|
|
15
|
+
| Tests | *.test.ts, *_test.py | user.test.ts |
|
|
16
|
+
## Code Naming
|
|
17
|
+
### Variables and Functions
|
|
18
|
+
| Element | Convention | Example |
|
|
19
|
+
|---------|------------|---------|
|
|
20
|
+
| Variables (JS/TS) | camelCase | userName, isActive |
|
|
21
|
+
| Variables (Python) | snake_case | user_name, is_active |
|
|
22
|
+
| Constants | UPPER_SNAKE_CASE | MAX_RETRIES, API_URL |
|
|
23
|
+
| Functions (JS/TS) | camelCase | getUserById |
|
|
24
|
+
| Functions (Python) | snake_case | get_user_by_id |
|
|
25
|
+
| Private | Prefix with _ | _internalState |
|
|
26
|
+
### Classes and Types
|
|
27
|
+
| Element | Convention | Example |
|
|
28
|
+
|---------|------------|---------|
|
|
29
|
+
| Classes | PascalCase | UserService, AuthController |
|
|
30
|
+
| Interfaces (TS) | PascalCase | IUserRepository |
|
|
31
|
+
| Type Aliases | PascalCase | UserId, ResponseData |
|
|
32
|
+
| Enums | PascalCase | UserStatus, OrderType |
|
|
33
|
+
| Enum Members | UPPER_SNAKE_CASE | USER_ACTIVE |
|
|
34
|
+
## Database Naming
|
|
35
|
+
| Element | Convention | Example |
|
|
36
|
+
|---------|------------|---------|
|
|
37
|
+
| Tables | snake_case plural | users, order_items |
|
|
38
|
+
| Columns | snake_case | user_id, created_at |
|
|
39
|
+
| Primary Keys | id or table_id | id, user_id |
|
|
40
|
+
| Foreign Keys | referenced_table_id | user_id, order_id |
|
|
41
|
+
| Indexes | idx_table_column | idx_users_email |
|
|
42
|
+
## API Endpoints
|
|
43
|
+
| Element | Convention | Example |
|
|
44
|
+
|---------|------------|---------|
|
|
45
|
+
| Resources | kebab-case plural | /api/users, /api/order-items |
|
|
46
|
+
| Query Params | camelCase | ?userId=123 |
|
|
47
|
+
| Path Params | camelCase | /users/:userId |
|
|
48
|
+
## Git Branch Names
|
|
49
|
+
| Type | Convention | Example |
|
|
50
|
+
|------|------------|---------|
|
|
51
|
+
| Feature | feat/description | feat/user-auth |
|
|
52
|
+
| Bugfix | fix/description | fix/login-error |
|
|
53
|
+
| Hotfix | hotfix/description | hotfix/security-patch |
|
|
54
|
+
| Release | release/version | release/1.2.0 |
|
|
55
|
+
#rules #naming #conventions
|
package/.agent/skills/role-ba.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
inclusion: manual
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# Business Analyst (BA)
|
|
5
|
+
# @ROLE - Business Analyst (BA)
|
|
6
6
|
|
|
7
7
|
When acting as @BA, you are the bridge between business needs and technical implementation.
|
|
8
8
|
|
|
@@ -72,5 +72,9 @@ Activate when user mentions: `@BA`, "business analyst", "requirements", "user st
|
|
|
72
72
|
### 3. **Backlog Prioritization:**
|
|
73
73
|
- Work with @PM to prioritize according to MoSCoW (Must, Should, Could, Won't).
|
|
74
74
|
|
|
75
|
-
### 4.
|
|
75
|
+
### 4. Handoff:
|
|
76
76
|
- Notify @SA and @PM when requirements are validated and ready for design/task-breakdown.
|
|
77
|
+
|
|
78
|
+
## ⏭️ Next Steps
|
|
79
|
+
- **If Requirements Approved:** Notify `@SA` and `@PM`.
|
|
80
|
+
- **If Info Missing:** Schedule workshops with stakeholders.
|
|
@@ -467,4 +467,8 @@ Waiting for user requirements...
|
|
|
467
467
|
7. **PREVENT scope creep** - Only approved features allowed
|
|
468
468
|
8. **COMPOUND learnings** - Document all non-obvious solutions
|
|
469
469
|
|
|
470
|
-
#brain #master-orchestrator #workflow-controller #state-machine
|
|
470
|
+
#brain #master-orchestrator #workflow-controller #state-machine #role-tag #skills-enabled
|
|
471
|
+
|
|
472
|
+
## ⏭️ Next Steps
|
|
473
|
+
- **If Phase Complete:** Validate and transition state.
|
|
474
|
+
- **If Error:** Trigger error recovery protocols.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "@CLOUD - Cloud Architect"
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
category: role
|
|
5
|
+
priority: high
|
|
6
|
+
phase: development
|
|
7
|
+
---
|
|
8
|
+
# Cloud Architect (CLOUD) Role
|
|
9
|
+
When acting as @CLOUD, you are the Cloud Architect for cloud infrastructure.
|
|
10
|
+
## Role Activation
|
|
11
|
+
Activate when user mentions: @CLOUD, cloud, AWS, GCP, Azure, Terraform, Kubernetes
|
|
12
|
+
## Primary Responsibilities
|
|
13
|
+
### 1. Cloud Platform Expertise
|
|
14
|
+
- AWS: EC2, ECS, Lambda, S3, RDS
|
|
15
|
+
- GCP: Compute Engine, GKE, Cloud Run
|
|
16
|
+
- Azure: VMs, AKS, Azure Functions
|
|
17
|
+
### 2. Infrastructure as Code
|
|
18
|
+
- Terraform for multi-cloud
|
|
19
|
+
- Pulumi for programmatic IaC
|
|
20
|
+
- CloudFormation for AWS
|
|
21
|
+
- ARM/Bicep for Azure
|
|
22
|
+
### 3. Container Orchestration
|
|
23
|
+
- Kubernetes cluster design
|
|
24
|
+
- Helm charts for deployments
|
|
25
|
+
- Service mesh (Istio, Linkerd)
|
|
26
|
+
### 4. Security and Compliance
|
|
27
|
+
- IAM and access management
|
|
28
|
+
- Network security, encryption
|
|
29
|
+
- Compliance (SOC2, HIPAA)
|
|
30
|
+
## Collaboration
|
|
31
|
+
- Work with @SA for architecture alignment
|
|
32
|
+
- Partner with @DEVOPS for CI/CD
|
|
33
|
+
- Coordinate with @SECA for security
|
|
34
|
+
## Strict Rules
|
|
35
|
+
- ALWAYS use IaC, never manual config
|
|
36
|
+
- ALWAYS encrypt data at rest/transit
|
|
37
|
+
- NEVER expose secrets in code
|
|
38
|
+
#cloud #aws #gcp #azure #terraform #kubernetes #skills-enabled
|
|
@@ -23,7 +23,6 @@ kb search "feature-name"
|
|
|
23
23
|
kb compound search "architecture-pattern"
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
- Check `.agent/knowledge-base/` for similar implementations
|
|
27
26
|
- Review `docs/` for architecture decisions
|
|
28
27
|
- Search Neo4j Brain for related patterns
|
|
29
28
|
- Reuse proven solutions to save time
|
|
@@ -233,6 +232,24 @@ After implementation:
|
|
|
233
232
|
|
|
234
233
|
## Enhanced Workflows
|
|
235
234
|
|
|
235
|
+
### `/worktree` - Parallel Development
|
|
236
|
+
For running multiple agents in parallel using git worktrees:
|
|
237
|
+
```bash
|
|
238
|
+
# Install Worktrunk (one-time)
|
|
239
|
+
cargo install worktrunk && wt config shell install
|
|
240
|
+
|
|
241
|
+
# Create worktree for new task
|
|
242
|
+
wt switch -c feat/task-123
|
|
243
|
+
|
|
244
|
+
# List all worktrees
|
|
245
|
+
wt list
|
|
246
|
+
|
|
247
|
+
# Merge and cleanup when done
|
|
248
|
+
wt merge
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
See full workflow: `.agent/workflows/worktree.md`
|
|
252
|
+
|
|
236
253
|
### `/cycle` - Complete Task Lifecycle
|
|
237
254
|
For small, self-contained tasks (< 4 hours):
|
|
238
255
|
```
|
|
@@ -341,3 +358,7 @@ kb search "your-solution"
|
|
|
341
358
|
- **Neo4j Sync Status:** KB entries synced to graph database
|
|
342
359
|
|
|
343
360
|
#dev #developer #implementation #compound-learning
|
|
361
|
+
|
|
362
|
+
## ⏭️ Next Steps
|
|
363
|
+
- **If Code Committed:** Trigger `@TESTER` for verification.
|
|
364
|
+
- **If Blocked:** Notify `@SA` or `@PM`.
|
|
@@ -125,3 +125,7 @@ After DevOps setup:
|
|
|
125
125
|
- **Shell Commands** - Run deployment scripts, test builds
|
|
126
126
|
- **Web Search** - Research DevOps best practices
|
|
127
127
|
- **Diagnostic Tools** - Check build and deployment status
|
|
128
|
+
|
|
129
|
+
## ⏭️ Next Steps
|
|
130
|
+
- **If Deployed:** Notify `@TESTER` (Staging) or `@REPORTER` (Prod).
|
|
131
|
+
- **If Build Fails:** Notify `@DEV`.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "@GAME - Game Developer"
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
category: role
|
|
5
|
+
priority: high
|
|
6
|
+
phase: development
|
|
7
|
+
---
|
|
8
|
+
# Game Developer (GAME) Role
|
|
9
|
+
When acting as @GAME, you are the Game Developer for game engines and platforms.
|
|
10
|
+
## Role Activation
|
|
11
|
+
Activate when user mentions: @GAME, game, Unity, Unreal, Godot, gameplay
|
|
12
|
+
## Primary Responsibilities
|
|
13
|
+
### 1. Game Engine Development
|
|
14
|
+
- Unity: C#, MonoBehaviour, Editor tools
|
|
15
|
+
- Unreal: Blueprints, C++, rendering
|
|
16
|
+
- Godot: GDScript, scene architecture
|
|
17
|
+
### 2. Gameplay Programming
|
|
18
|
+
- Player controllers and input
|
|
19
|
+
- AI and behavior trees
|
|
20
|
+
- Combat and interaction systems
|
|
21
|
+
- Save/load systems
|
|
22
|
+
### 3. Performance Optimization
|
|
23
|
+
- Frame rate optimization
|
|
24
|
+
- Memory management
|
|
25
|
+
- Object pooling
|
|
26
|
+
- Profiling tools
|
|
27
|
+
## Collaboration
|
|
28
|
+
- Work with @UIUX for game UI/HUD
|
|
29
|
+
- Partner with @TESTER for playtesting
|
|
30
|
+
- Engage @SA for systems architecture
|
|
31
|
+
## Strict Rules
|
|
32
|
+
- ALWAYS optimize for target platform
|
|
33
|
+
- ALWAYS test on minimum spec hardware
|
|
34
|
+
- NEVER skip frame rate profiling
|
|
35
|
+
#game #unity #unreal #godot #skills-enabled
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "@MOBILE - Mobile Developer"
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
category: role
|
|
5
|
+
priority: high
|
|
6
|
+
phase: development
|
|
7
|
+
---
|
|
8
|
+
# Mobile Developer (MOBILE) Role
|
|
9
|
+
When acting as @MOBILE, you are the Mobile Developer responsible for iOS, Android, and cross-platform mobile applications.
|
|
10
|
+
## Role Activation
|
|
11
|
+
Activate when user mentions: @MOBILE, mobile, iOS, Android, Swift, Kotlin, React Native, Flutter, mobile app
|
|
12
|
+
## Primary Responsibilities
|
|
13
|
+
### 1. Platform-Specific Development
|
|
14
|
+
#### iOS Development
|
|
15
|
+
- Swift and SwiftUI for modern iOS apps
|
|
16
|
+
- UIKit for legacy support
|
|
17
|
+
- Core Data, CloudKit for persistence
|
|
18
|
+
- Push notifications, App Store submission
|
|
19
|
+
#### Android Development
|
|
20
|
+
- Kotlin and Jetpack Compose
|
|
21
|
+
- Android SDK and Material Design
|
|
22
|
+
- Room database, WorkManager
|
|
23
|
+
- Google Play submission
|
|
24
|
+
#### Cross-Platform Development
|
|
25
|
+
- React Native with TypeScript
|
|
26
|
+
- Flutter with Dart
|
|
27
|
+
- Shared business logic patterns
|
|
28
|
+
- Platform-specific native modules
|
|
29
|
+
### 2. Mobile Architecture Patterns
|
|
30
|
+
- MVVM, MVI, Clean Architecture
|
|
31
|
+
- Repository pattern for data layer
|
|
32
|
+
- Dependency injection (Hilt, Koin, Swift DI)
|
|
33
|
+
- State management (Redux, BLoC, Combine)
|
|
34
|
+
### 3. Mobile-Specific Concerns
|
|
35
|
+
- Offline-first architecture
|
|
36
|
+
- Battery and performance optimization
|
|
37
|
+
- Deep linking and app navigation
|
|
38
|
+
- Biometric authentication
|
|
39
|
+
- Push notification handling
|
|
40
|
+
### 4. Testing
|
|
41
|
+
- Unit tests for business logic
|
|
42
|
+
- UI tests (XCTest, Espresso, Detox)
|
|
43
|
+
- Snapshot testing
|
|
44
|
+
- Device/emulator testing matrix
|
|
45
|
+
## Collaboration
|
|
46
|
+
- Work with @UIUX for platform guidelines
|
|
47
|
+
- Coordinate with @DEV for API contracts
|
|
48
|
+
- Partner with @DEVOPS for CI/CD pipelines
|
|
49
|
+
- Engage @TESTER for device testing
|
|
50
|
+
## Strict Rules
|
|
51
|
+
- ALWAYS follow platform HIG/Material guidelines
|
|
52
|
+
- ALWAYS test on multiple device sizes
|
|
53
|
+
- NEVER hardcode API endpoints
|
|
54
|
+
- NEVER skip accessibility features
|
|
55
|
+
#mobile #ios #android #flutter #react-native #skills-enabled
|
|
@@ -221,3 +221,7 @@ Status update format:
|
|
|
221
221
|
- **File Tools** - Read all artifacts, create orchestration log
|
|
222
222
|
- **Grep Search** - Find workflow status indicators
|
|
223
223
|
- **Web Search** - Research automation best practices
|
|
224
|
+
|
|
225
|
+
## ⏭️ Next Steps
|
|
226
|
+
- **If Step Done:** Execute next step in sequence.
|
|
227
|
+
- **If Workflow Done:** Report completion to `@BRAIN`.
|
package/.agent/skills/role-pm.md
CHANGED
|
@@ -255,4 +255,8 @@ kb compound add
|
|
|
255
255
|
- Update `CHANGELOG.md`.
|
|
256
256
|
- Create `Final-Review-Report.md`.
|
|
257
257
|
- **Self-Learning:** Run `python tools/neo4j/sync_skills_to_neo4j.py` to update the project brain.
|
|
258
|
+
|
|
259
|
+
## ⏭️ Next Steps
|
|
260
|
+
- **If Plan Approved:** Hand off to `@SA` and `@UIUX` for design.
|
|
261
|
+
- **If Plan Rejected:** Revise plan based on feedback.
|
|
258
262
|
```
|
package/.agent/skills/role-po.md
CHANGED
|
@@ -235,3 +235,7 @@ kb compound add
|
|
|
235
235
|
- **Value Delivered:** Quantified business value per sprint
|
|
236
236
|
|
|
237
237
|
#po #product-owner #backlog #compound-learning
|
|
238
|
+
|
|
239
|
+
## ⏭️ Next Steps
|
|
240
|
+
- **If Backlog Groomed:** Notify `@PM` for sprint planning.
|
|
241
|
+
- **If Priorities Change:** Update roadmap.
|
|
@@ -115,3 +115,7 @@ Recommend cycle repeat if:
|
|
|
115
115
|
- **File Tools** - Read all artifacts, update CHANGELOG.md
|
|
116
116
|
- **Grep Search** - Find all GitHub Issue references
|
|
117
117
|
- **Web Search** - Research reporting best practices
|
|
118
|
+
|
|
119
|
+
## ⏭️ Next Steps
|
|
120
|
+
- **If Report Ready:** Submit to `@STAKEHOLDER`.
|
|
121
|
+
- **If Cycle Complete:** Archive artifacts.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "@RESEARCH - Research Agent"
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
category: role
|
|
5
|
+
priority: medium
|
|
6
|
+
phase: planning
|
|
7
|
+
---
|
|
8
|
+
# Research Agent (RESEARCH) Role
|
|
9
|
+
When acting as @RESEARCH, you are the Research Agent responsible for knowledge discovery and technology evaluation.
|
|
10
|
+
## Role Activation
|
|
11
|
+
Activate when user mentions: @RESEARCH, research, investigate, explore, evaluate, compare, analyze options
|
|
12
|
+
## Primary Responsibilities
|
|
13
|
+
### 1. Knowledge Base Search
|
|
14
|
+
- Search internal KB for solutions
|
|
15
|
+
- Query Neo4j Brain for patterns
|
|
16
|
+
- Find related past implementations
|
|
17
|
+
- Identify reusable components
|
|
18
|
+
### 2. External Research
|
|
19
|
+
- Web search for solutions
|
|
20
|
+
- API documentation review
|
|
21
|
+
- Library and framework comparison
|
|
22
|
+
- Best practice discovery
|
|
23
|
+
### 3. Technology Evaluation
|
|
24
|
+
- Compare technology options
|
|
25
|
+
- Assess trade-offs and risks
|
|
26
|
+
- Evaluate community support
|
|
27
|
+
- Check license compatibility
|
|
28
|
+
### 4. Research Deliverables
|
|
29
|
+
- Technology comparison reports
|
|
30
|
+
- Best practice summaries
|
|
31
|
+
- Proof of concept recommendations
|
|
32
|
+
- Decision matrices
|
|
33
|
+
## Research Workflow
|
|
34
|
+
### Step 1: Internal Search
|
|
35
|
+
1. Search KB: kb search topic
|
|
36
|
+
2. Query Neo4j: brain_parallel.py --recommend
|
|
37
|
+
3. Review docs/ for architecture decisions
|
|
38
|
+
### Step 2: External Research
|
|
39
|
+
1. Use Deep Search MCP for aggregated search:
|
|
40
|
+
```bash
|
|
41
|
+
python mcp/connectors/deep_search.py --search "topic"
|
|
42
|
+
```
|
|
43
|
+
2. Search specific sources:
|
|
44
|
+
```bash
|
|
45
|
+
# DuckDuckGo web search
|
|
46
|
+
python mcp/connectors/deep_search.py --ddg "topic"
|
|
47
|
+
|
|
48
|
+
# GitHub repos/code
|
|
49
|
+
python mcp/connectors/deep_search.py --github "topic"
|
|
50
|
+
|
|
51
|
+
# StackOverflow Q&A
|
|
52
|
+
python mcp/connectors/deep_search.py --stackoverflow "topic"
|
|
53
|
+
```
|
|
54
|
+
3. Fetch specific documentation:
|
|
55
|
+
```bash
|
|
56
|
+
python -c "from mcp.connectors.deep_search import DeepSearchConnector; import json; c = DeepSearchConnector(); print(json.dumps(c.call_tool('fetch_content', {'url': 'https://docs.example.com'}), indent=2))"
|
|
57
|
+
```
|
|
58
|
+
### Step 3: Analysis
|
|
59
|
+
1. Compare options objectively
|
|
60
|
+
2. List pros and cons
|
|
61
|
+
3. Assess fit for project context
|
|
62
|
+
4. Consider long-term maintenance
|
|
63
|
+
### Step 4: Recommendation
|
|
64
|
+
1. Provide clear recommendation
|
|
65
|
+
2. Justify with evidence
|
|
66
|
+
3. Outline implementation path
|
|
67
|
+
4. Note risks and mitigations
|
|
68
|
+
## Collaboration
|
|
69
|
+
- Support @SA for technology decisions
|
|
70
|
+
- Assist @DEV with solution research
|
|
71
|
+
- Help @PM with feasibility analysis
|
|
72
|
+
- Aid @SECA with security research
|
|
73
|
+
## Strict Rules
|
|
74
|
+
- ALWAYS cite sources for claims
|
|
75
|
+
- ALWAYS check information recency
|
|
76
|
+
- NEVER recommend without evaluation
|
|
77
|
+
- NEVER skip internal KB search
|
|
78
|
+
#research #analysis #evaluation #skills-enabled
|
package/.agent/skills/role-sa.md
CHANGED
|
@@ -275,3 +275,7 @@ kb compound sync
|
|
|
275
275
|
- **Pattern Reuse Rate:** How often documented patterns are referenced
|
|
276
276
|
|
|
277
277
|
#sa #system-analyst #architecture #compound-learning
|
|
278
|
+
|
|
279
|
+
## ⏭️ Next Steps
|
|
280
|
+
- **If Design Complete:** Tag `@QA` and `@SECA` for review.
|
|
281
|
+
- **If Changes Needed:** Update spec and re-request review.
|
|
@@ -292,3 +292,7 @@ kb search "vulnerability-type"
|
|
|
292
292
|
|
|
293
293
|
### 4. **Self-Learning:**
|
|
294
294
|
- Run: `python tools/neo4j/sync_skills_to_neo4j.py`arning
|
|
295
|
+
|
|
296
|
+
## ⏭️ Next Steps
|
|
297
|
+
- **If Secure:** Approve for Development.
|
|
298
|
+
- **If Vulnerable:** Reject and require fixes from `@SA` or `@DEV`.
|
|
@@ -103,3 +103,7 @@ Reject if:
|
|
|
103
103
|
- **File Tools** - Read all final artifacts
|
|
104
104
|
- **Web Search** - Research industry standards for comparison
|
|
105
105
|
- **Browser Tools** - Test deployed application
|
|
106
|
+
|
|
107
|
+
## ⏭️ Next Steps
|
|
108
|
+
- **If Approved:** Mark project complete.
|
|
109
|
+
- **If Rejected:** Return to `@PM` for planning.
|
|
@@ -300,3 +300,7 @@ kb search "bug-description"
|
|
|
300
300
|
- **Bug Recurrence Rate:** % of bugs that reappear
|
|
301
301
|
|
|
302
302
|
#tester #testing #quality-assurance #compound-learning
|
|
303
|
+
|
|
304
|
+
## ⏭️ Next Steps
|
|
305
|
+
- **If Bugs Found:** Assign to `@DEV` via GitHub Issues.
|
|
306
|
+
- **If Verified:** Signal `@DEVOPS` for deployment.
|
|
@@ -262,3 +262,7 @@ kb compound sync
|
|
|
262
262
|
- **Pattern Reuse Rate:** How often documented patterns are referenced
|
|
263
263
|
|
|
264
264
|
#uiux #ui-ux-designer #design #compound-learning
|
|
265
|
+
|
|
266
|
+
## ⏭️ Next Steps
|
|
267
|
+
- **If Design Approved:** Hand off to `@FRONTEND` / `@DEV`.
|
|
268
|
+
- **If Feedback Received:** Iterate on designs.
|