apt-mcp-agent-setup 1.0.0 → 1.1.0

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.
@@ -0,0 +1,98 @@
1
+ # AG Kit — Copilot Custom Instructions
2
+
3
+ > This file defines how GitHub Copilot behaves in this workspace.
4
+
5
+ ## Agent skills
6
+
7
+ ### Support & issues
8
+
9
+ For bug reports, feature requests, or licensing questions, contact: `info.alphatechs.ai@gmail.com`
10
+
11
+ ### Issue tracker
12
+
13
+ Issues are tracked in GitLab Issues. See `docs/agents/issue-tracker.md`.
14
+
15
+ ### Triage labels
16
+
17
+ Default label vocabulary (needs-triage, needs-info, ready-for-agent, ready-for-human, wontfix). See `docs/agents/triage-labels.md`.
18
+
19
+ ### Domain docs
20
+
21
+ Single-context layout — one `CONTEXT.md` + `docs/adr/` at the repo root. See `docs/agents/domain.md`.
22
+
23
+ ---
24
+
25
+ ## Session Start Protocol (MANDATORY)
26
+
27
+ 1. Read `.agents/ARCHITECTURE.md` to understand Agents, Skills, and Scripts.
28
+ 2. Read `.agents/memory/MEMORY.md` to load persistent project conventions.
29
+ 3. Read `docs/agents/mcp-tools.md` to load MCP tool selection rules & memory conventions.
30
+ 4. Call `read_knowledge` to load dynamic knowledge graph from memory.
31
+
32
+ ---
33
+
34
+ ## MCP Tool Selection
35
+
36
+ | Situation | Use Tool | NOT | Why |
37
+ |---|---|---|---|
38
+ | Find symbol definition, function, class | `code_search` | `grep_search` | Semantic search, understands code structure |
39
+ | Find all callers of a function | `find_callers` | `grep_search` | Follows call graph, not just text match |
40
+ | Find all functions called by a function | `find_callees` | — | Call graph traversal |
41
+ | Explore file structure & dependencies | `explore_code` | `list_dir` | Understands imports, exports, relationships |
42
+ | Search in config/docs (YAML, JSON, .env, markdown) | `grep_search` | `code_search` | Non-code files, literal string match |
43
+ | "What breaks if I change this?" | `impact_analysis` | — | Blast radius — always update index first |
44
+ | Save a decision/bug-fix/convention | `remember` | — | Cross-session persistence |
45
+ | Recall what was decided about X | `recall` | — | Search by keyword |
46
+ | Load full knowledge graph | `read_knowledge` | — | Session start, get full context |
47
+
48
+ **Rule: DEFAULT to `code_search` for code. Fall back to `grep_search` ONLY for non-code files or literal strings.**
49
+
50
+ ---
51
+
52
+ ## Auto-Trigger Skills (MANDATORY)
53
+
54
+ ### Workflow Skills
55
+
56
+ | Skill | Trigger Conditions | Agent Action |
57
+ |---|---|---|
58
+ | `spec-clarification` | Design decision, architecture choice, plan review | Load SKILL.md → Start alignment session |
59
+ | `bug-diagnostics` | Bug report, error log, "fails", "crashes" | Load SKILL.md → Reproduce → minimise → hypothesise → fix |
60
+ | `task-breakdown` | Plan/PRD completed, "break down", "create tickets" | Load SKILL.md → Convert plan to vertical-slice issues |
61
+ | `prd-gen` | New feature/product description with enough context | Load SKILL.md → Extract PRD from conversation context |
62
+ | `prototype` | "mockup", "explore options", unclear UI/logic | Load SKILL.md → Build throwaway prototype |
63
+ | `tdd-loop` | Feature implementation, bug fix, "write tests" | Load SKILL.md → Apply RED-GREEN-REFACTOR loop |
64
+
65
+ ### UI/UX Design Skills
66
+
67
+ | Skill | Trigger Conditions | Agent Action |
68
+ |---|---|---|
69
+ | `ui-style-rules` | Any web UI task: page layout, component styling | Load SKILL.md → Apply anti-slop design rules |
70
+ | `web-mockup-gen` | Web UI concept needed before coding | Load SKILL.md → Generate web design reference images |
71
+ | `mobile-mockup-gen` | Mobile UI concept needed before coding | Load SKILL.md → Generate mobile screen mockups |
72
+ | `mobile-rules` | Any mobile UI implementation: Flutter, touch interaction | Load SKILL.md → Apply platform conventions |
73
+ | `flutter-*` | Flutter-specific tasks: layout, routing, testing | Auto-select matching flutter skill |
74
+
75
+ ---
76
+
77
+ ## Socratic Gate
78
+
79
+ Every user request must pass through the Socratic Gate before ANY implementation:
80
+
81
+ | Request Type | Strategy | Required Action |
82
+ |---|---|---|
83
+ | **New Feature / Build** | Deep Discovery | ASK minimum 3 strategic questions |
84
+ | **Code Edit / Bug Fix** | Context Check | Confirm understanding + ask impact questions |
85
+ | **Vague / Simple** | Clarification | Ask Purpose, Users, and Scope |
86
+
87
+ ---
88
+
89
+ ## Universal Rules
90
+
91
+ ### Clean Code (Global Mandatory)
92
+ - **Code**: Concise, direct, no over-engineering. Self-documenting.
93
+ - **Testing**: Mandatory. Pyramid (Unit > Int > E2E) + AAA Pattern.
94
+ - **Performance**: Measure first. Adhere to current Core Web Vitals standards.
95
+
96
+ ### Quick Reference
97
+ - **Masters**: `orchestrator`, `project-planner`, `security-auditor`, `backend-specialist`, `frontend-specialist`, `mobile-developer`, `debugger`
98
+ - **Key Skills**: `clean-code`, `brainstorming`, `ui-style-rules`, `mobile-rules`, `web-mockup-gen`, `mobile-mockup-gen`, `bug-diagnostics`, `tdd-loop`, `spec-clarification`, `prd-gen`, `task-breakdown`, `prototype`
@@ -0,0 +1,108 @@
1
+ ---
2
+ description: AG Kit agent behavioral rules — tool selection, auto-trigger skills, session protocol
3
+ globs: **/*
4
+ alwaysApply: true
5
+ ---
6
+
7
+ # AG Kit — Agent Rules
8
+
9
+ > This file defines how the AI behaves in this workspace.
10
+
11
+ ## Agent skills
12
+
13
+ ### Support & issues
14
+
15
+ For bug reports, feature requests, or licensing questions, contact: `info.alphatechs.ai@gmail.com`
16
+
17
+ ### Issue tracker
18
+
19
+ Issues are tracked in GitLab Issues. See `docs/agents/issue-tracker.md`.
20
+
21
+ ### Triage labels
22
+
23
+ Default label vocabulary (needs-triage, needs-info, ready-for-agent, ready-for-human, wontfix). See `docs/agents/triage-labels.md`.
24
+
25
+ ### Domain docs
26
+
27
+ Single-context layout — one `CONTEXT.md` + `docs/adr/` at the repo root. See `docs/agents/domain.md`.
28
+
29
+ ---
30
+
31
+ ## 🗺️ Session Start Protocol (MANDATORY)
32
+
33
+ 1. Read `.agents/ARCHITECTURE.md` to understand Agents, Skills, and Scripts.
34
+ 2. Read `.agents/memory/MEMORY.md` to load persistent project conventions.
35
+ 3. Read `docs/agents/mcp-tools.md` to load MCP tool selection rules & memory conventions.
36
+ 4. Call `read_knowledge` to load dynamic knowledge graph from memory.
37
+
38
+ ---
39
+
40
+ ## 🔍 MCP Tool Selection
41
+
42
+ | Situation | Use Tool | NOT | Why |
43
+ |---|---|---|---|
44
+ | Find symbol definition, function, class | `code_search` | `grep_search` | Semantic search, understands code structure |
45
+ | Find all callers of a function | `find_callers` | `grep_search` | Follows call graph, not just text match |
46
+ | Find all functions called by a function | `find_callees` | — | Call graph traversal |
47
+ | Explore file structure & dependencies | `explore_code` | `list_dir` | Understands imports, exports, relationships |
48
+ | Search in config/docs (YAML, JSON, .env, markdown) | `grep_search` | `code_search` | Non-code files, literal string match |
49
+ | "What breaks if I change this?" | `impact_analysis` | — | Blast radius — always update index first |
50
+ | Save a decision/bug-fix/convention | `remember` | — | Cross-session persistence |
51
+ | Recall what was decided about X | `recall` | — | Search by keyword |
52
+ | Load full knowledge graph | `read_knowledge` | — | Session start, get full context |
53
+
54
+ **Rule: DEFAULT to `code_search` for code. Fall back to `grep_search` ONLY for non-code files or literal strings.**
55
+
56
+ ---
57
+
58
+ ## 🎯 Auto-Trigger Skills (MANDATORY)
59
+
60
+ ### Workflow Skills
61
+
62
+ | Skill | Trigger Conditions | Agent Action |
63
+ |---|---|---|
64
+ | `spec-clarification` | Design decision, architecture choice, plan review | Load SKILL.md → Start alignment session |
65
+ | `bug-diagnostics` | Bug report, error log, "fails", "crashes" | Load SKILL.md → Reproduce → minimise → hypothesise → fix |
66
+ | `task-breakdown` | Plan/PRD completed, "break down", "create tickets" | Load SKILL.md → Convert plan to vertical-slice issues |
67
+ | `prd-gen` | New feature/product description with enough context | Load SKILL.md → Extract PRD from conversation context |
68
+ | `prototype` | "mockup", "explore options", unclear UI/logic | Load SKILL.md → Build throwaway prototype |
69
+ | `tdd-loop` | Feature implementation, bug fix, "write tests" | Load SKILL.md → Apply RED-GREEN-REFACTOR loop |
70
+
71
+ ### UI/UX Design Skills
72
+
73
+ | Skill | Trigger Conditions | Agent Action |
74
+ |---|---|---|
75
+ | `ui-style-rules` | Any web UI task: page layout, component styling | Load SKILL.md → Apply anti-slop design rules |
76
+ | `web-mockup-gen` | Web UI concept needed before coding | Load SKILL.md → Generate web design reference images |
77
+ | `mobile-mockup-gen` | Mobile UI concept needed before coding | Load SKILL.md → Generate mobile screen mockups |
78
+ | `mobile-rules` | Any mobile UI implementation: Flutter, touch interaction | Load SKILL.md → Apply platform conventions |
79
+ | `flutter-*` | Flutter-specific tasks: layout, routing, testing | Auto-select matching flutter skill |
80
+
81
+ ### Failure Conditions
82
+ - ❌ Writing UI code without loading design skill = **SLOP RISK**
83
+ - ❌ Creating mobile screen without `mobile-rules` = **PLATFORM VIOLATION**
84
+
85
+ ---
86
+
87
+ ## 🛑 Socratic Gate
88
+
89
+ Every user request must pass through the Socratic Gate before ANY implementation:
90
+
91
+ | Request Type | Strategy | Required Action |
92
+ |---|---|---|
93
+ | **New Feature / Build** | Deep Discovery | ASK minimum 3 strategic questions |
94
+ | **Code Edit / Bug Fix** | Context Check | Confirm understanding + ask impact questions |
95
+ | **Vague / Simple** | Clarification | Ask Purpose, Users, and Scope |
96
+
97
+ ---
98
+
99
+ ## Universal Rules
100
+
101
+ ### Clean Code (Global Mandatory)
102
+ - **Code**: Concise, direct, no over-engineering. Self-documenting.
103
+ - **Testing**: Mandatory. Pyramid (Unit > Int > E2E) + AAA Pattern.
104
+ - **Performance**: Measure first. Adhere to current Core Web Vitals standards.
105
+
106
+ ### Quick Reference
107
+ - **Masters**: `orchestrator`, `project-planner`, `security-auditor`, `backend-specialist`, `frontend-specialist`, `mobile-developer`, `debugger`
108
+ - **Key Skills**: `clean-code`, `brainstorming`, `ui-style-rules`, `mobile-rules`, `web-mockup-gen`, `mobile-mockup-gen`, `bug-diagnostics`, `tdd-loop`, `spec-clarification`, `prd-gen`, `task-breakdown`, `prototype`
@@ -0,0 +1,98 @@
1
+ # AG Kit — Agent Rules
2
+
3
+ > This file defines how the AI (Windsurf Cascade) behaves in this workspace.
4
+
5
+ ## Agent skills
6
+
7
+ ### Support & issues
8
+
9
+ For bug reports, feature requests, or licensing questions, contact: `info.alphatechs.ai@gmail.com`
10
+
11
+ ### Issue tracker
12
+
13
+ Issues are tracked in GitLab Issues. See `docs/agents/issue-tracker.md`.
14
+
15
+ ### Triage labels
16
+
17
+ Default label vocabulary (needs-triage, needs-info, ready-for-agent, ready-for-human, wontfix). See `docs/agents/triage-labels.md`.
18
+
19
+ ### Domain docs
20
+
21
+ Single-context layout — one `CONTEXT.md` + `docs/adr/` at the repo root. See `docs/agents/domain.md`.
22
+
23
+ ---
24
+
25
+ ## Session Start Protocol (MANDATORY)
26
+
27
+ 1. Read `.agents/ARCHITECTURE.md` to understand Agents, Skills, and Scripts.
28
+ 2. Read `.agents/memory/MEMORY.md` to load persistent project conventions.
29
+ 3. Read `docs/agents/mcp-tools.md` to load MCP tool selection rules & memory conventions.
30
+ 4. Call `read_knowledge` to load dynamic knowledge graph from memory.
31
+
32
+ ---
33
+
34
+ ## MCP Tool Selection
35
+
36
+ | Situation | Use Tool | NOT | Why |
37
+ |---|---|---|---|
38
+ | Find symbol definition, function, class | `code_search` | `grep_search` | Semantic search, understands code structure |
39
+ | Find all callers of a function | `find_callers` | `grep_search` | Follows call graph, not just text match |
40
+ | Find all functions called by a function | `find_callees` | — | Call graph traversal |
41
+ | Explore file structure & dependencies | `explore_code` | `list_dir` | Understands imports, exports, relationships |
42
+ | Search in config/docs (YAML, JSON, .env, markdown) | `grep_search` | `code_search` | Non-code files, literal string match |
43
+ | "What breaks if I change this?" | `impact_analysis` | — | Blast radius — always update index first |
44
+ | Save a decision/bug-fix/convention | `remember` | — | Cross-session persistence |
45
+ | Recall what was decided about X | `recall` | — | Search by keyword |
46
+ | Load full knowledge graph | `read_knowledge` | — | Session start, get full context |
47
+
48
+ **Rule: DEFAULT to `code_search` for code. Fall back to `grep_search` ONLY for non-code files or literal strings.**
49
+
50
+ ---
51
+
52
+ ## Auto-Trigger Skills (MANDATORY)
53
+
54
+ ### Workflow Skills
55
+
56
+ | Skill | Trigger Conditions | Agent Action |
57
+ |---|---|---|
58
+ | `spec-clarification` | Design decision, architecture choice, plan review | Load SKILL.md → Start alignment session |
59
+ | `bug-diagnostics` | Bug report, error log, "fails", "crashes" | Load SKILL.md → Reproduce → minimise → hypothesise → fix |
60
+ | `task-breakdown` | Plan/PRD completed, "break down", "create tickets" | Load SKILL.md → Convert plan to vertical-slice issues |
61
+ | `prd-gen` | New feature/product description with enough context | Load SKILL.md → Extract PRD from conversation context |
62
+ | `prototype` | "mockup", "explore options", unclear UI/logic | Load SKILL.md → Build throwaway prototype |
63
+ | `tdd-loop` | Feature implementation, bug fix, "write tests" | Load SKILL.md → Apply RED-GREEN-REFACTOR loop |
64
+
65
+ ### UI/UX Design Skills
66
+
67
+ | Skill | Trigger Conditions | Agent Action |
68
+ |---|---|---|
69
+ | `ui-style-rules` | Any web UI task: page layout, component styling | Load SKILL.md → Apply anti-slop design rules |
70
+ | `web-mockup-gen` | Web UI concept needed before coding | Load SKILL.md → Generate web design reference images |
71
+ | `mobile-mockup-gen` | Mobile UI concept needed before coding | Load SKILL.md → Generate mobile screen mockups |
72
+ | `mobile-rules` | Any mobile UI implementation: Flutter, touch interaction | Load SKILL.md → Apply platform conventions |
73
+ | `flutter-*` | Flutter-specific tasks: layout, routing, testing | Auto-select matching flutter skill |
74
+
75
+ ---
76
+
77
+ ## Socratic Gate
78
+
79
+ Every user request must pass through the Socratic Gate before ANY implementation:
80
+
81
+ | Request Type | Strategy | Required Action |
82
+ |---|---|---|
83
+ | **New Feature / Build** | Deep Discovery | ASK minimum 3 strategic questions |
84
+ | **Code Edit / Bug Fix** | Context Check | Confirm understanding + ask impact questions |
85
+ | **Vague / Simple** | Clarification | Ask Purpose, Users, and Scope |
86
+
87
+ ---
88
+
89
+ ## Universal Rules
90
+
91
+ ### Clean Code (Global Mandatory)
92
+ - **Code**: Concise, direct, no over-engineering. Self-documenting.
93
+ - **Testing**: Mandatory. Pyramid (Unit > Int > E2E) + AAA Pattern.
94
+ - **Performance**: Measure first. Adhere to current Core Web Vitals standards.
95
+
96
+ ### Quick Reference
97
+ - **Masters**: `orchestrator`, `project-planner`, `security-auditor`, `backend-specialist`, `frontend-specialist`, `mobile-developer`, `debugger`
98
+ - **Key Skills**: `clean-code`, `brainstorming`, `ui-style-rules`, `mobile-rules`, `web-mockup-gen`, `mobile-mockup-gen`, `bug-diagnostics`, `tdd-loop`, `spec-clarification`, `prd-gen`, `task-breakdown`, `prototype`