Skip to content

Add integration tests against anthropics/skills repo#167

Merged
wkusnierczyk merged 1 commit intomainfrom
dev/166
Feb 23, 2026
Merged

Add integration tests against anthropics/skills repo#167
wkusnierczyk merged 1 commit intomainfrom
dev/166

Conversation

@wkusnierczyk
Copy link
Owner

Summary

Details

Snapshot of anthropics/skills at commit `1ed29a0`, with scripts and binary assets (fonts, XSD schemas, PDFs) stripped to keep fixture size at 460K. Skills tested:

`algorithmic-art`, `brand-guidelines`, `canvas-design`, `doc-coauthoring`, `docx`, `frontend-design`, `internal-comms`, `mcp-builder`, `pdf`, `pptx`, `skill-creator`, `slack-gif-creator`, `theme-factory`, `web-artifacts-builder`, `webapp-testing`, `xlsx`

Test breakdown (84 total):

  • 16 skills × 5 commands = 80 per-skill tests (macro-generated)
  • 2 template tests (properties parse, name-mismatch validation failure)
  • 1 recursive discovery test (17 skills found, 16 ok, 1 error)
  • 1 multi-dir prompt test (16 `` tags)

Tests gated with `#[ignore]` — run with:
```
cargo test --test anthropics_skills -- --ignored
```

Test plan

  • All 84 integration tests pass
  • Default `cargo test` skips all 84 (shown as ignored)
  • Regular test suite (699 tests) unaffected
  • `cargo clippy -- -D warnings` clean
  • `cargo fmt --check` clean

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings February 23, 2026 15:31
@wkusnierczyk wkusnierczyk added test Test coverage medium Medium priority labels Feb 23, 2026
@wkusnierczyk wkusnierczyk self-assigned this Feb 23, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a pinned snapshot of real-world skills from anthropics/skills and introduces an ignored integration test suite that runs aigent commands (validate/check/properties/prompt/score) against those fixtures to better reflect production usage.

Changes:

  • Add tests/anthropics_skills.rs integration tests (macro-generated per-skill + template + recursive/multi-dir cases), gated behind #[ignore].
  • Add tests/fixtures/anthropics-skills/ snapshot content plus a PIN file documenting the upstream commit.
  • Add various reference/example files under the fixture snapshot to mirror real skill layouts.

Reviewed changes

Copilot reviewed 55 out of 55 changed files in this pull request and generated no comments.

File Description
tests/anthropics_skills.rs New ignored integration tests running multiple CLI commands against the pinned fixtures.
tests/fixtures/anthropics-skills/** Snapshot fixtures of anthropics/skills (SKILL.md + selected references/examples).
tests/fixtures/anthropics-skills/PIN Documents the pinned upstream commit and update procedure.

Snapshot 12 Apache 2.0-licensed skills from anthropics/skills (pinned at
1ed29a0) into tests/fixtures/anthropics-skills/. Source-available skills
(docx, pdf, pptx, xlsx) excluded — their license prohibits redistribution.
Non-.md files stripped; LICENSE.txt preserved per Apache 2.0 Section 4.

64 integration tests via macro-generated per-skill modules:
- 12 skills × 5 commands (validate, check, properties, prompt, score)
- 2 template tests (properties, name-mismatch validation failure)
- 1 recursive discovery test (13 skills found, 12 ok, 1 error)
- 1 multi-dir prompt test (12 <skill> tags generated)

Tests gated with #[ignore] — run with:
  cargo test --test anthropics_skills -- --ignored

CI job added to run integration tests on every PR.

Closes #166

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@wkusnierczyk wkusnierczyk merged commit 1e785c1 into main Feb 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

medium Medium priority test Test coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TEST] Integration tests against anthropics/skills repo

2 participants