---
# SPDX-License-Identifier: CC-BY-SA-4.0
# SPDX-FileCopyrightText: Netresearch DTT GmbH
name: skill-repo
description: "Use when creating skill repositories, standardizing or validating skill repo structure, setting up composer/release workflows, configuring split licensing (MIT + CC-BY-SA-4.0), fixing plugin.json / SKILL.md validation or version-parity errors, writing or validating skill evals, selection tests or captured agent evidence, or releasing a skill version (version bump, tagging)."
license: "(MIT AND CC-BY-SA-4.0). See LICENSE-MIT and LICENSE-CC-BY-SA-4.0"
compatibility: "Requires bash 4.3+, python3 3.11+, and uv (runs the Python scripts)."
metadata:
  author: Netresearch DTT GmbH
  version: "4.2.1"
  repository: https://github.com/netresearch/skill-repo-skill
allowed-tools: Bash(${CLAUDE_SKILL_DIR}/scripts/*) Bash(bash ${CLAUDE_SKILL_DIR}/scripts/*) Bash(uv run ${CLAUDE_SKILL_DIR}/scripts/*) Bash(skills/skill-repo/scripts/*) Bash(bash skills/skill-repo/scripts/*) Read Write Glob Grep
title: skill-repo
canonical_url: https://skilld.dev/gh/netresearch/skill-repo-skill
last_updated: 2026-11-21T17:02:32.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> 43 supporting files sit beside this SKILL.md. When the Skill refers to one, fetch https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/PATH with PATH replaced.
>
> If the user asked to install this Skill, run `npx skilld install netresearch/skill-repo-skill/skill-repo`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/skill-repo`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/netresearch/skill-repo-skill/skill-repo) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/skill-repo`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/skill-repo --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/skill-repo --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Skill Repository Structure Guide

## Repository Structure

```
{repo-name}/
├── plugin.json                  # portable manifest
├── .claude-plugin/plugin.json   # generated
├── skills/{name}/SKILL.md       # the control plane
├── README.md                    # human docs
├── LICENSE-MIT                  # code
├── LICENSE-CC-BY-SA-4.0         # content
├── composer.json                # PHP distribution
├── references/                  # detail, loaded on demand
├── scripts/                     # executables, never loaded
└── .github/workflows/
    ├── release.yml              # tag-triggered
    ├── validate.yml             # validation caller
    └── auto-merge-deps.yml      # dep auto-merge caller
```

## Licensing (Split Model)

| Path pattern | License |
|---|---|
| `skills/**/*.md`, `references/**`, `README.md`, `docs/**` | CC-BY-SA-4.0 |
| `scripts/**`, `.github/workflows/**`, `*.sh`, `*.py`, `*.php` | MIT |
| `composer.json`, `plugin.json`, config files | MIT |

SPDX: `(MIT AND CC-BY-SA-4.0)`. Copyright: `Netresearch DTT GmbH`. No bare `LICENSE` — split files only. Internal repositories keep their author's licence (`LICENSE_MODEL=declared`).

## SKILL.md Frontmatter

```yaml
---
name: skill-name
description: "Use when <trigger conditions>"
---
```

**Budgets** (spec): `name` ≤64, no doubled/edge hyphen, matches its directory. `description` ≤1024, warn past 500 — a router, not documentation. Body ≤500 lines, warn at 300. `compatibility` ≤500, usually omit.

**Flat discovery**: references one level deep; SKILL.md names every `references/*.md` and every `scripts/` executable; `## Contents` past 100 lines. Rationale and trigger evals: [skill-architecture](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/skill-architecture.md). Audit: `audit-skills.sh` in the repository's top-level `scripts/` (not shipped with the skill).

## Manifests

Root `plugin.json` ([Agent Plugins 1.0.0](https://agent-plugins.org), closed field set) is the source of truth; `sync-plugin-manifest.sh` generates `.claude-plugin/plugin.json` plus Claude-only keys — [agent-plugins-compat](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/agent-plugins-compat.md).

```json
{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "skill-name",
  "version": "1.0.0",
  "license": "(MIT AND CC-BY-SA-4.0)",
  "author": {"name": "Netresearch DTT GmbH", "url": "https://www.netresearch.de"}
}
```

## composer.json

Name **must match GitHub repo**. Type `ai-agent-skill`. No `version` field (from git tags). No `composer.lock`.

```json
{
  "name": "netresearch/{repo-name}",
  "type": "ai-agent-skill",
  "license": "(MIT AND CC-BY-SA-4.0)",
  "require": {"netresearch/composer-agent-skill-plugin": "*"},
  "extra": {"ai-agent-skill": "skills/{name}/SKILL.md"}
}
```

## Reusable Workflow Callers

Skill repos MUST delegate CI to skill-repo-skill reusable workflows:

```yaml
# .github/workflows/validate.yml
uses: netresearch/skill-repo-skill/.github/workflows/validate.yml@main
```

Callers: `validate.yml`, `release.yml` (here); `auto-merge-deps.yml` (`netresearch/.github`). Auto-merge/pr-quality use `pull_request_target`. No inline Actions. Domain reusables: `docs/ARCHITECTURE.md`.

## Releasing

Bump root `plugin.json` → sync → PR → merge → pull main → verify parity → signed tag → push → monitor Release. **Tag only after bump PR merges.** Multi-repo (>3) needs dry-run + approval; 0.x → 1.0.0 goes through `STABILIZE` rows, not retyped plans. Never edit installed paths — [release-discipline](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/release-discipline.md).

## Installation

Marketplace, release download, Composer, npm — commands and the npm `files` default in [installation-methods](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/installation-methods.md).

## Validation

`scripts/validate-skill.sh` (layout, manifests, budgets, flat discovery, Python scripts on 3.11+ through `uv run`). Shell portability: [authoring-ci-gotchas](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/authoring-ci-gotchas.md).

Validate the unpacked/installed payload too: a shared reference that exists in the source tree may be absent from a standalone skill. Supply runtime resources or explicit optional fallbacks; never count a missing check as success.

For behavior changes, separate structural checks, normal skill selection, recorded tools and independent task outcomes. From the run directory, use [agent-evidence](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/agent-evidence.md) and `uv run ${CLAUDE_SKILL_DIR}/scripts/validate-agent-evidence.py RUN.json` for captured ATIF/Claude evidence; errors/timeouts are incomplete, including negative selection cases. The text-only A/B runner cannot establish routing or tool execution.

Named here so they are findable: `bump-version.sh`, `check-version-parity.sh`, `sync-plugin-manifest.sh`, `roll-changelog.py`, `fleet-release-github.sh`, `migrate-licensing.sh`, `validate-evals.sh`, `validate-agent-evidence.py` — each with `--help`.

## References (`references/`)

[agent-plugins-compat](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/agent-plugins-compat.md) · [installation-methods](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/installation-methods.md) · [plugin-hooks](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/plugin-hooks.md) · [composer-setup](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/composer-setup.md) · [release-discipline](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/release-discipline.md) · [review-replies](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/review-replies.md) · [skill-quality](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/skill-quality.md) · [repository-quality-rules](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/repository-quality-rules.md) · [readme-template](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/readme-template.md) · [skill-discovery-metadata](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/skill-discovery-metadata.md) · [validation-checklist](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/validation-checklist.md) · [marketplace-integration](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/marketplace-integration.md) · [materialization-contract](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/materialization-contract.md) · [agent-evidence](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/agent-evidence.md) · [authoring-ci-gotchas](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/authoring-ci-gotchas.md) · [skill-retirement](https://skilld.dev/api/skills-raw/netresearch/skill-repo-skill/skill-repo/references/skill-retirement.md)


---

> **Contributing:** <https://github.com/netresearch/skill-repo-skill>
