ci: add sanity test npx skills add (#29)

* fix: remove CLAUDE.md symlink generation from build

The CLAUDE.md symlink causes installation errors when using
`npx skills add` as it tries to copy AGENTS.md to itself.

- Remove createClaudeSymlink function from build.ts
- Remove claudeSymlink from SkillPaths interface
- Remove CLAUDE.md references from AGENTS.md structure documentation
- Delete existing CLAUDE.md symlink from skills directory

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test: add sanity test for skills installation

Add a sanity test that verifies the skills CLI installation works:
- Runs `npx skills add . -a claude-code -y` using current directory
- Checks command doesn't fail (exit code 0)
- Verifies .claude/skills directory is created
- Dynamically discovers skills in the repo and verifies they're installed
- Checks SKILL.md exists in each installed skill

The test runs on every push to main and pull requests.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Revert "fix: remove CLAUDE.md symlink generation from build"

This reverts commit c07c234601.

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Pedro Rodrigues
2026-01-28 16:41:05 +00:00
committed by GitHub
parent a3b815155c
commit c29e9dd8e0
5 changed files with 1885 additions and 181 deletions

View File

@@ -12,9 +12,12 @@
"lint": "biome lint --write .",
"lint:check": "biome lint .",
"check": "biome check --write .",
"ci:check": "biome ci ."
"ci:check": "biome ci .",
"test": "vitest run",
"test:sanity": "vitest run test/sanity.test.ts"
},
"devDependencies": {
"@biomejs/biome": "2.3.11"
"@biomejs/biome": "2.3.11",
"vitest": "^3.0.0"
}
}