@waynesutton/convex-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/AGENTS.md +115 -0
- package/GEMINI.md +103 -0
- package/LICENSE +190 -0
- package/README.md +221 -0
- package/bin/cli.js +219 -0
- package/index.js +76 -0
- package/package.json +48 -0
- package/skills/convex-agents/SKILL.md +515 -0
- package/skills/convex-best-practices/SKILL.md +333 -0
- package/skills/convex-component-authoring/SKILL.md +456 -0
- package/skills/convex-cron-jobs/SKILL.md +603 -0
- package/skills/convex-file-storage/SKILL.md +466 -0
- package/skills/convex-functions/SKILL.md +441 -0
- package/skills/convex-http-actions/SKILL.md +732 -0
- package/skills/convex-migrations/SKILL.md +711 -0
- package/skills/convex-realtime/SKILL.md +442 -0
- package/skills/convex-schema-validator/SKILL.md +399 -0
- package/skills/convex-security-audit/SKILL.md +538 -0
- package/skills/convex-security-check/SKILL.md +377 -0
- package/templates/CLAUDE.md +276 -0
- package/templates/skills/README.md +59 -0
- package/templates/skills/dev.md +86 -0
- package/templates/skills/gitrules.md +69 -0
- package/templates/skills/help.md +134 -0
package/AGENTS.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Convex Skills
|
|
2
|
+
|
|
3
|
+
Agent skills for building production-ready applications with Convex, following the Agent Skills open format.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
This repository contains packaged instructions that help AI coding agents understand and implement Convex best practices. Skills are automatically invoked when relevant to your task.
|
|
8
|
+
|
|
9
|
+
## Available Skills
|
|
10
|
+
|
|
11
|
+
| Skill | Description |
|
|
12
|
+
| ------------------------------------------------------------------------ | ----------------------------------------------------- |
|
|
13
|
+
| [convex-best-practices](skills/convex-best-practices/SKILL.md) | Guidelines for building production-ready Convex apps |
|
|
14
|
+
| [convex-functions](skills/convex-functions/SKILL.md) | Writing queries, mutations, actions, and HTTP actions |
|
|
15
|
+
| [convex-realtime](skills/convex-realtime/SKILL.md) | Patterns for building reactive applications |
|
|
16
|
+
| [convex-schema-validator](skills/convex-schema-validator/SKILL.md) | Database schema definition and validation |
|
|
17
|
+
| [convex-file-storage](skills/convex-file-storage/SKILL.md) | File upload, storage, and serving |
|
|
18
|
+
| [convex-agents](skills/convex-agents/SKILL.md) | Building AI agents with Convex |
|
|
19
|
+
| [convex-cron-jobs](skills/convex-cron-jobs/SKILL.md) | Scheduled functions and background tasks |
|
|
20
|
+
| [convex-http-actions](skills/convex-http-actions/SKILL.md) | HTTP endpoints and webhook handling |
|
|
21
|
+
| [convex-migrations](skills/convex-migrations/SKILL.md) | Schema evolution and data migrations |
|
|
22
|
+
| [convex-security-check](skills/convex-security-check/SKILL.md) | Quick security audit checklist |
|
|
23
|
+
| [convex-security-audit](skills/convex-security-audit/SKILL.md) | Deep security review patterns |
|
|
24
|
+
| [convex-component-authoring](skills/convex-component-authoring/SKILL.md) | Creating reusable Convex components |
|
|
25
|
+
|
|
26
|
+
## Skill Format
|
|
27
|
+
|
|
28
|
+
Each skill follows the Agent Skills specification with YAML frontmatter:
|
|
29
|
+
|
|
30
|
+
```markdown
|
|
31
|
+
---
|
|
32
|
+
name: skill-name
|
|
33
|
+
description: What the skill does and when to use it
|
|
34
|
+
version: 1.0.0
|
|
35
|
+
author: Convex
|
|
36
|
+
tags: [convex, ...]
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
# Skill Name
|
|
40
|
+
|
|
41
|
+
## Documentation Sources
|
|
42
|
+
|
|
43
|
+
Links to official documentation
|
|
44
|
+
|
|
45
|
+
## Instructions
|
|
46
|
+
|
|
47
|
+
Step-by-step guidance
|
|
48
|
+
|
|
49
|
+
## Examples
|
|
50
|
+
|
|
51
|
+
Code examples
|
|
52
|
+
|
|
53
|
+
## Best Practices
|
|
54
|
+
|
|
55
|
+
Guidelines and patterns
|
|
56
|
+
|
|
57
|
+
## References
|
|
58
|
+
|
|
59
|
+
Additional resources
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Usage
|
|
63
|
+
|
|
64
|
+
Skills are automatically available once installed. The agent will use them when relevant tasks are detected.
|
|
65
|
+
|
|
66
|
+
**Examples:**
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
Help me set up file uploads in Convex
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
Create a cron job to clean up expired sessions
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
Add a Stripe webhook endpoint
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Key Convex Concepts
|
|
81
|
+
|
|
82
|
+
### Function Types
|
|
83
|
+
|
|
84
|
+
| Type | Purpose | Database | External APIs |
|
|
85
|
+
| ------------ | -------------- | ------------------------ | ------------- |
|
|
86
|
+
| `query` | Read data | Read-only | No |
|
|
87
|
+
| `mutation` | Write data | Read/Write | No |
|
|
88
|
+
| `action` | Integrations | Via runQuery/runMutation | Yes |
|
|
89
|
+
| `httpAction` | HTTP endpoints | Via runQuery/runMutation | Yes |
|
|
90
|
+
|
|
91
|
+
### Core Principles
|
|
92
|
+
|
|
93
|
+
1. **Always use validators** for arguments and returns
|
|
94
|
+
2. **Use indexes** instead of filters for queries
|
|
95
|
+
3. **Make mutations idempotent** with early returns
|
|
96
|
+
4. **Use internal functions** for sensitive operations
|
|
97
|
+
5. **Batch operations** for large datasets
|
|
98
|
+
|
|
99
|
+
## DO NOT
|
|
100
|
+
|
|
101
|
+
- Run `npx convex deploy` without explicit instruction
|
|
102
|
+
- Run any git commands without explicit instruction
|
|
103
|
+
- Edit files in `convex/_generated/`
|
|
104
|
+
- Use `filter()` instead of `withIndex()`
|
|
105
|
+
|
|
106
|
+
## References
|
|
107
|
+
|
|
108
|
+
- Convex Documentation: https://docs.convex.dev/
|
|
109
|
+
- Convex LLMs.txt: https://docs.convex.dev/llms.txt
|
|
110
|
+
- Best Practices: https://docs.convex.dev/understanding/best-practices/
|
|
111
|
+
- Agent Skills Specification: https://github.com/anthropics/skills
|
|
112
|
+
|
|
113
|
+
## License
|
|
114
|
+
|
|
115
|
+
Apache-2.0
|
package/GEMINI.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Convex Development Context
|
|
2
|
+
|
|
3
|
+
This file provides context for Gemini CLI when working with Convex projects.
|
|
4
|
+
|
|
5
|
+
## Project Type
|
|
6
|
+
|
|
7
|
+
Convex real-time backend application with TypeScript.
|
|
8
|
+
|
|
9
|
+
## Key Technologies
|
|
10
|
+
|
|
11
|
+
- **Convex** - Serverless database and functions platform
|
|
12
|
+
- **TypeScript** - Type-safe JavaScript
|
|
13
|
+
- **React** - Frontend framework (typical Convex frontend)
|
|
14
|
+
|
|
15
|
+
## Convex-Specific Guidelines
|
|
16
|
+
|
|
17
|
+
### Function Types
|
|
18
|
+
|
|
19
|
+
| Type | Purpose | Database Access | External APIs |
|
|
20
|
+
|------|---------|-----------------|---------------|
|
|
21
|
+
| `query` | Read data | Read-only | No |
|
|
22
|
+
| `mutation` | Modify data | Read/Write | No |
|
|
23
|
+
| `action` | External integrations | Via runQuery/runMutation | Yes |
|
|
24
|
+
| `httpAction` | Webhooks/APIs | Via runQuery/runMutation | Yes |
|
|
25
|
+
|
|
26
|
+
### Best Practices
|
|
27
|
+
|
|
28
|
+
1. **Always use validators** for args and returns
|
|
29
|
+
2. **Use indexes** instead of filters for queries
|
|
30
|
+
3. **Make mutations idempotent** for write conflict handling
|
|
31
|
+
4. **Use internal functions** for sensitive operations
|
|
32
|
+
|
|
33
|
+
### Commands
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Start development
|
|
37
|
+
npx convex dev
|
|
38
|
+
|
|
39
|
+
# Generate types
|
|
40
|
+
npx convex codegen
|
|
41
|
+
|
|
42
|
+
# View logs
|
|
43
|
+
npx convex logs
|
|
44
|
+
|
|
45
|
+
# Open dashboard
|
|
46
|
+
npx convex dashboard
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Do NOT Run Without Instruction
|
|
50
|
+
|
|
51
|
+
- `npx convex deploy` - Production deployment
|
|
52
|
+
- Any git commands
|
|
53
|
+
|
|
54
|
+
## Schema Reference
|
|
55
|
+
|
|
56
|
+
Schema is defined in `convex/schema.ts`:
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
import { defineSchema, defineTable } from "convex/server";
|
|
60
|
+
import { v } from "convex/values";
|
|
61
|
+
|
|
62
|
+
export default defineSchema({
|
|
63
|
+
// Tables defined here
|
|
64
|
+
});
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Available Functions
|
|
68
|
+
|
|
69
|
+
Functions are in the `convex/` directory:
|
|
70
|
+
- Queries: Read-only data access
|
|
71
|
+
- Mutations: Data modifications
|
|
72
|
+
- Actions: External API calls
|
|
73
|
+
|
|
74
|
+
## Documentation
|
|
75
|
+
|
|
76
|
+
- Convex Docs: https://docs.convex.dev/
|
|
77
|
+
- LLMs.txt: https://docs.convex.dev/llms.txt
|
|
78
|
+
- Convex Skills: https://github.com/get-convex/convex-skills
|
|
79
|
+
|
|
80
|
+
## Error Handling
|
|
81
|
+
|
|
82
|
+
Use `ConvexError` for user-facing errors:
|
|
83
|
+
|
|
84
|
+
```typescript
|
|
85
|
+
import { ConvexError } from "convex/values";
|
|
86
|
+
|
|
87
|
+
throw new ConvexError({
|
|
88
|
+
code: "NOT_FOUND",
|
|
89
|
+
message: "Resource not found"
|
|
90
|
+
});
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## File Structure
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
project/
|
|
97
|
+
├── convex/
|
|
98
|
+
│ ├── _generated/ # Auto-generated (don't edit)
|
|
99
|
+
│ ├── schema.ts # Database schema
|
|
100
|
+
│ └── *.ts # Function files
|
|
101
|
+
├── src/ # Frontend code
|
|
102
|
+
└── package.json
|
|
103
|
+
```
|
package/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 Convex, Inc.
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
# Convex (unoffical) Skills v1
|
|
2
|
+
|
|
3
|
+
A collection of AI-consumable skills for building production-ready applications with [Convex](https://convex.dev), following the Agent Skills open format.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
This repository contains skills that help AI assistants understand and implement Convex best practices. Each skill provides structured guidance for specific aspects of Convex development.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
### Claude Code (via Marketplace)
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Add the marketplace
|
|
15
|
+
claude plugin marketplace add get-convex/skills
|
|
16
|
+
|
|
17
|
+
# Install the plugin
|
|
18
|
+
claude plugin install convex-skills
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Claude Code (from local clone)
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
git clone https://github.com/get-convex/skills.git
|
|
25
|
+
cd skills
|
|
26
|
+
# Point Claude Code to this directory
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Codex
|
|
30
|
+
|
|
31
|
+
Follow the Codex skills guide and place the skill under `$CODEX_HOME/skills`:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# From the repo root
|
|
35
|
+
# Defaults to ~/.codex if CODEX_HOME is unset
|
|
36
|
+
cp -r skills/convex-best-practices "$CODEX_HOME/skills/"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Codex will auto-discover `SKILL.md` files in that directory on the next start.
|
|
40
|
+
|
|
41
|
+
### OpenCode
|
|
42
|
+
|
|
43
|
+
OpenCode discovers skills from `~/.claude/skills/<name>/SKILL.md` automatically. See OpenCode Skills docs for more details.
|
|
44
|
+
|
|
45
|
+
### Manual Installation
|
|
46
|
+
|
|
47
|
+
Copy the desired skill's `SKILL.md` file to your project's `.claude/skills/` directory.
|
|
48
|
+
|
|
49
|
+
## Available Skills
|
|
50
|
+
|
|
51
|
+
| Skill | Description |
|
|
52
|
+
| ------------------------------------------------------------------------ | ----------------------------------------------------- |
|
|
53
|
+
| [convex-best-practices](skills/convex-best-practices/SKILL.md) | Guidelines for building production-ready Convex apps |
|
|
54
|
+
| [convex-functions](skills/convex-functions/SKILL.md) | Writing queries, mutations, actions, and HTTP actions |
|
|
55
|
+
| [convex-realtime](skills/convex-realtime/SKILL.md) | Patterns for building reactive applications |
|
|
56
|
+
| [convex-schema-validator](skills/convex-schema-validator/SKILL.md) | Database schema definition and validation |
|
|
57
|
+
| [convex-file-storage](skills/convex-file-storage/SKILL.md) | File upload, storage, and serving |
|
|
58
|
+
| [convex-agents](skills/convex-agents/SKILL.md) | Building AI agents with Convex |
|
|
59
|
+
| [convex-cron-jobs](skills/convex-cron-jobs/SKILL.md) | Scheduled functions and background tasks |
|
|
60
|
+
| [convex-http-actions](skills/convex-http-actions/SKILL.md) | HTTP endpoints and webhook handling |
|
|
61
|
+
| [convex-migrations](skills/convex-migrations/SKILL.md) | Schema evolution and data migrations |
|
|
62
|
+
| [convex-security-check](skills/convex-security-check/SKILL.md) | Quick security audit checklist |
|
|
63
|
+
| [convex-security-audit](skills/convex-security-audit/SKILL.md) | Deep security review patterns |
|
|
64
|
+
| [convex-component-authoring](skills/convex-component-authoring/SKILL.md) | Creating reusable Convex components |
|
|
65
|
+
|
|
66
|
+
## Repository Structure
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
convex-skills/
|
|
70
|
+
├── skills/ # Core Convex skills for AI agents
|
|
71
|
+
│ ├── convex-best-practices/
|
|
72
|
+
│ │ └── SKILL.md
|
|
73
|
+
│ ├── convex-functions/
|
|
74
|
+
│ │ └── SKILL.md
|
|
75
|
+
│ ├── convex-cron-jobs/
|
|
76
|
+
│ │ └── SKILL.md
|
|
77
|
+
│ └── ...
|
|
78
|
+
├── templates/ # Templates for forking developers
|
|
79
|
+
│ ├── CLAUDE.md # Project context template
|
|
80
|
+
│ └── skills/ # Claude Code skill templates
|
|
81
|
+
│ ├── dev.md # Full-stack development practices
|
|
82
|
+
│ ├── help.md # Problem-solving methodology
|
|
83
|
+
│ └── gitrules.md # Git safety protocols
|
|
84
|
+
├── .claude/skills/ # Active skills for this repo
|
|
85
|
+
├── prds/ # Planning documents
|
|
86
|
+
├── AGENTS.md # Agent-facing documentation
|
|
87
|
+
├── CLAUDE.md # Claude configuration
|
|
88
|
+
├── GEMINI.md # Gemini CLI integration
|
|
89
|
+
├── README.md # This file
|
|
90
|
+
└── LICENSE # Apache-2.0
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Templates for Forking
|
|
94
|
+
|
|
95
|
+
When you fork this repository, you can copy the templates to set up Claude Code skills for your project:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
# Copy skill templates to your project
|
|
99
|
+
cp -r templates/skills/* .claude/skills/
|
|
100
|
+
|
|
101
|
+
# Or copy specific skills
|
|
102
|
+
cp templates/skills/dev.md .claude/skills/
|
|
103
|
+
cp templates/skills/help.md .claude/skills/
|
|
104
|
+
cp templates/skills/gitrules.md .claude/skills/
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
| Template | Description |
|
|
108
|
+
| ------------------------------------------------------------ | -------------------------------------------- |
|
|
109
|
+
| [templates/CLAUDE.md](templates/CLAUDE.md) | Project context template for Convex projects |
|
|
110
|
+
| [templates/skills/dev.md](templates/skills/dev.md) | Full-stack development practices |
|
|
111
|
+
| [templates/skills/help.md](templates/skills/help.md) | Problem-solving methodology |
|
|
112
|
+
| [templates/skills/gitrules.md](templates/skills/gitrules.md) | Git safety protocols |
|
|
113
|
+
|
|
114
|
+
See [templates/skills/README.md](templates/skills/README.md) for detailed installation instructions.
|
|
115
|
+
|
|
116
|
+
## Skill Format
|
|
117
|
+
|
|
118
|
+
Each skill follows the Agent Skills specification:
|
|
119
|
+
|
|
120
|
+
```markdown
|
|
121
|
+
---
|
|
122
|
+
name: Skill Name
|
|
123
|
+
description: Brief description
|
|
124
|
+
version: 1.0.0
|
|
125
|
+
author: Convex
|
|
126
|
+
tags: [convex, ...]
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
# Skill Name
|
|
130
|
+
|
|
131
|
+
## Documentation Sources
|
|
132
|
+
|
|
133
|
+
## Instructions
|
|
134
|
+
|
|
135
|
+
## Examples
|
|
136
|
+
|
|
137
|
+
## Best Practices
|
|
138
|
+
|
|
139
|
+
## References
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## Usage
|
|
143
|
+
|
|
144
|
+
Skills are automatically available once installed. The agent will use them when relevant tasks are detected.
|
|
145
|
+
|
|
146
|
+
**Examples:**
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
Help me set up file uploads in Convex
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
```
|
|
153
|
+
Create a cron job to clean up expired sessions
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
Add a webhook endpoint for Stripe
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Creating New Skills
|
|
161
|
+
|
|
162
|
+
Skills follow the Agent Skills specification. Each skill requires a `SKILL.md` file with YAML frontmatter.
|
|
163
|
+
|
|
164
|
+
### Skill Template
|
|
165
|
+
|
|
166
|
+
Create a new directory under `skills/`:
|
|
167
|
+
|
|
168
|
+
```
|
|
169
|
+
skills/my-skill/
|
|
170
|
+
└── SKILL.md
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
**SKILL.md format:**
|
|
174
|
+
|
|
175
|
+
```markdown
|
|
176
|
+
---
|
|
177
|
+
name: my-skill
|
|
178
|
+
description: A clear description of what this skill does
|
|
179
|
+
version: 1.0.0
|
|
180
|
+
author: Convex
|
|
181
|
+
tags: [convex, relevant-tags]
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
# My Skill Name
|
|
185
|
+
|
|
186
|
+
## Documentation Sources
|
|
187
|
+
|
|
188
|
+
Links to official documentation
|
|
189
|
+
|
|
190
|
+
## Instructions
|
|
191
|
+
|
|
192
|
+
Step-by-step guidance for the agent
|
|
193
|
+
|
|
194
|
+
## Examples
|
|
195
|
+
|
|
196
|
+
Concrete examples showing expected code patterns
|
|
197
|
+
|
|
198
|
+
## Best Practices
|
|
199
|
+
|
|
200
|
+
Specific rules to follow
|
|
201
|
+
|
|
202
|
+
## References
|
|
203
|
+
|
|
204
|
+
Additional resources
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
## AI Integration Files
|
|
208
|
+
|
|
209
|
+
- `AGENTS.md` - Agent-facing documentation
|
|
210
|
+
- `CLAUDE.md` - Claude configuration for Convex projects
|
|
211
|
+
- `GEMINI.md` - Gemini CLI integration for Convex projects
|
|
212
|
+
|
|
213
|
+
## License
|
|
214
|
+
|
|
215
|
+
Apache-2.0 License - see [LICENSE](LICENSE) for details.
|
|
216
|
+
|
|
217
|
+
## References
|
|
218
|
+
|
|
219
|
+
- [Convex Documentation](https://docs.convex.dev/)
|
|
220
|
+
- [Convex LLMs.txt](https://docs.convex.dev/llms.txt)
|
|
221
|
+
- [Agent Skills Specification](https://github.com/anthropics/skills)
|