Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"author": {
"name": "Netresearch DTT GmbH",
"url": "https://github.com/netresearch/skill-repo-skill"
"url": "https://www.netresearch.de"
},
"skills": [
"./skills/skill-repo"
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ jobs:
severity: warning
env:
SHELLCHECK_OPTS: -x

validate:
name: Skill Validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- run: bash skills/skill-repo/scripts/validate-skill.sh .
31 changes: 31 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Validate Skill

on:
workflow_call:

permissions:
contents: read

jobs:
validate:
name: Skill Validation
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Checkout validation script
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: netresearch/skill-repo-skill
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

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

The workflow checks out netresearch/skill-repo-skill without pinning a ref. This makes validation non-deterministic (the script version can change independently of the reusable workflow ref that callers use) and can lead to unexpected failures. Consider checking out the validation script at the same ref as the reusable workflow (or documenting that it intentionally always tracks the default branch).

Suggested change
repository: netresearch/skill-repo-skill
repository: netresearch/skill-repo-skill
ref: main

Copilot uses AI. Check for mistakes.
path: .validate-skill
sparse-checkout: skills/skill-repo/scripts/validate-skill.sh
sparse-checkout-cone-mode: false

- name: Run skill validation
run: bash .validate-skill/skills/skill-repo/scripts/validate-skill.sh .
15 changes: 15 additions & 0 deletions Build/hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# pre-commit hook: validate skill repo structure
# Installed via: git config core.hooksPath Build/hooks

SCRIPT=""
for f in scripts/validate-skill.sh skills/*/scripts/validate-skill.sh; do
[[ -f "$f" ]] && SCRIPT="$f" && break
done

if [[ -z "$SCRIPT" ]]; then
echo "No local validate-skill.sh found, skipping validation"
exit 0
fi

bash "$SCRIPT" .
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"netresearch/composer-agent-skill-plugin": "*"
},
"extra": {
"ai-agent-skill": "SKILL.md"
"ai-agent-skill": "skills/skill-repo/SKILL.md"
},
"support": {
"issues": "https://github.com/netresearch/skill-repo-skill/issues",
Expand Down
Loading