dryai 0.2.1 → 0.3.1
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/LICENSE +7 -0
- package/README.md +89 -1
- package/package.json +6 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2026 Will Mruzek
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -24,6 +24,94 @@ Live output is written to:
|
|
|
24
24
|
- `~/.cursor/rules`
|
|
25
25
|
- `~/.cursor/skills`
|
|
26
26
|
|
|
27
|
+
## Example Configs
|
|
28
|
+
|
|
29
|
+
One input root can contain all three source types:
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
~/.config/agents/
|
|
33
|
+
├── commands/
|
|
34
|
+
│ └── gen-commit-msg.md
|
|
35
|
+
├── rules/
|
|
36
|
+
│ └── say-yes-captain.md
|
|
37
|
+
└── skills/
|
|
38
|
+
└── review-helper/
|
|
39
|
+
└── SKILL.md
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Example Rule
|
|
43
|
+
|
|
44
|
+
Rules are markdown files under `rules/`. `dryai` recognizes these rule frontmatter fields:
|
|
45
|
+
|
|
46
|
+
- `description`
|
|
47
|
+
- `copilot.applyTo`
|
|
48
|
+
- `cursor.alwaysApply`
|
|
49
|
+
- `cursor.globs`
|
|
50
|
+
|
|
51
|
+
`cursor.globs` should be provided as one comma-separated glob string.
|
|
52
|
+
|
|
53
|
+
```md
|
|
54
|
+
---
|
|
55
|
+
description: Reply with "Yes, Captain!" before answering when the user says "Make it so" or "Engage".
|
|
56
|
+
copilot:
|
|
57
|
+
applyTo: '**/*.tsx, **/*.ts, src/**/*.ts, src/**/*.tsx, src/**/*.js, src/**/*.jsx'
|
|
58
|
+
cursor:
|
|
59
|
+
alwaysApply: false
|
|
60
|
+
globs: '**/*.tsx, **/*.ts, src/**/*.ts, src/**/*.tsx, src/**/*.js, src/**/*.jsx'
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
# Say Yes Captain
|
|
64
|
+
|
|
65
|
+
When the user says "Make it so" or "Engage", start your response with "Yes, Captain!".
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Example Command
|
|
69
|
+
|
|
70
|
+
Commands are markdown files under `commands/`. `dryai` recognizes these command frontmatter fields:
|
|
71
|
+
|
|
72
|
+
- `name`
|
|
73
|
+
- `description`
|
|
74
|
+
- `cursor.disable-model-invocation`
|
|
75
|
+
|
|
76
|
+
```md
|
|
77
|
+
---
|
|
78
|
+
name: gen-commit-msg
|
|
79
|
+
description: Generate a conventional commit message from the current staged git diff.
|
|
80
|
+
cursor:
|
|
81
|
+
disable-model-invocation: true
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
# Generate Commit Message
|
|
85
|
+
|
|
86
|
+
Read the staged diff and produce a conventional commit message with a concise subject and optional body.
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Example Skill
|
|
90
|
+
|
|
91
|
+
Skills live in directories under `skills/`. The directory is copied as-is into the Copilot and Cursor skills targets.
|
|
92
|
+
|
|
93
|
+
Unlike commands and rules, `dryai` does not define or validate a fixed skill frontmatter schema. Skill files are passed through unchanged, so the allowed frontmatter fields depend on the skill format expected by the target editor or agent.
|
|
94
|
+
|
|
95
|
+
```text
|
|
96
|
+
skills/
|
|
97
|
+
└── review-helper/
|
|
98
|
+
└── SKILL.md
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
```md
|
|
102
|
+
---
|
|
103
|
+
name: review-helper
|
|
104
|
+
description: Use this skill when the user asks for a code review, PR review, or wants bugs and risks called out first.
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
# Review Helper
|
|
108
|
+
|
|
109
|
+
Focus on findings first.
|
|
110
|
+
|
|
111
|
+
- Identify bugs, regressions, and missing tests before summarizing.
|
|
112
|
+
- Keep the overview brief unless the user asks for a deeper walkthrough.
|
|
113
|
+
```
|
|
114
|
+
|
|
27
115
|
## Commands
|
|
28
116
|
|
|
29
117
|
```sh
|
|
@@ -99,7 +187,7 @@ pnpm dev:dryai --input ./config install
|
|
|
99
187
|
- Verify the tagged commit is on `main`.
|
|
100
188
|
- Build and test the CLI.
|
|
101
189
|
- Create a tarball with `npm pack`.
|
|
102
|
-
- Publish the package to npm using
|
|
190
|
+
- Publish the package to npm using npm trusted publishing.
|
|
103
191
|
- Create or update the matching GitHub Release.
|
|
104
192
|
- Upload the tarball as a release asset.
|
|
105
193
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dryai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "CLI for installing shared AI commands, rules, and skills into Copilot and Cursor.",
|
|
4
5
|
"type": "module",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+ssh://git@github.com/willmruzek/dryai.git"
|
|
7
9
|
},
|
|
10
|
+
"license": "MIT",
|
|
8
11
|
"files": [
|
|
9
12
|
"dest/**/*.js",
|
|
10
13
|
"dest/**/*.d.ts"
|