@namch/agent-assistant 1.0.3 → 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.
Files changed (86) hide show
  1. package/CHANGELOG.md +78 -0
  2. package/README.md +1 -1
  3. package/agents/planner.md +59 -11
  4. package/agents/reporter.md +1 -1
  5. package/cli/install.js +514 -169
  6. package/code-assistants/antigravity-assistant/AntigravityGlobal.agent.md +38 -135
  7. package/code-assistants/antigravity-assistant/GEMINI.md +37 -137
  8. package/code-assistants/claude-assistant/CLAUDE.md +60 -38
  9. package/code-assistants/copilot-assistant/agent-assistant.agent.md +44 -125
  10. package/code-assistants/cursor-assistant/.cursorrules +42 -84
  11. package/code-assistants/cursor-assistant/rules/agent-assistant.mdc +37 -135
  12. package/commands/ask/fast.md +6 -4
  13. package/commands/ask/hard.md +6 -4
  14. package/commands/ask.md +3 -3
  15. package/commands/auto.md +3 -3
  16. package/commands/brainstorm/fast.md +6 -4
  17. package/commands/brainstorm/hard.md +6 -4
  18. package/commands/brainstorm.md +3 -3
  19. package/commands/code/fast.md +6 -4
  20. package/commands/code/focus.md +42 -46
  21. package/commands/code/hard.md +43 -48
  22. package/commands/code.md +6 -3
  23. package/commands/cook/fast.md +5 -3
  24. package/commands/cook/focus.md +22 -51
  25. package/commands/cook/hard.md +23 -55
  26. package/commands/cook.md +3 -3
  27. package/commands/debug/fast.md +5 -3
  28. package/commands/debug/focus.md +35 -40
  29. package/commands/debug/hard.md +38 -16
  30. package/commands/debug.md +3 -3
  31. package/commands/deploy/check.md +4 -4
  32. package/commands/deploy/preview.md +4 -4
  33. package/commands/deploy/production.md +4 -4
  34. package/commands/deploy/rollback.md +4 -4
  35. package/commands/deploy.md +3 -3
  36. package/commands/design/fast.md +6 -4
  37. package/commands/design/focus.md +28 -44
  38. package/commands/design/hard.md +53 -17
  39. package/commands/design.md +3 -3
  40. package/commands/docs/audit.md +5 -5
  41. package/commands/docs/business.md +5 -5
  42. package/commands/docs/core.md +5 -5
  43. package/commands/docs.md +3 -3
  44. package/commands/fix/fast.md +5 -3
  45. package/commands/fix/focus.md +36 -44
  46. package/commands/fix/hard.md +23 -37
  47. package/commands/fix.md +3 -3
  48. package/commands/plan/fast.md +6 -4
  49. package/commands/plan/focus.md +6 -4
  50. package/commands/plan/hard.md +6 -4
  51. package/commands/plan.md +3 -3
  52. package/commands/report/fast.md +6 -4
  53. package/commands/report/focus.md +6 -4
  54. package/commands/report/hard.md +6 -4
  55. package/commands/report.md +3 -3
  56. package/commands/review/fast.md +5 -3
  57. package/commands/review/hard.md +5 -3
  58. package/commands/review.md +3 -3
  59. package/commands/test/fast.md +5 -3
  60. package/commands/test/focus.md +24 -43
  61. package/commands/test/hard.md +24 -16
  62. package/commands/test.md +3 -3
  63. package/documents/HSOL-ASSESSMENT.md +121 -0
  64. package/documents/SMART-SKILL-ORCHESTRATION-BLUEPRINT.md +1341 -0
  65. package/documents/business/business-glossary.md +6 -6
  66. package/documents/knowledge-architecture.md +81 -1
  67. package/documents/knowledge-domain.md +4 -3
  68. package/documents/knowledge-overview.md +1 -1
  69. package/documents/knowledge-source-base.md +15 -10
  70. package/package.json +5 -3
  71. package/rules/AGENTS.md +187 -0
  72. package/rules/CONTEXT-GATE.md +362 -0
  73. package/rules/CORE.md +175 -0
  74. package/rules/ERRORS.md +127 -0
  75. package/rules/PHASES.md +156 -0
  76. package/rules/REFERENCE.md +179 -0
  77. package/rules/SKILLS.md +167 -0
  78. package/skills/find-skills/SKILL.md +137 -0
  79. package/rules/ADAPTIVE-EXECUTION.md +0 -271
  80. package/rules/AGENT-RULES.md +0 -285
  81. package/rules/BOOTSTRAP.md +0 -301
  82. package/rules/ERROR-RECOVERY.md +0 -201
  83. package/rules/EXECUTION-PROTOCOL.md +0 -485
  84. package/rules/ORCHESTRATION-LAWS.md +0 -218
  85. package/rules/QUICK-REFERENCE.md +0 -204
  86. package/rules/SKILL-DISCOVERY.md +0 -370
@@ -0,0 +1,156 @@
1
+ # 🎭 PHASES
2
+
3
+ > **LOAD**: When running workflow phases | **PURPOSE**: Phase execution protocol
4
+
5
+ ---
6
+
7
+ ## REQUIREMENTS INTAKE (Before Phase 1)
8
+
9
+ ### Parse ALL requirements into Registry
10
+
11
+ ```markdown
12
+ ### 📋 Requirements Registry
13
+ | ID | Requirement | Priority | Status |
14
+ |----|-------------|----------|--------|
15
+ | R1 | {extracted} | {H/M/L} | ⏳ |
16
+ | R2 | {extracted} | {H/M/L} | ⏳ |
17
+ ```
18
+
19
+ **Rule**: 100% fidelity — extract EVERY requirement, no assumptions, no omissions.
20
+
21
+ ---
22
+
23
+ ## PHASE OUTPUT FORMAT (SINGLE SOURCE OF TRUTH)
24
+
25
+ **⛔ This is the ONLY place phase output is defined. All other files reference here.**
26
+
27
+ ### Emit progressively as you go:
28
+
29
+ ```markdown
30
+ ## 🎭 Phase {N}: {name}
31
+
32
+ ### Sub-agent: `{agent}` — {role} ← TIER 1 only
33
+ ### Embodying: `{agent}` — {role} ← TIER 2 only
34
+
35
+ {agent work / summary}
36
+
37
+ ### Exit Criteria
38
+ - [x] {criterion_1}
39
+ - [x] {criterion_2}
40
+
41
+ ### ✅ `{agent}` complete
42
+ **Deliverable**: {summary}
43
+ ```
44
+
45
+ **Rules**:
46
+ - TIER 1 → "Sub-agent" line | TIER 2 → "Embodying" line (never both)
47
+ - Emit phase start **before** work, exit criteria **after**
48
+ - Continue to next phase immediately (same reply)
49
+
50
+ ---
51
+
52
+ ## PHASE EXECUTION RULES
53
+
54
+ ### One Phase at a Time (No Batching)
55
+
56
+ ```
57
+ FOR Phase N:
58
+ 1. EMIT "## 🎭 Phase N: {name}"
59
+ 2. LOAD only what Phase N needs (agent file, prior deliverables)
60
+ 3. DELEGATE via TIERED EXECUTION
61
+ 4. EMIT exit criteria + completion
62
+ 5. Write deliverable file if required
63
+ 6. CONTINUE to Phase N+1 (do not stop)
64
+ ```
65
+
66
+ **⛔ Forbidden**: Loading agents for Phase 2, 3, ... while in Phase 1
67
+
68
+ ### Prior Deliverables as Constraints
69
+
70
+ ```
71
+ BEFORE Phase N:
72
+ 1. CHECK if prior deliverable exists
73
+ 2. IF exists:
74
+ → READ completely
75
+ → LOCK as IMMUTABLE constraint (L8)
76
+ → DO NOT modify prior decisions
77
+ 3. IF missing but required:
78
+ → HALT with notice
79
+ → Create first via appropriate agent
80
+ → Then resume
81
+ ```
82
+
83
+ ### Allowed Loads Per Phase
84
+
85
+ ```
86
+ ⛔ FORBIDDEN: Loading Phase 2's agents while in Phase 1
87
+ ✅ ALLOWED: Load only what current phase needs
88
+ ✅ ALLOWED: Read prior deliverables as input
89
+ ```
90
+
91
+ ---
92
+
93
+ ## EXIT CRITERIA VERIFICATION
94
+
95
+ Before moving to next phase, verify:
96
+
97
+ ```
98
+ □ Deliverable produced
99
+ □ Output matches agent's format
100
+ □ All exit criteria met
101
+ □ No scope creep
102
+ ```
103
+
104
+ ---
105
+
106
+ ## WORKFLOW COMPLETION
107
+
108
+ After last phase:
109
+
110
+ ```markdown
111
+ ## ✅ Workflow Complete
112
+
113
+ ### � User Request Verification
114
+ > {Quote user's original request from plan header}
115
+
116
+ ### 📋 Acceptance Criteria Verification
117
+ | ID | Criterion | Status | Evidence |
118
+ |----|-----------|--------|----------|
119
+ | AC1 | {criterion from plan} | ✅ | {file:line or test} |
120
+ | AC2 | {criterion from plan} | ✅ | {proof of implementation} |
121
+
122
+ ### 📋 Requirements Verification
123
+ | ID | Requirement | Status | Evidence |
124
+ |----|-------------|--------|----------|
125
+ | R1 | {req} | ✅ | {file:line or deliverable} |
126
+ | R2 | {req} | ✅ | {proof of implementation} |
127
+
128
+ ### 📦 Deliverables
129
+ - {list of outputs with paths}
130
+
131
+ ### ⚠️ Notes
132
+ {any warnings, limitations, or follow-ups}
133
+ ```
134
+
135
+ **Rules**:
136
+ - Trace EVERY acceptance criterion to evidence
137
+ - Verify against ORIGINAL user request (not interpreted version)
138
+ - No silent drops
139
+
140
+ ---
141
+
142
+ ## SKILLS ANALYSIS (MANDATORY OUTPUT)
143
+
144
+ **⛔ You MUST output skills decision for every phase delegation.**
145
+
146
+ ### Simple task:
147
+ ```
148
+ 🎯 Skills Analysis: Simple → Skipping (base knowledge sufficient)
149
+ ```
150
+
151
+ ### Complex task:
152
+ ```
153
+ 🎯 Skills Analysis: Complex → Using `skill1`, `skill2`
154
+ ```
155
+
156
+ **🚫 Silent skipping is FORBIDDEN**
@@ -0,0 +1,179 @@
1
+ # 📚 REFERENCE
2
+
3
+ > **PURPOSE**: Fast lookup tables
4
+
5
+ ---
6
+
7
+ ## COMMAND TABLE
8
+
9
+ | Command | Router | Variants |
10
+ |---------|--------|----------|
11
+ | `/cook` | `cook.md` | `fast`, `hard`, `focus` |
12
+ | `/fix` | `fix.md` | `fast`, `hard`, `focus` |
13
+ | `/plan` | `plan.md` | `fast`, `hard`, `focus` |
14
+ | `/debug` | `debug.md` | `fast`, `hard`, `focus` |
15
+ | `/test` | `test.md` | `fast`, `hard`, `focus` |
16
+ | `/review` | `review.md` | `fast`, `hard` |
17
+ | `/docs` | `docs.md` | `core`, `business`, `audit` |
18
+ | `/design` | `design.md` | `fast`, `hard`, `focus` |
19
+ | `/deploy` | `deploy.md` | `check`, `preview`, `production`, `rollback` |
20
+ | `/report` | `report.md` | `fast`, `hard`, `focus` |
21
+ | `/brainstorm` | `brainstorm.md` | `fast`, `hard` |
22
+ | `/ask` | `ask.md` | `fast`, `hard` |
23
+ | `/code` | `code.md` | `fast`, `hard`, `focus` |
24
+
25
+ ---
26
+
27
+ ## AGENT TABLE
28
+
29
+ | Agent | Category | Primary Tasks |
30
+ |-------|----------|---------------|
31
+ | `tech-lead` | meta | Architecture, orchestration |
32
+ | `planner` | meta | Task breakdown, roadmap |
33
+ | `backend-engineer` | execution | APIs, services, logic |
34
+ | `frontend-engineer` | execution | UI, components, styling |
35
+ | `database-architect` | execution | Schema, queries, migrations |
36
+ | `mobile-engineer` | execution | iOS, Android, React Native |
37
+ | `game-engineer` | execution | Game logic, Unity, Unreal |
38
+ | `tester` | validation | Unit, integration, E2E tests |
39
+ | `reviewer` | validation | Code review, PR feedback |
40
+ | `security-engineer` | validation | Security audit, pentesting |
41
+ | `performance-engineer` | validation | Profiling, optimization |
42
+ | `debugger` | validation | Bug investigation |
43
+ | `researcher` | research | External research |
44
+ | `scouter` | research | Codebase analysis |
45
+ | `brainstormer` | research | Ideas, requirements |
46
+ | `designer` | research | UI/UX design |
47
+ | `docs-manager` | support | Documentation |
48
+ | `devops-engineer` | support | CI/CD, deployment |
49
+ | `business-analyst` | support | Business requirements |
50
+ | `project-manager` | support | Project coordination |
51
+ | `reporter` | support | Reports, summaries |
52
+
53
+ ---
54
+
55
+ ## NATURAL LANGUAGE DETECTION
56
+
57
+ | User Says | Detect As |
58
+ |-----------|-----------|
59
+ | implement, build, create, add | `/cook` |
60
+ | fix, bug, error, broken | `/fix` |
61
+ | plan, how should, strategy | `/plan` |
62
+ | debug, investigate, why | `/debug` |
63
+ | test, coverage | `/test` |
64
+ | review, PR, check code | `/review` |
65
+ | document, readme | `/docs` |
66
+ | design, UI, UX | `/design` |
67
+ | deploy, release | `/deploy` |
68
+ | report, status, summary | `/report` |
69
+
70
+ ---
71
+
72
+ ## DELIVERABLE PATHS
73
+
74
+ ```yaml
75
+ brainstormer: ./reports/brainstorms/BRAINSTORM-{feature}.md
76
+ researcher: ./reports/researchers/RESEARCH-{feature}.md
77
+ scouter: ./reports/scouts/SCOUT-{feature}.md
78
+ designer: ./reports/designs/DESIGN-{feature}.md
79
+ planner: ./reports/plans/PLAN-{feature}.md
80
+ reporter: ./reports/
81
+ ```
82
+
83
+ ---
84
+
85
+ ## DOCUMENTATION PATHS (from /docs:core)
86
+
87
+ ```yaml
88
+ overview: ./documents/knowledge-overview.md
89
+ architecture: ./documents/knowledge-architecture.md
90
+ domain: ./documents/knowledge-domain.md
91
+ source-base: ./documents/knowledge-source-base.md
92
+ standards: ./documents/knowledge-standards.md
93
+ ```
94
+
95
+ ---
96
+
97
+ ## RULES FILES
98
+
99
+ | File | Purpose | Load When |
100
+ |------|---------|-----------|
101
+ | `CORE.md` | Entry point, identity, routing | **Always** |
102
+ | `PHASES.md` | Phase execution, output format | Running phases |
103
+ | `AGENTS.md` | Agent handling, tiered execution | Delegating |
104
+ | `SKILLS.md` | Skill resolution (HSOL) | Skill lookups |
105
+ | `ERRORS.md` | Error recovery | Errors occur |
106
+ | `REFERENCE.md` | Lookup tables | Quick lookups |
107
+
108
+ ---
109
+
110
+ ## SELF-VERIFICATION CHECKLIST
111
+
112
+ ```
113
+ Before every response:
114
+ □ Am I DELEGATING (not implementing)?
115
+ □ Am I following WORKFLOW ORDER?
116
+ □ Am I responding in USER'S LANGUAGE?
117
+ □ Did I attempt TIER 1 before TIER 2?
118
+ □ Did I output Skills Analysis?
119
+ □ Are prior deliverables treated as immutable?
120
+ □ Did I trace requirements to evidence?
121
+ ```
122
+
123
+ ---
124
+
125
+ ## TIER DECISION QUICK CHECK
126
+
127
+ ```
128
+ 🔍 Tool Discovery: Does runSubagent exist?
129
+ └─ YES → TIER 1 (MANDATORY)
130
+ └─ NO → TIER 2 (EMBODY)
131
+
132
+ ⚠️ If you're about to use TIER 2 when TIER 1 exists:
133
+ → STOP
134
+ → Log: "LAZY FALLBACK DETECTED"
135
+ → Use TIER 1 instead
136
+ ```
137
+
138
+ ---
139
+
140
+ ## PHASE DEPENDENCY
141
+
142
+ | Phase | Requires | Produces |
143
+ |-------|----------|----------|
144
+ | Brainstorm | Request | `BRAINSTORM-*.md` |
145
+ | Research | Request | `RESEARCH-*.md` |
146
+ | Scout | Request | `SCOUT-*.md` |
147
+ | Design | Brainstorm + Scout | `DESIGN-*.md` |
148
+ | Plan | Research + Scout | `PLAN-*.md` |
149
+ | Implement | **PLAN (mandatory)** | Code |
150
+ | Test | Code | Test results |
151
+ | Review | Code + Tests | Review verdict |
152
+
153
+ ### Blocking Rules
154
+
155
+ ```
156
+ ⛔ Implementation REQUIRES plan first
157
+ ⛔ Design REQUIRES brainstorm/scout first
158
+ ⛔ Test REQUIRES code to exist
159
+ ⛔ Review REQUIRES code + tests
160
+
161
+ ✅ IF missing prerequisite → CREATE first, THEN proceed
162
+ ```
163
+
164
+ ---
165
+
166
+ ## ORCHESTRATION LAWS (Quick Reference)
167
+
168
+ | # | Law | One-liner |
169
+ |---|-----|----------|
170
+ | L1 | Single Truth | Entry file → CORE → rest on-demand |
171
+ | L2 | Requirement Integrity | 100% fidelity, zero loss |
172
+ | L3 | Explicit Loading | State what you loaded |
173
+ | L4 | Deep Embodiment | Follow agent's full protocol |
174
+ | L5 | Sequential Execution | Phase N before N+1 |
175
+ | L6 | Language Compliance | User's lang; files in English |
176
+ | L7 | Recursive Delegation | Meta agents never implement |
177
+ | L8 | Stateful Handoff | Prior deliverables = locked |
178
+ | L9 | Constraint Propagation | Scout→Planner→Impl chain |
179
+ | L10 | Deliverable Integrity | Agent files define format |
@@ -0,0 +1,167 @@
1
+ # 🎯 SKILLS
2
+
3
+ > **LOAD**: When skill resolution needed | **PURPOSE**: Hybrid Skill Orchestration Layer (HSOL)
4
+
5
+ ---
6
+
7
+ ## OVERVIEW
8
+
9
+ Skills = Domain knowledge modules in `{SKILLS_PATH}/`.
10
+
11
+ **Two sources**:
12
+ 1. **Matrix Skills** — Pre-curated in `matrix-skills/*.yaml` (fast, trusted)
13
+ 2. **Dynamic Skills** — Community skills via `find-skills` (on-demand)
14
+
15
+ ---
16
+
17
+ ## RESOLUTION ALGORITHM
18
+
19
+ ```
20
+ 1. PARSE agent profile from frontmatter
21
+ 2. LOAD inherited domains from matrix-skills/_index.yaml
22
+ 3. FILTER skills by relevance_mapping
23
+ 4. APPLY priority thresholds (critical≥9, core≥7, minimum≥5)
24
+ 5. CALCULATE fitness scores
25
+ 6. RETURN sorted skill set
26
+ ```
27
+
28
+ ### Fitness Calculation
29
+
30
+ ```
31
+ fitness = 0.35 × SEMANTIC_MATCH
32
+ + 0.25 × SPECIFICITY
33
+ + 0.25 × TRUST_LEVEL
34
+ + 0.15 × RECENCY
35
+
36
+ Matrix skills: trust = 1.0 (always trusted)
37
+ Dynamic skills: trust = 0.3 - 1.0 (based on history)
38
+ ```
39
+
40
+ ---
41
+
42
+ ## SKILL DECISION FLOW
43
+
44
+ ### By Variant
45
+
46
+ | Variant | Discovery |
47
+ |---------|-----------|
48
+ | `fast` | **Skip** — use matrix only |
49
+ | `hard`, `focus` | Check matrix fitness, may trigger discovery |
50
+
51
+ ### By Matrix Fitness
52
+
53
+ | Fitness | Action |
54
+ |---------|--------|
55
+ | ≥ 0.8 | Execute with matrix (skip discovery) |
56
+ | 0.75-0.8 | **Async**: Execute with matrix, surface recommendation later |
57
+ | < 0.75 | **Blocking**: Wait for discovery → install → execute with new skill |
58
+
59
+ ---
60
+
61
+ ## TRUST PROGRESSION LIFECYCLE
62
+
63
+ ```
64
+ NEW (0.3) ──▶ EVALUATING (0.5) ──▶ VALIDATED (0.7) ──▶ PROMOTED (1.0)
65
+ │ │ │ │
66
+ └─ 3 successful └─ 10 successful └─ Auto-promote └─ Added to
67
+ executions executions to matrix matrix-skills
68
+ ```
69
+
70
+ **Promotion criteria**:
71
+ - execution_count ≥ 10
72
+ - success_rate ≥ 0.85
73
+ - last_used_within_days ≤ 30
74
+ - no_security_flags: true
75
+
76
+ ---
77
+
78
+ ## DYNAMIC DISCOVERY (find-skills)
79
+
80
+ ### Trigger
81
+
82
+ ```bash
83
+ npx skills find "{keywords}"
84
+ ```
85
+
86
+ ### Install (always use -g -y for current tool)
87
+
88
+ ```bash
89
+ npx skills add {owner/repo@skill} -g -y
90
+ ```
91
+
92
+ ### When to confirm
93
+
94
+ - **Confirm required**: Low trust (new skill) + needed for current task (fitness < 0.75)
95
+ - **No confirm**: Trusted skill OR optional enhancement
96
+
97
+ ---
98
+
99
+ ## AGENT SKILLS SECTION FORMAT
100
+
101
+ Agents don't list individual skills. They reference HSOL:
102
+
103
+ ```markdown
104
+ ## ⚡ Skills
105
+
106
+ > **MATRIX DISCOVERY**: Auto-injected from `matrix-skills/`
107
+ > Profile: `{domain}:{category}` | Domains: `{inherit_from}`
108
+ ```
109
+
110
+ ---
111
+
112
+ ## ADDING NEW SKILLS
113
+
114
+ ```
115
+ 1. Create: {SKILLS_PATH}/{skill-id}/SKILL.md
116
+ 2. Add to: matrix-skills/{domain}.yaml
117
+ 3. Do NOT edit agent files (skills resolved by profile)
118
+ ```
119
+
120
+ ---
121
+
122
+ ## PRIORITY GUIDE
123
+
124
+ | Score | Category | Usage |
125
+ |-------|----------|-------|
126
+ | 10 | Critical | Always required |
127
+ | 9 | Core | Standard for domain |
128
+ | 8 | Expert | Specialized but common |
129
+ | 7 | Core | Useful in most contexts |
130
+ | 5-6 | Utility | Context-dependent |
131
+ | 1-4 | Rare | Edge cases |
132
+
133
+ ---
134
+
135
+ ## EDGE CASES
136
+
137
+ | Scenario | Action |
138
+ |----------|--------|
139
+ | Network timeout | Proceed with matrix only, log timeout |
140
+ | find-skills unavailable | Use matrix + installed dynamics only |
141
+ | No skills found | Report gap, use general capabilities |
142
+ | Installation fails | Rollback, report, offer matrix alternative |
143
+ | Low trust + task-critical | **Confirm with user before install** |
144
+
145
+ ```
146
+ IF no_relevant_skills:
147
+ 1. Acknowledge: "No specialized skill found for {topic}"
148
+ 2. Offer: "I can proceed with general capabilities"
149
+ 3. Suggest: "You could create your own: npx skills init {name}"
150
+ ```
151
+
152
+ ---
153
+
154
+ ## QUICK REFERENCE
155
+
156
+ ### Browse skills
157
+ ```
158
+ https://skills.sh/
159
+ ```
160
+
161
+ ### Commands
162
+ ```bash
163
+ npx skills find "query" # Search
164
+ npx skills add X -g -y # Install global, no confirm
165
+ npx skills check # Check updates
166
+ npx skills update # Update all
167
+ ```
@@ -0,0 +1,137 @@
1
+ ---
2
+ name: find-skills
3
+ description: Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
4
+ ---
5
+
6
+ # Find Skills
7
+
8
+ This skill helps you discover and install skills from the open agent skills ecosystem.
9
+
10
+ ## When to Use This Skill
11
+
12
+ Use this skill when the user:
13
+
14
+ - Asks "how do I do X" where X might be a common task with an existing skill
15
+ - Says "find a skill for X" or "is there a skill for X"
16
+ - Asks "can you do X" where X is a specialized capability
17
+ - Expresses interest in extending agent capabilities
18
+ - Wants to search for tools, templates, or workflows
19
+ - Mentions they wish they had help with a specific domain (design, testing, deployment, etc.)
20
+
21
+ ## What is the Skills CLI?
22
+
23
+ The Skills CLI (`npx skills`) is the package manager for the open agent skills ecosystem. Skills are modular packages that extend agent capabilities with specialized knowledge, workflows, and tools.
24
+
25
+ **Key commands:**
26
+
27
+ - `npx skills find [query]` - Search for skills interactively or by keyword
28
+ - `npx skills add <package> -g -y` - Install a skill globally for the **current tool only**, skip confirmation
29
+ - `npx skills check` - Check for skill updates
30
+ - `npx skills update` - Update all installed skills
31
+
32
+ **Browse skills at:** https://skills.sh/
33
+
34
+ **Install rule:** When installing skills, always use `-g -y` (global, skip confirmation) and install **only for the tool the user is currently using** (e.g. Cursor → ~/.cursor/skills/). Do not run install for all tools (cursor, copilot, antigravity).
35
+
36
+ ## How to Help Users Find Skills
37
+
38
+ ### Step 1: Understand What They Need
39
+
40
+ When a user asks for help with something, identify:
41
+
42
+ 1. The domain (e.g., React, testing, design, deployment)
43
+ 2. The specific task (e.g., writing tests, creating animations, reviewing PRs)
44
+ 3. Whether this is a common enough task that a skill likely exists
45
+
46
+ ### Step 2: Search for Skills
47
+
48
+ Run the find command with a relevant query:
49
+
50
+ ```bash
51
+ npx skills find [query]
52
+ ```
53
+
54
+ For example:
55
+
56
+ - User asks "how do I make my React app faster?" → `npx skills find react performance`
57
+ - User asks "can you help me with PR reviews?" → `npx skills find pr review`
58
+ - User asks "I need to create a changelog" → `npx skills find changelog`
59
+
60
+ The command will return results like:
61
+
62
+ ```
63
+ Install with npx skills add <owner/repo@skill>
64
+
65
+ vercel-labs/agent-skills@vercel-react-best-practices
66
+ └ https://skills.sh/vercel-labs/agent-skills/vercel-react-best-practices
67
+ ```
68
+
69
+ ### Step 3: Present Options to the User
70
+
71
+ When you find relevant skills, present them to the user with:
72
+
73
+ 1. The skill name and what it does
74
+ 2. The install command they can run
75
+ 3. A link to learn more at skills.sh
76
+
77
+ Example response:
78
+
79
+ ```
80
+ I found a skill that might help! The "vercel-react-best-practices" skill provides
81
+ React and Next.js performance optimization guidelines from Vercel Engineering.
82
+
83
+ To install it (global, current tool only, skip confirmation):
84
+ npx skills add vercel-labs/agent-skills@vercel-react-best-practices -g -y
85
+
86
+ Learn more: https://skills.sh/vercel-labs/agent-skills/vercel-react-best-practices
87
+ ```
88
+
89
+ ### Step 4: Offer to Install
90
+
91
+ If the user wants to proceed, install the skill for them using **current tool only** and **skip confirmation**:
92
+
93
+ ```bash
94
+ npx skills add <owner/repo@skill> -g -y
95
+ ```
96
+
97
+ - `-g` = install globally (user-level skills path for the current tool)
98
+ - `-y` = skip confirmation prompts
99
+ - Install **only for the tool the user is using** (e.g. Cursor). Do not run install for all tools.
100
+
101
+ ## Common Skill Categories
102
+
103
+ When searching, consider these common categories:
104
+
105
+ | Category | Example Queries |
106
+ | --------------- | ---------------------------------------- |
107
+ | Web Development | react, nextjs, typescript, css, tailwind |
108
+ | Testing | testing, jest, playwright, e2e |
109
+ | DevOps | deploy, docker, kubernetes, ci-cd |
110
+ | Documentation | docs, readme, changelog, api-docs |
111
+ | Code Quality | review, lint, refactor, best-practices |
112
+ | Design | ui, ux, design-system, accessibility |
113
+ | Productivity | workflow, automation, git |
114
+
115
+ ## Tips for Effective Searches
116
+
117
+ 1. **Use specific keywords**: "react testing" is better than just "testing"
118
+ 2. **Try alternative terms**: If "deploy" doesn't work, try "deployment" or "ci-cd"
119
+ 3. **Check popular sources**: Many skills come from `vercel-labs/agent-skills` or `ComposioHQ/awesome-claude-skills`
120
+
121
+ ## When No Skills Are Found
122
+
123
+ If no relevant skills exist:
124
+
125
+ 1. Acknowledge that no existing skill was found
126
+ 2. Offer to help with the task directly using your general capabilities
127
+ 3. Suggest the user could create their own skill with `npx skills init`
128
+
129
+ Example:
130
+
131
+ ```
132
+ I searched for skills related to "xyz" but didn't find any matches.
133
+ I can still help you with this task directly! Would you like me to proceed?
134
+
135
+ If this is something you do often, you could create your own skill:
136
+ npx skills init my-xyz-skill
137
+ ```