Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

generate-sample-metadata

Skill by pnp

Creates or fixes the assets/sample.json metadata file for a new sample in pnp/sp-dev-fx-aces before its pull request is merged. It checks name uniqueness and validates the file against the repository schema.

  • Score 72
  • 140 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install generate-sample-metadata

Built from the published package, never by AI.

git clone --depth 1 https://github.com/pnp/sp-dev-fx-aces /tmp/sp-dev-fx-aces && mkdir -p ~/.claude/skills && cp -r /tmp/sp-dev-fx-aces/.github/skills/generate-sample-metadata ~/.claude/skills/generate-sample-metadata

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install generate-sample-metadata in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Generate sample metadata writes the assets/sample.json file that a new sample needs in the pnp/sp-dev-fx-aces repository before a pull request is merged. It reads the sample README, package.json, .yo-rc.json and the assets folder to fill in fields such as name, title, description, thumbnails and authors. The skill also checks that the generated name is unique across all other sample.json files and validates required fields against the repository schema.

The file is needed because a GitHub Action concatenates every sample.json into the samples gallery data on each push to main. The skill is meant for contributors and maintainers reviewing new-sample pull requests in that repository. It does not build the sample or test the package, and it does not merge the pull request.

Written from the project's SKILL.md and checked against it.

What it can do

  • Gather sample factsRuns gather-sample-facts.sh to report the SPFx version, React dependency, image files, README badges and authors table.
  • Derive metadata fieldsDerives name, title, shortDescription, url, products, metadata, thumbnails, authors and references from the sample files.
  • Check name uniquenessRuns check-name-uniqueness.sh to compare the generated name against every other sample.json in the repo.
  • Validate required fieldsChecks required fields and formats against templates/metadata-schema.json before the file is finalized.
  • Write sample.jsonWrites a single-object JSON array to samples/<SampleName>/assets/sample.json in the format used by other samples.
  • Fix an existing fileValidates an existing sample.json that is incomplete or still contains TODO placeholders.
  • Find sample folders in a PRUses the GitHub CLI to list the samples folders changed in a pull request by PR number.
  • Hand off for mergePrepares the file for the PR branch and reports it to the user without merging the pull request.

What you need

  • GitHub CLI (gh) for pull request lookups
  • jq for checking that the JSON is well formed
  • Bash to run the helper scripts
  • A checkout of the pnp/sp-dev-fx-aces repository

Try asking

  • Create the assets/sample.json for samples/MySample in pnp/sp-dev-fx-aces.
  • Check whether the name pnp-sp-fx-aces-my-sample is unique in the repo.
  • Validate the sample.json for PR 123 against the metadata schema.

Good to know

  • Does not build the sample or test the .sppkg file.
  • Title and description wording should be checked by a person.
  • The Sample validation PR check can fail for a new sample until it is merged.
  • A sample needs at least one image in assets/ before the file can be completed.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .github/skills/generate-sample-metadata/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to generate-sample-metadata

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

generate-sample-metadata: common questions

Why does a sample need assets/sample.json?

A GitHub Action merges all sample.json files into samples.json on the gh-pages branch, which feeds the public samples gallery. A missing or malformed file breaks that build.

Does the skill make up author names?

No. The source says to omit optional fields such as company or Twitter handle rather than guess, and to ask the user when the README does not state them.

Does the skill merge the pull request?

No. The source says to only prepare and report the file and not to merge the pull request.

How do I install generate-sample-metadata?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is generate-sample-metadata free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is generate-sample-metadata safe to use?

It scores 72 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to generate-sample-metadata?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

generate-sample-metadata Install

Add to stack

Loading.