Skip to content

Structuring guide and validation toolkit for Netresearch skill repositories with split licensing and multi-channel distribution.

CCM score
60 of 100
GitHub stars
96
View on GitHub

Own this plugin? Claim it

What it does

  • Adds the skill-repo skill, covering repo layout, composer.json and plugin.json setup, release workflows, and validation scripts
  • Enforces one standard shape across Claude Code, Cursor, Copilot, and Composer, npm, and marketplace distribution
  • Checks SKILL.md frontmatter, split licensing (MIT and CC-BY-SA-4.0), and version parity through validate-skill.sh
  • Designed for maintainers creating or migrating Netresearch-style skill repositories with reusable GitHub CI workflows

Guide for structuring Netresearch skill repositories with multi-channel distribution. Covers repository standards, composer.json configuration, release workflows, and validation scripts.

Add marketplace

/plugin marketplace add netresearch/claude-code-marketplace

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install skill-repo@netresearch-claude-code-marketplace

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

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 patternLicense
skills/**/*.md, references/**, README.md, docs/**CC-BY-SA-4.0
scripts/**, .github/workflows/**, *.sh, *.py, *.phpMIT
composer.json, plugin.json, config filesMIT

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

---
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. 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, closed field set) is the source of truth; sync-plugin-manifest.sh generates .claude-plugin/plugin.json plus Claude-only keys — agent-plugins-compat.

{
  "$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.

{
  "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:

# .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. In a repo with changelog.d/, a feature PR writes a fragment there, never CHANGELOG.md; the bump's roll collects it. 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.

Installation

Marketplace, release download, Composer, npm — commands and the npm files default in installation-methods.

Validation

scripts/validate-skill.sh (layout, manifests, budgets, flat discovery, Python scripts on 3.11+ through uv run). Shell portability: authoring-ci-gotchas.

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 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 · installation-methods · plugin-hooks · composer-setup · release-discipline · review-replies · skill-quality · repository-quality-rules · readme-template · skill-discovery-metadata · validation-checklist · marketplace-integration · materialization-contract · agent-evidence · authoring-ci-gotchas · skill-retirement


Contributing: https://github.com/netresearch/skill-repo-skill

Readme

Skill Repository Structure Guide

A Claude Code skill for standardizing Netresearch skill repository layout, distribution channels, packaging, and validation.

What this skill solves

Netresearch maintains many agent skills; without a shared layout, packaging and CI drift across repositories. This skill defines one standard repo shape, reusable workflows, split licensing, and validation scripts so new and existing skills stay consistent and shippable via marketplace, Composer, npm, and releases.

It extends Anthropic-style single-file skills with repository-level conventions (not a replacement for Anthropic’s skill-creator — see comparison below).

Why this is a skill (model delta)

  • Value categories: org/project-specific knowledge (Netresearch repo shape, split licensing, composer type ai-agent-skill) and executable scripts/validators (validate-skill.sh, checkpoints.yaml).
  • Without the skill: the model invents a plausible generic repo layout — single LICENSE, no plugin.json, composer.json without the ai-agent-skill type — that fails validate-skill.sh and org CI.
  • Eval evidence: validate_skill_repo_structure and readme_requirements in skills/skill-repo/evals/evals.json.

Compatibility

This is an Agent Skill following the open standard originally developed by Anthropic and released for cross-platform use. The repository is also packaged as an Agent Plugins 1.0.0 plugin: the root plugin.json plus skills/ layout is what any conformant client loads.

Supported platforms:

  • Claude Code (Anthropic)
  • Cursor
  • GitHub Copilot
  • Other skills-compatible AI agents

Skills are portable packages of procedural knowledge that work across any AI agent supporting the Agent Skills specification.

Use when

  • Creating or bootstrapping a Netresearch-style skill repository
  • Standardizing layout, composer.json, plugin.json / .claude-plugin/plugin.json, or release workflows
  • Wiring reusable CI from netresearch/skill-repo-skill
  • Fixing validation errors from validate-skill.sh or marketplace packaging
  • Migrating to split licensing (LICENSE-MIT + LICENSE-CC-BY-SA-4.0)

Expected outputs

  • A documented directory layout and templates for new repos
  • Validation: structural checks for SKILL.md, licenses, composer.json, plugin.json
  • Release discipline: tag-driven packaging aligned with plugin version
  • References for installation paths, marketplace sync, and release safety

Context requirements

  • Validation script: bash 4.3+ and python3 (3.11+) on PATH when running validate-skill.sh (JSON checks use Python, not jq)
  • Target repos: GitHub-hosted Netresearch skill repos using split licensing and Composer type ai-agent-skill
  • CI: consuming repos call reusable workflows from this repository (validate.yml, release.yml, …)

Example prompts

"Scaffold a new Netresearch skill repository from the templates in skill-repo-skill."
"Why does validate-skill.sh fail on my SKILL.md frontmatter?"
"Add composer.json and plugin.json for our new skill repo matching netresearch conventions."
"Wire our repo to use netresearch/skill-repo-skill validate.yml on every PR."
"Migrate this repo from a single LICENSE file to LICENSE-MIT and LICENSE-CC-BY-SA-4.0."

Related skills

Installation

Marketplace (recommended)

Add the Netresearch marketplace once, then install this plugin from it:

/plugin marketplace add netresearch/claude-code-marketplace
/plugin install skill-repo@netresearch-claude-code-marketplace

Do not run /plugin marketplace add netresearch/skill-repo-skill. marketplace add needs a .claude-plugin/marketplace.json catalog; this repo ships a .claude-plugin/plugin.json plugin manifest, so that fails with Marketplace file not found.

Without a marketplace: skills directory (Claude Code 2.1.157+)

mkdir -p ~/.claude/skills
git clone https://github.com/netresearch/skill-repo-skill.git \
  ~/.claude/skills/skill-repo

Loads as skill-repo@skills-dir on the next session. Update with git -C ~/.claude/skills/skill-repo pull and start a new session; remove by deleting the directory.

npx (skills.sh)

Install with any Agent Skills-compatible agent:

npx skills add https://github.com/netresearch/skill-repo-skill --skill skill-repo

Limitation: npx skills installs SKILL.md-based skills only. It reads .claude-plugin/plugin.json to locate skills, not to register a plugin, so hooks/, agents/, commands/, bin/ and .mcp.json are left out. Use the marketplace or the skills directory when a repo ships any of those.

Download release

Download the latest release and extract to your agent’s skills directory.

Composer (PHP projects)

composer require netresearch/skill-repo-skill

Requires netresearch/composer-agent-skill-plugin.

npm (Node projects)

npm install --save-dev \
  @netresearch/agent-skill-coordinator \
  github:netresearch/skill-repo-skill

Requires @netresearch/agent-skill-coordinator, which discovers the skill in node_modules and registers it in AGENTS.md via a postinstall hook. For pnpm, allowlist the coordinator’s postinstall:

{
  "pnpm": {
    "onlyBuiltDependencies": ["@netresearch/agent-skill-coordinator"]
  }
}

Repository layout

Standard skill repository (concept)

The layout for a Netresearch skill repository (one or more skills per repo):

{name}-skill/
├── AGENTS.md                        # Agent rules / harness index
├── README.md                        # Human documentation
├── LICENSE-MIT                      # Code license (MIT)
├── LICENSE-CC-BY-SA-4.0             # Content license (CC-BY-SA-4.0)
├── composer.json                    # PHP distribution
├── package.json                     # Node distribution (optional)
├── renovate.json                    # Dependency automation
├── .claude-plugin/
│   └── plugin.json                  # Marketplace metadata
├── .github/workflows/               # CI (typically calls reusable workflows)
├── Build/                           # Build scripts and git hooks
├── docs/                            # Architecture, ADRs, dashboards
├── scripts/                         # Repo-level automation
└── skills/
    └── {skill-name}/
        ├── SKILL.md                 # AI instructions
        ├── checkpoints.yaml         # Assessment checkpoints (optional)
        ├── evals/                   # Skill evaluations
        ├── references/              # Extended docs
        ├── scripts/                 # Skill automation
        └── templates/               # Bootstrap templates

Installation methods (summary)

  1. Marketplace (recommended) — /plugin marketplace add netresearch/claude-code-marketplace, then /plugin install <plugin-name>@netresearch-claude-code-marketplace
  2. Skills directory — clone into ~/.claude/skills/<plugin-name>/; loads as <plugin-name>@skills-dir, no marketplace (Claude Code 2.1.157+)
  3. npx (skills.sh) — npx skills add <repo-url> --skill <name> (skills only: drops hooks, agents, commands, bin/)
  4. Release download — GitHub Releases (skill files only)
  5. Composer — composer require netresearch/<repo-name> (PHP projects)
  6. npm — coordinator + github:<org>/<repo> (Node projects)

Composer package requirements

  • "type": "ai-agent-skill"
  • "require": {"netresearch/composer-agent-skill-plugin": "*"}
  • "extra": {"ai-agent-skill": "skills/{skill-name}/SKILL.md"}

This repository (skill-repo-skill)

This repo dogfoods the layout and hosts reusable CI workflows for other Netresearch skill repos:

skill-repo-skill/
├── AGENTS.md
├── README.md
├── LICENSE-MIT
├── LICENSE-CC-BY-SA-4.0
├── SECURITY-AUDIT.md
├── composer.json
├── package.json
├── renovate.json
├── plugin.json                    # Agent Plugins 1.0.0 manifest (source of truth)
├── .claude-plugin/plugin.json     # Claude Code manifest (generated)
├── .github/workflows/             # validate, release, pr-quality,
│                                  # harness-verify, eval-validate,
│                                  # validate-agents, dependency-audit,
│                                  # npm-pack-smoke, ci-python
│                                  # (auto-merge delegates to netresearch/.github)
├── Build/
│   ├── Scripts/check-plugin-version.sh
│   └── hooks/
├── docs/
│   ├── ARCHITECTURE.md
│   ├── SECURITY-ASSURANCE.md
│   └── dashboard/
├── scripts/
├── tests/
│   └── agent-evidence.py          # Evidence contract regressions
└── skills/skill-repo/
    ├── SKILL.md
    ├── checkpoints.yaml
    ├── evals/evals.json
    ├── references/
    │   └── agent-evidence.md     # Captured-run contract and trust boundaries
    ├── scripts/
    │   └── validate-agent-evidence.py  # Validate ATIF / Claude run evidence
    └── templates/

See docs/ARCHITECTURE.md for component responsibilities.

Extends Anthropic's Skill Creator

This skill extends (not replaces) Anthropic’s skill-creator:

AspectAnthropic's skill-creatorThis skill adds
FocusSKILL.md contentRepository structure
ScopeSingle fileFull repo layout
DistributionClaude Code native+ Marketplace, Composer
AudienceAI instructions+ Human README

Contributing

Contributions welcome. Please open PRs for:

  • Template improvements
  • Additional validation checks
  • Documentation updates

Tests

The suite lives in tests/: Bash and Python scripts per area. It needs Bash 4.3+, Python 3.11+ (standard library), Git and jq. tests/validate-skill.sh also runs the PyYAML path of the validator when python3 can import yaml or uv is installed, and skips it with a notice otherwise; tests/fleet-release.sh skips its manifest cases without gh. No test calls a model: tests/run-ab-evals.sh puts a stub claude on PATH. The only download is PyYAML through uv, for that optional path. Run everything the way CI does:

rc=0
for t in tests/*.sh; do bash "$t" || { echo "FAILED: $t"; rc=1; }; done
for t in tests/*.py; do python3 "$t" || { echo "FAILED: $t"; rc=1; }; done
(exit "$rc")
  • validate-skill.sh, validate-skill-architecture.sh, portable-manifest.sh, mechanical-coverage.sh: the validator's verdicts (frontmatter parsing on both parser paths, multi-skill discovery, size budgets, dangling paths, allowed-tools, README install lines, release path, script-test lookup, plugin.json) and sync-plugin-manifest.sh, bump-version.sh, check-version-parity.sh.
  • agent-evidence.py: captured ATIF/Claude evidence, completion and failure paths, Unicode, artifact integrity and path confinement.
  • validate-evals.sh, run-ab-evals.sh: the eval validator on the three eval formats, and the A/B runner's provenance, sampling, gates and argument handling.
  • fleet-release.sh, roll-changelog.sh, migrate-licensing.sh, release-archive-layout.sh: the fleet release driver offline, the changelog roll, the licensing migration on throwaway repositories, and the archive layout and contents release.yml builds.
  • usage-text.sh, audit-skills.sh, renovate-custom-manager.py: --help output of the shipped scripts, scripts/audit-skills.sh, and the Renovate regex manager in renovate.json.

Each file prints a FAIL line naming each check that did not hold, ends with a summary line (except audit-skills.sh, whose failure output is its FAIL lines), and exits non-zero on any failure. The loop above runs every file and returns non-zero if any of them failed. Some files also print a line for each passing check (ok, PASS or [OK]).

In CI, every push to main and every pull request runs Skill Tests (tests-caller.yml calls the local tests.yml, which runs tests/**/*.sh and tests/**/*.py, each in its own log group) and Self-test (self-test.yml: the validator and manifest tests, this repository validated with the validator from the pull request, version parity, and the full Skill Validation job at ShellCheck severity style).

Test policy: a pull request that adds or changes behaviour of a script under skills/skill-repo/scripts/ or scripts/, or of a check in a reusable workflow, adds or updates a test in tests/ that fails without the change. Passing the existing suite is not enough for new functionality.

Dependencies

  • Shipped package: composer.json requires netresearch/composer-agent-skill-plugin, which registers the skill in a PHP project; package.json declares @netresearch/agent-skill-coordinator as a peer dependency for the same job in Node projects. Neither has a lock file: a skill package pins nothing for its consumers (see AGENTS.md).
  • Scripts: Bash, Python 3.11+ standard library, Git and jq; PyYAML is optional for validate-skill.sh; the fleet driver needs gh; scripts/run-ab-evals.sh needs the claude CLI. None is installed by this repository.
  • CI tools: third-party GitHub Actions are pinned to commit SHAs. validate.yml downloads ShellCheck 0.11.0 and checks its SHA-256, and runs ruff 0.17.1 and pyyaml 6.0.3 through uv. bandit and pip-audit are installed with --require-hashes from .github/requirements/*.txt, compiled from the matching *.in file with the uv pip compile --generate-hashes command in each file's header. Pre-commit hooks are pinned by rev: in .pre-commit-config.yaml. ab-evals-schedule.yml installs @anthropic-ai/claude-code at a fixed version.
  • Tracking and updates: Renovate (renovate.json: config:recommended, pre-commit hooks enabled, the pip-compile manager for .github/requirements/*.txt, which re-runs each file's header command and so also picks up new transitive dependencies, and a regex manager for the uvx …@version and uv run --with …==version pins in workflows, tested by tests/renovate-custom-manager.py) opens update pull requests; auto-merge-deps.yml hands them to the organisation's auto-merge workflow, which merges them after their checks pass. That manager only reads a header of the form --option=value that names the .in file, so keep it in that shape. The ShellCheck version and checksum and the pyyaml and claude-code pins have no Renovate rule and are updated by hand.
  • Selection: a new dependency is added in a pull request that changes the manifest or workflow that uses it, and is reviewed there, including its licence against the organisation policy below. Dependency review and Composer Audit run on that pull request (see below).

Governance and policies

This repository follows the Netresearch organisation policies:

  • Governance: ownership, roles, how decisions are made and disputes resolved, and continuity.
  • Roadmap: planned and explicitly excluded work for the coming year.
  • Handling of dependency and code analysis findings: thresholds, deadlines and the exception process for dependency (SCA) and static analysis (SAST) findings.
  • Secret management: how CI and release credentials are stored, accessed and rotated.
  • Access roster: who holds administrative access to this repository and the organisation.

The security assurance case for this repository (threat model, trust boundaries, countermeasures and limits) is in docs/SECURITY-ASSURANCE.md.

Checks that run on every pull request in this repository: Skill Validation (lint.yml, the reusable validate.yml from main: skill structure, plugin manifest sync, markdownlint, yamllint, actionlint, JSON syntax, Composer schema (composer validate), ShellCheck, ruff, checkpoint schemas), Self-test, Skill Tests, Eval Validation, npm Pack Smoke, the template drift check, and Security (security.yml, for pull requests against main or master): Betterleaks secret scanning, zizmor on the workflows, dependency review, Composer Audit with an Opengrep SAST scan, and CodeQL. SonarCloud and the DCO check also report on pull requests; they are configured in the repository settings, not in this repository.

License

This project uses split licensing:

  • Code (scripts, workflows, configs): MIT
  • Content (skill definitions, documentation, references): CC-BY-SA-4.0

See the individual license files for full terms.

Credits

Developed and maintained by Netresearch DTT GmbH.


Made with ❤️ for Open Source by Netresearch

Details

Marketplace
netresearch/claude-code-marketplace
Source
netresearch/skill-repo-skill
Category
Development
Listed since
Apr 7, 2026

Questions

What does the skill-repo plugin do for Claude Code?

The skill-repo plugin is a Claude Code skill for standardizing Netresearch skill repository layout, distribution channels, packaging, and validation. It covers repository standards, composer.json configuration, release workflows, and validation scripts such as validate-skill.sh.

How do I install the skill-repo plugin in Claude Code?

Run /plugin marketplace add netresearch/claude-code-marketplace first, then /plugin install skill-repo@netresearch-claude-code-marketplace. The second command installs the skill-repo plugin from that marketplace.

Which plugins lead the Skill & Plugin Building category?

skill-repo sits in the Skill & Plugin Building category on Claude Marketplaces, where example-skills, prompts.chat, plugin-dev, ruflo-plugin-creator and mcp-builder are other top plugins. It focuses on one standard repository shape, split licensing and validation for Netresearch-style skill repositories.

What do I need to run the skill-repo validation script?

The validate-skill.sh script needs bash 4.3 or newer and python3 3.11 or newer on your PATH. Its JSON checks use Python rather than jq.

Who is the skill-repo plugin for?

It is for developers creating or bootstrapping a Netresearch-style skill repository, or migrating one to split licensing with LICENSE-MIT and LICENSE-CC-BY-SA-4.0. It also helps teams fix validation errors and wire reusable CI from netresearch/skill-repo-skill.

More from netresearch/claude-code-marketplace

All 40

Similar to skill-repo

More Skill & Plugin Building