@votruongdanh/ai-agent-skills 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/.kiro/skills/brainstorm/SKILL.md +26 -0
- package/.kiro/skills/create/SKILL.md +20 -0
- package/.kiro/skills/debug/SKILL.md +29 -0
- package/.kiro/skills/deploy/SKILL.md +26 -0
- package/.kiro/skills/enhance/SKILL.md +19 -0
- package/.kiro/skills/orchestrate/SKILL.md +27 -0
- package/.kiro/skills/plan/SKILL.md +26 -0
- package/.kiro/skills/preview/SKILL.md +17 -0
- package/.kiro/skills/status/SKILL.md +24 -0
- package/.kiro/skills/test/SKILL.md +18 -0
- package/.kiro/skills/ui-ux-pro-max/SKILL.md +25 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/bin/cli.js +165 -0
- package/index.js +31 -0
- package/package.json +49 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorm
|
|
3
|
+
description: Use when the user wants ideation, option generation, feature exploration, or types /brainstorm.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Goal
|
|
7
|
+
Help the user explore many realistic options before implementation.
|
|
8
|
+
|
|
9
|
+
## Workflow
|
|
10
|
+
1. Restate the problem in one or two sentences.
|
|
11
|
+
2. Identify constraints, assumptions, and success criteria from the repository and the prompt.
|
|
12
|
+
3. Produce 3-7 strong options with pros, cons, complexity, and risks.
|
|
13
|
+
4. Call out the most practical option and the boldest option.
|
|
14
|
+
5. End with a recommended next step or implementation path.
|
|
15
|
+
|
|
16
|
+
## Output format
|
|
17
|
+
- Problem framing
|
|
18
|
+
- Constraints
|
|
19
|
+
- Options
|
|
20
|
+
- Recommendation
|
|
21
|
+
- Next step
|
|
22
|
+
|
|
23
|
+
## Rules
|
|
24
|
+
- Prefer practical ideas grounded in the current project.
|
|
25
|
+
- Avoid pretending uncertain assumptions are facts.
|
|
26
|
+
- If code context matters, inspect the repo structure first.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create
|
|
3
|
+
description: Use when the user wants to build a new feature, file, component, endpoint, page, script, or types /create.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Goal
|
|
7
|
+
Create a new implementation cleanly and with minimal disruption.
|
|
8
|
+
|
|
9
|
+
## Workflow
|
|
10
|
+
1. Understand the requested artifact and the existing project structure.
|
|
11
|
+
2. Identify the smallest complete implementation that satisfies the request.
|
|
12
|
+
3. Create or update the necessary files only.
|
|
13
|
+
4. Reuse existing patterns, naming, and architecture already present in the repo.
|
|
14
|
+
5. Add brief usage notes, edge cases, and follow-up improvements.
|
|
15
|
+
|
|
16
|
+
## Rules
|
|
17
|
+
- Prefer incremental changes over large rewrites.
|
|
18
|
+
- Match the project's conventions.
|
|
19
|
+
- Include basic validation and error handling.
|
|
20
|
+
- If tests exist nearby, add or update them when appropriate.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: debug
|
|
3
|
+
description: Use when the user wants root-cause analysis for a bug, failing command, broken behavior, error log, or types /debug.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Goal
|
|
7
|
+
Find the real root cause, not just the first visible symptom.
|
|
8
|
+
|
|
9
|
+
## Workflow
|
|
10
|
+
1. Summarize the bug, expected behavior, and actual behavior.
|
|
11
|
+
2. Gather evidence from logs, stack traces, code paths, config, and recent changes.
|
|
12
|
+
3. List the top hypotheses ranked by likelihood.
|
|
13
|
+
4. Eliminate hypotheses using direct evidence.
|
|
14
|
+
5. Identify the root cause.
|
|
15
|
+
6. Propose the smallest safe fix.
|
|
16
|
+
7. Suggest how to verify the fix and prevent regressions.
|
|
17
|
+
|
|
18
|
+
## Output format
|
|
19
|
+
- Symptom
|
|
20
|
+
- Evidence
|
|
21
|
+
- Hypotheses
|
|
22
|
+
- Root cause
|
|
23
|
+
- Fix
|
|
24
|
+
- Verification
|
|
25
|
+
|
|
26
|
+
## Rules
|
|
27
|
+
- Do not guess when evidence is missing; say what must be checked.
|
|
28
|
+
- Prefer deterministic reproduction steps.
|
|
29
|
+
- Mention any hidden risk or side effect of the fix.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deploy
|
|
3
|
+
description: Use when the user wants deployment steps, release preparation, environment setup, CI/CD guidance, production rollout, or types /deploy.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Goal
|
|
7
|
+
Prepare a safe, repeatable deployment or release plan.
|
|
8
|
+
|
|
9
|
+
## Workflow
|
|
10
|
+
1. Detect the app type, runtime, dependencies, and target environment.
|
|
11
|
+
2. List prerequisites: secrets, env vars, build steps, infrastructure, database migrations, and health checks.
|
|
12
|
+
3. Produce a deployment sequence from pre-checks to rollback.
|
|
13
|
+
4. Call out risky steps explicitly.
|
|
14
|
+
5. Include post-deploy verification and monitoring.
|
|
15
|
+
|
|
16
|
+
## Output format
|
|
17
|
+
- Target environment
|
|
18
|
+
- Preconditions
|
|
19
|
+
- Deployment steps
|
|
20
|
+
- Verification
|
|
21
|
+
- Rollback plan
|
|
22
|
+
|
|
23
|
+
## Rules
|
|
24
|
+
- Prefer least-risk rollout patterns.
|
|
25
|
+
- Never expose secrets.
|
|
26
|
+
- Distinguish clearly between required and optional steps.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: enhance
|
|
3
|
+
description: Use when the user wants to improve an existing feature, refactor code, optimize UX or performance, tighten security, or types /enhance.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Goal
|
|
7
|
+
Improve an existing implementation without breaking working behavior.
|
|
8
|
+
|
|
9
|
+
## Workflow
|
|
10
|
+
1. Understand the current state and pain points.
|
|
11
|
+
2. Identify high-impact improvements in quality, maintainability, performance, reliability, or UX.
|
|
12
|
+
3. Prioritize improvements by value versus effort.
|
|
13
|
+
4. Implement or recommend the top changes.
|
|
14
|
+
5. Explain tradeoffs and validation steps.
|
|
15
|
+
|
|
16
|
+
## Rules
|
|
17
|
+
- Preserve behavior unless the user asked for a behavior change.
|
|
18
|
+
- Prefer small, meaningful upgrades over broad rewrites.
|
|
19
|
+
- If performance is discussed, explain where the gain comes from.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: orchestrate
|
|
3
|
+
description: Use when the user wants a coordinated multi-step plan across multiple roles, files, systems, or parallel workstreams, or types /orchestrate.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Goal
|
|
7
|
+
Break a complex request into a coordinated execution plan.
|
|
8
|
+
|
|
9
|
+
## Workflow
|
|
10
|
+
1. Decompose the objective into workstreams.
|
|
11
|
+
2. Assign each workstream a role, owner, or responsibility such as backend, frontend, QA, security, or docs.
|
|
12
|
+
3. Identify dependencies, blockers, and the critical path.
|
|
13
|
+
4. Define parallelizable tasks and merge points.
|
|
14
|
+
5. Produce an execution order with clear handoffs.
|
|
15
|
+
|
|
16
|
+
## Output format
|
|
17
|
+
- Objective
|
|
18
|
+
- Workstreams
|
|
19
|
+
- Dependencies
|
|
20
|
+
- Execution order
|
|
21
|
+
- Risks
|
|
22
|
+
- Done criteria
|
|
23
|
+
|
|
24
|
+
## Rules
|
|
25
|
+
- Keep plans realistic for the current project.
|
|
26
|
+
- Surface unknowns early.
|
|
27
|
+
- Favor visible checkpoints over long hidden work.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan
|
|
3
|
+
description: Use when the user wants a concrete implementation plan, milestones, task breakdown, or types /plan.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Goal
|
|
7
|
+
Turn a request into an actionable plan.
|
|
8
|
+
|
|
9
|
+
## Workflow
|
|
10
|
+
1. Define the objective and acceptance criteria.
|
|
11
|
+
2. Break the work into phases and tasks.
|
|
12
|
+
3. Note file areas, systems, or modules likely to change.
|
|
13
|
+
4. Estimate complexity and highlight risky items.
|
|
14
|
+
5. End with a recommended first task.
|
|
15
|
+
|
|
16
|
+
## Output format
|
|
17
|
+
- Objective
|
|
18
|
+
- Acceptance criteria
|
|
19
|
+
- Phases
|
|
20
|
+
- Tasks
|
|
21
|
+
- Risks
|
|
22
|
+
- First action
|
|
23
|
+
|
|
24
|
+
## Rules
|
|
25
|
+
- Plans should be specific enough to execute.
|
|
26
|
+
- Prefer task sizes that can be completed and reviewed quickly.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: preview
|
|
3
|
+
description: Use when the user wants a preview of expected output, UX, copy, interaction flow, generated content, or types /preview.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Goal
|
|
7
|
+
Show the user what the result will look or feel like before full rollout.
|
|
8
|
+
|
|
9
|
+
## Workflow
|
|
10
|
+
1. Infer the artifact being previewed: UI, API output, document, message, workflow, or report.
|
|
11
|
+
2. Produce a faithful mock, sample output, walkthrough, or structured preview.
|
|
12
|
+
3. Highlight assumptions behind the preview.
|
|
13
|
+
4. Identify what could change during implementation.
|
|
14
|
+
|
|
15
|
+
## Rules
|
|
16
|
+
- Keep previews realistic and consistent with the current project.
|
|
17
|
+
- Label illustrative content clearly when it is mock data.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: status
|
|
3
|
+
description: Use when the user wants a current project status summary, progress snapshot, repo overview, outstanding work, or types /status.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Goal
|
|
7
|
+
Summarize where things stand right now.
|
|
8
|
+
|
|
9
|
+
## Workflow
|
|
10
|
+
1. Inspect the repository, relevant files, and any recent context from the chat.
|
|
11
|
+
2. Summarize what already exists.
|
|
12
|
+
3. Identify gaps, risks, TODOs, and likely next priorities.
|
|
13
|
+
4. Present a concise health/status view.
|
|
14
|
+
|
|
15
|
+
## Output format
|
|
16
|
+
- Current state
|
|
17
|
+
- What is working
|
|
18
|
+
- What is incomplete
|
|
19
|
+
- Risks or blockers
|
|
20
|
+
- Recommended next step
|
|
21
|
+
|
|
22
|
+
## Rules
|
|
23
|
+
- Be specific and evidence-based.
|
|
24
|
+
- Separate facts from inference.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: test
|
|
3
|
+
description: Use when the user wants tests, test strategy, coverage improvements, validation steps, or types /test.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Goal
|
|
7
|
+
Improve confidence in the system through targeted testing.
|
|
8
|
+
|
|
9
|
+
## Workflow
|
|
10
|
+
1. Identify the unit, integration, API, UI, or regression scope.
|
|
11
|
+
2. Enumerate critical paths, edge cases, and failure modes.
|
|
12
|
+
3. Add or propose tests that cover the most important risks first.
|
|
13
|
+
4. Explain how to run the tests and what passing means.
|
|
14
|
+
|
|
15
|
+
## Rules
|
|
16
|
+
- Prefer stable tests over brittle tests.
|
|
17
|
+
- Cover both happy path and key edge cases.
|
|
18
|
+
- If no test framework exists, propose the lightest practical option.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ui-ux-pro-max
|
|
3
|
+
description: Use when the user wants stronger UI/UX, layout improvements, design critique, copy refinement, interaction design, or types /ui-ux-pro-max.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Goal
|
|
7
|
+
Upgrade the product experience with clear, practical UI/UX improvements.
|
|
8
|
+
|
|
9
|
+
## Workflow
|
|
10
|
+
1. Identify the screen, flow, or component being improved.
|
|
11
|
+
2. Evaluate hierarchy, spacing, clarity, accessibility, states, feedback, and conversion friction.
|
|
12
|
+
3. Recommend concrete improvements with rationale.
|
|
13
|
+
4. When asked to implement, favor polished but maintainable UI.
|
|
14
|
+
|
|
15
|
+
## Output format
|
|
16
|
+
- UX issues
|
|
17
|
+
- Visual issues
|
|
18
|
+
- Recommended changes
|
|
19
|
+
- Accessibility notes
|
|
20
|
+
- Implementation priorities
|
|
21
|
+
|
|
22
|
+
## Rules
|
|
23
|
+
- Optimize for clarity before decoration.
|
|
24
|
+
- Respect existing brand and component patterns when present.
|
|
25
|
+
- Include empty, loading, error, and success states when relevant.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Vo Truong Danh (votruongdanh)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# 🚀 AI Agent Skills
|
|
2
|
+
|
|
3
|
+
Professional AI agent skills for Kiro, Cursor, Windsurf, and other AI-powered IDEs. 11 battle-tested workflows to supercharge your development.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@votruongdanh/ai-agent-skills)
|
|
6
|
+
[](https://opensource.org/licenses/MIT)
|
|
7
|
+
|
|
8
|
+
## ⚡ Quick Install
|
|
9
|
+
|
|
10
|
+
One command, works everywhere:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npx @votruongdanh/ai-agent-skills init
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
That's it! No need to clone repos or download files.
|
|
17
|
+
|
|
18
|
+
## 🎯 Supported IDEs
|
|
19
|
+
|
|
20
|
+
✅ **Kiro** - Auto-detected
|
|
21
|
+
✅ **Cursor** - Auto-detected
|
|
22
|
+
✅ **Windsurf** - Auto-detected
|
|
23
|
+
✅ **Others** - Uses Kiro format
|
|
24
|
+
|
|
25
|
+
The CLI automatically detects your IDE and installs to the right location.
|
|
26
|
+
|
|
27
|
+
## 📦 11 Professional Skills
|
|
28
|
+
|
|
29
|
+
| Skill | Command | Use Case |
|
|
30
|
+
|-------|---------|----------|
|
|
31
|
+
| **Brainstorm** | `/brainstorm` | Generate ideas and explore features |
|
|
32
|
+
| **Create** | `/create` | Build new features from scratch |
|
|
33
|
+
| **Debug** | `/debug` | Find and fix bugs systematically |
|
|
34
|
+
| **Deploy** | `/deploy` | Deployment and CI/CD guidance |
|
|
35
|
+
| **Enhance** | `/enhance` | Improve existing code quality |
|
|
36
|
+
| **Orchestrate** | `/orchestrate` | Coordinate multi-step workflows |
|
|
37
|
+
| **Plan** | `/plan` | Break down implementation tasks |
|
|
38
|
+
| **Preview** | `/preview` | Preview UX and output |
|
|
39
|
+
| **Status** | `/status` | Get project status overview |
|
|
40
|
+
| **Test** | `/test` | Write tests and improve coverage |
|
|
41
|
+
| **UI/UX Pro Max** | `/ui-ux-pro-max` | Advanced UI/UX improvements |
|
|
42
|
+
|
|
43
|
+
## 💡 Usage Examples
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
/create Add user authentication with JWT
|
|
47
|
+
/debug Login form not submitting on mobile
|
|
48
|
+
/enhance Optimize database query performance
|
|
49
|
+
/plan Implement real-time notifications
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## 🌍 Installation Options
|
|
53
|
+
|
|
54
|
+
### Project-specific (Recommended)
|
|
55
|
+
```bash
|
|
56
|
+
cd your-project
|
|
57
|
+
npx @votruongdanh/ai-agent-skills init
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Global (All projects)
|
|
61
|
+
```bash
|
|
62
|
+
npx @votruongdanh/ai-agent-skills global
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## 🔧 How It Works
|
|
66
|
+
|
|
67
|
+
1. Run the npx command
|
|
68
|
+
2. CLI detects your IDE automatically
|
|
69
|
+
3. Skills installed to `.kiro/`, `.cursor/`, or `.windsurf/`
|
|
70
|
+
4. Restart your IDE
|
|
71
|
+
5. Type `/` in chat to see skills
|
|
72
|
+
|
|
73
|
+
## ⚙️ Customization
|
|
74
|
+
|
|
75
|
+
Each skill is a markdown file you can edit:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
# For Kiro
|
|
79
|
+
code .kiro/skills/create/SKILL.md
|
|
80
|
+
|
|
81
|
+
# For Cursor
|
|
82
|
+
code .cursor/skills/create/SKILL.md
|
|
83
|
+
|
|
84
|
+
# For Windsurf
|
|
85
|
+
code .windsurf/skills/create/SKILL.md
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## 🔄 Updates
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
npx @votruongdanh/ai-agent-skills@latest init
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## 📄 License
|
|
95
|
+
|
|
96
|
+
MIT - Use freely in any project
|
|
97
|
+
|
|
98
|
+
## 👤 Author
|
|
99
|
+
|
|
100
|
+
**Vo Truong Danh**
|
|
101
|
+
GitHub: [@votruongdanh](https://github.com/votruongdanh)
|
|
102
|
+
|
|
103
|
+
## 🤝 Contributing
|
|
104
|
+
|
|
105
|
+
Issues and PRs welcome at [GitHub](https://github.com/votruongdanh/ai-agent-skills)
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
Made with ❤️ for the AI developer community
|
package/bin/cli.js
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const os = require('os');
|
|
6
|
+
|
|
7
|
+
const command = process.argv[2];
|
|
8
|
+
|
|
9
|
+
// Detect IDE type
|
|
10
|
+
function detectIDE() {
|
|
11
|
+
const cwd = process.cwd();
|
|
12
|
+
|
|
13
|
+
// Check for Kiro
|
|
14
|
+
if (fs.existsSync(path.join(cwd, '.kiro'))) return 'kiro';
|
|
15
|
+
|
|
16
|
+
// Check for Cursor
|
|
17
|
+
if (fs.existsSync(path.join(cwd, '.cursor'))) return 'cursor';
|
|
18
|
+
|
|
19
|
+
// Check for Windsurf
|
|
20
|
+
if (fs.existsSync(path.join(cwd, '.windsurf'))) return 'windsurf';
|
|
21
|
+
|
|
22
|
+
// Check home directory for global configs
|
|
23
|
+
const homeDir = os.homedir();
|
|
24
|
+
if (fs.existsSync(path.join(homeDir, '.kiro'))) return 'kiro';
|
|
25
|
+
if (fs.existsSync(path.join(homeDir, '.cursor'))) return 'cursor';
|
|
26
|
+
if (fs.existsSync(path.join(homeDir, '.windsurf'))) return 'windsurf';
|
|
27
|
+
|
|
28
|
+
// Default to Kiro (most common)
|
|
29
|
+
return 'kiro';
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function copyDirectory(src, dest) {
|
|
33
|
+
if (!fs.existsSync(dest)) {
|
|
34
|
+
fs.mkdirSync(dest, { recursive: true });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const entries = fs.readdirSync(src, { withFileTypes: true });
|
|
38
|
+
|
|
39
|
+
for (const entry of entries) {
|
|
40
|
+
const srcPath = path.join(src, entry.name);
|
|
41
|
+
const destPath = path.join(dest, entry.name);
|
|
42
|
+
|
|
43
|
+
if (entry.isDirectory()) {
|
|
44
|
+
copyDirectory(srcPath, destPath);
|
|
45
|
+
} else {
|
|
46
|
+
fs.copyFileSync(srcPath, destPath);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function init() {
|
|
52
|
+
const cwd = process.cwd();
|
|
53
|
+
const ide = detectIDE();
|
|
54
|
+
const skillsSource = path.join(__dirname, '..', '.kiro');
|
|
55
|
+
const skillsTarget = path.join(cwd, `.${ide}`);
|
|
56
|
+
|
|
57
|
+
console.log(`🚀 Installing AI Agent Skills for ${ide.toUpperCase()}...\n`);
|
|
58
|
+
|
|
59
|
+
try {
|
|
60
|
+
if (fs.existsSync(skillsTarget)) {
|
|
61
|
+
console.log(`⚠️ .${ide} folder already exists.`);
|
|
62
|
+
console.log(' Merging skills into existing folder...\n');
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
copyDirectory(skillsSource, skillsTarget);
|
|
66
|
+
|
|
67
|
+
console.log('✅ Successfully installed AI Agent Skills!\n');
|
|
68
|
+
console.log(`📦 Installed to: .${ide}/skills/\n`);
|
|
69
|
+
console.log('📋 Available skills:');
|
|
70
|
+
console.log(' • /brainstorm - Ideation and feature exploration');
|
|
71
|
+
console.log(' • /create - Build new features and components');
|
|
72
|
+
console.log(' • /debug - Root-cause analysis and bug fixing');
|
|
73
|
+
console.log(' • /deploy - Deployment and release preparation');
|
|
74
|
+
console.log(' • /enhance - Improve and refactor existing code');
|
|
75
|
+
console.log(' • /orchestrate - Multi-step coordinated planning');
|
|
76
|
+
console.log(' • /plan - Implementation planning and breakdown');
|
|
77
|
+
console.log(' • /preview - Preview expected output and UX');
|
|
78
|
+
console.log(' • /status - Project status and progress summary');
|
|
79
|
+
console.log(' • /test - Test strategy and coverage');
|
|
80
|
+
console.log(' • /ui-ux-pro-max - UI/UX improvements and design\n');
|
|
81
|
+
console.log('🎯 Next steps:');
|
|
82
|
+
console.log(` 1. Reopen your project in ${ide.charAt(0).toUpperCase() + ide.slice(1)}`);
|
|
83
|
+
console.log(' 2. Type "/" in chat to see available skills');
|
|
84
|
+
console.log(' 3. Start using skills like /create, /debug, /enhance\n');
|
|
85
|
+
} catch (error) {
|
|
86
|
+
console.error('❌ Error installing skills:', error.message);
|
|
87
|
+
process.exit(1);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function installGlobal() {
|
|
92
|
+
const homeDir = os.homedir();
|
|
93
|
+
const ide = detectIDE();
|
|
94
|
+
const globalSkillsPath = path.join(homeDir, `.${ide}`, 'skills');
|
|
95
|
+
const skillsSource = path.join(__dirname, '..', '.kiro', 'skills');
|
|
96
|
+
|
|
97
|
+
console.log(`🌍 Installing AI Agent Skills globally for ${ide.toUpperCase()}...\n`);
|
|
98
|
+
|
|
99
|
+
try {
|
|
100
|
+
if (!fs.existsSync(globalSkillsPath)) {
|
|
101
|
+
fs.mkdirSync(globalSkillsPath, { recursive: true });
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
copyDirectory(skillsSource, globalSkillsPath);
|
|
105
|
+
|
|
106
|
+
console.log('✅ Successfully installed skills globally!\n');
|
|
107
|
+
console.log('📍 Location: ' + globalSkillsPath + '\n');
|
|
108
|
+
console.log('🎯 Next steps:');
|
|
109
|
+
console.log(` 1. Restart ${ide.charAt(0).toUpperCase() + ide.slice(1)}`);
|
|
110
|
+
console.log(' 2. Skills will be available in all projects\n');
|
|
111
|
+
} catch (error) {
|
|
112
|
+
console.error('❌ Error installing global skills:', error.message);
|
|
113
|
+
process.exit(1);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function showHelp() {
|
|
118
|
+
console.log(`
|
|
119
|
+
AI Agent Skills CLI - Universal skills for Kiro, Cursor, Windsurf & more
|
|
120
|
+
|
|
121
|
+
Usage:
|
|
122
|
+
npx @votruongdanh/ai-agent-skills init Install skills in current project
|
|
123
|
+
npx @votruongdanh/ai-agent-skills global Install skills globally
|
|
124
|
+
npx @votruongdanh/ai-agent-skills help Show this help message
|
|
125
|
+
|
|
126
|
+
Supported IDEs:
|
|
127
|
+
✅ Kiro - Automatically detected
|
|
128
|
+
✅ Cursor - Automatically detected
|
|
129
|
+
✅ Windsurf - Automatically detected
|
|
130
|
+
✅ Others - Uses Kiro format by default
|
|
131
|
+
|
|
132
|
+
Available Skills:
|
|
133
|
+
/brainstorm - Ideation and feature exploration
|
|
134
|
+
/create - Build new features and components
|
|
135
|
+
/debug - Root-cause analysis and bug fixing
|
|
136
|
+
/deploy - Deployment and release preparation
|
|
137
|
+
/enhance - Improve and refactor existing code
|
|
138
|
+
/orchestrate - Multi-step coordinated planning
|
|
139
|
+
/plan - Implementation planning and breakdown
|
|
140
|
+
/preview - Preview expected output and UX
|
|
141
|
+
/status - Project status and progress summary
|
|
142
|
+
/test - Test strategy and coverage
|
|
143
|
+
/ui-ux-pro-max - UI/UX improvements and design
|
|
144
|
+
|
|
145
|
+
Documentation: https://github.com/votruongdanh/ai-agent-skills
|
|
146
|
+
`);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
switch (command) {
|
|
150
|
+
case 'init':
|
|
151
|
+
init();
|
|
152
|
+
break;
|
|
153
|
+
case 'global':
|
|
154
|
+
installGlobal();
|
|
155
|
+
break;
|
|
156
|
+
case 'help':
|
|
157
|
+
case '--help':
|
|
158
|
+
case '-h':
|
|
159
|
+
showHelp();
|
|
160
|
+
break;
|
|
161
|
+
default:
|
|
162
|
+
console.log('❌ Unknown command. Use "init", "global", or "help".\n');
|
|
163
|
+
showHelp();
|
|
164
|
+
process.exit(1);
|
|
165
|
+
}
|
package/index.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kiro Antigravity Skills
|
|
3
|
+
* Professional AI agent skills for Kiro IDE and compatible platforms
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* AI Agent Skills by Vo Truong Danh
|
|
8
|
+
* Professional AI agent skills for Kiro, Cursor, Windsurf, and other AI IDEs
|
|
9
|
+
*
|
|
10
|
+
* @author Vo Truong Danh <votruongdanh@example.com>
|
|
11
|
+
* @license MIT
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
module.exports = {
|
|
15
|
+
name: '@votruongdanh/ai-agent-skills',
|
|
16
|
+
version: require('./package.json').version,
|
|
17
|
+
author: 'Vo Truong Danh (votruongdanh)',
|
|
18
|
+
skills: [
|
|
19
|
+
'brainstorm',
|
|
20
|
+
'create',
|
|
21
|
+
'debug',
|
|
22
|
+
'deploy',
|
|
23
|
+
'enhance',
|
|
24
|
+
'orchestrate',
|
|
25
|
+
'plan',
|
|
26
|
+
'preview',
|
|
27
|
+
'status',
|
|
28
|
+
'test',
|
|
29
|
+
'ui-ux-pro-max'
|
|
30
|
+
]
|
|
31
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@votruongdanh/ai-agent-skills",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Professional AI Agent Skills - 11 powerful workflows for Kiro, Cursor, Windsurf, and other AI IDEs",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"ai-skills": "bin/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "echo \"No tests specified\" && exit 0"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"kiro",
|
|
14
|
+
"cursor",
|
|
15
|
+
"windsurf",
|
|
16
|
+
"ai",
|
|
17
|
+
"agent",
|
|
18
|
+
"skills",
|
|
19
|
+
"ide",
|
|
20
|
+
"development",
|
|
21
|
+
"workflow",
|
|
22
|
+
"automation",
|
|
23
|
+
"productivity",
|
|
24
|
+
"copilot"
|
|
25
|
+
],
|
|
26
|
+
"author": {
|
|
27
|
+
"name": "Vo Truong Danh",
|
|
28
|
+
"email": "votruongdanh@example.com",
|
|
29
|
+
"url": "https://github.com/votruongdanh"
|
|
30
|
+
},
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/votruongdanh/ai-agent-skills.git"
|
|
35
|
+
},
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/votruongdanh/ai-agent-skills/issues"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://github.com/votruongdanh/ai-agent-skills#readme",
|
|
40
|
+
"files": [
|
|
41
|
+
".kiro",
|
|
42
|
+
"bin",
|
|
43
|
+
"index.js",
|
|
44
|
+
"README.md"
|
|
45
|
+
],
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=14.0.0"
|
|
48
|
+
}
|
|
49
|
+
}
|