github-init
Sets up the GitHub repo for a new Umbraco package: README, LICENSE, CONTRIBUTING.md, a bug report template and a Dependabot config. Use when a project has no `origin` remote yet and is about to go public.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- github-init
- description
- Sets up the GitHub repo for a new Umbraco package: README, LICENSE, CONTRIBUTING.md, a bug report template and a Dependabot config. Use when a project has no `origin` remote yet and is about to go public.
- argument-hint
- [optional repo name]
- user-invocable
- true
02 资源文件 2
- 参考文档templates/config.yml431 B
- 参考文档templates/README.md447 B
03 SKILL.md 正文
github-init
Stand up the GitHub remote for a new Umbraco package and make its first impression a good one. Deliberately lighter than a generic open-source bootstrap checklist — see "What this skips, and why" below.
Preflight
- Refuse if a remote already exists.
git remote -v— iforiginpoints at github.com, stop and tell the user. Suggestgh repo view/gh repo editinstead. gh auth status— refuse if not logged in; tell the user to rungh auth login.- Read context:
CLAUDE.md, the feature plan folder(s) if any exist, any existingREADME.md,LICENSE,CONTRIBUTING.md,.github/— never overwrite without consent.
Interview (ask in one batch)
- Repo name — propose one derived from
CLAUDE.md(kebab-case, short). Offer 2–3 options if the obvious name is ambiguous. - Visibility — public or private.
- License — propose with a one-line reason each: MIT (most permissive, standard default for an Umbraco package or add-on) or Apache-2.0 (adds an explicit patent grant, worth it if the package is likely to see corporate adoption). Recommend MIT unless there's a specific reason to want the patent grant.
- Owner — personal account vs. an org, only if
gh auth statusshows the user belongs to one.
The bar — what gets built before the first push
README.md — real, never boilerplate
A boilerplate README is anything matching: just the project name and a one-liner; contains
TODO, Lorem ipsum, or the literal project-init stub text; no installation, no usage, no
example. If the current README trips this, refuse to push and offer to write a real one
from templates/README.md — fill in every placeholder, don't copy one through unfilled.
Pull the pitch and supported-versions line from CLAUDE.md — never invent them. If
CLAUDE.md doesn't have them yet, send the user to project-init first.
CONTRIBUTING.md — one file, short, honest
Minimum sections: prerequisites + how to get the project running locally (one command if
possible), how to run tests, where the coding conventions live (point at CLAUDE.md, don't
repeat it), and how to propose a change (issue first vs. PR first — link git-workflow's
commit-format section). If the project supports more than one CMS major at once, add the
branch-naming rules git-workflow describes (vN/feature/…, vN/release/…, etc.). 60–150
lines is plenty; don't split this into multiple files the way a large flagship project might.
LICENSE — real SPDX text
gh repo create ... --license <id> drops in the canonical text — don't hand-write it or
fudge the year/holder.
One issue template — bug report only, plus contact links instead of more forms
.github/ISSUE_TEMPLATE/bug_report.yml, structured like a real, large open-source Umbraco
project's (its actual field set, not a generic guess): a required "which version" field, a
required bug-summary textarea, an optional "specifics" textarea (URL it happens on, browser,
screenshots/videos), a required "steps to reproduce," and a required "expected result /
actual result." Ask for each field's description to include a short hint ("write the
exact version, example: 10.1.0") — it measurably improves what people fill in.
config.yml — copy from templates/config.yml, filling in the real Discussions/security
links for this project.
A contact link that redirects feature ideas to a discussion, and another that redirects
security reports to wherever that actually gets handled, is a better fit for a small package
than either a second structured issue-request template or a standalone SECURITY.md — see
"What this skips" below.
Dependabot config — locked dependencies ignored from day one
.github/dependabot.yml, built from umbraco-dependencies' "Dependabot" section and its
template. Without it, Dependabot's security updates still open PRs, including ones for
dependencies the CMS decides, and nothing groups the dev-only noise. Fill the ignore list
from what this project actually references, checked against the CMS at the package's floor.
If the project carries more than one CMS major, add a target-branch copy of each entry per
extra line.
What this skips, and why
This is intentionally lighter than a generic "professional open-source repo" checklist, because real Umbraco package repos don't carry the extra weight:
- No
SECURITY.md. Route reports via theconfig.ymlcontact link above instead, to wherever the disclosure process actually lives (a centralized page for something Umbraco- scale; an email address inCONTRIBUTING.mdfor a typical package). A dedicated file saying the same thing a contact link already says is redundant. - No separate feature-request issue form. A contact link redirecting to a discussion
is the pattern to copy, not a second structured
.ymltemplate. - No
CODE_OF_CONDUCT.mdby default. Add one only once the project has a meaningfully sized outside contributor base — an unused template file is worse than no file.
Behavior
- Run the interview.
- Audit existing files. For each one missing or boilerplate, stop and draft it with the user — never push first and fix later.
- README boilerplate gate. Re-read the README right before creating the remote. If it still trips the boilerplate detector, refuse and offer to rewrite.
- Create the remote:
gh repo create <owner>/<name> \ --<visibility> \ --license <spdx-id> \ --source . \ --remote origin \ --description "<one-line from README>" \ --push - After push: confirm the description on github.com matches the README's pitch, print the URL.
Rules
- Never push a boilerplate README. Refuse, draft, then push.
- Don't fabricate a description — pull it from the README's one-liner.
- Never set
originto a different remote without explicit consent. - Never make a repo public if the interview said private, and vice versa.
Hand off
Report: remote URL, license + visibility + owner, files created, anything skipped and why.
Suggested next: git-workflow for the first commit/PR once there's something to ship. When
Dependabot PRs start arriving, dependency-review works through them.
04 同仓库更多 Skills
user-stories
Writes, splits and refines user stories with Given/When/Then acceptance criteria in STORIES.md, feeding bdd-specs. Use when turning a feature request or a vague ask into a testable backlog entry.
umbraco-security
What Umbraco provides for keeping a package secure, on the server and in the backoffice: Management API authorization and policies, settings that hold secrets, endpoints outside the Management API, sanitizeHTML and escapeHTML, DOMPurify rules for custom elements, and umbHttpClient instead of handling tokens in the browser. Use when writing or reviewing a Management API controller, a secret setting, a custom endpoint, a backoffice template that uses unsafeHTML, or frontend code that calls an API.
umbraco-performance
Keeping a package fast on the sites that install it: the published cache over the services layer, tree traversal, caching lookups and clearing them, data type config and converter cache levels, output cache eviction, light hot paths, and backoffice screens that don't over-fetch. Use when writing, changing or reviewing code that runs per request, per save, per indexed item or at startup (property value converters, notification handlers, indexing), code that loops over every content item (a full rebuild, an import, a sync), or a list or search screen. Not for a site's own templates.
umbraco-package-conventions
Backend conventions for an Umbraco package: async naming, internal by default, Attempt-based results for routine failures, public-API backwards compatibility, and where extension methods live. Use when naming a method, choosing visibility, shaping a service's result, changing a public signature (including adding a dependency to a public class's constructor), or organizing extension methods. For extension mechanisms, see `umbraco-extensibility`.
umbraco-marketplace
Gets a finished package listed on the Umbraco Marketplace: the NuGet tag, the dependency Marketplace reads version support from, the v14+ compatibility gotcha, and umbraco-marketplace.json. Use when a package is ready to publish, or when reviewing its packaging.
umbraco-extensibility
Umbraco's extension mechanisms (Composers, collection builders, notification handlers, attribute discovery) and a catalogue of backend CMS extension points: property value converters, Management API endpoints, content finders, health checks, search indexing, package migrations, background jobs, and more. Use when making a feature extensible or choosing which extension point fits. Not for property editor UI, dashboards, sections or trees, which the official Backoffice Skills plugin covers.