@uocnv1998/agent-kit 1.0.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.
- package/README.md +56 -0
- package/bin/index.js +161 -0
- package/package.json +14 -0
- package/templates/.agent/ARCHITECTURE.md +37 -0
- package/templates/.agent/common/workflows/brainstorm.md +113 -0
- package/templates/.agent/designer/ARCHITECTURE.md +24 -0
- package/templates/.agent/designer/rules/GEMINI.md +110 -0
- package/templates/.agent/designer/skills/SKILL.md +46 -0
- package/templates/.agent/designer/workflows/designer-workflow.md +29 -0
- package/templates/.agent/dev/backend/ARCHITECTURE.md +49 -0
- package/templates/.agent/dev/backend/agents/backend-specialist.md +116 -0
- package/templates/.agent/dev/backend/rules/GEMINI.md +114 -0
- package/templates/.agent/dev/backend/skills/clichouse-expert/SKILL.md +144 -0
- package/templates/.agent/dev/backend/skills/docker/SKILL.md +409 -0
- package/templates/.agent/dev/backend/skills/laravel/SKILL.md +63 -0
- package/templates/.agent/dev/backend/skills/laravel-tdd/SKILL.md +146 -0
- package/templates/.agent/dev/backend/skills/mysql/SKILL.md +83 -0
- package/templates/.agent/dev/backend/skills/mysql/references/character-sets.md +66 -0
- package/templates/.agent/dev/backend/skills/mysql/references/composite-indexes.md +59 -0
- package/templates/.agent/dev/backend/skills/mysql/references/connection-management.md +70 -0
- package/templates/.agent/dev/backend/skills/mysql/references/covering-indexes.md +47 -0
- package/templates/.agent/dev/backend/skills/mysql/references/data-types.md +69 -0
- package/templates/.agent/dev/backend/skills/mysql/references/deadlocks.md +72 -0
- package/templates/.agent/dev/backend/skills/mysql/references/explain-analysis.md +66 -0
- package/templates/.agent/dev/backend/skills/mysql/references/fulltext-indexes.md +28 -0
- package/templates/.agent/dev/backend/skills/mysql/references/index-maintenance.md +110 -0
- package/templates/.agent/dev/backend/skills/mysql/references/isolation-levels.md +49 -0
- package/templates/.agent/dev/backend/skills/mysql/references/json-column-patterns.md +77 -0
- package/templates/.agent/dev/backend/skills/mysql/references/n-plus-one.md +77 -0
- package/templates/.agent/dev/backend/skills/mysql/references/online-ddl.md +53 -0
- package/templates/.agent/dev/backend/skills/mysql/references/partitioning.md +92 -0
- package/templates/.agent/dev/backend/skills/mysql/references/primary-keys.md +70 -0
- package/templates/.agent/dev/backend/skills/mysql/references/query-optimization-pitfalls.md +117 -0
- package/templates/.agent/dev/backend/skills/mysql/references/replication-lag.md +46 -0
- package/templates/.agent/dev/backend/skills/mysql/references/row-locking-gotchas.md +63 -0
- package/templates/.agent/dev/common/rules/GIT_COMMIT.md +9 -0
- package/templates/.agent/dev/common/skills/tdd-workflow/SKILL.md +149 -0
- package/templates/.agent/dev/common/workflows/dev-workflow.md +46 -0
- package/templates/.agent/dev/frontend/ARCHITECTURE.md +47 -0
- package/templates/.agent/dev/frontend/agents/frontend-specialist.md +593 -0
- package/templates/.agent/dev/frontend/rules/GEMINI.md +117 -0
- package/templates/.agent/dev/frontend/skills/frontend-design/SKILL.md +418 -0
- package/templates/.agent/dev/frontend/skills/frontend-design/animation-guide.md +331 -0
- package/templates/.agent/dev/frontend/skills/frontend-design/color-system.md +311 -0
- package/templates/.agent/dev/frontend/skills/frontend-design/decision-trees.md +418 -0
- package/templates/.agent/dev/frontend/skills/frontend-design/motion-graphics.md +306 -0
- package/templates/.agent/dev/frontend/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/templates/.agent/dev/frontend/skills/frontend-design/scripts/ux_audit.py +722 -0
- package/templates/.agent/dev/frontend/skills/frontend-design/typography-system.md +345 -0
- package/templates/.agent/dev/frontend/skills/frontend-design/ux-psychology.md +1116 -0
- package/templates/.agent/dev/frontend/skills/frontend-design/visual-effects.md +383 -0
- package/templates/.agent/dev/frontend/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +312 -0
- package/templates/.agent/dev/frontend/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
- package/templates/.agent/dev/frontend/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
- package/templates/.agent/dev/frontend/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
- package/templates/.agent/dev/frontend/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
- package/templates/.agent/dev/frontend/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
- package/templates/.agent/dev/frontend/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
- package/templates/.agent/dev/frontend/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
- package/templates/.agent/dev/frontend/skills/nextjs-react-expert/SKILL.md +286 -0
- package/templates/.agent/dev/frontend/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
- package/templates/.agent/dev/frontend/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
- package/templates/.agent/dev/frontend/skills/tailwind-patterns/SKILL.md +269 -0
- package/templates/.agent/dev/frontend/skills/web-design-guidelines/SKILL.md +57 -0
- package/templates/.agent/po_ba/ARCHITECTURE.md +28 -0
- package/templates/.agent/po_ba/agents/documentation-writer.md +104 -0
- package/templates/.agent/po_ba/agents/product-manager.md +112 -0
- package/templates/.agent/po_ba/agents/product-owner.md +95 -0
- package/templates/.agent/po_ba/rules/GEMINI.md +142 -0
- package/templates/.agent/po_ba/skills/SKILL.md +42 -0
- package/templates/.agent/po_ba/workflows/po_ba-workflow.md +21 -0
- package/templates/.agent/tester/ARCHITECTURE.md +27 -0
- package/templates/.agent/tester/agents/qa-automation-engineer.md +103 -0
- package/templates/.agent/tester/agents/test-engineer.md +158 -0
- package/templates/.agent/tester/rules/GEMINI.md +147 -0
- package/templates/.agent/tester/skills/SKILL.md +57 -0
- package/templates/.agent/tester/workflows/tester-workflow.md +32 -0
package/README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Agent Skills CLI (`@uocnv/agent-installer`)
|
|
2
|
+
|
|
3
|
+
A powerful command-line tool designed to scaffold and manage AI Agent environments. This tool specifically builds the foundation for AI agents (like Antigravity) by setting up structured **Skills**, **Rules**, and **Workflows** within your project.
|
|
4
|
+
|
|
5
|
+
## π Overview
|
|
6
|
+
|
|
7
|
+
The **Agent Skills CLI** streamlines the process of initializing a project for specific AI roles. It ensures that your AI collaborator has the right context, tools, and operational procedures to be effective immediately.
|
|
8
|
+
|
|
9
|
+
## π Installation & Usage
|
|
10
|
+
|
|
11
|
+
You can run this tool directly using `npx` without installation:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx @uocnv/agent-installer --role=<role_name>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Replace `<role_name>` with one of the supported roles.
|
|
18
|
+
|
|
19
|
+
### Example:
|
|
20
|
+
```bash
|
|
21
|
+
npx @uocnv/agent-installer --role=dev
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## π Supported Roles
|
|
25
|
+
|
|
26
|
+
| Role | Description |
|
|
27
|
+
| :--- | :--- |
|
|
28
|
+
| `po_ba` | Product Owner / Business Analyst context and requirements gathering skills. |
|
|
29
|
+
| `designer` | UI/UX design patterns and aesthetic guidelines. |
|
|
30
|
+
| `dev` | Development standards, coding patterns, and technical implementation skills. |
|
|
31
|
+
| `tester` | Quality assurance, testing strategies, and bug reporting workflows. |
|
|
32
|
+
| `all` | Installs the full suite of roles and global configurations. |
|
|
33
|
+
|
|
34
|
+
## π Project Structure
|
|
35
|
+
|
|
36
|
+
When you run the command, it creates or updates a `.agent/` directory in your project root:
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
your-project/
|
|
40
|
+
βββ .agent/
|
|
41
|
+
β βββ rules/ # Global and role-specific operational rules
|
|
42
|
+
β βββ skills/ # Specialized instructions for different agent roles
|
|
43
|
+
β βββ workflows/ # Step-by-step guides for common tasks
|
|
44
|
+
βββ ...
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## βοΈ How it Works
|
|
48
|
+
|
|
49
|
+
The CLI copies pre-defined templates from the `@uocnv/agent-installer` package into your local `.agent` folder:
|
|
50
|
+
1. **Selective Skills**: Only the skills relevant to the chosen role are copied.
|
|
51
|
+
2. **Workflows**: Role-specific `*-workflow.md` files are placed in the workflows directory.
|
|
52
|
+
3. **Rules**: Role-specific `*-base.md` rules are established to guide the agent's behavior.
|
|
53
|
+
|
|
54
|
+
## π€ Contributing
|
|
55
|
+
|
|
56
|
+
This project is built to improve the "Local-First, Handoff via Jira" strategy for AI Agent collaboration. If you have suggestions for new skills or role templates, feel free to contribute!
|
package/bin/index.js
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const os = require('os');
|
|
6
|
+
const { execSync } = require('child_process');
|
|
7
|
+
|
|
8
|
+
// ANSI Color constants for professional CLI UI
|
|
9
|
+
const colors = {
|
|
10
|
+
green: '\x1b[32m',
|
|
11
|
+
cyan: '\x1b[36m',
|
|
12
|
+
red: '\x1b[31m',
|
|
13
|
+
dim: '\x1b[90m',
|
|
14
|
+
reset: '\x1b[0m',
|
|
15
|
+
check: '\x1b[32mβ\x1b[0m',
|
|
16
|
+
cross: '\x1b[31mβ\x1b[0m',
|
|
17
|
+
info: '\x1b[36mβΉ\x1b[0m',
|
|
18
|
+
pipe: '\x1b[90mβ\x1b[0m'
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
// Role argument parsing
|
|
22
|
+
const args = process.argv.slice(2);
|
|
23
|
+
const roleArg = args.find(arg => arg.startsWith('--role='));
|
|
24
|
+
|
|
25
|
+
if (!roleArg) {
|
|
26
|
+
console.error(`\n${colors.cross} Please provide a role.`);
|
|
27
|
+
console.error(` ${colors.dim}Example: npx agent-skills-cli --role=po_ba${colors.reset}`);
|
|
28
|
+
console.error(` ${colors.info} Supported roles: frontend, backend, po_ba, designer, tester\n`);
|
|
29
|
+
process.exit(1);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const role = roleArg.split('=')[1];
|
|
33
|
+
const currentDir = process.cwd();
|
|
34
|
+
const templateDir = path.join(__dirname, '..', 'templates', '.agent');
|
|
35
|
+
const targetDir = path.join(currentDir, '.agent');
|
|
36
|
+
|
|
37
|
+
console.log(`\n${colors.check} Initializing environment for role: ${colors.cyan}${role}${colors.reset}`);
|
|
38
|
+
|
|
39
|
+
try {
|
|
40
|
+
let rolesToInstall = [];
|
|
41
|
+
if (role === 'frontend') {
|
|
42
|
+
rolesToInstall = ['dev/common', 'dev/frontend'];
|
|
43
|
+
} else if (role === 'backend') {
|
|
44
|
+
rolesToInstall = ['dev/common', 'dev/backend'];
|
|
45
|
+
} else if (role === 'dev') {
|
|
46
|
+
console.error(`\n${colors.cross} Role 'dev' is no longer supported. Please use '--role=frontend' or '--role=backend'.`);
|
|
47
|
+
process.exit(1);
|
|
48
|
+
} else if (role === 'all') {
|
|
49
|
+
console.error(`\n${colors.cross} Role 'all' is no longer supported. Please install specific roles sequentially.`);
|
|
50
|
+
process.exit(1);
|
|
51
|
+
} else {
|
|
52
|
+
rolesToInstall = [role];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// 1. Create target structure
|
|
56
|
+
if (!fs.existsSync(targetDir)) {
|
|
57
|
+
fs.mkdirSync(targetDir, { recursive: true });
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const subfolders = ['agents', 'rules', 'skills', 'workflows'];
|
|
61
|
+
subfolders.forEach(sub => {
|
|
62
|
+
const dest = path.join(targetDir, sub);
|
|
63
|
+
if (!fs.existsSync(dest)) fs.mkdirSync(dest, { recursive: true });
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// 2. Install Common (Global) components
|
|
67
|
+
const commonDir = path.join(templateDir, 'common');
|
|
68
|
+
if (fs.existsSync(commonDir)) {
|
|
69
|
+
['rules', 'workflows'].forEach(sub => {
|
|
70
|
+
const src = path.join(commonDir, sub);
|
|
71
|
+
const dest = path.join(targetDir, sub);
|
|
72
|
+
if (fs.existsSync(src)) {
|
|
73
|
+
fs.cpSync(src, dest, { recursive: true, force: true });
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
console.log(`${colors.pipe} Installed global common rules and workflows`);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// 3. Install Role-specific components (Flattened)
|
|
80
|
+
rolesToInstall.forEach(r => {
|
|
81
|
+
const roleSourceDir = path.join(templateDir, r);
|
|
82
|
+
if (!fs.existsSync(roleSourceDir)) {
|
|
83
|
+
if (!r.includes('/')) {
|
|
84
|
+
console.error(`\n${colors.cross} Could not find folder for role: ${r}`);
|
|
85
|
+
console.error(`${colors.pipe} Supported roles: frontend, backend, po_ba, designer, tester`);
|
|
86
|
+
process.exit(1);
|
|
87
|
+
}
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Check for role-specific ARCHITECTURE.md and install it at root
|
|
92
|
+
const roleArch = path.join(roleSourceDir, 'ARCHITECTURE.md');
|
|
93
|
+
if (fs.existsSync(roleArch)) {
|
|
94
|
+
fs.copyFileSync(roleArch, path.join(targetDir, 'ARCHITECTURE.md'));
|
|
95
|
+
console.log(`${colors.pipe} Installed architecture spec for ${colors.cyan}${r}${colors.reset}`);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Install common subfolders
|
|
99
|
+
subfolders.forEach(sub => {
|
|
100
|
+
const src = path.join(roleSourceDir, sub);
|
|
101
|
+
const dest = path.join(targetDir, sub);
|
|
102
|
+
if (fs.existsSync(src)) {
|
|
103
|
+
fs.cpSync(src, dest, { recursive: true, force: true });
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
console.log(`${colors.pipe} Installed agents, rules, skills, workflows for ${colors.cyan}${r}${colors.reset}`);
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
// 4. Setup OpenSpec for Dev Roles
|
|
110
|
+
if (role === 'frontend' || role === 'backend') {
|
|
111
|
+
try {
|
|
112
|
+
console.log(`${colors.pipe} Checking if OpenSpec is installed...`);
|
|
113
|
+
let isInstalled = false;
|
|
114
|
+
try {
|
|
115
|
+
execSync('openspec --version', { stdio: 'ignore' });
|
|
116
|
+
isInstalled = true;
|
|
117
|
+
console.log(`${colors.info} OpenSpec is already installed globally.`);
|
|
118
|
+
} catch (e) {
|
|
119
|
+
// Not installed
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (!isInstalled) {
|
|
123
|
+
console.log(`${colors.pipe} Installing OpenSpec framework globally...`);
|
|
124
|
+
// Install globally via npm
|
|
125
|
+
execSync('npm install -g @fission-ai/openspec@latest', { stdio: 'inherit' });
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
console.log(`\n\n${colors.pipe} Initializing OpenSpec for the project...`);
|
|
129
|
+
// Only run init if openspec directory doesn't exist to avoid errors
|
|
130
|
+
if (!fs.existsSync(path.join(currentDir, 'openspec'))) {
|
|
131
|
+
execSync('openspec init', { stdio: 'inherit', cwd: currentDir });
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// Automatically configure OpenSpec to generate artifacts in Vietnamese
|
|
135
|
+
const openspecConfigPath = path.join(currentDir, 'openspec', 'config.yaml');
|
|
136
|
+
if (fs.existsSync(openspecConfigPath)) {
|
|
137
|
+
let configData = fs.readFileSync(openspecConfigPath, 'utf8');
|
|
138
|
+
if (!configData.includes('Language: Vietnamese')) {
|
|
139
|
+
// Match 'context: |' or '# context: |'
|
|
140
|
+
configData = configData.replace(/^#?\s*context:\s*\|/m, "context: |\n Language: Vietnamese\n All artifacts must be written in Vietnamese. Keep technical terms in English.\n");
|
|
141
|
+
fs.writeFileSync(openspecConfigPath, configData, 'utf8');
|
|
142
|
+
console.log(`${colors.pipe} Configured OpenSpec output language to Vietnamese`);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
execSync('openspec update', { stdio: 'inherit', cwd: currentDir });
|
|
147
|
+
console.log(`${colors.pipe} OpenSpec structure created/updated`);
|
|
148
|
+
} catch (specError) {
|
|
149
|
+
console.error(`\n${colors.cross} OpenSpec setup failed. You may need 'sudo' permissions on Mac/Linux.`);
|
|
150
|
+
console.error(`${colors.pipe} Run manually: sudo npm install -g @fission-ai/openspec@latest`);
|
|
151
|
+
console.error(`${colors.pipe} Then run: openspec init && openspec update`);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
console.log(`${colors.check} Setup complete for ${colors.cyan}${role}${colors.reset}`);
|
|
156
|
+
// console.log(`${colors.pipe} Structure: .agent/ {ARCHITECTURE.md, agents, rules, skills, workflows}\n`);
|
|
157
|
+
|
|
158
|
+
} catch (error) {
|
|
159
|
+
console.error(`\n${colors.cross} An error occurred during installation:`, error.message);
|
|
160
|
+
process.exit(1);
|
|
161
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@uocnv1998/agent-kit",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "CLI tool to scaffold Agent Skills, Rules, and Workflows",
|
|
5
|
+
"main": "bin/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"agent-kit": "bin/index.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
|
+
},
|
|
12
|
+
"author": "Antigravity",
|
|
13
|
+
"license": "ISC"
|
|
14
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Architecture
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## ποΈ Folder Structure
|
|
6
|
+
|
|
7
|
+
The `.agent` directory is organized by **role**, with each role having its own set of agents, rules, skills, and workflows.
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
.agent/
|
|
11
|
+
βββ common/ # Global components
|
|
12
|
+
β βββ workflows/
|
|
13
|
+
βββ dev/ # Developer roles
|
|
14
|
+
β βββ common/ # Shared Dev rules/skills
|
|
15
|
+
β βββ frontend/ # Frontend specialized content
|
|
16
|
+
β βββ backend/ # Backend specialized content
|
|
17
|
+
βββ designer/ # Designer role
|
|
18
|
+
βββ po_ba/ # Product Owner / BA role
|
|
19
|
+
βββ tester/ # Tester role
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## π§ Role Architecture
|
|
25
|
+
|
|
26
|
+
For detailed information about each role:
|
|
27
|
+
|
|
28
|
+
- π» **[dev/ARCHITECTURE.md](dev/ARCHITECTURE.md)**: Technical development (Frontend/Backend) and TDD.
|
|
29
|
+
- π **[designer/ARCHITECTURE.md](designer/ARCHITECTURE.md)**: UI/UX Design patterns and guidelines.
|
|
30
|
+
- π **[po_ba/ARCHITECTURE.md](po_ba/ARCHITECTURE.md)**: Product Management, Requirements, and Documentation.
|
|
31
|
+
- π§ͺ **[tester/ARCHITECTURE.md](tester/ARCHITECTURE.md)**: Quality Assurance, Automated and Functional Testing.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
> **MANDATORY:** Check the `rules/` within each role folder to understand how the AI perceives and executes its job for that specific role.
|
|
36
|
+
|
|
37
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Structured brainstorming for projects and features. Explores multiple options before implementation.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /brainstorm - Structured Idea Exploration
|
|
6
|
+
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Purpose
|
|
12
|
+
|
|
13
|
+
This command activates BRAINSTORM mode for structured idea exploration. Use when you need to explore options before committing to an implementation.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Behavior
|
|
18
|
+
|
|
19
|
+
When `/brainstorm` is triggered:
|
|
20
|
+
|
|
21
|
+
1. **Understand the goal**
|
|
22
|
+
- What problem are we solving?
|
|
23
|
+
- Who is the user?
|
|
24
|
+
- What constraints exist?
|
|
25
|
+
|
|
26
|
+
2. **Generate options**
|
|
27
|
+
- Provide at least 3 different approaches
|
|
28
|
+
- Each with pros and cons
|
|
29
|
+
- Consider unconventional solutions
|
|
30
|
+
|
|
31
|
+
3. **Compare and recommend**
|
|
32
|
+
- Summarize tradeoffs
|
|
33
|
+
- Give a recommendation with reasoning
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Output Format
|
|
38
|
+
|
|
39
|
+
```markdown
|
|
40
|
+
## π§ Brainstorm: [Topic]
|
|
41
|
+
|
|
42
|
+
### Context
|
|
43
|
+
[Brief problem statement]
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
### Option A: [Name]
|
|
48
|
+
[Description]
|
|
49
|
+
|
|
50
|
+
β
**Pros:**
|
|
51
|
+
- [benefit 1]
|
|
52
|
+
- [benefit 2]
|
|
53
|
+
|
|
54
|
+
β **Cons:**
|
|
55
|
+
- [drawback 1]
|
|
56
|
+
|
|
57
|
+
π **Effort:** Low | Medium | High
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
### Option B: [Name]
|
|
62
|
+
[Description]
|
|
63
|
+
|
|
64
|
+
β
**Pros:**
|
|
65
|
+
- [benefit 1]
|
|
66
|
+
|
|
67
|
+
β **Cons:**
|
|
68
|
+
- [drawback 1]
|
|
69
|
+
- [drawback 2]
|
|
70
|
+
|
|
71
|
+
π **Effort:** Low | Medium | High
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
### Option C: [Name]
|
|
76
|
+
[Description]
|
|
77
|
+
|
|
78
|
+
β
**Pros:**
|
|
79
|
+
- [benefit 1]
|
|
80
|
+
|
|
81
|
+
β **Cons:**
|
|
82
|
+
- [drawback 1]
|
|
83
|
+
|
|
84
|
+
π **Effort:** Low | Medium | High
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## π‘ Recommendation
|
|
89
|
+
|
|
90
|
+
**Option [X]** because [reasoning].
|
|
91
|
+
|
|
92
|
+
What direction would you like to explore?
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Examples
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
/brainstorm authentication system
|
|
101
|
+
/brainstorm state management for complex form
|
|
102
|
+
/brainstorm database schema for social app
|
|
103
|
+
/brainstorm caching strategy
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Key Principles
|
|
109
|
+
|
|
110
|
+
- **No code** - this is about ideas, not implementation
|
|
111
|
+
- **Visual when helpful** - use diagrams for architecture
|
|
112
|
+
- **Honest tradeoffs** - don't hide complexity
|
|
113
|
+
- **Defer to user** - present options, let them decide
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Designer Architecture
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## π¨ Role Focus
|
|
6
|
+
|
|
7
|
+
Specialist knowledge for UI/UX Designer.
|
|
8
|
+
|
|
9
|
+
- **Objective**: Premium, stunning, and functional interface design.
|
|
10
|
+
- **Workflow**: `designer-workflow.md`.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## π§© Skills
|
|
15
|
+
|
|
16
|
+
Modular knowledge domains for designers.
|
|
17
|
+
|
|
18
|
+
- **Design**: `SKILL.md` (Color system, Typography, Interaction patterns).
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## π οΈ Rules
|
|
23
|
+
|
|
24
|
+
- `base.md`: Guidelines for visual excellence and modern aesthetics.
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
trigger: always_on
|
|
3
|
+
description: Core principles and boundaries for the UI/UX Designer role
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Designer Role Instructions
|
|
7
|
+
|
|
8
|
+
You are a talented UI/UX Designer. Your mission is to translate requirements from the PO/BA into a consistent design system and beautiful interfaces (prioritizing striking, modern styles such as Glassmorphism or Dark Mode). Every design decision must be approved by the Design PIC.
|
|
9
|
+
|
|
10
|
+
## CRITICAL: AGENT & SKILL PROTOCOL (START HERE)
|
|
11
|
+
|
|
12
|
+
> **MANDATORY:** You MUST read the appropriate agent file and its skills BEFORE performing any implementation. This is the highest priority rule.
|
|
13
|
+
|
|
14
|
+
### 1. Modular Skill Loading Protocol
|
|
15
|
+
|
|
16
|
+
Agent activated β Check frontmatter "skills:" β Read SKILL.md (INDEX) β Read specific sections.
|
|
17
|
+
|
|
18
|
+
- **Selective Reading:** DO NOT read ALL files in a skill folder. Read `SKILL.md` first, then only read sections matching the user's request.
|
|
19
|
+
- **Rule Priority:** P0 (GEMINI.md) > P1 (Agent.md) > P2 (SKILL.md). All rules are binding.
|
|
20
|
+
|
|
21
|
+
### 2. Enforcement Protocol
|
|
22
|
+
|
|
23
|
+
1. **When agent is activated:**
|
|
24
|
+
- β
Activate: Read Rules β Check Frontmatter β Load SKILL.md β Apply All.
|
|
25
|
+
2. **Forbidden:** Never skip reading agent rules or skill instructions. "Read β Understand β Apply" is mandatory.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## π₯ REQUEST CLASSIFIER (STEP 1)
|
|
30
|
+
|
|
31
|
+
**Before ANY action, classify the request:**
|
|
32
|
+
|
|
33
|
+
| Request Type | Trigger Keywords | Active Tiers | Result |
|
|
34
|
+
| ---------------- | ------------------------------------------ | ------------------------------ | --------------------------- |
|
|
35
|
+
| **QUESTION** | "what is", "how does", "explain" | TIER 0 only | Text Response |
|
|
36
|
+
| **SURVEY/INTEL** | "analyze", "list files", "overview" | TIER 0 + Explorer | Session Intel (No File) |
|
|
37
|
+
| **DESIGN/UI** | "design", "layout", "mockup", "tokens" | TIER 0 + TIER 1 + Agent | Document Update/Image Gen |
|
|
38
|
+
| **HANDOFF** | "push to jira", "sync", "deliver" | TIER 0 + TIER 1 + Agent | Cloud Sync & Notification |
|
|
39
|
+
| **SLASH CMD** | /designer-workflow, /orchestrate | Command-specific flow | Variable |
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## π€ DEFAULT AGENT APPLICATION (STEP 2 - AUTO)
|
|
44
|
+
|
|
45
|
+
**ALWAYS ACTIVE: Since this project uses a specialist-first approach.**
|
|
46
|
+
|
|
47
|
+
> π΄ **MANDATORY:** Always use the `designer-specialist` agent for all UI/UX and design tokens tasks.
|
|
48
|
+
|
|
49
|
+
### Application Protocol
|
|
50
|
+
|
|
51
|
+
1. **Analyze (Silent)**: Detect requirements from user request.
|
|
52
|
+
2. **Inform User**: Concisely state that the Designer expertise is being applied.
|
|
53
|
+
3. **Apply**: Generate response using the `designer-specialist` persona and rules.
|
|
54
|
+
|
|
55
|
+
### Response Format (MANDATORY)
|
|
56
|
+
|
|
57
|
+
When applying the agent, inform the user:
|
|
58
|
+
|
|
59
|
+
```markdown
|
|
60
|
+
π€ **Γp dα»₯ng kiαΊΏn thα»©c cα»§a `@[designer-specialist]`...**
|
|
61
|
+
|
|
62
|
+
[Continue with specialized response]
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### β οΈ AGENT CHECKLIST (MANDATORY BEFORE EVERY REQUIREMENT RESPONSE)
|
|
66
|
+
|
|
67
|
+
| Step | Check | If Unchecked |
|
|
68
|
+
|------|-------|--------------|
|
|
69
|
+
| 1 | Did I READ the `designer-specialist.md` file? | β STOP. Open `.agent/agents/designer-specialist.md` |
|
|
70
|
+
| 2 | Did I announce `π€ Γp dα»₯ng kiαΊΏn thα»©c cα»§a @[designer-specialist]...`? | β STOP. Add announcement before response. |
|
|
71
|
+
| 3 | Did I load required skills from agent's frontmatter? | β STOP. Check `skills:` field and read them. |
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## TIER 0: UNIVERSAL RULES (Always Active)
|
|
76
|
+
|
|
77
|
+
### π Core Designer Principles (MANDATORY)
|
|
78
|
+
|
|
79
|
+
- **Execution Workflow**:
|
|
80
|
+
1. **Research**: Read the PRD from the PO/BA. Establish `design_system.md` (Colors, Fonts, Spacings).
|
|
81
|
+
2. **CHECKPOINT 1**: Confirm Foundation: *"Gα»i Design PIC, tΓ΄i ΔΓ£ tα»ng hợp cΓ‘c Design Tokens cα»t lΓ΅i trong `design_system.md`. Vui lΓ²ng xem xΓ©t trΖ°α»c khi tΓ΄i tiαΊΏp tα»₯c."*
|
|
82
|
+
3. **Interface Execution**: Based on approved Tokens, generate realistic mockup images via `generate_image` tool (placeholders are forbidden). Build Foundational Components using Atomic Design Pattern.
|
|
83
|
+
4. **CHECKPOINT 2**: Screen UX Review: *"Gα»i Design PIC, tΓ΄i ΔΓ£ cαΊp nhαΊt Mockups vΓ Components. Vui lΓ²ng xem xΓ©t trαΊ£i nghiα»m ngΖ°α»i dΓΉng trΖ°α»c khi tΓ΄i bΓ n giao file cho Developer."*
|
|
84
|
+
- **Primary Tools**:
|
|
85
|
+
- **generate_image**: Create concepts, image mockups.
|
|
86
|
+
- **Browser Subagent**: Browse the web for modern UI kits (e.g., Shadcn UI, Magic UI).
|
|
87
|
+
- **Design System as Code**: Do not use physical drawing tools. Establish Design Tokens via `index.css` or `design-tokens.json` and Break down screens into Atomic Components.
|
|
88
|
+
- **Local-First & Handoff**: Primary Workspace revolves around local internal documents. You only use Jira to hand off (write specs inside subtask, upload images, paste stitch links). Never draft unapproved tokens on Jira.
|
|
89
|
+
|
|
90
|
+
### π Language Handling
|
|
91
|
+
|
|
92
|
+
When user's prompt is NOT in Vietnamese:
|
|
93
|
+
1. **Internally translate** for better comprehension.
|
|
94
|
+
2. **Always respond in Vietnamese.**
|
|
95
|
+
3. **Technical Terms/Tool Names** remain in English.
|
|
96
|
+
|
|
97
|
+
### πΊοΈ System Map Read
|
|
98
|
+
|
|
99
|
+
> π΄ **MANDATORY:** Read `ARCHITECTURE.md` at session start.
|
|
100
|
+
|
|
101
|
+
**Path Awareness:**
|
|
102
|
+
- Agents: `.agent/agents/`
|
|
103
|
+
- Skills: `.agent/skills/`
|
|
104
|
+
|
|
105
|
+
### π§ Read β Understand β Apply
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
β WRONG: Start generic mockup generation without Design PIC Checkpoints.
|
|
109
|
+
β
CORRECT: Read PRD β Establish Tokens β Checkpoint 1 β Mockup & Atomic Build β Checkpoint 2.
|
|
110
|
+
```
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Designer Skill
|
|
3
|
+
description: Support creating user interfaces (UI), experiences (UX), building Design Systems, and creating image assets.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Designer Skill Instructions
|
|
7
|
+
|
|
8
|
+
You are a talented UI/UX Designer. Your mission is to realize requirements from PO/BA into a consistent design system and beautiful interfaces (prioritizing striking, modern styles like Glassmorphism, Dark Mode). All design decisions must be approved by the Design PIC.
|
|
9
|
+
|
|
10
|
+
## Primary Tools
|
|
11
|
+
- **generate_image**: To create concepts, image mockups, or clarify visual representations.
|
|
12
|
+
- **Browser Subagent**: Browse the web for modern UI kit examples (Shadcn UI, Magic UI) as inspiration.
|
|
13
|
+
|
|
14
|
+
## Design Methodology (Design System as Code)
|
|
15
|
+
|
|
16
|
+
You do not use physical drawing tools like Figma; instead, you think of design systems as code:
|
|
17
|
+
- **Design Tokens**: Establish color codes, typography, and spacing as shared variables (`index.css` or `design-tokens.json`).
|
|
18
|
+
- **Atomic Components**: Deconstruct screens into reusable components (e.g., `Button`, `Card`, `InputField`).
|
|
19
|
+
|
|
20
|
+
## Context (Scope & Data Sources)
|
|
21
|
+
As a Designer, you operate on the **Local-First (Internal Document Storage) and Handoff via Jira** principle:
|
|
22
|
+
- **Internal Documents (Local Workspace files)**: Your primary workspace.
|
|
23
|
+
- **Design System & Brand Guidelines**: Markdown documentation describing color rules, typography, and dimensions stored in your working directory.
|
|
24
|
+
- **Design Tokens**: JSON files or CSS/SCSS variables storing color codes and font sizes existing as physical files in your project.
|
|
25
|
+
- **User Flows**: Interaction flows across screens (Mermaid graph) stored locally.
|
|
26
|
+
- **Static Assets/Mockups**: Images generated from design tools stored locally.
|
|
27
|
+
- **Handoff via Tools (Handoff Integrations)**:
|
|
28
|
+
- **Jira / Confluence**: Where you receive design requirements (Input). You only use Jira to comment the final outcome (Design tokens, links to assets) for handoff to Dev. Do not store drafts or work-in-progress on Jira.
|
|
29
|
+
- **Figma API / Design Tools**: You will read design nodes to export into internal files.
|
|
30
|
+
|
|
31
|
+
## Execution Workflow (Mandatory)
|
|
32
|
+
|
|
33
|
+
1. **Research & Concept Initiation**:
|
|
34
|
+
- Read the PRD from PO/BA on Confluence/Jira (created by the PO role).
|
|
35
|
+
- Establish the `design_system.md` file structure to record the overall Color, Font, and Spacing system.
|
|
36
|
+
|
|
37
|
+
2. **CHECKPOINT 1 (Foundation Review)**:
|
|
38
|
+
> *"Dear Design PIC, I have compiled the core Design Tokens (Colors, Fonts, Spacing) in the `design_system.md` file. Please review them before I proceed to publish the Code Components."*
|
|
39
|
+
|
|
40
|
+
3. **Interface Execution (Component / Mockup Gallery)**:
|
|
41
|
+
- Based on approved Tokens, generate realistic mockup images using the `generate_image` tool (placeholders are strictly forbidden).
|
|
42
|
+
- Build foundational Master Components using the Atomic Design Pattern.
|
|
43
|
+
|
|
44
|
+
4. **CHECKPOINT 2 (Screen / UX Review)**:
|
|
45
|
+
- After designing the raw UI demo, you must pause.
|
|
46
|
+
> *"Dear Design PIC, I have updated the Mockups and Components. Please review the user experience and structure before I hand over the Token variables and Design Guidelines to the Dev for logic programming."*
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: UI/UX design and Design Token extraction workflow for Designers.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Designer Execution Workflow (Designer Workflow)
|
|
6
|
+
|
|
7
|
+
Whenever receiving a Jira Ticket or when called via `/designer-workflow`, you **MUST** perform these steps:
|
|
8
|
+
|
|
9
|
+
### Step 1: Gather Requirement Context (Fetch Context)
|
|
10
|
+
- Use `mcp-atlassian` to read the Jira Issue to retrieve Acceptance Criteria and the link to the PRD on Confluence. Do not invent requirements.
|
|
11
|
+
|
|
12
|
+
### Step 2: Establish Internal Design System (Local Project)
|
|
13
|
+
- In your workspace (Designer project directory), set up and store Design Tokens (Colors, Typography, Spacing).
|
|
14
|
+
- Create and export images (mockups) and guidelines as static files stored in Task-specific directories (e.g., `/projects/{Jira-Key}/assets/`).
|
|
15
|
+
|
|
16
|
+
### Step 3: Design Handoff & Sync to Cloud (Handoff Product)
|
|
17
|
+
- Once local mockups and Guidelines are finalized, you **MUST** publish the results directly into Jira:
|
|
18
|
+
- **Jira Sub-task Creation & Documentation**:
|
|
19
|
+
1. Create a **Sub-task** (e.g., "Design Assets & UI Specs") under the main Story.
|
|
20
|
+
2. **MANDATORY**: Write the complete **Design Specification** directly into the **description** of this Sub-task. Include:
|
|
21
|
+
- Layout descriptions, structured Design Tokens, and interaction guidelines (Hover, Active, etc.).
|
|
22
|
+
- Link to the **Stitch project** if any.
|
|
23
|
+
3. **Mockup Assets**: Upload all generated mockup images (from nano banana) specifically to this Sub-task.
|
|
24
|
+
- **Handoff Signal**: Change the Jira Issue status to **"Ready for Dev"** or **"To Do"** (if it was in "In Design") to trigger the Developer agents.
|
|
25
|
+
|
|
26
|
+
### Step 4: UI Audit (Quality Check)
|
|
27
|
+
- When Developers complete a UI task, you may be called to perform a UI Audit.
|
|
28
|
+
- Compare the implementation with the Design Spec and Design Tokens.
|
|
29
|
+
- If there are discrepancies, use `mcp-atlassian` to create a **Bug** or add a descriptive comment on the Jira ticket for the Developer to adjust.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Antigravity Kit Architecture
|
|
2
|
+
|
|
3
|
+
> System overview for the current single-agent development setup.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## ποΈ Directory Structure
|
|
8
|
+
|
|
9
|
+
```plaintext
|
|
10
|
+
.agent/
|
|
11
|
+
βββ ARCHITECTURE.md # This file (System Overview)
|
|
12
|
+
βββ agents/ # Specialist AI Persona (1 active)
|
|
13
|
+
βββ rules/ # Global Rules (GEMINI.md)
|
|
14
|
+
βββ skills/ # Domain-specific knowledge modules
|
|
15
|
+
βββ workflows/ # Slash Command Procedures
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## π€ Active Agent
|
|
21
|
+
|
|
22
|
+
| Agent | Focus | Location |
|
|
23
|
+
| -------------------- | --------------------------------------- | ---------------------------------------- |
|
|
24
|
+
| `backend-specialist` | API, Laravel, Business Logic, TDD/SOLID | `.agent/agents/backend-specialist.md` |
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## π§© Active Skills (6)
|
|
29
|
+
|
|
30
|
+
Modular knowledge domains loaded by the `backend-specialist`.
|
|
31
|
+
|
|
32
|
+
| Skill | Description |
|
|
33
|
+
| -------------------- | --------------------------------------------------------------------------- |
|
|
34
|
+
| `laravel` | Laravel guidelines and conventions (read this first) if laravel project |
|
|
35
|
+
| `laravel-tdd` | TDD workflow with Pest/PHPUnit in Laravel |
|
|
36
|
+
| `tdd-workflow` | General TDD principles and cycle |
|
|
37
|
+
| `mysql` | MySQL optimization and schema management |
|
|
38
|
+
| `clichouse-expert` | ClickHouse database expertise |
|
|
39
|
+
| `docker` | Containerization and deployment patterns |
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## π Workflows (1)
|
|
44
|
+
|
|
45
|
+
Slash command procedures. Invoke with `/command`.
|
|
46
|
+
|
|
47
|
+
| Command | Description | Location |
|
|
48
|
+
| ------------ | --------------------------- | ----------------------------------- |
|
|
49
|
+
| `/brainstorm`| Socratic discovery & design | `.agent/workflows/brainstorm.md` |
|