Skip to content

Commit eb05081

Browse files
committed
fix: move skill to correct .claude/skills/ directory
Move add-ecosystem-ci from .claude/commands/ to .claude/skills/add-ecosystem-ci/SKILL.md following the correct skill directory structure.
1 parent 9f55ba8 commit eb05081

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
name: add-ecosystem-ci
23
description: Add a new ecosystem-ci test case for testing real-world projects against vite-plus
34
allowed-tools: Bash, Read, Edit, Write, WebFetch, AskUserQuestion
45
---
@@ -12,6 +13,7 @@ Add a new ecosystem-ci test case following this process:
1213
Ask the user for the GitHub repository URL if not provided as argument: $ARGUMENTS
1314

1415
Use GitHub CLI to get repository info:
16+
1517
```bash
1618
gh api repos/OWNER/REPO --jq '.default_branch'
1719
gh api repos/OWNER/REPO/commits/BRANCH --jq '.sha'
@@ -22,20 +24,22 @@ gh api repos/OWNER/REPO/commits/BRANCH --jq '.sha'
2224
Fetch the repository's root to check if the main package.json is in a subdirectory (like `web/`, `app/`, `frontend/`).
2325

2426
Ask the user:
27+
2528
- Which directory contains the main package.json? (root or subdirectory)
2629
- What Node.js version to use? (22 or 24)
2730
- Which commands to run? (e.g., lint, build, test, type-check)
2831

2932
## Step 3: Update Files
3033

3134
1. **Add to `ecosystem-ci/repo.json`**:
35+
3236
```json
3337
{
3438
"project-name": {
3539
"repository": "https://github.com/owner/repo.git",
3640
"branch": "main",
3741
"hash": "full-commit-sha",
38-
"directory": "web" // only if subdirectory is needed
42+
"directory": "web" // only if subdirectory is needed
3943
}
4044
}
4145
```
@@ -44,7 +48,7 @@ Ask the user:
4448
```yaml
4549
- name: project-name
4650
node-version: 24
47-
directory: web # only if subdirectory is needed
51+
directory: web # only if subdirectory is needed
4852
command: |
4953
vite run lint
5054
vite run build
@@ -53,8 +57,9 @@ Ask the user:
5357
## Step 4: Verify
5458
5559
Test the clone locally:
60+
5661
```bash
57-
pnpm dlx tsx ecosystem-ci/clone.ts project-name
62+
node ecosystem-ci/clone.ts project-name
5863
```
5964

6065
## Important Notes

CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ vite dev # runs dev script from package.json
6868
- Only convert to std paths when interfacing with std library functions, and this should be implicit in most cases thanks to `AsRef<Path>` implementations
6969
- Add necessary methods in `vite_path` instead of falling back to std path types
7070

71+
## Git Workflow
72+
73+
- Run `vite fmt` before committing to format code
74+
7175
## Quick Reference
7276

7377
- **Compound Commands**: `"build": "tsc && rollup"` splits into subtasks

0 commit comments

Comments
 (0)